I am creating a plugin for Sonar and I need to create a custom metric since there are no core metrics within Sonar API that fulfill my needs.
I need to be able to display this metric on the dashboard.
Any help is greatly appreciated!
You can find examples in the Community plugins for SonarQube project.
For instance, the Sonar Artifact Size Plugin defines some additional metrics. You can see the code in https://github.com/SonarQubeCommunity/sonar-artifact-size/tree/master/src/main/java/org/sonar/plugins/artifactsize
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With