rename rule to CheckCompareToEmptyString

This commit is contained in:
Robert Kaussow 2021-01-30 16:57:49 +01:00
parent 43d7edca32
commit 23f308730e
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ from ansiblelater.candidate import Template
from ansiblelater.standard import StandardBase
class CheckEmptyStringCompare(StandardBase):
class CheckCompareToEmptyString(StandardBase):
sid = "ANSIBLE0012"
description = "Don't compare to empty string \"\""

View File

@ -26,7 +26,7 @@ Reviews are nothing without some rules or standards against which to review. ans
| CheckInstallUseLatest | ANSIBLE0009 | Package managers should not install with state=latest. | |
| CheckShellInsteadCommand | ANSIBLE0010 | Use Shell only when piping, redirecting or chaining commands. | |
| CheckCommandHasChanges | ANSIBLE0011 | Commands should be idempotent and only used with some checks. | |
| CheckEmptyStringCompare | ANSIBLE0012 | Don't compare to "" - use `when: var` or `when: not var`. | |
| CheckCompareToEmptyString | ANSIBLE0012 | Don't compare to "" - use `when: var` or `when: not var`. | |
| CheckCompareToLiteralBool | ANSIBLE0013 | Don't compare to True/False - use `when: var` or `when: not var`. | |
| CheckLiteralBoolFormat | ANSIBLE0014 | Literal bools should be written as `True/False` or `yes/no`. | forbidden values are `true false TRUE FALSE Yes No YES NO` |
| CheckBecomeUser | ANSIBLE0015 | `become` should be always used combined with `become_user`. | |