SonarJS icon indicating copy to clipboard operation
SonarJS copied to clipboard

S1541: Ignore function expressions passed to method calls on Angular modules

Open yassin-kammoun-sonarsource opened this issue 5 years ago • 0 comments

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.