builder:Rule:insuppressible: add flag for rules that can't be suppressed

This commit is contained in:
Paul Campbell 2017-01-05 16:56:51 +00:00
parent 6e9ac736e9
commit 92b8dabd93
2 changed files with 14 additions and 0 deletions

View file

@ -48,6 +48,11 @@ public class Rule {
*/ */
private URI uri; private URI uri;
/**
* Flag to indicate rules that can not be suppressed (via {@code @SuppressWarnings}.
*/
private boolean insuppressible;
/** /**
* Configuration properties. * Configuration properties.
*/ */

View file

@ -152,6 +152,7 @@ rules:
level: NAMING level: NAMING
enabled: true enabled: true
source: CHECKSTYLE source: CHECKSTYLE
insuppressible: true
uri: http://checkstyle.sourceforge.net/config_naming.html#ConstantName uri: http://checkstyle.sourceforge.net/config_naming.html#ConstantName
- -
name: CovariantEquals name: CovariantEquals
@ -159,6 +160,7 @@ rules:
level: COMPLEXITY level: COMPLEXITY
enabled: true enabled: true
source: CHECKSTYLE source: CHECKSTYLE
insuppressible: true
uri: http://checkstyle.sourceforge.net/config_coding.html#CovariantEquals uri: http://checkstyle.sourceforge.net/config_coding.html#CovariantEquals
- -
name: CyclomaticComplexity name: CyclomaticComplexity
@ -247,6 +249,7 @@ rules:
level: COMPLEXITY level: COMPLEXITY
enabled: true enabled: true
source: CHECKSTYLE source: CHECKSTYLE
insuppressible: true
uri: http://checkstyle.sourceforge.net/config_coding.html#EqualsHashCode uri: http://checkstyle.sourceforge.net/config_coding.html#EqualsHashCode
- -
name: ExecutableStatementCount name: ExecutableStatementCount
@ -627,6 +630,7 @@ rules:
level: TWEAKS level: TWEAKS
enabled: true enabled: true
source: CHECKSTYLE source: CHECKSTYLE
insuppressible: true
uri: http://checkstyle.sourceforge.net/config_coding.html#NoClone uri: http://checkstyle.sourceforge.net/config_coding.html#NoClone
- -
name: NoFinalizer name: NoFinalizer
@ -688,6 +692,7 @@ rules:
level: TWEAKS level: TWEAKS
enabled: true enabled: true
source: CHECKSTYLE source: CHECKSTYLE
insuppressible: true
uri: http://checkstyle.sourceforge.net/config_design.html#OneTopLevelClass uri: http://checkstyle.sourceforge.net/config_design.html#OneTopLevelClass
- -
name: OperatorWrap name: OperatorWrap
@ -702,6 +707,7 @@ rules:
level: TWEAKS level: TWEAKS
enabled: true enabled: true
source: CHECKSTYLE source: CHECKSTYLE
insuppressible: true
uri: http://checkstyle.sourceforge.net/config_misc.html#OuterTypeFilename uri: http://checkstyle.sourceforge.net/config_misc.html#OuterTypeFilename
- -
name: OverloadMethodsDeclarationOrder name: OverloadMethodsDeclarationOrder
@ -723,6 +729,7 @@ rules:
level: JAVADOC level: JAVADOC
enabled: true enabled: true
source: CHECKSTYLE source: CHECKSTYLE
insuppressible: true
uri: http://checkstyle.sourceforge.net/config_coding.html#PackageDeclaration uri: http://checkstyle.sourceforge.net/config_coding.html#PackageDeclaration
- -
name: PackageName name: PackageName
@ -890,6 +897,7 @@ rules:
level: NAMING level: NAMING
enabled: true enabled: true
source: CHECKSTYLE source: CHECKSTYLE
insuppressible: true
uri: http://checkstyle.sourceforge.net/config_naming.html#TypeName uri: http://checkstyle.sourceforge.net/config_naming.html#TypeName
- -
name: UncommentedMain name: UncommentedMain
@ -941,6 +949,7 @@ rules:
level: TWEAKS level: TWEAKS
enabled: true enabled: true
source: CHECKSTYLE source: CHECKSTYLE
insuppressible: true
uri: http://checkstyle.sourceforge.net/config_design.html#VisibilityModifier uri: http://checkstyle.sourceforge.net/config_design.html#VisibilityModifier
- -
name: WhitespaceAfter name: WhitespaceAfter