August 2017
Intermediate to advanced
332 pages
9h 16m
English
In order to add the Checkstyle configuration, we need to define the rules against which the code is checked. We can do this by specifying the config/checkstyle/checkstyle.xml file:
<?xml version="1.0"?><!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd"><module name="Checker"> <module name="TreeWalker"> <module name="JavadocType"> <property name="scope" value="public"/> </module> </module></module>
The configuration contains only one rule: Checking if public classes, interfaces, and enums are documented with Javadoc. If they are not, the build fails.
Read now
Unlock full access