| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 path_join('tools', 'perf', 'page_sets'), | 63 path_join('tools', 'perf', 'page_sets'), |
| 64 path_join('tools', 'perf', 'page_sets', 'tough_animation_cases'), | 64 path_join('tools', 'perf', 'page_sets', 'tough_animation_cases'), |
| 65 # Histogram tools, doesn't exist in the snapshot | 65 # Histogram tools, doesn't exist in the snapshot |
| 66 path_join('tools', 'histograms'), | 66 path_join('tools', 'histograms'), |
| 67 # Swarming tools, doesn't exist in the snapshot | 67 # Swarming tools, doesn't exist in the snapshot |
| 68 path_join('tools', 'swarming_client'), | 68 path_join('tools', 'swarming_client'), |
| 69 # Don't check downloaded goma client binaries. | 69 # Don't check downloaded goma client binaries. |
| 70 path_join('build', 'goma', 'client'), | 70 path_join('build', 'goma', 'client'), |
| 71 # Ignore sysroots. | 71 # Ignore sysroots. |
| 72 path_join('build', 'linux', 'debian_jessie_arm64-sysroot'), | 72 path_join('build', 'linux', 'debian_jessie_arm64-sysroot'), |
| 73 path_join('build', 'linux', 'debian_jessie_arm-sysroot'), | |
| 74 path_join('build', 'linux', 'debian_jessie_mips-sysroot'), | |
| 75 path_join('build', 'linux', 'debian_jessie_i386-sysroot'), | |
| 76 path_join('build', 'linux', 'debian_wheezy_amd64-sysroot'), | 73 path_join('build', 'linux', 'debian_wheezy_amd64-sysroot'), |
| 77 path_join('build', 'linux', 'debian_wheezy_arm-sysroot'), | 74 path_join('build', 'linux', 'debian_wheezy_arm-sysroot'), |
| 78 path_join('build', 'linux', 'debian_wheezy_mips-sysroot'), | 75 path_join('build', 'linux', 'debian_wheezy_mips-sysroot'), |
| 79 path_join('build', 'linux', 'debian_wheezy_i386-sysroot'), | 76 path_join('build', 'linux', 'debian_wheezy_i386-sysroot'), |
| 80 path_join('build', 'linux', 'ubuntu_precise_amd64-sysroot'), | 77 path_join('build', 'linux', 'ubuntu_precise_amd64-sysroot'), |
| 78 # Old location (TODO(sbc): Remove this once it no longer exists on any bots) |
| 79 path_join('chrome', 'installer', 'linux', 'debian_wheezy_arm-sysroot'), |
| 81 # Data is not part of open source chromium, but are included on some bots. | 80 # Data is not part of open source chromium, but are included on some bots. |
| 82 path_join('data'), | 81 path_join('data'), |
| 83 # This is not part of open source chromium, but are included on some bots. | 82 # This is not part of open source chromium, but are included on some bots. |
| 84 path_join('skia', 'tools', 'clusterfuzz-data'), | 83 path_join('skia', 'tools', 'clusterfuzz-data'), |
| 85 # Not shipped, only relates to Chrome for Android, but not to WebView | 84 # Not shipped, only relates to Chrome for Android, but not to WebView |
| 86 path_join('clank'), | 85 path_join('clank'), |
| 87 # Internal-only repository. | 86 # Internal-only repository. |
| 88 path_join('remoting', 'android', 'internal'), | 87 path_join('remoting', 'android', 'internal'), |
| 89 ] | 88 ] |
| 90 excluded_dirs_list.extend(EXTRA_EXCLUDED_DIRS) | 89 excluded_dirs_list.extend(EXTRA_EXCLUDED_DIRS) |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 'The following files are whitelisted in %s, ' \ | 394 'The following files are whitelisted in %s, ' \ |
| 396 'but do not exist or not files:' % _GetWhitelistFileName(input_api), | 395 'but do not exist or not files:' % _GetWhitelistFileName(input_api), |
| 397 sorted(missing_files))) | 396 sorted(missing_files))) |
| 398 if stale_files: | 397 if stale_files: |
| 399 results.append(output_api.PresubmitPromptWarning( | 398 results.append(output_api.PresubmitPromptWarning( |
| 400 'The following files are whitelisted unnecessarily. You must ' \ | 399 'The following files are whitelisted unnecessarily. You must ' \ |
| 401 'remove the following files from the whitelist file ' \ | 400 'remove the following files from the whitelist file ' \ |
| 402 '%s:' % _GetWhitelistFileName(input_api), | 401 '%s:' % _GetWhitelistFileName(input_api), |
| 403 sorted(stale_files))) | 402 sorted(stale_files))) |
| 404 return results | 403 return results |
| OLD | NEW |