How to use the colin.core.checks.labels.LabelAbstractCheck function in colin

To help you get started, we’ve selected a few colin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github user-cont / colin / colin / checks / labels.py View on Github external
name = "run_or_usage_label"


class VcsRefLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "vcs-ref_label"


class VcsTypeLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "vcs-type_label"


class VcsUrlLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "vcs-url_label"


class VendorLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "vendor_label"


class VersionLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "version_label"


class InheritedOptionalLabelCheck(FMFAbstractCheck, InheritedOptionalLabelAbstractCheck):
    name = "inherited_labels"
github user-cont / colin / colin / checks / labels.py View on Github external
name = "description_or_io.k8s.description_label"


class DistributionScopeLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "distribution-scope_label"


class HelpLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "help_label"


class IoK8sDescriptionLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "io.k8s.description_label"


class IoK8sDisplayNameLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "io.k8s.display-name_label"


class MaintainerLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "maintainer_label"


class NameLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "name_label"


class ReleaseLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "release_label"


class SummaryLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
github user-cont / colin / colin / checks / labels.py View on Github external
name = "name_label"


class ReleaseLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "release_label"


class SummaryLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "summary_label"


class UrlLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "url_label"


class RunOrUsageLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "run_or_usage_label"


class VcsRefLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "vcs-ref_label"


class VcsTypeLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "vcs-type_label"


class VcsUrlLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "vcs-url_label"


class VendorLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
github user-cont / colin / colin / checks / labels.py View on Github external
# TODO: Check the format


class DescriptionLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "description_label"


class DescriptionOrIoK8sDescriptionLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "description_or_io.k8s.description_label"


class DistributionScopeLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "distribution-scope_label"


class HelpLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "help_label"


class IoK8sDescriptionLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "io.k8s.description_label"


class IoK8sDisplayNameLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "io.k8s.display-name_label"


class MaintainerLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "maintainer_label"


class NameLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
github user-cont / colin / colin / checks / labels.py View on Github external
name = "summary_label"


class UrlLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "url_label"


class RunOrUsageLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "run_or_usage_label"


class VcsRefLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "vcs-ref_label"


class VcsTypeLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "vcs-type_label"


class VcsUrlLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "vcs-url_label"


class VendorLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "vendor_label"


class VersionLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "version_label"


class InheritedOptionalLabelCheck(FMFAbstractCheck, InheritedOptionalLabelAbstractCheck):
github user-cont / colin / colin / core / checks / labels.py View on Github external
def __init__(self, message, description, reference_url, tags, labels, required,
                 value_regex=None):
        """
        Abstract check for Dockerfile/Image labels.

        :param message: str
        :param description: str
        :param reference_url: str
        :param tags: [str]
        :param labels: [str]
        :param required: bool
        :param value_regex: str (using search method)
        """
        super(LabelAbstractCheck, self) \
            .__init__(message, description, reference_url, tags)
        self.labels = labels
        self.required = required
        self.value_regex = value_regex
github user-cont / colin / colin / checks / labels.py View on Github external
name = "help_label"


class IoK8sDescriptionLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "io.k8s.description_label"


class IoK8sDisplayNameLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "io.k8s.display-name_label"


class MaintainerLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "maintainer_label"


class NameLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "name_label"


class ReleaseLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "release_label"


class SummaryLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "summary_label"


class UrlLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "url_label"


class RunOrUsageLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
github user-cont / colin / colin / checks / labels.py View on Github external
class ComRedhatComponentLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "com.redhat.component_label"
    # TODO: Check the format


class DescriptionLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "description_label"


class DescriptionOrIoK8sDescriptionLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "description_or_io.k8s.description_label"


class DistributionScopeLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "distribution-scope_label"


class HelpLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "help_label"


class IoK8sDescriptionLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "io.k8s.description_label"


class IoK8sDisplayNameLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "io.k8s.display-name_label"


class MaintainerLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
github user-cont / colin / colin / checks / labels.py View on Github external
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see .
#

from colin.core.checks.labels import LabelAbstractCheck, InheritedOptionalLabelAbstractCheck
from colin.core.checks.fmf_check import FMFAbstractCheck


class ArchitectureLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "architecture_label"


class AuthoritativeSourceUrlLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "authoritative_source-url_label"


class BuildDateLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "build-date_label"
    # TODO: Check the RFC 3339 date-time format


class BuildHostLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "com.redhat.build-host_label"


class ComRedhatComponentLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "com.redhat.component_label"
    # TODO: Check the format
github user-cont / colin / colin / checks / labels.py View on Github external
name = "description_label"


class DescriptionOrIoK8sDescriptionLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "description_or_io.k8s.description_label"


class DistributionScopeLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "distribution-scope_label"


class HelpLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "help_label"


class IoK8sDescriptionLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "io.k8s.description_label"


class IoK8sDisplayNameLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "io.k8s.display-name_label"


class MaintainerLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "maintainer_label"


class NameLabelCheck(FMFAbstractCheck, LabelAbstractCheck):
    name = "name_label"


class ReleaseLabelCheck(FMFAbstractCheck, LabelAbstractCheck):