23 from NameOrder.NameOrderChecker import NameOrderChecker |
23 from NameOrder.NameOrderChecker import NameOrderChecker |
24 from Naming.NamingStyleChecker import NamingStyleChecker |
24 from Naming.NamingStyleChecker import NamingStyleChecker |
25 from PathLib.PathlibChecker import PathlibChecker |
25 from PathLib.PathlibChecker import PathlibChecker |
26 from Security.SecurityChecker import SecurityChecker |
26 from Security.SecurityChecker import SecurityChecker |
27 from Simplify.SimplifyChecker import SimplifyChecker |
27 from Simplify.SimplifyChecker import SimplifyChecker |
|
28 from Unused.UnusedChecker import UnusedChecker |
28 |
29 |
29 # register the name checker |
30 # register the name checker |
30 pycodestyle.register_check(NamingStyleChecker, NamingStyleChecker.Codes) |
31 pycodestyle.register_check(NamingStyleChecker, NamingStyleChecker.Codes) |
31 |
32 |
32 |
33 |
190 @type str |
191 @type str |
191 @param args arguments used by the codeStyleCheck function (list of |
192 @param args arguments used by the codeStyleCheck function (list of |
192 excludeMessages, includeMessages, repeatMessages, fixCodes, |
193 excludeMessages, includeMessages, repeatMessages, fixCodes, |
193 noFixCodes, fixIssues, maxLineLength, maxDocLineLength, blankLines, |
194 noFixCodes, fixIssues, maxLineLength, maxDocLineLength, blankLines, |
194 hangClosing, docType, codeComplexityArgs, miscellaneousArgs, |
195 hangClosing, docType, codeComplexityArgs, miscellaneousArgs, |
195 annotationArgs, securityArgs, importsArgs, nameOrderArgs, errors, eol, encoding, |
196 annotationArgs, securityArgs, importsArgs, nameOrderArgs, unusedArgs, errors, |
196 backup) |
197 eol, encoding, backup) |
197 @type list of (str, str, bool, str, str, bool, int, list of (int, int), |
198 @type list of (str, str, bool, str, str, bool, int, list of (int, int), |
198 bool, str, dict, dict, dict, dict, dict, list of str, str, str, bool) |
199 bool, str, dict, dict, dict, dict, dict, dict, list of str, str, str, bool) |
199 @return tuple of statistics (dict) and list of results (tuple for each |
200 @return tuple of statistics (dict) and list of results (tuple for each |
200 found violation of style (lineno, position, text, ignored, fixed, |
201 found violation of style (lineno, position, text, ignored, fixed, |
201 autofixing, fixedMsg)) |
202 autofixing, fixedMsg)) |
202 @rtype tuple of (dict, list of tuples of (int, int, str, bool, bool, bool, |
203 @rtype tuple of (dict, list of tuples of (int, int, str, bool, bool, bool, |
203 str)) |
204 str)) |
354 @type str |
355 @type str |
355 @param args arguments used by the codeStyleCheck function (list of |
356 @param args arguments used by the codeStyleCheck function (list of |
356 excludeMessages, includeMessages, repeatMessages, fixCodes, |
357 excludeMessages, includeMessages, repeatMessages, fixCodes, |
357 noFixCodes, fixIssues, maxLineLength, maxDocLineLength, blankLines, |
358 noFixCodes, fixIssues, maxLineLength, maxDocLineLength, blankLines, |
358 hangClosing, docType, codeComplexityArgs, miscellaneousArgs, |
359 hangClosing, docType, codeComplexityArgs, miscellaneousArgs, |
359 annotationArgs, securityArgs, importsArgs, nameOrderArgs, errors, eol, encoding, |
360 annotationArgs, securityArgs, importsArgs, nameOrderArgs, unusedArgs, errors, |
360 backup) |
361 eol, encoding, backup) |
361 @type list of (str, str, bool, str, str, bool, int, list of (int, int), |
362 @type list of (str, str, bool, str, str, bool, int, list of (int, int), |
362 bool, str, dict, dict, dict, dict, dict, list of str, str, str, bool) |
363 bool, str, dict, dict, dict, dict, dict, dict, list of str, str, str, bool) |
363 @return tuple of statistics data and list of result dictionaries with |
364 @return tuple of statistics data and list of result dictionaries with |
364 keys: |
365 keys: |
365 <ul> |
366 <ul> |
366 <li>file: file name</li> |
367 <li>file: file name</li> |
367 <li>line: line_number</li> |
368 <li>line: line_number</li> |