fix: add 'always' to allowed prevlines for CheckTaskSeparation (#241)
This commit is contained in:
parent
b8d4783646
commit
58336d35dd
|
@ -23,7 +23,9 @@ class CheckTaskSeparation(StandardBase):
|
|||
task_regex = re.compile(r"-\sname:(.*)")
|
||||
prevline = "#file_start_marker"
|
||||
|
||||
allowed_prevline = ["---", "tasks:", "pre_tasks:", "post_tasks:", "block:", "rescue:"]
|
||||
allowed_prevline = [
|
||||
"---", "tasks:", "pre_tasks:", "post_tasks:", "block:", "rescue:", "always:"
|
||||
]
|
||||
|
||||
errors = task_errors + line_errors
|
||||
if not errors:
|
||||
|
|
Loading…
Reference in New Issue