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:
Robert Kaussow 2024-01-29 21:28:23 +01:00 committed by GitHub
parent 9797533a14
commit 0e197fd585
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

@ -174,7 +174,7 @@ class Settings:
"present": True,
},
"document-end": {
"present": True,
"present": False,
},
"colons": {
"max-spaces-before": 0,