JD-237: add checkstyle suppressor, refactor (#5)

This commit is contained in:
Anatoly Karlov 2021-04-12 14:12:02 +03:00 committed by GitHub
parent 582f5f90c1
commit 5d6044faf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 5 deletions

@ -1 +1 @@
Subproject commit e1318727d4d0c3e48f5122bf3197158b6695f50e
Subproject commit 24aa772730be966667adb285a09fcb494d4f218e

17
pom.xml
View File

@ -5,7 +5,7 @@
<packaging>pom</packaging>
<groupId>com.rbkmoney</groupId>
<artifactId>library-parent-pom</artifactId>
<version>1.0.2</version>
<version>1.0.3</version>
<name>RBKmoney parent</name>
<description>RBKmoney library parent pom</description>
<url>https://github.com/rbkmoney/library-parent-pom</url>
@ -43,6 +43,7 @@
<pubStagingRepoId>ossrh</pubStagingRepoId>
<pubStagingRepo>https://oss.sonatype.org/</pubStagingRepo>
<checkstyle.config.path>https://raw.githubusercontent.com/rbkmoney/java-checkstyle-config/master/conf/rbkmoney_google_checkstyle.xml</checkstyle.config.path>
<checkstyle.config.suppressions.path>https://raw.githubusercontent.com/rbkmoney/java-checkstyle-config/master/conf/checkstyle-suppressions.xml</checkstyle.config.suppressions.path>
</properties>
<profiles>
@ -205,7 +206,14 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.1.1</version>
<version>3.1.2</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>8.41</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>validate</id>
@ -217,6 +225,7 @@
<consoleOutput>true</consoleOutput>
<violationSeverity>warning</violationSeverity>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<suppressionsLocation>${checkstyle.config.suppressions.path}</suppressionsLocation>
</configuration>
<goals>
<goal>check</goal>
@ -245,8 +254,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>