fix: exclude lines containing '!unsafe' from ANSIBLE0004
This commit is contained in:
parent
5012e2d919
commit
204fd46304
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue