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 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

View File

@ -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 = []