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/java included 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 <sanne@hibernate.org>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvent) private booleanacceptTestfileEvent(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvent)
-
Field Details
-
SUB_PATH
-
MESSAGE_DISABLE_KEYWORD
- See Also:
-
-
Constructor Details
-
ExcludeTestPackages
public ExcludeTestPackages()
-
-
Method Details
-
accept
public boolean accept(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvent) - Specified by:
acceptin interfacecom.puppycrawl.tools.checkstyle.api.Filter
-
acceptTestfileEvent
private boolean acceptTestfileEvent(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvent)
-