shellcheck: skip files generated during libapparmor build

libtool generates horrible shell code, you don't want to see the
shellcheck results for it ;-)

This is only relevant for local testing (not in CI) because these files
don't exist in git and therefore don't exist when the shellcheck CI job
runs.
This commit is contained in:
Christian Boltz 2022-02-13 21:22:35 +01:00
parent 73c24a8b12
commit 6ae7b1566c
Failed to generate hash of commit

View file

@ -9,7 +9,11 @@ from pathlib import Path
def is_excluded(f):
return (re.match(
r"^([.]git/|parser/tst/|tests/|utils/test/|parser/rc[.]apparmor[.]slackware)",
# skip test scripts and the rc.apparmor.slackware initscript
r"^([.]git/|parser/tst/|tests/|utils/test/|parser/rc[.]apparmor[.]slackware)" +
"|" +
# skip several files generated during libapparmor build
r"^libraries/libapparmor/(compile|config[.]guess|config[.]status|config[.]sub|configure|depcomp|install-sh|libtool|ltmain[.]sh|missing|test-driver|ylwrap|testsuite/test_multi[.]multi)",
f,
) or Path(f).is_dir())