MCPcopy Create free account
hub / github.com/apache/mesos / main

Function main

support/cpplint.py:6223–6240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6221
6222
6223def main():
6224 filenames = ParseArguments(sys.argv[1:])
6225
6226 # Change stderr to write with replacement characters so we don't die
6227 # if we try to print something containing non-ASCII characters.
6228 sys.stderr = codecs.StreamReaderWriter(sys.stderr,
6229 codecs.getreader('utf8'),
6230 codecs.getwriter('utf8'),
6231 'replace')
6232
6233 _cpplint_state.ResetErrorCounts()
6234 for filename in filenames:
6235 ProcessFile(filename, _cpplint_state.verbose_level)
6236 # If --quiet is passed, suppress printing error count unless there are errors.
6237 if not _cpplint_state.quiet or _cpplint_state.error_count > 0:
6238 _cpplint_state.PrintErrorCounts()
6239
6240 sys.exit(_cpplint_state.error_count > 0)
6241
6242
6243if __name__ == '__main__':

Callers 1

cpplint.pyFile · 0.70

Calls 5

ParseArgumentsFunction · 0.85
ProcessFileFunction · 0.85
ResetErrorCountsMethod · 0.80
PrintErrorCountsMethod · 0.80
exitMethod · 0.80

Tested by

no test coverage detected