HaxeCheckstyle/haxe-checkstyle

View on GitHub
src/checkstyle/checks/whitespace/SpacingCheck.hx

Summary

Maintainability
Test Coverage

Method actualRun length is 51 lines (max allowed is 50)
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):

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.

There are no issues that match your filters.

Category
Status