This document provides tips on how to integrate the rules library to a build environment.
Add the rules library to your Maven Checkstyle Plugin's configuration like this.
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.8</version> <dependencies> <dependency> <groupId>de.smartics.rules</groupId> <artifactId>smartics-checkstyle-rules</artifactId> <version>0.1.3</version> </dependency> </dependencies> </plugin>
If you choose to use smartics' configuration of checkstyle rules, add this:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.8</version> <dependencies> <dependency> <groupId>de.smartics.config</groupId> <artifactId>config-smartics-checkstyle</artifactId> <version>1.5.0</version> </dependency> <dependency> <groupId>de.smartics.rules</groupId> <artifactId>smartics-checkstyle-rules</artifactId> <version>0.1.3</version> </dependency> </dependencies> </plugin>
Drop the rules library to your Eclipse's dropins folder to integrate with the eclipse-cs plugin.