in scancode/scanCode.py [0:0]
def run_file_checks(file_path, checks):
"""Run a series of file-by-file checks."""
errors = []
# if VERBOSE (True) then print filename being checked
vprint(MSG_CHECKING_FILE % file_path)
for check in checks:
vprint(col.cyan(MSG_RUNNING_FILE_CHECKS % check.__name__))
errs = check(file_path)
if errs:
errors += errs
return errors