| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Makes sure files have the right permissions. | 6 """Makes sure files have the right permissions. |
| 7 | 7 |
| 8 Some developers have broken SCM configurations that flip the executable | 8 Some developers have broken SCM configurations that flip the executable |
| 9 permission on for no good reason. Unix developers who run ls --color will then | 9 permission on for no good reason. Unix developers who run ls --color will then |
| 10 see .cc files in green and get confused. | 10 see .cc files in green and get confused. |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 169 |
| 170 # File paths starting with one of these will be ignored as well. | 170 # File paths starting with one of these will be ignored as well. |
| 171 # Please consider fixing your file permissions, rather than adding to this list. | 171 # Please consider fixing your file permissions, rather than adding to this list. |
| 172 # | 172 # |
| 173 # Case-insensitive, lower-case only. | 173 # Case-insensitive, lower-case only. |
| 174 IGNORED_PATHS = ( | 174 IGNORED_PATHS = ( |
| 175 'native_client_sdk/src/build_tools/sdk_tools/third_party/fancy_urllib/' | 175 'native_client_sdk/src/build_tools/sdk_tools/third_party/fancy_urllib/' |
| 176 '__init__.py', | 176 '__init__.py', |
| 177 'out/', | 177 'out/', |
| 178 # TODO(maruel): Fix these. | 178 # TODO(maruel): Fix these. |
| 179 'third_party/android_testrunner/', |
| 179 'third_party/bintrees/', | 180 'third_party/bintrees/', |
| 180 'third_party/closure_linter/', | 181 'third_party/closure_linter/', |
| 181 'third_party/devscripts/licensecheck.pl.vanilla', | 182 'third_party/devscripts/licensecheck.pl.vanilla', |
| 182 'third_party/hyphen/', | 183 'third_party/hyphen/', |
| 183 'third_party/jemalloc/', | 184 'third_party/jemalloc/', |
| 184 'third_party/lcov-1.9/contrib/galaxy/conglomerate_functions.pl', | 185 'third_party/lcov-1.9/contrib/galaxy/conglomerate_functions.pl', |
| 185 'third_party/lcov-1.9/contrib/galaxy/gen_makefile.sh', | 186 'third_party/lcov-1.9/contrib/galaxy/gen_makefile.sh', |
| 186 'third_party/lcov/contrib/galaxy/conglomerate_functions.pl', | 187 'third_party/lcov/contrib/galaxy/conglomerate_functions.pl', |
| 187 'third_party/lcov/contrib/galaxy/gen_makefile.sh', | 188 'third_party/lcov/contrib/galaxy/gen_makefile.sh', |
| 188 'third_party/libevent/autogen.sh', | 189 'third_party/libevent/autogen.sh', |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 print '\nFAILED\n' | 467 print '\nFAILED\n' |
| 467 print '\n'.join('%s: %s' % (e['full_path'], e['error']) for e in errors) | 468 print '\n'.join('%s: %s' % (e['full_path'], e['error']) for e in errors) |
| 468 return 1 | 469 return 1 |
| 469 if not options.bare: | 470 if not options.bare: |
| 470 print '\nSUCCESS\n' | 471 print '\nSUCCESS\n' |
| 471 return 0 | 472 return 0 |
| 472 | 473 |
| 473 | 474 |
| 474 if '__main__' == __name__: | 475 if '__main__' == __name__: |
| 475 sys.exit(main()) | 476 sys.exit(main()) |
| OLD | NEW |