src/checkstyle/checks/whitespace/SpacingCheck.hx
Method actualRun
length is 51 lines (max allowed is 50) Open
Open
override function actualRun() {
var root:TokenTree = checker.getTokenTree();
var acceptableTokens:Array<TokenTree> = root.filterCallback(function(token:TokenTree, depth:Int):FilterResult {
return switch (token.tok) {
case Kwd(KwdIf), Kwd(KwdFor), Kwd(KwdWhile), Kwd(KwdSwitch), Kwd(KwdCatch):
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Checks for long methods. If a method becomes very long it is hard to understand. Therefore long methods should usually be refactored into several individual methods that focus on a specific task.