mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 00:14:44 +01:00
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:
parent
73c24a8b12
commit
6ae7b1566c
1 changed files with 5 additions and 1 deletions
|
@ -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())
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue