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
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

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