MCPcopy Create free account
hub / github.com/PyCQA/pyflakes / checkRecursive

Function checkRecursive

pyflakes/api.py:115–128  ·  view source on GitHub ↗

Recursively check all source files in C{paths}. @param paths: A list of paths to Python source files and directories containing Python source files. @param reporter: A L{Reporter} where all of the warnings and errors will be reported to. @return: The number of warni

(paths, reporter)

Source from the content-addressed store, hash-verified

113
114
115def checkRecursive(paths, reporter):
116 """
117 Recursively check all source files in C{paths}.
118
119 @param paths: A list of paths to Python source files and directories
120 containing Python source files.
121 @param reporter: A L{Reporter} where all of the warnings and errors
122 will be reported to.
123 @return: The number of warnings found.
124 """
125 warnings = 0
126 for sourcePath in iterSourceCode(paths):
127 warnings += checkPath(sourcePath, reporter)
128 return warnings
129
130
131def _exitOnSignal(sigName, message):

Callers 2

test_checkRecursiveMethod · 0.90
mainFunction · 0.85

Calls 2

iterSourceCodeFunction · 0.85
checkPathFunction · 0.85

Tested by 1

test_checkRecursiveMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…