340 complexityChecker = ComplexityChecker( |
340 complexityChecker = ComplexityChecker( |
341 source, filename, select, ignore, codeComplexityArgs) |
341 source, filename, select, ignore, codeComplexityArgs) |
342 complexityChecker.run() |
342 complexityChecker.run() |
343 stats.update(complexityChecker.counters) |
343 stats.update(complexityChecker.counters) |
344 errors += complexityChecker.errors |
344 errors += complexityChecker.errors |
|
345 |
|
346 # check function annotations |
|
347 # TODO: implement function annotation checker (see flake8-annotations) |
345 |
348 |
346 errorsDict = {} |
349 errorsDict = {} |
347 for _fname, lineno, position, text in errors: |
350 for _fname, lineno, position, text in errors: |
348 if lineno > len(source): |
351 if lineno > len(source): |
349 lineno = len(source) |
352 lineno = len(source) |