Since Checkstyle 3.2
Filter SeverityMatchFilter
decides
audit events according to the severity
level of the event.
SeverityMatchFilter can suppress Checks that have Treewalker or Checker as parent module.
name | description | type | default value | since |
---|---|---|---|---|
acceptOnMatch | Control whether the filter accepts an audit event if and only if there is a match between the event's severity level and property severity. If acceptOnMatch is false , then the filter accepts an audit event if and only if there is not a match between the event's severity level and property severity. |
boolean | true |
3.2 |
severity | Specify the severity level of this filter. | SeverityLevel | error |
3.2 |
For example, the following configuration fragment directs the
Checker to not report audit events with severity
level info
:
<module name="Checker"> <module name="SeverityMatchFilter"> <property name="severity" value="info"/> <property name="acceptOnMatch" value="false"/> </module> </module>
com.puppycrawl.tools.checkstyle.filters