mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-21 20:30:42 +00:00
rename rule to CheckCompareToEmptyString
This commit is contained in:
parent
43d7edca32
commit
23f308730e
@ -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 \"\""
|
@ -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`. | |
|
||||
|
Loading…
Reference in New Issue
Block a user