SonarQube error Expected an assignment or function call and instead saw an expression [closed]

1.0K    Asked by ChloeBurgess in Power BI , Asked on Apr 23, 2021

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) {....} })
Answered by Elvera Peasley

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



Your Answer

Interviews

Parent Categories