You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2021/07/17 20:02:13 UTC

[sling-org-apache-sling-commons-content-processing] 02/09: SLING-10632 Enable code checks with Checkstyle

This is an automated email from the ASF dual-hosted git repository.

olli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-content-processing.git

commit 49020d349a991281f31e70788e350df9a2a39880
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Sat Jul 17 21:53:30 2021 +0200

    SLING-10632 Enable code checks with Checkstyle
---
 pom.xml | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/pom.xml b/pom.xml
index e1f2e80..09f3835 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,6 +54,34 @@
           <failOnMissing>false</failOnMissing>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+        <version>3.1.2</version>
+        <dependencies>
+          <dependency>
+            <groupId>com.puppycrawl.tools</groupId>
+            <artifactId>checkstyle</artifactId>
+            <version>8.44</version>
+          </dependency>
+          <dependency>
+            <groupId>de.bildschirmarbeiter</groupId>
+            <artifactId>checkstyle</artifactId>
+            <version>1</version>
+          </dependency>
+        </dependencies>
+        <configuration>
+          <configLocation>checks.xml</configLocation>
+        </configuration>
+        <executions>
+          <execution>
+            <phase>validate</phase>
+            <goals>
+              <goal>check</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>