Add a code inspection for @AuraEnabled on non-static method

Issue #1220 resolved
Scott Wells repo owner created an issue

IC should mark the following as an error:

@AuraEnabled
public void doSomething() {
    ...
}

because the method is annotated as @AuraEnabled but is not static.

There should be a corresponding code intention to add the static modifier to the method (and perhaps another to remove the @AuraEnabled annotation, but only if no references are found in Lightning).

Comments (3)

  1. Log in to comment