Skip to content

Conversation

@ChiefGokhlayeh
Copy link

Purpose

This PR adds a pre-commit-hooks.yaml file, which defines the necessary meta-data for this linter to be used in the pre-commit ecosystem.

pre-commit is a python based Git Hook manager, that aims to provide state-of-the art linters for various languages, regardless of what languages said linters are written in.

Testing

This PR can be tested manually from any git repository via:

# currently pointing to my fork
pre-commit try-repo https://github.com/ChiefGokhlayeh/dockerfilelint

Provided of course, pre-commit is installed.

Usage

Users who wish to lint their Dockerfiles with dockerfilelint simply create a pre-commit-config.yaml inside their repository, such as this one:

repos:
  - repo: https://github.com/replicatedhq/dockerfilelint # use https://github.com/ChiefGokhlayeh/dockerfilelint for testing this PR
    rev: master # should be replaced by release tag
    hooks:
      - id: dockerfilelint

@CLAassistant
Copy link

CLAassistant commented May 24, 2021

CLA assistant check
All committers have signed the CLA.

@chase-replicated chase-replicated deleted the branch replicatedhq:main December 9, 2021 00:02
@chase-replicated chase-replicated changed the base branch from master to main December 9, 2021 02:32
@proinsias
Copy link

@marccampbell – could we get this reviewed and merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants