Skip to content

Commit e01a5d8

Browse files
authored
chore: add checkstyle plugin (#1072)
remove unused/outdated parameters
1 parent 7612ec4 commit e01a5d8

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

checkstyle_neqsim.xml

+1-4
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,7 @@
104104
or preceding-sibling::*[last()][self::LCURLY]]" />
105105
</module>
106106
<module name="WhitespaceAfter">
107-
<property name="tokens" value="COMMA, SEMI, TYPECAST, LITERAL_IF, LITERAL_ELSE, LITERAL_RETURN,
108-
LITERAL_WHILE, LITERAL_DO, LITERAL_FOR, LITERAL_FINALLY, DO_WHILE, ELLIPSIS,
109-
LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_CATCH, LAMBDA,
110-
LITERAL_YIELD, LITERAL_CASE" />
107+
<property name="tokens" value="COMMA, SEMI, TYPECAST, LITERAL_IF, LITERAL_ELSE, LITERAL_WHILE, LITERAL_DO, LITERAL_FOR, DO_WHILE" />
111108
</module>
112109
<module name="WhitespaceAround">
113110
<property name="allowEmptyConstructors" value="true" />

pom.xml

+10-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1616
<sha1/>
1717
<changelist/>
18+
<checkstyle.config.location>checkstyle_neqsim.xml</checkstyle.config.location>
1819
</properties>
1920

2021
<repositories>
@@ -117,7 +118,6 @@
117118
<extensions>true</extensions>
118119
<configuration>
119120
<publishingServerId>central</publishingServerId>
120-
<tokenAuth>true</tokenAuth>
121121
<autoPublish>true</autoPublish>
122122
</configuration>
123123
</plugin>
@@ -138,7 +138,7 @@
138138
<plugin>
139139
<groupId>org.apache.maven.plugins</groupId>
140140
<artifactId>maven-javadoc-plugin</artifactId>
141-
<version>3.6.3</version>
141+
<version>3.8.0</version>
142142
<executions>
143143
<execution>
144144
<id>attach-javadoc</id>
@@ -148,7 +148,6 @@
148148
</execution>
149149
</executions>
150150
<configuration>
151-
<stylesheet>java</stylesheet>
152151
<doclint>none</doclint>
153152
</configuration>
154153
</plugin>
@@ -333,6 +332,14 @@
333332
</execution>
334333
</executions>
335334
</plugin>
335+
<plugin>
336+
<groupId>org.apache.maven.plugins</groupId>
337+
<artifactId>maven-checkstyle-plugin</artifactId>
338+
<version>3.4.0</version>
339+
<configuration>
340+
<failsOnError>true</failsOnError>
341+
</configuration>
342+
</plugin>
336343
</plugins>
337344
</build>
338345
<distributionManagement>

0 commit comments

Comments
 (0)