Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
from colin.checks.abstract.labels import DeprecatedLabelCheck
class UninstallLabelCapitalDeprecatedCheck(DeprecatedLabelCheck):
def __init__(self):
super(UninstallLabelCapitalDeprecatedCheck, self) \
.__init__(name="uninstall_label_capital_deprecated",
message="Label 'UNINSTALL' is deprecated.",
description="Replace with 'uninstall'.",
reference_url="?????",
tags=["uninstall", "label", "capital", "deprecated"],
old_label="UNINSTALL",
new_label="uninstall")
from colin.checks.abstract.labels import DeprecatedLabelCheck
class VersionLabelCapitalDeprecatedCheck(DeprecatedLabelCheck):
def __init__(self):
super(VersionLabelCapitalDeprecatedCheck, self) \
.__init__(name="version_label_capital_deprecated",
message="Label 'Version' is deprecated.",
description="Replace with 'version'.",
reference_url="?????",
tags=["version", "label", "capital", "deprecated"],
old_label="Version",
new_label="version")
from colin.checks.abstract.labels import DeprecatedLabelCheck
class BZComponentDeprecatedCheck(DeprecatedLabelCheck):
def __init__(self):
super(BZComponentDeprecatedCheck, self) \
.__init__(name="bzcomponent_deprecated",
message="Label 'BZComponent' is deprecated.",
description="Replace with 'com.redhat.component'.",
reference_url="?????",
tags=["com.redhat.component", "bzcomponent", "label", "deprecated"],
old_label="BZComponent",
new_label="com.redhat.component")
from colin.checks.abstract.labels import DeprecatedLabelCheck
class NameLabelCapitalDeprecatedCheck(DeprecatedLabelCheck):
def __init__(self):
super(NameLabelCapitalDeprecatedCheck, self) \
.__init__(name="name_label_capital_deprecated",
message="Label 'Name' is deprecated.",
description="Replace with 'name'.",
reference_url="?????",
tags=["name", "label", "capital", "deprecated"],
old_label="Name",
new_label="name")
from colin.checks.abstract.labels import DeprecatedLabelCheck
class ReleaseLabelCapitalDeprecatedCheck(DeprecatedLabelCheck):
def __init__(self):
super(ReleaseLabelCapitalDeprecatedCheck, self) \
.__init__(name="release_label_capital_deprecated",
message="Label 'Release' is deprecated.",
description="Replace with 'release'.",
reference_url="?????",
tags=["release", "label", "capital", "deprecated"],
old_label="Release",
new_label="release")
from colin.checks.abstract.labels import DeprecatedLabelCheck
class ArchitectureLabelCapitalDeprecatedCheck(DeprecatedLabelCheck):
def __init__(self):
super(ArchitectureLabelCapitalDeprecatedCheck, self). \
__init__(name="architecture_label_capital_deprecated",
message="Label 'Architecture' is deprecated.",
description="Replace with 'architecture'.",
reference_url="?????",
tags=["architecture", "label", "capital", "deprecated"],
old_label="Architecture",
new_label="architecture")
from colin.checks.abstract.labels import DeprecatedLabelCheck
class InstallLabelCapitalDeprecatedCheck(DeprecatedLabelCheck):
def __init__(self):
super(InstallLabelCapitalDeprecatedCheck, self) \
.__init__(name="install_label_capital_deprecated",
message="Label 'INSTALL' is deprecated.",
description="Replace with 'install'.",
reference_url="?????",
tags=["install", "label", "capital", "deprecated"],
old_label="INSTALL",
new_label="install")