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