| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 path_join('.git'), | 42 path_join('.git'), |
| 43 path_join('.svn'), | 43 path_join('.svn'), |
| 44 # Build output | 44 # Build output |
| 45 path_join('out', 'Debug'), | 45 path_join('out', 'Debug'), |
| 46 path_join('out', 'Release'), | 46 path_join('out', 'Release'), |
| 47 # 'Copyright' appears in license agreements | 47 # 'Copyright' appears in license agreements |
| 48 path_join('chrome', 'app', 'resources'), | 48 path_join('chrome', 'app', 'resources'), |
| 49 # Quickoffice js files from internal src used on buildbots. | 49 # Quickoffice js files from internal src used on buildbots. |
| 50 # crbug.com/350472. | 50 # crbug.com/350472. |
| 51 path_join('chrome', 'browser', 'resources', 'chromeos', 'quickoffice'), | 51 path_join('chrome', 'browser', 'resources', 'chromeos', 'quickoffice'), |
| 52 # This is a test output directory | |
| 53 path_join('chrome', 'tools', 'test', 'reference_build'), | |
| 54 # blink style copy right headers. | 52 # blink style copy right headers. |
| 55 path_join('content', 'shell', 'renderer', 'test_runner'), | 53 path_join('content', 'shell', 'renderer', 'test_runner'), |
| 56 # blink style copy right headers. | 54 # blink style copy right headers. |
| 57 path_join('content', 'shell', 'tools', 'plugin'), | 55 path_join('content', 'shell', 'tools', 'plugin'), |
| 58 # This is tests directory, doesn't exist in the snapshot | 56 # This is tests directory, doesn't exist in the snapshot |
| 59 path_join('content', 'test', 'data'), | 57 path_join('content', 'test', 'data'), |
| 60 # This is a tests directory that doesn't exist in the shipped product. | 58 # This is a tests directory that doesn't exist in the shipped product. |
| 61 path_join('gin', 'test'), | 59 path_join('gin', 'test'), |
| 62 # This is a test output directory | 60 # This is a test output directory |
| 63 path_join('data', 'dom_perf'), | 61 path_join('data', 'dom_perf'), |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 'The following files are whitelisted in %s, ' \ | 392 'The following files are whitelisted in %s, ' \ |
| 395 'but do not exist or not files:' % _GetWhitelistFileName(input_api), | 393 'but do not exist or not files:' % _GetWhitelistFileName(input_api), |
| 396 sorted(missing_files))) | 394 sorted(missing_files))) |
| 397 if stale_files: | 395 if stale_files: |
| 398 results.append(output_api.PresubmitPromptWarning( | 396 results.append(output_api.PresubmitPromptWarning( |
| 399 'The following files are whitelisted unnecessarily. You must ' \ | 397 'The following files are whitelisted unnecessarily. You must ' \ |
| 400 'remove the following files from the whitelist file ' \ | 398 'remove the following files from the whitelist file ' \ |
| 401 '%s:' % _GetWhitelistFileName(input_api), | 399 '%s:' % _GetWhitelistFileName(input_api), |
| 402 sorted(stale_files))) | 400 sorted(stale_files))) |
| 403 return results | 401 return results |
| OLD | NEW |