| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Utilities for scanning source files to determine code authorship. | 5 """Utilities for scanning source files to determine code authorship. |
| 6 """ | 6 """ |
| 7 | 7 |
| 8 import itertools | 8 import itertools |
| 9 | 9 |
| 10 def ForwardSlashesToOsPathSeps(input_api, path): | 10 def ForwardSlashesToOsPathSeps(input_api, path): |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 # This is a test output directory | 62 # This is a test output directory |
| 63 path_join('data', 'dom_perf'), | 63 path_join('data', 'dom_perf'), |
| 64 # This is a tests directory that doesn't exist in the shipped product. | 64 # This is a tests directory that doesn't exist in the shipped product. |
| 65 path_join('tools', 'perf', 'page_sets'), | 65 path_join('tools', 'perf', 'page_sets'), |
| 66 path_join('tools', 'perf', 'page_sets', 'tough_animation_cases'), | 66 path_join('tools', 'perf', 'page_sets', 'tough_animation_cases'), |
| 67 # Histogram tools, doesn't exist in the snapshot | 67 # Histogram tools, doesn't exist in the snapshot |
| 68 path_join('tools', 'histograms'), | 68 path_join('tools', 'histograms'), |
| 69 # Swarming tools, doesn't exist in the snapshot | 69 # Swarming tools, doesn't exist in the snapshot |
| 70 path_join('tools', 'swarming_client'), | 70 path_join('tools', 'swarming_client'), |
| 71 # Ignore sysroots. | 71 # Ignore sysroots. |
| 72 path_join('build', 'linux', 'debian_wheezy_amd64-sysroot'), |
| 72 path_join('build', 'linux', 'debian_wheezy_arm-sysroot'), | 73 path_join('build', 'linux', 'debian_wheezy_arm-sysroot'), |
| 73 path_join('build', 'linux', 'debian_wheezy_mips-sysroot'), | 74 path_join('build', 'linux', 'debian_wheezy_mips-sysroot'), |
| 74 path_join('build', 'linux', 'debian_wheezy_i386-sysroot'), | 75 path_join('build', 'linux', 'debian_wheezy_i386-sysroot'), |
| 75 # Old location (TODO(sbc): Remove this once it no longer exists on any bots) | 76 # Old location (TODO(sbc): Remove this once it no longer exists on any bots) |
| 76 path_join('chrome', 'installer', 'linux', 'debian_wheezy_arm-sysroot'), | 77 path_join('chrome', 'installer', 'linux', 'debian_wheezy_arm-sysroot'), |
| 77 # Data is not part of open source chromium, but are included on some bots. | 78 # Data is not part of open source chromium, but are included on some bots. |
| 78 path_join('data'), | 79 path_join('data'), |
| 79 # This is not part of open source chromium, but are included on some bots. | 80 # This is not part of open source chromium, but are included on some bots. |
| 80 path_join('skia', 'tools', 'clusterfuzz-data'), | 81 path_join('skia', 'tools', 'clusterfuzz-data'), |
| 81 # Not shipped, only relates to Chrome for Android, but not to WebView | 82 # Not shipped, only relates to Chrome for Android, but not to WebView |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 'The following files are whitelisted in %s, ' \ | 392 'The following files are whitelisted in %s, ' \ |
| 392 'but do not exist or not files:' % _GetWhitelistFileName(input_api), | 393 'but do not exist or not files:' % _GetWhitelistFileName(input_api), |
| 393 sorted(missing_files))) | 394 sorted(missing_files))) |
| 394 if stale_files: | 395 if stale_files: |
| 395 results.append(output_api.PresubmitPromptWarning( | 396 results.append(output_api.PresubmitPromptWarning( |
| 396 'The following files are whitelisted unnecessarily. You must ' \ | 397 'The following files are whitelisted unnecessarily. You must ' \ |
| 397 'remove the following files from the whitelist file ' \ | 398 'remove the following files from the whitelist file ' \ |
| 398 '%s:' % _GetWhitelistFileName(input_api), | 399 '%s:' % _GetWhitelistFileName(input_api), |
| 399 sorted(stale_files))) | 400 sorted(stale_files))) |
| 400 return results | 401 return results |
| OLD | NEW |