Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

AleksaC/hadolint-pre-commit-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hadolint-pre-commit

Deprecated!

For a better way to use hadolint as pre-commit hook check this out


pre-commit hook for linting dockerfiles using hadolint

Currently uses hadolint v1.17.6. To use another version look for it in the past revisions, or fork this repo and change it yourself.

Since it's downloading the hadolint binary the hook may be slow on the first run, or after cleaning the pre-commit cache.

Getting started

Example .pre-commit-config.yaml with rules DL3025 and DL3018 excluded.

repos:
  - repo: https://github.com/AleksaC/hadolint-pre-commit-hook
    rev: master
    hooks:
      - id: hadolint
        args: [--ignore, DL3025, --ignore, DL3018]

About

pre-commit hook for linting dockerfiles

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages