Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Make possible to not rely on an external module or file:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>@pom.version@</version> <executions> <execution> <id>check</id> <phase>process-resources</phase> <goals> <goal>check</goal> </goals> </execution> </executions> <configuration> <checkstyleRules> <name>Checker</name> <modules> <module> <name>TreeWalker</name> <modules> <module> <name>EmptyBlock</name> </module> </modules> </module> </modules> </checkstyleRules> </configuration> </plugin>
or (better) this one:
<configuration> <logViolationsToConsole>true</logViolationsToConsole> <checkstyleRules> <![CDATA[ <?xml version="1.0" encoding="UTF-8"?> <!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="EmptyBlock"/> </module> </module> ]]> </checkstyleRules> </configuration>