401 def __checkAnnotationsCoverage(self): |
401 def __checkAnnotationsCoverage(self): |
402 """ |
402 """ |
403 Private method to check for function annotation coverage. |
403 Private method to check for function annotation coverage. |
404 """ |
404 """ |
405 minAnnotationsCoverage = self.__args.get( |
405 minAnnotationsCoverage = self.__args.get( |
406 "MinimumCoverage", AnnotationsCheckerDefaultArgs["MinimumCoverage"]) |
406 "MinimumCoverage", |
|
407 AnnotationsCheckerDefaultArgs["MinimumCoverage"]) |
407 if minAnnotationsCoverage == 0: |
408 if minAnnotationsCoverage == 0: |
408 # 0 means it is switched off |
409 # 0 means it is switched off |
409 return |
410 return |
410 |
411 |
411 functionDefs = [ |
412 functionDefs = [ |
456 def __checkAnnotationComplexity(self): |
457 def __checkAnnotationComplexity(self): |
457 """ |
458 """ |
458 Private method to check the type annotation complexity. |
459 Private method to check the type annotation complexity. |
459 """ |
460 """ |
460 maxAnnotationComplexity = self.__args.get( |
461 maxAnnotationComplexity = self.__args.get( |
461 "MaximumComplexity", AnnotationsCheckerDefaultArgs["MaximumComplexity"]) |
462 "MaximumComplexity", |
|
463 AnnotationsCheckerDefaultArgs["MaximumComplexity"]) |
462 # TODO: include 'MaximumLength' in CodeStyleCheckerDialog |
464 # TODO: include 'MaximumLength' in CodeStyleCheckerDialog |
463 maxAnnotationLength = self.__args.get( |
465 maxAnnotationLength = self.__args.get( |
464 "MaximumLength", AnnotationsCheckerDefaultArgs["MaximumLength"]) |
466 "MaximumLength", AnnotationsCheckerDefaultArgs["MaximumLength"]) |
465 typeAnnotations = [] |
467 typeAnnotations = [] |
466 |
468 |