Skip to content

Commit ae667e0

Browse files
committed
Add test sources to checkstyle:check
1 parent 316fb26 commit ae667e0

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

checkstyle-suppressions.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,11 @@ limitations under the License.
2424
<suppressions>
2525
<suppress checks="Header" files="LICENSE.txt"/>
2626
<suppress checks="Header" files="NOTICE.txt"/>
27+
<!-- Be more lenient on tests. -->
28+
<suppress checks="Javadoc" files=".*[/\\]test[/\\].*" />
29+
<suppress checks="MultipleStringLiterals" files=".*[/\\]test[/\\].*" />
30+
<suppress checks="DesignForExtension" files=".*[/\\]test[/\\].*" />
31+
<suppress checks="LineLength" files=".*[/\\]test[/\\].*" />
32+
<suppress checks="IllegalCatch" files=".*[/\\]test[/\\].*" />
33+
<suppress checks="MethodLength" files="(MersenneTwister64|Well44497[ab]|MultiplyWithCarry256)Test" />
2734
</suppressions>

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ limitations under the License.
332332
<configLocation>${basedir}/checkstyle.xml</configLocation>
333333
<enableRulesSummary>false</enableRulesSummary>
334334
<headerFile>${basedir}/LICENSE-header.txt</headerFile>
335+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
335336
<resourceExcludes>NOTICE.txt,LICENSE.txt,**/pom.properties,**/sha512.properties</resourceExcludes>
336337
</configuration>
337338
</plugin>
@@ -367,6 +368,7 @@ limitations under the License.
367368
<configLocation>${basedir}/checkstyle.xml</configLocation>
368369
<enableRulesSummary>false</enableRulesSummary>
369370
<headerFile>${basedir}/LICENSE-header.txt</headerFile>
371+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
370372
</configuration>
371373
<!-- We need to specify reportSets because 2.9.1 creates two reports -->
372374
<reportSets>

0 commit comments

Comments
 (0)