Skip to content

Commit

Permalink
changed ALL to FIRST
Browse files Browse the repository at this point in the history
  • Loading branch information
adireddy committed Mar 18, 2016
1 parent 2385906 commit 566b7f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/checkstyle/checks/size/MethodCountCheck.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class MethodCountCheck extends Check {

override function actualRun() {
var root:TokenTree = checker.getTokenTree();
var acceptableTokens:Array<TokenTree> = root.filter([Kwd(KwdFunction)], ALL);
var acceptableTokens:Array<TokenTree> = root.filter([Kwd(KwdFunction)], FIRST);

if (acceptableTokens.length > maxTotal) {
log('Total number of methods is ${acceptableTokens.length} (max allowed is ${maxTotal})', 0, 0);
Expand Down

0 comments on commit 566b7f3

Please sign in to comment.