I've been looking at using SonarQube to do quality checking on some javascript code, but this code is written using AngularJS.
One of the SonarQube rules checks the number of lines in a function - which seems sensible - but in AngularJS, functions are used to define controllers, services and directives, and these functions can get pretty big. Conceptually, they're really more like class definitions, with other functions nested within them.
Ideally, I'd like SonarQube to check the lengths of the inner functions, and possibly the outer function with the inner ones excluded, but I don't know of any way to do this.
Has anyone else encountered this problem using SonarQube with AngularJS, or does anyone know a good solution?