Apache Maven Checkstyle Plugin

Clone this repo:
  1. 5f0f5a8 Declare doxia before maven-reporting-impl by Sylwester Lachiewicz · 5 hours ago master
  2. 4be3ac1 Bump org.codehaus.mojo:l10n-maven-plugin from 1.3.0 to 1.3.1 by dependabot[bot] · 9 hours ago
  3. 31b5574 Replace deprecated ArtifactRepository in CheckstyleProjectStub by Ym · 4 days ago
  4. 414d1c2 Log when Checkstyle execution is skipped (#711) by Efe · 24 hours ago
  5. 247812b Fix #754: remove unused test dependencies (#760) by Matthias Bünger · 24 hours 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.