SonarJS not respecting sonar.javascript.globals

1.3k views Asked by At

I have configured a long list of sonar.javascript.globals on the server side (SonarQube) for all js projects, however when triggering a sonar check from CI with sonar-maven-plugin I get the known S3827 (ReferenceErrorCheck). When I extend the mvn command to include Dsonar.javascript.globals=CustomFunc, this CustomFunc is respected as known.

Is there a way to fix this or I have misunderstood the usage of the global setting? Thanks.

0

There are 0 answers