Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 591 Bytes

README_EN.md

File metadata and controls

21 lines (17 loc) · 591 Bytes

EN | 中文

Introduction

Implement custom sonar plug-in based on the official way of sonar

how to build

1. manage project module

2. mvn clean install

3. mv jar to sonar extensions/plugins

4. restart sonar

how to add a new rule

1. add RuleClass class like org.sonar.samples.java.checks.MyFirstCustomCheck
2. register RuleClass in org.sonar.samples.java.RulesList
3. add html in resources/org.sonar.l10n.java.rules.java
4. add json in resources/org.sonar.l10n.java.rules.java