SonarQube error Expected an assignment or function call and instead saw an expression [closed]
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Salesforce Stack Exchange.Closed 6 months ago. Improve this question So when I run SonarQube I get this error "Expected an assignment or function call and instead saw an expression." for all Aura JS Controllers and helpers. Aura JS sample code:
({ doInit : function(component, event, helper) {....} })
We expected an assignment or function call and instead saw an expression issue.You need to disable some js rules, like this one, as this is not built for Aura framework