public class TodoCommentCheck extends AbstractFormatCheck
A check for TODO comments.
Actually it is a generic regular expression
matcher on Java comments.
To check for other patterns in Java comments, set property format.
An example of how to configure the check is:
<module name="TodoComment"/>
An example of how to configure the check for comments that contain
WARNING
is:
<module name="TodoComment"> <property name="format" value="WARNING"/> </module>
DEFAULT_ERROR_SCORE, DEFAULT_INFO_SCORE, DEFAULT_WARNING_SCORE, mScoring, mViolationSize
コンストラクタと説明 |
---|
TodoCommentCheck()
Creates a new
TodoCommentCheck instance. |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
beginTree(DetailAST aRootAST)
Called before the starting to process a tree.
|
int[] |
getDefaultTokens()
Returns the default token a check is interested in.
|
getFormat, getRegexp, setCompileFlags, setFormat
destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken
calculateScore, getCustomMessages, getErrorScore, getId, getInfoScore, getMessageBundle, getScore, getScoring, getSeverity, getSeverityLevel, getWarningScore, log, setErrorScore, setId, setInfoScore, setScore, setScoring, setSeverity, setWarningScore
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public int[] getDefaultTokens()
Check
getDefaultTokens
クラス内 Check
TokenTypes
Copyright © 2001-2013. All Rights Reserved.