Skip to content

Commit

Permalink
chore: add checkstyle plugin (#1072)
Browse files Browse the repository at this point in the history
remove unused/outdated parameters
  • Loading branch information
asmfstatoil authored Aug 8, 2024
1 parent 7612ec4 commit e01a5d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
5 changes: 1 addition & 4 deletions checkstyle_neqsim.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@
or preceding-sibling::*[last()][self::LCURLY]]" />
</module>
<module name="WhitespaceAfter">
<property name="tokens" value="COMMA, SEMI, TYPECAST, LITERAL_IF, LITERAL_ELSE, LITERAL_RETURN,
LITERAL_WHILE, LITERAL_DO, LITERAL_FOR, LITERAL_FINALLY, DO_WHILE, ELLIPSIS,
LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_CATCH, LAMBDA,
LITERAL_YIELD, LITERAL_CASE" />
<property name="tokens" value="COMMA, SEMI, TYPECAST, LITERAL_IF, LITERAL_ELSE, LITERAL_WHILE, LITERAL_DO, LITERAL_FOR, DO_WHILE" />
</module>
<module name="WhitespaceAround">
<property name="allowEmptyConstructors" value="true" />
Expand Down
13 changes: 10 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<sha1/>
<changelist/>
<checkstyle.config.location>checkstyle_neqsim.xml</checkstyle.config.location>
</properties>

<repositories>
Expand Down Expand Up @@ -117,7 +118,6 @@
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<tokenAuth>true</tokenAuth>
<autoPublish>true</autoPublish>
</configuration>
</plugin>
Expand All @@ -138,7 +138,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
<version>3.8.0</version>
<executions>
<execution>
<id>attach-javadoc</id>
Expand All @@ -148,7 +148,6 @@
</execution>
</executions>
<configuration>
<stylesheet>java</stylesheet>
<doclint>none</doclint>
</configuration>
</plugin>
Expand Down Expand Up @@ -333,6 +332,14 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.4.0</version>
<configuration>
<failsOnError>true</failsOnError>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
Expand Down

0 comments on commit e01a5d8

Please sign in to comment.