Package io.debezium.checkstyle
Class ExcludeTestPackages
- java.lang.Object
-
- io.debezium.checkstyle.ExcludeTestPackages
-
- All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.Filter
public class ExcludeTestPackages extends Object implements com.puppycrawl.tools.checkstyle.api.Filter
Allows disabling some rules for the test suite source. Any violation will be suppressed if it's generated by a source file having/src/test/javaincluded in its path and if the violation message contains the keyword "[not required for tests]".A SuppressionFilter is too generic, and requires per-module configuration.
- Author:
- Sanne Grinovero
-
-
Field Summary
Fields Modifier and Type Field Description private static StringMESSAGE_DISABLE_KEYWORDprivate static StringSUB_PATH
-
Constructor Summary
Constructors Constructor Description ExcludeTestPackages()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvent)private booleanacceptTestfileEvent(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvent)
-
-
-
Field Detail
-
SUB_PATH
private static final String SUB_PATH
-
MESSAGE_DISABLE_KEYWORD
private static final String MESSAGE_DISABLE_KEYWORD
- See Also:
- Constant Field Values
-
-