-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Sonar Code Quality Testing Essentials
By :

In this chapter, we will discuss coding standards and the way Sonar monitors such violations. We will use Sonar to track down coding standards violations and correct them. To better understand the process, a small project containing classes lacking in standards department will be inspected by Sonar. Then, we will go over identifying and eliminating the violations one by one, examining the cause of each violation and providing a possible solution on how to eliminate it or overcome it. To fine grain Sonar output, we will define a custom profile focused on coding standards violations.
Before diving into the whole process, a general discussion about coding standards is necessary, exploring the purpose they serve, and why projects need to follow them and respect them at one point or another. Then, we will take a closer look at what a Sonar Rule is, how it correlates to Violations and Levels, and the Rules Compliance Metric. Under certain circumstances, some...
Change the font size
Change margin width
Change background colour