dockerfilelint icon indicating copy to clipboard operation
dockerfilelint copied to clipboard

Make dockerfilelint available in pre-commit ecosystem

Open ChiefGokhlayeh opened this issue 3 years ago • 2 comments

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

ChiefGokhlayeh avatar May 24 '21 16:05 ChiefGokhlayeh

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar May 24 '21 16:05 CLAassistant

@marccampbell – could we get this reviewed and merged?

proinsias avatar Aug 12 '22 01:08 proinsias