sonar runner - How to handover a custom rule for SonarQube to identify JavaScript constructors? -


i working on client side mvc framework angular js. part of project have written services handle restful client requests , responses using angular api. right doing code quality task using sonar tool. per angular js api service having 1 function can call constructor same name of service. example

            angular.module('modulename').factory('servicename',[function(){             function servicename() { }]); 

now issue sonarqube. sonaqube reading function name normal function name (servicename) basing on normal function hungarian notation rules if change function name normal function name functionality not working per angular js api standards. need handover 1 custom rule sonar omitting of checking these constructor name normal function name. can please suggest me ways write custom rule handling such kind of scenarios. in advance?


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -