add wrapper for yamllint
We don't need to run the linter over every single old deliverable file every time. Just check the "modern" series that are most likely to be open, and the _independent projects. Change-Id: I5207600838c37b241d0ab178080be75a8f31a725 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
0bb989b98c
commit
8477f4fde9
13
tools/run_yamllint.sh
Executable file
13
tools/run_yamllint.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash -x
|
||||
#
|
||||
# Wrapper around yamllint that only looks at recent branches to avoid
|
||||
# us having to reformat really old deliverable files.
|
||||
|
||||
bindir=$(dirname $0)
|
||||
topdir=$(dirname $bindir)
|
||||
|
||||
# determine the 3 most recent series, since those are most likely to
|
||||
# still be open
|
||||
series=$(ls -1d deliverables/* | tail -n 3)
|
||||
|
||||
yamllint -f parsable -c $topdir/yamllint.yml $series deliverables/_independent
|
Loading…
Reference in New Issue
Block a user