MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / main

Function main

src/tests/coding/cpplint.py:6876–6897  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6874 return child == os.path.join(prefix, child_suffix)
6875
6876def main():
6877 filenames = ParseArguments(sys.argv[1:])
6878 backup_err = sys.stderr
6879 try:
6880 # Change stderr to write with replacement characters so we don't die
6881 # if we try to print something containing non-ASCII characters.
6882 sys.stderr = codecs.StreamReader(sys.stderr, 'replace')
6883
6884 _cpplint_state.ResetErrorCounts()
6885 for filename in filenames:
6886 ProcessFile(filename, _cpplint_state.verbose_level)
6887 # If --quiet is passed, suppress printing error count unless there are errors.
6888 if not _cpplint_state.quiet or _cpplint_state.error_count > 0:
6889 _cpplint_state.PrintErrorCounts()
6890
6891 if _cpplint_state.output_format == 'junit':
6892 sys.stderr.write(_cpplint_state.FormatJUnitXML())
6893
6894 finally:
6895 sys.stderr = backup_err
6896
6897 sys.exit(_cpplint_state.error_count > 0)
6898
6899
6900if __name__ == '__main__':

Callers 6

cpplint.pyFile · 0.70
TOPPBaseTestMethod · 0.50
TOPPBaseTestNOPMethod · 0.50
TOPPBaseTestParamMethod · 0.50
runMethod · 0.50
runMethod · 0.50

Calls 6

ParseArgumentsFunction · 0.85
ProcessFileFunction · 0.85
ResetErrorCountsMethod · 0.80
PrintErrorCountsMethod · 0.80
FormatJUnitXMLMethod · 0.80
writeMethod · 0.45

Tested by 5

TOPPBaseTestMethod · 0.40
TOPPBaseTestNOPMethod · 0.40
TOPPBaseTestParamMethod · 0.40
runMethod · 0.40
runMethod · 0.40