fix: MagicNumber check disabled in tests
This commit is contained in:
parent
f9d4901b6c
commit
4c372fbdff
2 changed files with 14 additions and 0 deletions
|
|
@ -4,6 +4,9 @@
|
||||||
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
|
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
|
||||||
"https://checkstyle.org/dtds/configuration_1_3.dtd">
|
"https://checkstyle.org/dtds/configuration_1_3.dtd">
|
||||||
<module name="Checker">
|
<module name="Checker">
|
||||||
|
<module name="SuppressionFilter">
|
||||||
|
<property name="file" value="suppressions.xml"/>
|
||||||
|
</module>
|
||||||
<!-- CheckStyle settings -->
|
<!-- CheckStyle settings -->
|
||||||
|
|
||||||
<module name="TreeWalker">
|
<module name="TreeWalker">
|
||||||
|
|
@ -67,6 +70,7 @@
|
||||||
<property name="ignoreHashCodeMethod" value="false"/>
|
<property name="ignoreHashCodeMethod" value="false"/>
|
||||||
<property name="ignoreAnnotation" value="true"/>
|
<property name="ignoreAnnotation" value="true"/>
|
||||||
<property name="ignoreFieldDeclaration" value="false"/>
|
<property name="ignoreFieldDeclaration" value="false"/>
|
||||||
|
<!-- Note: affected by /suppressions.xml -->
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
<!-- 9: Check parameter number at most 6 -->
|
<!-- 9: Check parameter number at most 6 -->
|
||||||
|
|
|
||||||
10
suppressions.xml
Normal file
10
suppressions.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
<!DOCTYPE suppressions PUBLIC
|
||||||
|
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
|
||||||
|
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
|
||||||
|
|
||||||
|
<suppressions>
|
||||||
|
<!-- disable MagicNumber check for all tests -->
|
||||||
|
<suppress checks="MagicNumber"
|
||||||
|
files=".*[\\/]src[\\/]test[\\/].*"/>
|
||||||
|
</suppressions>
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue