Skip to content

alban-auzeill/sonar-1000rules-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Sonar Plugin with 1000 rules

The plugin target rust files (*.rs) The 1000 rules are generated by src/main/java/one/thousand/rules/plugin/GenerateRules.java

Check one analysis

mvn clean package
cp target/sonar-1000rules-plugin-1.0-SNAPSHOT.jar ../sonarqube-10.4.1.88267/extensions/plugins
cd project-to-analyse
export SONAR_TOKEN="<replace with sonar token>"
sonar-scanner

Expected output when there is no error

INFO: Rust Sensor executed with 1000 checks 0 missing: 

Expected output when there is an error

INFO: Rust Sensor executed with 1000 checks 2 missing: S0001, S0002 

Run the scanner in a loop to see if some checks are missing

while true; do sonar-scanner | grep 'Rust Sensor executed'; done

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published