3 # Checks files to make sure they conform to LLVM standards which can be applied
4 # to any programming language: at present, line length and trailing whitespace.
9 class GenericCodeLint(common_lint.BaseLint):
12 def RunOnFile(self, filename, lines):
13 common_lint.VerifyLineLength(filename, lines,
14 GenericCodeLint.MAX_LINE_LENGTH)
15 common_lint.VerifyTrailingWhitespace(filename, lines)
18 def GenericCodeLintMain(filenames):
19 common_lint.RunLintOverAllFiles(GenericCodeLint(), filenames)
23 if __name__ == '__main__':
24 sys.exit(GenericCodeLintMain(sys.argv[1:]))