i have installed sonarqube 5.1.1 , got running @ localhost. there 1 thing can't do: creating own custom coding rule (for example, don't want allow system.out.println() in code).
i have watched tutorial on sonarqube homepage older version.
to answer question,
there 2 ways extend coding rules.
- writing custom rules using java via sonarqube plugin.(for details click here.)
- adding xpath rules directly through sonarqube web interface. (for details click here)
you have write custom sonarqube plugin creating custom coding standard , have place jar file in extensions/plugins , have restart sonarqube.while define custom rules have define custom parameters.
for more detils, please find sonarqube guildlines.
Comments
Post a Comment