Class IdentCheckFilter
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.api.AutomaticBean
-
- com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
-
- com.puppycrawl.tools.checkstyle.api.AbstractCheck
-
- io.spring.javaformat.checkstyle.filter.CheckFilter
-
- io.spring.javaformat.checkstyle.filter.IdentCheckFilter
-
- All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.Configurable,com.puppycrawl.tools.checkstyle.api.Contextualizable
public class IdentCheckFilter extends CheckFilter
CheckFilterthat can be used to skip "ident" tokens. Commonly used to filterRequireThisCheckfor logger references.- Author:
- Phillip Webb
-
-
Constructor Summary
Constructors Constructor Description IdentCheckFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetNames(String... names)voidvisitToken(com.puppycrawl.tools.checkstyle.api.DetailAST ast)-
Methods inherited from class io.spring.javaformat.checkstyle.filter.CheckFilter
beginTree, finishLocalSetup, finishTree, getAcceptableTokens, getDefaultTokens, getMessages, getRequiredTokens, isCommentNodesRequired, leaveToken, setupChild
-
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractCheck
clearMessages, destroy, getFileContents, getLine, getLines, getTabWidth, getTokenNames, init, log, log, log, setFileContents, setTabWidth, setTokens
-
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverity
-
-
-
-
Method Detail
-
visitToken
public void visitToken(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
- Overrides:
visitTokenin classCheckFilter
-
setNames
public void setNames(String... names)
-
-