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

Function Main

deps/v8/tools/v8_presubmit.py:937–962  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

935
936
937def Main():
938 workspace = abspath(join(dirname(sys.argv[0]), '..'))
939 parser = GetOptions()
940 (options, args) = parser.parse_args()
941 use_linter_cache = not options.no_linter_cache
942 checks = [
943 CheckDeps,
944 ClangFormatProcessor(use_cache=use_linter_cache),
945 TorqueLintProcessor(use_cache=use_linter_cache),
946 JSLintProcessor(use_cache=use_linter_cache),
947 SourceProcessor(),
948 StatusFilesProcessor(),
949 PyTests,
950 GCMoleProcessor(),
951 ]
952 if not options.no_lint:
953 checks.append(CppLintProcessor(use_cache=use_linter_cache))
954
955
956 failure_lines = run_checks(checks, workspace)
957 if failure_lines:
958 print('__________________')
959 print('==================')
960 print(f'Checks failed:\n{failure_lines}')
961 return 1
962 return 0
963
964
965if __name__ == '__main__':

Callers 1

v8_presubmit.pyFile · 0.70

Calls 15

joinFunction · 0.90
dirnameFunction · 0.90
abspathFunction · 0.85
TorqueLintProcessorClass · 0.85
JSLintProcessorClass · 0.85
SourceProcessorClass · 0.85
GCMoleProcessorClass · 0.85
CppLintProcessorClass · 0.85
run_checksFunction · 0.85
GetOptionsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…