chore: remove unversioned file classification (#523)

This commit is contained in:
Robert Kaussow 2023-01-09 20:41:46 +01:00 committed by GitHub
parent 505a2aef5d
commit 64858e467d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 15 deletions

View File

@ -245,15 +245,7 @@ class Vars(Candidate):
pass
class Unversioned(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):
class InventoryVars(Candidate):
"""Object classified as Ansible inventory vars."""
pass
@ -289,13 +281,13 @@ class ArgumentSpecs(RoleFile):
pass
class Inventory(Unversioned):
class Inventory(Candidate):
"""Object classified as Ansible inventory file."""
pass
class Code(Unversioned):
class Code(Candidate):
"""Object classified as code file."""
pass
@ -307,13 +299,13 @@ class Template(RoleFile):
pass
class Doc(Unversioned):
class Doc(Candidate):
"""Object classified as documentation file."""
pass
class Makefile(Unversioned):
class Makefile(Candidate):
"""Object classified as makefile."""
pass
@ -325,7 +317,7 @@ class File(RoleFile):
pass
class Rolesfile(Unversioned):
class Rolesfile(Candidate):
"""Object classified as Ansible roles file."""
pass

View File

@ -6,7 +6,7 @@ class CheckVersion(StandardBase):
sid = "ANSIBLE9998"
description = "Standards version should be pinned"
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):
errors = []