Flutter Engine
The Flutter Engine
|
Classes | |
class | _WarningsAsErrors |
class | CodeReview |
Functions | |
load_source (modname, filename) | |
runSmokeTest (input_api, output_api) | |
CheckChangeOnCommit (input_api, output_api) | |
CheckChangeOnUpload (input_api, output_api) | |
EnsurePubspecAndChangelogAltered (input_api, package_name) | |
CheckChange (input_api, output_api) | |
CheckNodeTextExpectationsCollectorUpdatingIsDisabled (input_api, output_api) | |
is_cpp_file (path) | |
is_dart_file (path) | |
get_old_contents (input_api, path) | |
files_to_check_for_format (input_api, extension, exclude_folders) | |
_CheckFormat (input_api, identification, extension, windows, Callable[[str, list, str], bool] hasFormatErrors, exclude_folders) | |
_CheckDartFormat (input_api, output_api) | |
_CheckStatusFiles (input_api, output_api) | |
_CheckValidHostsInDEPS (input_api, output_api) | |
_CheckLayering (input_api, output_api) | |
_CheckClangTidy (input_api, output_api) | |
_CheckClangFormat (input_api, output_api) | |
_CheckAnalyzerFiles (input_api, output_api) | |
_CheckTestMatrixValid (input_api, output_api) | |
_CheckCopyrightYear (input_api, output_api) | |
_CheckNoNewObservatoryServiceTests (input_api, output_api) | |
_CommonChecks (input_api, output_api) | |
CheckMemcpy (filename) | |
RunLint (input_api, output_api) | |
CheckGn (input_api, output_api) | |
CheckFormatted (input_api, output_api) | |
_CheckChangeHasEol (input_api, output_api, source_file_filter=None) | |
_JsonChecks (input_api, output_api) | |
_IfDefChecks (input_api, output_api) | |
_CopyrightChecks (input_api, output_api, source_file_filter=None) | |
_InfraTests (input_api, output_api) | |
_CheckGNFormatted (input_api, output_api) | |
_CheckGitConflictMarkers (input_api, output_api) | |
_CheckIncludesFormatted (input_api, output_api) | |
_RegenerateAllExamplesCPP (input_api, output_api) | |
_CheckExamplesForPrivateAPIs (input_api, output_api) | |
_CheckGeneratedBazelBUILDFiles (input_api, output_api) | |
_CheckBazelBUILDFiles (input_api, output_api) | |
_CheckPublicBzl (input_api, output_api) | |
_RunCommandAndCheckGitDiff (output_api, command) | |
_CheckGNIGenerated (input_api, output_api) | |
_CheckBuildifier (input_api, output_api) | |
_CheckBannedAPIs (input_api, output_api) | |
_CheckDEPS (input_api, output_api) | |
_CheckReleaseNotesForPublicAPI (input_api, output_api) | |
_CheckTopReleaseNotesChanged (input_api, output_api) | |
PostUploadHook (gerrit, change, output_api) | |
Variables | |
bool | USE_PYTHON3 = True |
str | PRESUBMIT_VERSION = '2.0.0' |
str | RELEASE_NOTES_DIR = 'relnotes' |
str | RELEASE_NOTES_FILE_NAME = 'RELEASE_NOTES.md' |
str | RELEASE_NOTES_README = '//relnotes/README.md' |
str | GOLD_TRYBOT_URL = 'https://gold.skia.org/search?issue=' |
list | SERVICE_ACCOUNT_SUFFIX |
CFE et al presubmit python script. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit API built into gcl.
_macros package presubmit python script. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit API built into gcl.
Analyzer specific presubmit script. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit API built into gcl.
Top-level presubmit script for Dart. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit API built into gcl.
sdk/lib specific presubmit script. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit API built into gcl.
Top-level presubmit script for Skia. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit API built into gcl.
|
protected |
Run analyzer checks on source files.
Definition at line 383 of file PRESUBMIT.py.
|
protected |
Check source code for functions and packages that should not be used.
Definition at line 464 of file PRESUBMIT.py.
|
protected |
Makes sure our BUILD.bazel files are compatible with G3.
Definition at line 287 of file PRESUBMIT.py.
|
protected |
Runs Buildifier and fails on linting errors, or if it produces any diffs. This check only runs if the affected files include any WORKSPACE, BUILD, BUILD.bazel or *.bzl files.
Definition at line 417 of file PRESUBMIT.py.
|
protected |
Checks that files end with at least one \n (LF).
Definition at line 35 of file PRESUBMIT.py.
|
protected |
Run clang-format on VM changes.
Definition at line 332 of file PRESUBMIT.py.
|
protected |
Run clang-tidy on VM changes.
Definition at line 300 of file PRESUBMIT.py.
|
protected |
Check copyright year in new files.
Definition at line 472 of file PRESUBMIT.py.
|
protected |
Definition at line 106 of file PRESUBMIT.py.
|
protected |
If DEPS was modified, run the deps_parser to update bazel/deps.bzl
Definition at line 521 of file PRESUBMIT.py.
|
protected |
We only want our checked-in examples (aka fiddles) to show public API.
Definition at line 248 of file PRESUBMIT.py.
|
protected |
Definition at line 56 of file PRESUBMIT.py.
|
protected |
Definition at line 270 of file PRESUBMIT.py.
|
protected |
Definition at line 184 of file PRESUBMIT.py.
|
protected |
Make sure any .gn files we're changing have been formatted.
Definition at line 153 of file PRESUBMIT.py.
|
protected |
Ensures that the generated *.gni files are current. The Bazel project files are authoritative and some *.gni files are generated from them using the exporter_tool. This check ensures they are still current.
Definition at line 385 of file PRESUBMIT.py.
|
protected |
Make sure #includes in files we're changing have been formatted.
Definition at line 201 of file PRESUBMIT.py.
|
protected |
Run VM layering check. This check validates that sources from one layer do not reference sources from another layer accidentally.
Definition at line 268 of file PRESUBMIT.py.
|
protected |
Ensures that no new tests are added to the Observatory test suite.
Definition at line 496 of file PRESUBMIT.py.
|
protected |
Reminds devs to add/remove files from public.bzl.
Definition at line 330 of file PRESUBMIT.py.
|
protected |
Checks to see if a release notes file is added or edited with public API changes.
Definition at line 630 of file PRESUBMIT.py.
|
protected |
Definition at line 198 of file PRESUBMIT.py.
|
protected |
Run script to check that the test matrix has no errors.
Definition at line 442 of file PRESUBMIT.py.
|
protected |
Warns if the top level release notes file was changed. The top level file is now auto-edited, and new release notes should be added to the RELEASE_NOTES_DIR directory
Definition at line 655 of file PRESUBMIT.py.
|
protected |
Checks that DEPS file deps are from allowed_hosts.
Definition at line 251 of file PRESUBMIT.py.
|
protected |
Presubmit checks common to upload and commit.
Definition at line 516 of file PRESUBMIT.py.
|
protected |
Definition at line 115 of file PRESUBMIT.py.
|
protected |
Ensures if/ifdef are not before includes. See skbug/3362 for details.
Definition at line 74 of file PRESUBMIT.py.
|
protected |
Run the infra tests.
Definition at line 137 of file PRESUBMIT.py.
|
protected |
Run checks on any modified json files.
Definition at line 51 of file PRESUBMIT.py.
|
protected |
Regenerates all_examples.cpp if an example was added or deleted.
Definition at line 224 of file PRESUBMIT.py.
|
protected |
Run an arbitrary command. Fail if it produces any diffs.
Definition at line 353 of file PRESUBMIT.py.
PRESUBMIT.CheckChange | ( | input_api, | |
output_api | |||
) |
Definition at line 41 of file PRESUBMIT.py.
PRESUBMIT.CheckChangeOnCommit | ( | input_api | , |
output_api | |||
) |
Presubmit checks for the change on commit.
Definition at line 66 of file PRESUBMIT.py.
PRESUBMIT.CheckChangeOnUpload | ( | input_api | , |
output_api | |||
) |
Presubmit checks for the change on upload.
Definition at line 70 of file PRESUBMIT.py.
PRESUBMIT.CheckFormatted | ( | input_api, | |
output_api | |||
) |
Definition at line 62 of file PRESUBMIT.py.
PRESUBMIT.CheckGn | ( | input_api, | |
output_api | |||
) |
Definition at line 58 of file PRESUBMIT.py.
PRESUBMIT.CheckMemcpy | ( | filename | ) |
Definition at line 17 of file PRESUBMIT.py.
PRESUBMIT.CheckNodeTextExpectationsCollectorUpdatingIsDisabled | ( | input_api, | |
output_api | |||
) |
Definition at line 18 of file PRESUBMIT.py.
PRESUBMIT.EnsurePubspecAndChangelogAltered | ( | input_api, | |
package_name | |||
) |
Definition at line 20 of file PRESUBMIT.py.
PRESUBMIT.files_to_check_for_format | ( | input_api, | |
extension, | |||
exclude_folders | |||
) |
Definition at line 41 of file PRESUBMIT.py.
PRESUBMIT.get_old_contents | ( | input_api, | |
path | |||
) |
Definition at line 33 of file PRESUBMIT.py.
PRESUBMIT.is_cpp_file | ( | path | ) |
Definition at line 25 of file PRESUBMIT.py.
PRESUBMIT.is_dart_file | ( | path | ) |
Definition at line 29 of file PRESUBMIT.py.
PRESUBMIT.load_source | ( | modname, | |
filename | |||
) |
Definition at line 19 of file PRESUBMIT.py.
PRESUBMIT.PostUploadHook | ( | gerrit, | |
change, | |||
output_api | |||
) |
git cl upload will call this hook after the issue is created/modified. This hook does the following: * Adds a link to preview docs changes if there are any docs changes in the CL. * Adds 'No-Try: true' if the CL contains only docs changes.
Definition at line 684 of file PRESUBMIT.py.
PRESUBMIT.RunLint | ( | input_api, | |
output_api | |||
) |
Definition at line 35 of file PRESUBMIT.py.
PRESUBMIT.runSmokeTest | ( | input_api, | |
output_api | |||
) |
Definition at line 32 of file PRESUBMIT.py.
str PRESUBMIT.GOLD_TRYBOT_URL = 'https://gold.skia.org/search?issue=' |
Definition at line 25 of file PRESUBMIT.py.
str PRESUBMIT.PRESUBMIT_VERSION = '2.0.0' |
Definition at line 11 of file PRESUBMIT.py.
str PRESUBMIT.RELEASE_NOTES_DIR = 'relnotes' |
Definition at line 21 of file PRESUBMIT.py.
str PRESUBMIT.RELEASE_NOTES_FILE_NAME = 'RELEASE_NOTES.md' |
Definition at line 22 of file PRESUBMIT.py.
str PRESUBMIT.RELEASE_NOTES_README = '//relnotes/README.md' |
Definition at line 23 of file PRESUBMIT.py.
list PRESUBMIT.SERVICE_ACCOUNT_SUFFIX |
Definition at line 27 of file PRESUBMIT.py.
bool PRESUBMIT.USE_PYTHON3 = True |
Definition at line 16 of file PRESUBMIT.py.