mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Disable newer shellcheck tests which don't pass.
This commit is contained in:
parent
a7bb04800d
commit
45cec93e99
2 changed files with 6 additions and 1 deletions
|
@ -816,13 +816,16 @@ def command_sanity_shellcheck(args, targets):
|
|||
with open('test/sanity/shellcheck/skip.txt', 'r') as skip_fd:
|
||||
skip_paths = set(skip_fd.read().splitlines())
|
||||
|
||||
with open('test/sanity/shellcheck/exclude.txt', 'r') as exclude_fd:
|
||||
exclude = set(exclude_fd.read().splitlines())
|
||||
|
||||
paths = sorted(i.path for i in targets.include if os.path.splitext(i.path)[1] == '.sh' and i.path not in skip_paths)
|
||||
|
||||
if not paths:
|
||||
display.info('No tests applicable.', verbosity=1)
|
||||
return
|
||||
|
||||
run_command(args, ['shellcheck'] + paths)
|
||||
run_command(args, ['shellcheck', '-e', ','.join(sorted(exclude))] + paths)
|
||||
|
||||
|
||||
def command_sanity_pep8(args, targets):
|
||||
|
|
2
test/sanity/shellcheck/exclude.txt
Normal file
2
test/sanity/shellcheck/exclude.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
SC1090
|
||||
SC2164
|
Loading…
Reference in a new issue