OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2008 the V8 project authors. All rights reserved. | 3 # Copyright 2008 the V8 project authors. All rights reserved. |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 runtime/vlog | 76 runtime/vlog |
77 whitespace/blank_line | 77 whitespace/blank_line |
78 whitespace/braces | 78 whitespace/braces |
79 whitespace/comma | 79 whitespace/comma |
80 whitespace/comments | 80 whitespace/comments |
81 whitespace/end_of_line | 81 whitespace/end_of_line |
82 whitespace/ending_newline | 82 whitespace/ending_newline |
83 whitespace/indent | 83 whitespace/indent |
84 whitespace/labels | 84 whitespace/labels |
85 whitespace/line_length | 85 whitespace/line_length |
86 whitespace/newline | |
87 whitespace/operators | 86 whitespace/operators |
88 whitespace/parens | 87 whitespace/parens |
89 whitespace/tab | 88 whitespace/tab |
90 whitespace/todo | 89 whitespace/todo |
91 """.split() | 90 """.split() |
92 | 91 |
93 | 92 |
94 class SourceFileProcessor(object): | 93 class SourceFileProcessor(object): |
95 """ | 94 """ |
96 Utility class that can run through a directory structure, find all relevant | 95 Utility class that can run through a directory structure, find all relevant |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 success = CppLintProcessor().Run(workspace) and success | 219 success = CppLintProcessor().Run(workspace) and success |
221 success = SourceProcessor().Run(workspace) and success | 220 success = SourceProcessor().Run(workspace) and success |
222 if success: | 221 if success: |
223 return 0 | 222 return 0 |
224 else: | 223 else: |
225 return 1 | 224 return 1 |
226 | 225 |
227 | 226 |
228 if __name__ == '__main__': | 227 if __name__ == '__main__': |
229 sys.exit(Main()) | 228 sys.exit(Main()) |
OLD | NEW |