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

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

amazon web services - When using Cognito credentials with AWS in a browser (javascript), keep getting "missing credentials" error -

c# - How to set the datatextfield value instead of the value on a drop down list? -