eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py

changeset 7242
799f9ec0d4e6
parent 6942
2602857055c5
child 7246
c32a350d2414
equal deleted inserted replaced
7241:0c0c9015c40f 7242:799f9ec0d4e6
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)

eric ide

mercurial