SonarJS
SonarJS copied to clipboard
S1541: Ignore function expressions passed to method calls on Angular modules
When computing cyclomatic complexity, SonarJS used to ignore function expressions passed to method calls on Angular modules:
var m = angular.module("moduleX");
m.controller("name", function() {
...
});
This was possible because type information was available for Angular modules, which made easy the detection of these calls.