MCPcopy Create free account
hub / github.com/nodejs/node / JSLintProcessor

Class JSLintProcessor

deps/v8/tools/v8_presubmit.py:451–471  ·  view source on GitHub ↗

Check .{m}js file to verify they follow the JS Style guide.

Source from the content-addressed store, hash-verified

449
450
451class JSLintProcessor(CacheableSourceFileProcessor):
452 """
453 Check .{m}js file to verify they follow the JS Style guide.
454 """
455 def __init__(self, use_cache=True):
456 super(JSLintProcessor, self).__init__(
457 use_cache=use_cache, cache_file_path='.jslint-cache',
458 file_type='JavaScript')
459
460 def IsRelevant(self, name):
461 return name.endswith('.js') or name.endswith('.mjs')
462
463 def GetPathsToSearch(self):
464 return ['tools/system-analyzer', 'tools/heap-layout', 'tools/js']
465
466 def GetProcessorWorker(self):
467 return JSLintWorker
468
469 def GetProcessorScript(self):
470 jslint = join(DEPS_DEPOT_TOOLS_PATH, 'clang_format.py')
471 return jslint, []
472
473
474class ClangFormatProcessor(CacheableSourceFileProcessor):

Callers 2

_V8PresubmitChecksFunction · 0.90
MainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected