Apache Maven Checkstyle Plugin

Clone this repo:
  1. 81ed8ee Bump org.codehaus.mojo:animal-sniffer-maven-plugin from 1.29.1 to 1.29.2 (#757) by dependabot[bot] · 3 days ago master
  2. 10cb209 Format Groovy IT scripts by Sylwester Lachiewicz · 4 days ago
  3. 991728f Fix #284: invalidate the cache when suppressionsLocation changes (#732) by Arturo Bernal · 8 days ago
  4. 47e018b Point the SCM tag at HEAD on master by Sylwester Lachiewicz · 12 days ago
  5. e9bbdd9 Refresh the plugin site and README by Sylwester Lachiewicz · 12 days ago

Apache Maven Checkstyle Plugin

Apache License, Version 2.0, January 2004 Maven Central Reproducible Builds Verify

Runs Checkstyle on a Maven project. The check goal logs violations and fails the build; the checkstyle and checkstyle-aggregate goals write an HTML report, on their own or as part of the project site.

mvn checkstyle:check
mvn checkstyle:checkstyle

The plugin requires Maven 3.9.0 and Java 8, and runs Checkstyle 9.3 by default. Projects can use a newer Checkstyle by adding it as a plugin dependency.

Build

mvn verify

Run the integration tests in src/it with the run-its profile:

mvn -Prun-its verify

Build the plugin site, including the goal pages, with:

mvn install -DskipTests
mvn site -Preporting

Contributing

Open a pull request against master. Discuss larger changes on the developer mailing list first. See the guide to helping with Maven for the general process.