MCPcopy Index your code
hub / github.com/nodejs/node / ProcessFiles

Method ProcessFiles

deps/v8/tools/v8_presubmit.py:331–351  ·  view source on GitHub ↗
(self, files)

Source from the content-addressed store, hash-verified

329 return command
330
331 def ProcessFiles(self, files):
332 if self.use_cache:
333 cache = FileContentsCache(self.cache_file_path)
334 cache.Load()
335 files = cache.FilterUnchangedFiles(files)
336
337 if len(files) == 0:
338 print('No changes in %s files detected. Skipping check' % self.file_type)
339 return True
340
341 files_requiring_changes = self.DetectFilesToChange(files)
342 print (
343 'Total %s files found that require formatting: %d' %
344 (self.file_type, len(files_requiring_changes)))
345 if self.use_cache:
346 for file in files_requiring_changes:
347 cache.RemoveFile(file)
348
349 cache.Save()
350
351 return files_requiring_changes == []
352
353 def DetectFilesToChange(self, files):
354 command = self.GetProcessorCommand()

Callers

nothing calls this directly

Calls 7

LoadMethod · 0.95
FilterUnchangedFilesMethod · 0.95
DetectFilesToChangeMethod · 0.95
RemoveFileMethod · 0.95
SaveMethod · 0.95
FileContentsCacheClass · 0.85
printFunction · 0.70

Tested by

no test coverage detected