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

Function _CommonChecks

deps/v8/PRESUBMIT.py:476–500  ·  view source on GitHub ↗

Checks common to both upload and commit.

(input_api, output_api)

Source from the content-addressed store, hash-verified

474
475
476def _CommonChecks(input_api, output_api):
477 """Checks common to both upload and commit."""
478 # TODO(machenbach): Replace some of those checks, e.g. owners and copyright,
479 # with the canned PanProjectChecks. Need to make sure that the checks all
480 # pass on all existing files.
481 checks = [
482 input_api.canned_checks.CheckOwnersFormat,
483 input_api.canned_checks.CheckOwners,
484 _CheckCommitMessageBugEntry,
485 input_api.canned_checks.CheckPatchFormatted,
486 _CheckGenderNeutralInLicenses,
487 _V8PresubmitChecks,
488 _CheckUnwantedDependencies,
489 _CheckNoProductionCodeUsingTestOnlyFunctions,
490 _CheckHeadersHaveIncludeGuards,
491 _CheckNoInlineHeaderIncludesInNormalHeaders,
492 _CheckInlineHeadersIncludeNonInlineHeadersFirst,
493 _CheckJSONFiles,
494 _CheckNoexceptAnnotations,
495 _CheckBannedCpp,
496 _RunTestsWithVPythonSpec,
497 _CheckPythonLiterals,
498 ]
499
500 return sum([check(input_api, output_api) for check in checks], [])
501
502
503def _SkipTreeCheck(input_api, output_api):

Callers 2

CheckChangeOnUploadFunction · 0.70
CheckChangeOnCommitFunction · 0.70

Calls 2

sumFunction · 0.50
checkFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…