com.puppycrawl.tools.checkstyle.checks.coding
Class ArrayTrailingCommaCheck
- Configurable, Contextualizable
public class ArrayTrailingCommaCheck
Checks if array initialization contains optional trailing comma.
Rationale: Putting this comma in make is easier to change the
order of the elements or add new elements on the end.
An example of how to configure the check is:
<module name="ArrayTrailingComma"/>
- o_sukhodolsky
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken |
getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setSeverity |
getDefaultTokens
public int[] getDefaultTokens()
- getDefaultTokens in interface Check
Check