verify import aliases

- Added scripts for update and verify
- golang AST code for scanning and fixing imports
- default regex allows it to run on just test/e2e.* file paths
- exclude verify-import-aliases.sh from running in CI jobs

Change-Id: I7f9c76f5525fb9a26ea2be60ea69356362957998
Co-Authored-By: Aaron Crickenberger <spiffxp@google.com>
This commit is contained in:
Davanum Srinivas
2019-06-09 20:39:53 -04:00
parent 25a701db68
commit 9f0050cb44
8 changed files with 375 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ EXCLUDED_PATTERNS=(
"verify-linkcheck.sh" # runs in separate Jenkins job once per day due to high network usage
"verify-test-owners.sh" # TODO(rmmh): figure out how to avoid endless conflicts
"verify-*-dockerized.sh" # Don't run any scripts that intended to be run dockerized
"verify-import-aliases.sh" # to be run periodically by folks working on conformance tests
)
# Exclude typecheck in certain cases, if they're running in a separate job.