mirror of
https://github.com/google/nomulus.git
synced 2025-08-06 09:45:19 +02: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:
parent
4150dc69cb
commit
dae8923bd1
4 changed files with 184 additions and 51 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue