18 # register the name checker |
18 # register the name checker |
19 pycodestyle.register_check(NamingStyleChecker, NamingStyleChecker.Codes) |
19 pycodestyle.register_check(NamingStyleChecker, NamingStyleChecker.Codes) |
20 |
20 |
21 from DocStyleChecker import DocStyleChecker |
21 from DocStyleChecker import DocStyleChecker |
22 from MiscellaneousChecker import MiscellaneousChecker |
22 from MiscellaneousChecker import MiscellaneousChecker |
23 from ComplexityChecker import ComplexityChecker |
23 from Complexity.ComplexityChecker import ComplexityChecker |
24 from Security.SecurityChecker import SecurityChecker |
24 from Security.SecurityChecker import SecurityChecker |
25 |
25 |
26 |
26 |
27 def initService(): |
27 def initService(): |
28 """ |
28 """ |
416 errors += complexityChecker.errors |
416 errors += complexityChecker.errors |
417 |
417 |
418 # check function annotations |
418 # check function annotations |
419 if sys.version_info >= (3, 5, 0): |
419 if sys.version_info >= (3, 5, 0): |
420 # annotations are supported from Python 3.5 on |
420 # annotations are supported from Python 3.5 on |
421 from AnnotationsChecker import AnnotationsChecker |
421 from Annotations.AnnotationsChecker import AnnotationsChecker |
422 annotationsChecker = AnnotationsChecker( |
422 annotationsChecker = AnnotationsChecker( |
423 source, filename, select, ignore, [], repeatMessages, |
423 source, filename, select, ignore, [], repeatMessages, |
424 annotationArgs) |
424 annotationArgs) |
425 annotationsChecker.run() |
425 annotationsChecker.run() |
426 stats.update(annotationsChecker.counters) |
426 stats.update(annotationsChecker.counters) |