8477f4fde9
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>
14 lines
399 B
Bash
Executable File
14 lines
399 B
Bash
Executable File
#!/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
|