Information Technology Reference
In-Depth Information
Inspection
Automated code inspections (e.g., static and dynamic analysis) can be
used to enhance the quality of the software by enforcing rules. For
instance, a project might have a rule that no class may be longer than
300 lines of noncommented code. You can use your CI system to run
these rules automatically against a code base. We discuss and demon-
strate various tools and techniques in Chapter 7.
The sample software inspection report shown in Figure 1-7 was
generated using Checkstyle, which inspects Java code. Using a report
like this can enable continuous monitoring of coding standards and
quality metrics.
Listing 1-8 shows an example using the Checkstyle static code
analysis tool with Ant. This example generates the report in Figure 1-7.
FIGURE 1-7
Automated inspection report using Checkstyle
Search WWH ::




Custom Search