From a6e5e58bae1e1b5204d4f7445ebc37ff2047f767 Mon Sep 17 00:00:00 2001 From: Daniel Heid Date: Thu, 2 Nov 2023 19:30:23 +0100 Subject: [PATCH] Adapt checkstyle configuration (#65) --- checkstyle.xml | 62 ++++++++++++++++++++++++++++++-------------------- pom.xml | 11 ++------- 2 files changed, 39 insertions(+), 34 deletions(-) diff --git a/checkstyle.xml b/checkstyle.xml index 8955e917..c71071b6 100644 --- a/checkstyle.xml +++ b/checkstyle.xml @@ -2,28 +2,50 @@ - - + + + + + + + + + + default="checkstyle-suppressions.xml" /> + + + + - + + @@ -72,19 +94,18 @@ + COMPACT_CTOR_DEF"/> + + value="COMMA, SEMI, TYPECAST, LITERAL_IF, LITERAL_ELSE, + LITERAL_WHILE, LITERAL_DO, LITERAL_FOR, DO_WHILE"/> @@ -102,8 +123,7 @@ NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, LITERAL_ASSERT, TYPE_EXTENSION_AND"/> + value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/> @@ -132,11 +152,13 @@ + + @@ -315,7 +337,7 @@ - + @@ -326,21 +348,11 @@ + + default="checkstyle-xpath-suppressions.xml" /> - - - - - - - - - - - diff --git a/pom.xml b/pom.xml index bb5d4c91..001436ed 100644 --- a/pom.xml +++ b/pom.xml @@ -247,12 +247,12 @@ LINE COVEREDRATIO - 1.0 + 0.9 BRANCH COVEREDRATIO - 1.0 + 0.9 @@ -265,13 +265,6 @@ org.apache.maven.plugins maven-checkstyle-plugin 3.3.1 - - - com.puppycrawl.tools - checkstyle - 10.12.4 - - warning checkstyle.xml