| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2012 the V8 project authors. All rights reserved. | 3 # Copyright 2012 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 ENABLED_LINT_RULES = """ | 52 ENABLED_LINT_RULES = """ |
| 53 build/class | 53 build/class |
| 54 build/deprecated | 54 build/deprecated |
| 55 build/endif_comment | 55 build/endif_comment |
| 56 build/forward_decl | 56 build/forward_decl |
| 57 build/include_order | 57 build/include_order |
| 58 build/printf_format | 58 build/printf_format |
| 59 build/storage_class | 59 build/storage_class |
| 60 legal/copyright | 60 legal/copyright |
| 61 readability/boost | 61 readability/boost |
| 62 readability/braces | |
| 63 readability/casting | 62 readability/casting |
| 64 readability/check | |
| 65 readability/constructors | 63 readability/constructors |
| 66 readability/fn_size | 64 readability/fn_size |
| 67 readability/function | 65 readability/function |
| 68 readability/multiline_comment | 66 readability/multiline_comment |
| 69 readability/multiline_string | 67 readability/multiline_string |
| 70 readability/streams | 68 readability/streams |
| 71 readability/todo | 69 readability/todo |
| 72 readability/utf8 | 70 readability/utf8 |
| 73 runtime/arrays | 71 runtime/arrays |
| 74 runtime/casting | 72 runtime/casting |
| 75 runtime/deprecated_fn | 73 runtime/deprecated_fn |
| 76 runtime/explicit | 74 runtime/explicit |
| 77 runtime/int | 75 runtime/int |
| 78 runtime/memset | 76 runtime/memset |
| 79 runtime/mutex | 77 runtime/mutex |
| 80 runtime/nonconf | 78 runtime/nonconf |
| 81 runtime/printf | 79 runtime/printf |
| 82 runtime/printf_format | 80 runtime/printf_format |
| 83 runtime/references | |
| 84 runtime/rtti | 81 runtime/rtti |
| 85 runtime/sizeof | 82 runtime/sizeof |
| 86 runtime/string | 83 runtime/string |
| 87 runtime/virtual | 84 runtime/virtual |
| 88 runtime/vlog | 85 runtime/vlog |
| 89 whitespace/blank_line | 86 whitespace/blank_line |
| 90 whitespace/braces | 87 whitespace/braces |
| 91 whitespace/comma | 88 whitespace/comma |
| 92 whitespace/comments | 89 whitespace/comments |
| 93 whitespace/ending_newline | 90 whitespace/ending_newline |
| 94 whitespace/indent | |
| 95 whitespace/labels | 91 whitespace/labels |
| 96 whitespace/line_length | 92 whitespace/line_length |
| 97 whitespace/newline | 93 whitespace/newline |
| 98 whitespace/operators | 94 whitespace/operators |
| 99 whitespace/parens | 95 whitespace/parens |
| 100 whitespace/tab | 96 whitespace/tab |
| 101 whitespace/todo | 97 whitespace/todo |
| 102 """.split() | 98 """.split() |
| 103 | 99 |
| 104 | 100 |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 "two empty lines between declarations check..." | 430 "two empty lines between declarations check..." |
| 435 success = SourceProcessor().Run(workspace) and success | 431 success = SourceProcessor().Run(workspace) and success |
| 436 if success: | 432 if success: |
| 437 return 0 | 433 return 0 |
| 438 else: | 434 else: |
| 439 return 1 | 435 return 1 |
| 440 | 436 |
| 441 | 437 |
| 442 if __name__ == '__main__': | 438 if __name__ == '__main__': |
| 443 sys.exit(Main()) | 439 sys.exit(Main()) |
| OLD | NEW |