This is an automated email from the ASF dual-hosted git repository.
mmoayyed pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_1_X by this push:
new 130d1a6 backport checkstyle upgrade from master
130d1a6 is described below
commit 130d1a6a580f49b0d4e2ec3f6442056f007a1f87
Author: Misagh Moayyed <[email protected]>
AuthorDate: Fri Jan 31 12:49:17 2020 +0400
backport checkstyle upgrade from master
---
pom.xml | 7 +++++++
src/main/resources/org/apache/syncope/checkstyle.xml | 12 ++++++++----
2 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index b4550b1..c028248 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2087,6 +2087,13 @@ under the License.
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.1.0</version>
+ <dependencies>
+ <dependency>
+ <groupId>com.puppycrawl.tools</groupId>
+ <artifactId>checkstyle</artifactId>
+ <version>8.29</version>
+ </dependency>
+ </dependencies>
<configuration>
<configLocation>${rootpom.basedir}/src/main/resources/org/apache/syncope/checkstyle.xml</configLocation>
<targetJdk>${targetJdk}</targetJdk>
diff --git a/src/main/resources/org/apache/syncope/checkstyle.xml
b/src/main/resources/org/apache/syncope/checkstyle.xml
index 012e3f3..a5b3033 100644
--- a/src/main/resources/org/apache/syncope/checkstyle.xml
+++ b/src/main/resources/org/apache/syncope/checkstyle.xml
@@ -77,6 +77,14 @@ under the License.
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
<module name="FileTabCharacter"/>
+ <!-- Checks for Size Violations. -->
+ <!-- See http://checkstyle.sf.net/config_sizes.html -->
+ <module name="LineLength">
+ <property name="max" value="120"/>
+ <property name="ignorePattern" value="^import"/>
+ <property name="fileExtensions" value="java,xml"/>
+ </module>
+
<!-- Miscellaneous other checks. -->
<!-- See http://checkstyle.sf.net/config_misc.html -->
<module name="RegexpSingleline">
@@ -145,10 +153,6 @@ under the License.
<!-- Checks for Size Violations. -->
<!-- See http://checkstyle.sf.net/config_sizes.html -->
- <module name="LineLength">
- <property name="max" value="120"/>
- <property name="ignorePattern" value="^import"/>
- </module>
<!--<module name="MethodLength"/>-->
<!--<module name="ParameterNumber"/>-->