Browse Source

fix: add 'handlers' to allowed prevlines for CheckTaskSeparation (#249)

pull/251/head v1.4.2
Robert Kaussow 8 months ago committed by GitHub
parent
commit
81d33daa69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      ansiblelater/rules/CheckTaskSeparation.py

9
ansiblelater/rules/CheckTaskSeparation.py

@ -24,7 +24,14 @@ class CheckTaskSeparation(StandardBase):
prevline = "#file_start_marker"
allowed_prevline = [
"---", "tasks:", "pre_tasks:", "post_tasks:", "block:", "rescue:", "always:"
"---",
"handlers:",
"tasks:",
"pre_tasks:",
"post_tasks:",
"block:",
"rescue:",
"always:",
]
errors = task_errors + line_errors

Loading…
Cancel
Save