简体   繁体   中英

Beginners guide in Writing own Custom Rules for Java in SonarQube

I'm just a beginner towards static code analysis and I have adopted SonarQube for the purpose. Right now I'm stuck at the point to begin customization. I need to know the process or step by step guide to customize SonarQube ie integrating my own rules for the language.

I'm currently running SonarQube 4.2 Sonar-Scanner 2.5.1 Eclipse Mars M1 (Eclipse 4.5.0) PostgreSQL 9.4

First, try using version 4.5.7 of SonarQube, as it is the current Long Term Support (LTS) version.

Then, have a look at the SonarQube documentation on writing custom rules in Java . The java-custom-rules maven project will then be a good starting point to write your own rules. It's an example project with some sampled rules.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM