mirror of
https://github.com/google/nomulus
synced 2026-01-05 04:56:03 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user