From b9b44323773ce000ff709d44d43ef1c9040694cc Mon Sep 17 00:00:00 2001
From: buildmaster
- Fails the build upon Checkstyle errors Fails the build upon Checkstyle violations Checkstyle analyzes also the test sources Add checkstyle plugin to your build and reporting phases Add the Spring Java Format plugin that will reformat your code to pass most of the Checkstyle formatting rules If you need to suppress some rules (e.g. line length needs to be longer), then it’s enough for you to define a file under projectRoot/src/checkstyle/checkstyle-suppresions.xml.
+ Fails the build upon Checkstyle errors Fails the build upon Checkstyle violations Checkstyle analyzes also the test sources Add the Spring Java Format plugin that will reformat your code to pass most of the Checkstyle formatting rules Add checkstyle plugin to your build and reporting phases If you need to suppress some rules (e.g. line length needs to be longer), then it’s enough for you to define a file under projectRoot/src/checkstyle/checkstyle-suppresions.xml.
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- </plugin>
- <plugin>
<groupId>io.spring.javaformat</groupId>
<artifactId>spring-javaformat-maven-plugin</artifactId>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ </plugin>
</plugins>
</build>
@@ -42,7 +42,7 @@
</plugins>
</reporting>
</build>${project.root}/src/checkstyle/checkstyle-suppressions.xml with your suppressions. Example:${project.root}/src/checkstyle/checkstyle-suppressions.xml with your suppressions. Example:<?xml version="1.0"?>
<!DOCTYPE suppressions PUBLIC
"-//Puppy Crawl//DTD Suppressions 1.1//EN"
diff --git a/single/spring-cloud-build.html b/single/spring-cloud-build.html
index d6da4838..14a31ce2 100644
--- a/single/spring-cloud-build.html
+++ b/single/spring-cloud-build.html
@@ -24,13 +24,13 @@ to use for plugin and dependency management.
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- </plugin>
- <plugin>
<groupId>io.spring.javaformat</groupId>
<artifactId>spring-javaformat-maven-plugin</artifactId>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ </plugin>
</plugins>
</build>
@@ -43,7 +43,7 @@ to use for plugin and dependency management.-
Fails the build upon Checkstyle errors | |
Fails the build upon Checkstyle violations | |
Checkstyle analyzes also the test sources | |
Add checkstyle plugin to your build and reporting phases | |
Add the Spring Java Format plugin that will reformat your code to pass most of the Checkstyle formatting rules |
If you need to suppress some rules (e.g. line length needs to be longer), then it’s enough for you to define a file under ${project.root}/src/checkstyle/checkstyle-suppressions.xml with your suppressions. Example:
projectRoot/src/checkstyle/checkstyle-suppresions.xml. +
Fails the build upon Checkstyle errors | |
Fails the build upon Checkstyle violations | |
Checkstyle analyzes also the test sources | |
Add the Spring Java Format plugin that will reformat your code to pass most of the Checkstyle formatting rules | |
Add checkstyle plugin to your build and reporting phases |
If you need to suppress some rules (e.g. line length needs to be longer), then it’s enough for you to define a file under ${project.root}/src/checkstyle/checkstyle-suppressions.xml with your suppressions. Example:
projectRoot/src/checkstyle/checkstyle-suppresions.xml.
<?xml version="1.0"?>
<!DOCTYPE suppressions PUBLIC
"-//Puppy Crawl//DTD Suppressions 1.1//EN"
diff --git a/spring-cloud-build.xml b/spring-cloud-build.xml
index 29d2b3d2..96dea0cf 100644
--- a/spring-cloud-build.xml
+++ b/spring-cloud-build.xml
@@ -83,13 +83,13 @@ to use for plugin and dependency management.
<build>
<plugins>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- </plugin>
- <plugin>
<groupId>io.spring.javaformat</groupId>
<artifactId>spring-javaformat-maven-plugin</artifactId>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ </plugin>
</plugins>
</build>
@@ -114,12 +114,12 @@ to use for plugin and dependency management.
Checkstyle analyzes also the test sources
-
-Add checkstyle plugin to your build and reporting phases
-
-
+
Add the Spring Java Format plugin that will reformat your code to pass most of the Checkstyle formatting rules
+
+Add checkstyle plugin to your build and reporting phases
+
If you need to suppress some rules (e.g. line length needs to be longer), then it’s enough for you to define a file under ${project.root}/src/checkstyle/checkstyle-suppressions.xml with your suppressions. Example: