releases/tools/run_yamllint.sh
Doug Hellmann 8477f4fde9 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>
2017-07-31 17:11:02 -04:00

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