Skip to content

Commit

Permalink
checkstyle: lower severity of some rules (#16)
Browse files Browse the repository at this point in the history
* checkstyle: lower severity of ConstantName to INFO
* checkstyle: lower severity of ExplicitInitialization to IGNORE
  • Loading branch information
skaldarnar authored Jun 8, 2021
1 parent 9c376ff commit 51c9707
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
<!-- Unfortunately this module is too inclusive - static final fields are not necessarily constants! -->
<module name="ConstantName">
<property name="format" value="^([A-Z][A-Z0-9]*(_[A-Z0-9]+)*|logger)$"/>
<property name="severity" value="info">
</module>
<!-- local, final variables, including catch parameters : ^[a-z][a-zA-Z0-9]*$ -->
<module name="LocalFinalVariableName"/>
Expand Down Expand Up @@ -268,7 +269,7 @@
<module name="ParameterAssignment"/>
<!-- Checks if any class or object member explicitly initialized to default for its type value. -->
<module name="ExplicitInitialization">
<property name="severity" value="warning"/>
<property name="severity" value="ignore"/> <!-- 'ignore' because we often want to be explicit about initializations and belive the performance penalty is negligible -->
</module>
<!-- Check that the default is after all the cases in a switch statement. -->
<module name="DefaultComesLast"/>
Expand Down

0 comments on commit 51c9707

Please sign in to comment.