mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-24 22:00:40 +00:00
chore: remove unversioned file classification (#523)
This commit is contained in:
parent
505a2aef5d
commit
64858e467d
@ -245,15 +245,7 @@ class Vars(Candidate):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Unversioned(Candidate):
|
class InventoryVars(Candidate):
|
||||||
"""Object classified as unversioned file."""
|
|
||||||
|
|
||||||
def __init__(self, filename, settings={}, standards=[]):
|
|
||||||
super(Unversioned, self).__init__(filename, settings, standards)
|
|
||||||
self.expected_version = False
|
|
||||||
|
|
||||||
|
|
||||||
class InventoryVars(Unversioned):
|
|
||||||
"""Object classified as Ansible inventory vars."""
|
"""Object classified as Ansible inventory vars."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
@ -289,13 +281,13 @@ class ArgumentSpecs(RoleFile):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Inventory(Unversioned):
|
class Inventory(Candidate):
|
||||||
"""Object classified as Ansible inventory file."""
|
"""Object classified as Ansible inventory file."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Code(Unversioned):
|
class Code(Candidate):
|
||||||
"""Object classified as code file."""
|
"""Object classified as code file."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
@ -307,13 +299,13 @@ class Template(RoleFile):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Doc(Unversioned):
|
class Doc(Candidate):
|
||||||
"""Object classified as documentation file."""
|
"""Object classified as documentation file."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Makefile(Unversioned):
|
class Makefile(Candidate):
|
||||||
"""Object classified as makefile."""
|
"""Object classified as makefile."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
@ -325,7 +317,7 @@ class File(RoleFile):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Rolesfile(Unversioned):
|
class Rolesfile(Candidate):
|
||||||
"""Object classified as Ansible roles file."""
|
"""Object classified as Ansible roles file."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
@ -6,7 +6,7 @@ class CheckVersion(StandardBase):
|
|||||||
sid = "ANSIBLE9998"
|
sid = "ANSIBLE9998"
|
||||||
description = "Standards version should be pinned"
|
description = "Standards version should be pinned"
|
||||||
helptext = "Standards version not set. Using latest standards version {version}"
|
helptext = "Standards version not set. Using latest standards version {version}"
|
||||||
types = ["playbook", "task", "handler"]
|
types = ["task", "handler", "rolevars", "meta", "template", "file", "playbook"]
|
||||||
|
|
||||||
def check(self, candidate, settings):
|
def check(self, candidate, settings):
|
||||||
errors = []
|
errors = []
|
||||||
|
Loading…
Reference in New Issue
Block a user