O'Reilly logo

Sonar Code Quality Testing Essentials by Charalampos Arapidis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Eliminating your first violations

Now we will pick the commons-lang project that we imported into Sonar earlier and eliminate a few violations. Then, we'll run a new analysis and get visual feedback afterwards through the web interface. Of course, you are free to choose any project and try to eliminate similar violations. Before we start the process of editing source files, here is what the Violations widget reads:

Eliminating your first violations

Unused modifier violation

From the left menu, select the Violations Drilldown component. Select the Info severity, find the Unused Modifier violations on the right panel, and click them to see the exact classes at which they are encountered. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required