README.md: update example usage

This commit is contained in:
Paul Campbell 2017-01-06 15:31:14 +00:00
parent a5d2a300f9
commit 8738afea8b
2 changed files with 98 additions and 76 deletions

View file

@ -39,54 +39,65 @@ from the previous.
```` ````
<properties> <properties>
<maven.checkstyle.plugin.version>2.17</maven.checkstyle.plugin.version>
<checkstyle.version>7.3</checkstyle.version> <checkstyle.version>7.3</checkstyle.version>
<sevntu-checkstyle-maven-plugin.version>1.22.0</sevntu-checkstyle-maven-plugin.version> <sevntu-checkstyle-maven-plugin.version>1.22.0</sevntu-checkstyle-maven-plugin.version>
<kemitix-checkstyle-ruleset.version>0.2.0</kemitix-checkstyle-ruleset.version> <kemitix-checkstyle-ruleset.version>0.2.0</kemitix-checkstyle-ruleset.version>
</properties> </properties>
<pluginManagement> <build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven.checkstyle.plugin.version}</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>${checkstyle.version}</version>
</dependency>
<dependency>
<groupId>com.github.sevntu.checkstyle</groupId>
<artifactId>sevntu-checkstyle-maven-plugin</artifactId>
<version>${sevntu-checkstyle-maven-plugin.version}</version>
</dependency>
<dependency>
<groupId>net.kemitix</groupId>
<artifactId>kemitix-checkstyle-ruleset</artifactId>
<version>${kemitix-checkstyle-ruleset.version}</version>
</dependency>
</dependencies>
<configuration>
<configLocation>net/kemitix/checkstyle-5-complexity.xml</configLocation>
</configuration>
</plugin><!-- maven-checkstyle-plugin -->
</plugins>
</pluginManagement>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId> <artifactId>maven-checkstyle-plugin</artifactId>
<dependencies> <executions>
<dependency> <execution>
<groupId>com.puppycrawl.tools</groupId> <id>validate</id>
<artifactId>checkstyle</artifactId> <phase>validate</phase>
<version>${checkstyle.version}</version> <goals>
</dependency> <goal>check</goal>
<dependency> <goal>checkstyle</goal>
<groupId>com.github.sevntu.checkstyle</groupId> </goals>
<artifactId>sevntu-checkstyle-maven-plugin</artifactId> </execution>
<version>${sevntu-checkstyle-maven-plugin.version}</version> </executions>
</dependency>
<dependency>
<groupId>net.kemitix</groupId>
<artifactId>kemitix-checkstyle-ruleset</artifactId>
<version>${kemitix-checkstyle-ruleset.version}</version>
</dependency>
</dependencies>
<configuration>
<configLocation>net/kemitix/checkstyle-5-complexity.xml</configLocation>
</configuration>
</plugin><!-- maven-checkstyle-plugin --> </plugin><!-- maven-checkstyle-plugin -->
</plugins> </plugins>
</pluginManagement> </build>
<plugins> <pluginRepositories>
<plugin> <pluginRepository>
<groupId>org.apache.maven.plugins</groupId> <id>sevntu-maven</id>
<artifactId>maven-checkstyle-plugin</artifactId> <name>sevntu-maven</name>
<executions> <url>http://sevntu-checkstyle.github.io/sevntu.checkstyle/maven2</url>
<execution> </pluginRepository>
<id>validate</id> </pluginRepositories>
<phase>validate</phase>
<goals>
<goal>check</goal>
<goal>checkstyle</goal>
</goals>
</execution>
</executions>
</plugin><!-- maven-checkstyle-plugin -->
</plugins>
```` ````
## All Checks ## All Checks

View file

@ -39,54 +39,65 @@ from the previous.
```` ````
<properties> <properties>
<maven.checkstyle.plugin.version>2.17</maven.checkstyle.plugin.version>
<checkstyle.version>7.3</checkstyle.version> <checkstyle.version>7.3</checkstyle.version>
<sevntu-checkstyle-maven-plugin.version>1.22.0</sevntu-checkstyle-maven-plugin.version> <sevntu-checkstyle-maven-plugin.version>1.22.0</sevntu-checkstyle-maven-plugin.version>
<kemitix-checkstyle-ruleset.version>0.2.0</kemitix-checkstyle-ruleset.version> <kemitix-checkstyle-ruleset.version>0.2.0</kemitix-checkstyle-ruleset.version>
</properties> </properties>
<pluginManagement> <build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven.checkstyle.plugin.version}</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>${checkstyle.version}</version>
</dependency>
<dependency>
<groupId>com.github.sevntu.checkstyle</groupId>
<artifactId>sevntu-checkstyle-maven-plugin</artifactId>
<version>${sevntu-checkstyle-maven-plugin.version}</version>
</dependency>
<dependency>
<groupId>net.kemitix</groupId>
<artifactId>kemitix-checkstyle-ruleset</artifactId>
<version>${kemitix-checkstyle-ruleset.version}</version>
</dependency>
</dependencies>
<configuration>
<configLocation>net/kemitix/checkstyle-5-complexity.xml</configLocation>
</configuration>
</plugin><!-- maven-checkstyle-plugin -->
</plugins>
</pluginManagement>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId> <artifactId>maven-checkstyle-plugin</artifactId>
<dependencies> <executions>
<dependency> <execution>
<groupId>com.puppycrawl.tools</groupId> <id>validate</id>
<artifactId>checkstyle</artifactId> <phase>validate</phase>
<version>${checkstyle.version}</version> <goals>
</dependency> <goal>check</goal>
<dependency> <goal>checkstyle</goal>
<groupId>com.github.sevntu.checkstyle</groupId> </goals>
<artifactId>sevntu-checkstyle-maven-plugin</artifactId> </execution>
<version>${sevntu-checkstyle-maven-plugin.version}</version> </executions>
</dependency>
<dependency>
<groupId>net.kemitix</groupId>
<artifactId>kemitix-checkstyle-ruleset</artifactId>
<version>${kemitix-checkstyle-ruleset.version}</version>
</dependency>
</dependencies>
<configuration>
<configLocation>net/kemitix/checkstyle-5-complexity.xml</configLocation>
</configuration>
</plugin><!-- maven-checkstyle-plugin --> </plugin><!-- maven-checkstyle-plugin -->
</plugins> </plugins>
</pluginManagement> </build>
<plugins> <pluginRepositories>
<plugin> <pluginRepository>
<groupId>org.apache.maven.plugins</groupId> <id>sevntu-maven</id>
<artifactId>maven-checkstyle-plugin</artifactId> <name>sevntu-maven</name>
<executions> <url>http://sevntu-checkstyle.github.io/sevntu.checkstyle/maven2</url>
<execution> </pluginRepository>
<id>validate</id> </pluginRepositories>
<phase>validate</phase>
<goals>
<goal>check</goal>
<goal>checkstyle</goal>
</goals>
</execution>
</executions>
</plugin><!-- maven-checkstyle-plugin -->
</plugins>
```` ````
## All Checks ## All Checks