You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2022/11/29 23:07:11 UTC

[maven-parent] 01/01: [MPOM-371] Fix checkstyle configuration

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

sjaranowski pushed a commit to branch MPOM-371
in repository https://gitbox.apache.org/repos/asf/maven-parent.git

commit 7faf877810e4f37b40ff0c4b55dd3936b81d48d6
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Wed Nov 30 00:06:17 2022 +0100

    [MPOM-371] Fix checkstyle configuration
    
    - use new rules file
    - remove non existing rules from excludes
---
 pom.xml | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/pom.xml b/pom.xml
index 7ccac2b..8c92511 100644
--- a/pom.xml
+++ b/pom.xml
@@ -946,10 +946,7 @@ under the License.
     <surefire.version>3.0.0-M7</surefire.version>
     <!-- don't fail check for some rules that are too hard to enforce (could even be told broken for some)
          and those that are enforced by the formatting checks from spotless -->
-    <checkstyle.violation.spotless.ignore>LineLength,RegexpHeader,LeftCurly,RightCurly,OperatorWrap,ParenPad,
-      WhitespaceAfter,WhitespaceAround,GenericWhitespace</checkstyle.violation.spotless.ignore>
-    <checkstyle.violation.ignore>RedundantThrows,NewlineAtEndOfFile,ParameterNumber,MethodLength,FileLength,
-      ${checkstyle.violation.spotless.ignore}</checkstyle.violation.ignore>
+    <checkstyle.violation.ignore>ParameterNumber,MethodLength,FileLength</checkstyle.violation.ignore>
     <project.build.outputTimestamp>2022-11-14T23:11:28Z</project.build.outputTimestamp>
   </properties>
 
@@ -1040,8 +1037,7 @@ under the License.
           <artifactId>maven-checkstyle-plugin</artifactId>
           <version>3.2.0</version>
           <configuration>
-            <configLocation>config/maven_checks.xml</configLocation>
-            <headerLocation>config/maven-header.txt</headerLocation>
+            <configLocation>config/maven_checks_nocodestyle.xml</configLocation>
             <!-- workaround to avoid analysing generated content (Modello, plugin help mojo, ...) -->
             <sourceDirectories>
               <sourceDirectory>src/main/java</sourceDirectory>