mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-21 20:30:42 +00:00
fix: ensure yaml document end marker is not set (#762)
BREAKING CHANGE: The default setting for the yamllint rule `docuent-end` has been changed to `false`.
This commit is contained in:
parent
9797533a14
commit
0e197fd585
@ -3,7 +3,7 @@ from ansiblelater.rule import RuleBase
|
||||
|
||||
class CheckYamlDocumentEnd(RuleBase):
|
||||
rid = "YML109"
|
||||
description = "YAML should contain document end marker"
|
||||
description = "YAML document end marker should match configuration"
|
||||
types = ["playbook", "task", "handler", "rolevars", "hostvars", "groupvars", "meta"]
|
||||
|
||||
def check(self, candidate, settings):
|
||||
|
@ -3,7 +3,7 @@ from ansiblelater.rule import RuleBase
|
||||
|
||||
class CheckYamlDocumentStart(RuleBase):
|
||||
rid = "YML104"
|
||||
description = "YAML should contain document start marker"
|
||||
description = "YAML document start marker should match configuration"
|
||||
types = ["playbook", "task", "handler", "rolevars", "hostvars", "groupvars", "meta"]
|
||||
|
||||
def check(self, candidate, settings):
|
||||
|
@ -3,7 +3,7 @@ from ansiblelater.rule import RuleBase
|
||||
|
||||
class CheckYamlOctalValues(RuleBase):
|
||||
rid = "YML110"
|
||||
description = "YAML should not use forbidden implicit or explicit octal value"
|
||||
description = "YAML implicit/explicit octal value should match configuration"
|
||||
types = ["playbook", "task", "handler", "rolevars", "hostvars", "groupvars", "meta"]
|
||||
|
||||
def check(self, candidate, settings):
|
||||
|
@ -174,7 +174,7 @@ class Settings:
|
||||
"present": True,
|
||||
},
|
||||
"document-end": {
|
||||
"present": True,
|
||||
"present": False,
|
||||
},
|
||||
"colons": {
|
||||
"max-spaces-before": 0,
|
||||
|
Loading…
Reference in New Issue
Block a user