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

This commit is contained in:
Robert Kaussow 2021-10-19 09:01:11 +02:00 committed by GitHub
parent 7278e11cd3
commit 81d33daa69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -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