Revision f230a1cf deps/v8/tools/presubmit.py

View differences:

deps/v8/tools/presubmit.py
226 226
              or (name in CppLintProcessor.IGNORE_LINT))
227 227

  
228 228
  def GetPathsToSearch(self):
229
    return ['src', 'preparser', 'include', 'samples', join('test', 'cctest')]
229
    return ['src', 'include', 'samples', join('test', 'cctest')]
230 230

  
231 231
  def GetCpplintScript(self, prio_path):
232 232
    for path in [prio_path] + os.environ["PATH"].split(os.pathsep):
......
282 282
  Check that all files include a copyright notice and no trailing whitespaces.
283 283
  """
284 284

  
285
  RELEVANT_EXTENSIONS = ['.js', '.cc', '.h', '.py', '.c', 'SConscript',
286
      'SConstruct', '.status', '.gyp', '.gypi']
285
  RELEVANT_EXTENSIONS = ['.js', '.cc', '.h', '.py', '.c',
286
                         '.status', '.gyp', '.gypi']
287 287

  
288 288
  # Overwriting the one in the parent class.
289 289
  def FindFilesIn(self, path):
......
292 292
                                stdout=PIPE, cwd=path, shell=True)
293 293
      result = []
294 294
      for file in output.stdout.read().split():
295
        for dir_part in os.path.dirname(file).split(os.sep):
295
        for dir_part in os.path.dirname(file).replace(os.sep, '/').split('/'):
296 296
          if self.IgnoreDir(dir_part):
297 297
            break
298 298
        else:

Also available in: Unified diff