Check .{m}js file to verify they follow the JS Style guide.
| 449 | |
| 450 | |
| 451 | class 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 | |
| 474 | class ClangFormatProcessor(CacheableSourceFileProcessor): |
no outgoing calls
no test coverage detected