| OLD | NEW |
| 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 Loading... |
| 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')] | 206 join('test', 'unittests'), join('test', 'inspector')] |
| 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 Loading... |
| 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()) |
| OLD | NEW |