Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: tools/presubmit.py

Issue 2385663002: Version 5.5.335.1 (cherry-pick) (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/inspector/task-runner.cc ('k') | tools/verify_source_deps.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 or (name == 'third_party')) 196 or (name == 'third_party'))
197 197
198 IGNORE_LINT = ['flag-definitions.h'] 198 IGNORE_LINT = ['flag-definitions.h']
199 199
200 def IgnoreFile(self, name): 200 def IgnoreFile(self, name):
201 return (super(CppLintProcessor, self).IgnoreFile(name) 201 return (super(CppLintProcessor, self).IgnoreFile(name)
202 or (name in CppLintProcessor.IGNORE_LINT)) 202 or (name in CppLintProcessor.IGNORE_LINT))
203 203
204 def GetPathsToSearch(self): 204 def GetPathsToSearch(self):
205 return ['src', 'include', 'samples', join('test', 'cctest'), 205 return ['src', 'include', 'samples', join('test', 'cctest'),
206 join('test', 'unittests'), join('test', 'inspector')] 206 join('test', 'unittests')]
207 207
208 def GetCpplintScript(self, prio_path): 208 def GetCpplintScript(self, prio_path):
209 for path in [prio_path] + os.environ["PATH"].split(os.pathsep): 209 for path in [prio_path] + os.environ["PATH"].split(os.pathsep):
210 path = path.strip('"') 210 path = path.strip('"')
211 cpplint = os.path.join(path, "cpplint.py") 211 cpplint = os.path.join(path, "cpplint.py")
212 if os.path.isfile(cpplint): 212 if os.path.isfile(cpplint):
213 return cpplint 213 return cpplint
214 214
215 return None 215 return None
216 216
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 success &= CheckExternalReferenceRegistration(workspace) 506 success &= CheckExternalReferenceRegistration(workspace)
507 success &= CheckStatusFiles(workspace) 507 success &= CheckStatusFiles(workspace)
508 if success: 508 if success:
509 return 0 509 return 0
510 else: 510 else:
511 return 1 511 return 1
512 512
513 513
514 if __name__ == '__main__': 514 if __name__ == '__main__':
515 sys.exit(Main()) 515 sys.exit(Main())
OLDNEW
« no previous file with comments | « test/inspector/task-runner.cc ('k') | tools/verify_source_deps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698