unify helptexts

This commit is contained in:
Robert Kaussow 2024-01-25 21:24:26 +01:00
parent 137e559d57
commit 24c00a3b29
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
4 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ from ansiblelater.rule import RuleBase
class CheckDeprecated(RuleBase):
sid = "ANSIBLE9999"
description = "Deprecated features should not be used"
helptext = "'{old}' is deprecated and should not be used anymore. Use '{new}' instead."
helptext = "`{old}` is deprecated and should not be used anymore. Use `{new}` instead."
types = ["playbook", "task", "handler"]
def check(self, candidate, settings):

View File

@ -6,7 +6,7 @@ from ansiblelater.rule import RuleBase
class CheckNameFormat(RuleBase):
sid = "ANSIBLE0007"
description = "Name of tasks and handlers must be formatted"
helptext = "name '{name}' should start with uppercase"
helptext = "name `{name}` should start with uppercase"
types = ["playbook", "task", "handler"]
def check(self, candidate, settings):

View File

@ -4,7 +4,7 @@ from ansiblelater.rule import RuleBase
class CheckNamedTask(RuleBase):
sid = "ANSIBLE0006"
description = "Tasks and handlers must be named"
helptext = "module '{module}' used without or empty `name` attribute"
helptext = "module `{module}` used without or empty `name` attribute"
types = ["playbook", "task", "handler"]
def check(self, candidate, settings):

View File

@ -6,7 +6,7 @@ from ansiblelater.rule import RuleBase
class CheckUniqueNamedTask(RuleBase):
sid = "ANSIBLE0003"
description = "Tasks and handlers must be uniquely named within a single file"
helptext = "name '{name}' appears multiple times"
helptext = "name `{name}` appears multiple times"
types = ["playbook", "task", "handler"]
def check(self, candidate, settings):