Refactor the license check to be a generic presubmit check (#131)

* Refactor the license check to be a generic presubmit check

This includes all of the old presubmits that were in our METADATA file
that are still valid.

* Responses to CR

Added docstrings, refactored the file finder, changed variable names,
and formatted the file

* More respones to CR
This commit is contained in:
gbrodman 2019-06-27 10:08:27 -04:00 committed by GitHub
parent 4150dc69cb
commit dae8923bd1
4 changed files with 184 additions and 51 deletions

View file

@ -108,9 +108,9 @@ allprojects {
}
}
task licenseCheck(type: Exec) {
task runPresubmits(type: Exec) {
executable '/usr/bin/python'
args('config/check_license.py')
args('config/presubmits.py')
}
subprojects {
@ -169,7 +169,7 @@ subprojects {
if (project.name == 'third_party') return
project.tasks.test.dependsOn licenseCheck
project.tasks.test.dependsOn runPresubmits
// Path to code generated with annotation processors. Note that this path is
// chosen by the 'net.ltgt.apt' plugin, and may change if IDE-specific plugins