Class RuleViolationResolution
-
- All Implemented Interfaces:
public final class RuleViolationResolutionDefines the resolution of a RuleViolation. This can be used to silence rule violations that have been identified as not being relevant or are acceptable / approved.
-
-
Constructor Summary
Constructors Constructor Description RuleViolationResolution(String message, RuleViolationResolutionReason reason, String comment)
-
Method Summary
Modifier and Type Method Description final StringgetMessage()A regular expression string to match the messages of rule violations to resolve. final RuleViolationResolutionReasongetReason()The reason why the rule violation is resolved. final StringgetComment()A comment to further explain why the reason is applicable here. final Booleanmatches(RuleViolation violation)True if message matches the message of the violation. -
-
Constructor Detail
-
RuleViolationResolution
RuleViolationResolution(String message, RuleViolationResolutionReason reason, String comment)
-
-
Method Detail
-
getMessage
final String getMessage()
A regular expression string to match the messages of rule violations to resolve. Whitespace in the message will be collapsed and it will be converted to a Regex using RegexOption.DOT_MATCHES_ALL.
-
getReason
final RuleViolationResolutionReason getReason()
The reason why the rule violation is resolved.
-
getComment
final String getComment()
A comment to further explain why the reason is applicable here.
-
-
-
-