fix: exclude lines containing '!unsafe' from ANSIBLE0004

This commit is contained in:
Robert Kaussow 2021-01-08 15:01:41 +01:00
parent 5012e2d919
commit 204fd46304
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@ def check_braces_spaces(candidate, settings):
if not errors:
for i, line in yamllines:
if "!unsafe" in line:
continue
match = braces.findall(line)
if match:
for item in match: