This commit is contained in:
Robert Kaussow 2023-04-25 10:25:00 +02:00
parent 327400ff22
commit 809c9c99bc
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 3 additions and 2 deletions

View File

@ -27,9 +27,9 @@ from ansiblelater.utils import has_glob, has_jinja
class CheckDeprecatedBareVars(StandardBase):
sid = "ANSIBLE0027"
description = "Bare variables in loops are deprecated"
description = "Deprecated bare variables in loops must not be used"
helptext = (
"bare var '{barevar}' in '{loop_type}' should use full var syntax ('{{{{ {barevar} }}}}') "
"bare var '{barevar}' in '{loop_type}' must use full var syntax ('{{{{ {barevar} }}}}') "
"or be converted to a list"
)
version = "0.3"

View File

@ -41,5 +41,6 @@ Reviews are useless without some rules or standards to check against. ansible-la
| CheckLocalAction | ANSIBLE0024 | Don't use local_action. | |
| CheckRelativeRolePaths | ANSIBLE0025 | Don't use a relative path in a role. | |
| CheckChangedInWhen | ANSIBLE0026 | Use handlers instead of `when: changed`. | |
| CheckChangedInWhen | ANSIBLE0027 | Deprecated bare variables in loops must not be used. | |
| CheckVersion | ANSIBLE9998 | Standards version should be pinned. | |
| CheckDeprecated | ANSIBLE9999 | Deprecated features of `ansible-later` should not be used. | |