Checks common to both upload and commit.
(input_api, output_api)
| 474 | |
| 475 | |
| 476 | def _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 | |
| 503 | def _SkipTreeCheck(input_api, output_api): |
no test coverage detected
searching dependent graphs…