The CZT Checkstyle project contains just the CZT settings for Checkstyle tool. The configuration is adapted from the style guidelines from Geosoft.

Usage

The CZT Checkstyle configuration is available for download. Use it with all tools that support Checkstyle, e.g. Eclipse-CS for Eclipse IDE.

Use in Maven build

This Checkstyle project enables these settings to be used as part of the Maven build, just add the project as a dependency to maven-checkstyle-plugin and then reference the CZT Checkstyle config in your POM file:

<project>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>2.9.1</version>
        <dependencies>
          <dependency>
            <groupId>net.sourceforge.czt.dev</groupId>
            <artifactId>checkstyle</artifactId>
            <version>2.0.0</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
    ...
  </build>
  ...
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>2.9.1</version>
        <configuration>
          <configLocation>/net/sourceforge/czt/checkstyle.xml</configLocation>
        </configuration>
      </plugin>
    </plugins>
  </reporting>
  ...
</project>       

Back to top

Version: 1.6-SNAPSHOT. Last Published: 2016-04-09.

Reflow Maven skin by Andrius Velykis.