# hadolint/hadolint

Dockerfile linter, validate inline bash, written in Haskell

Repository: https://github.com/hadolint/hadolint
Canonical: https://ross.abutalabs.com/products/hadolint
Language: Haskell
License: GPL-3.0
License Family: copyleft
Topics: dockerfile, linter, shellcheck, haskell, dockerfile-linter, docker, static-analysis
Last push: 2026-08-24T14:37:20+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 95, longevity 100
- inputs: {"age_days": 3944, "days_push": 9, "days_rel": 33, "gap_med": 19, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12378, forks 502 (observed 2026-08-28T04:10:52.577356+00:00)

## What it is
Hadolint is a smart Dockerfile linter written in Haskell that parses Dockerfiles into an AST and applies best-practice rules. It also lints the Bash code inside RUN instructions by leveraging ShellCheck.

## Use cases
- lint dockerfiles for best practices
- validate bash in dockerfile run instructions
- check dockerfiles in ci pipeline
- catch bad practices in container builds
- enforce dockerfile style rules

## When to choose
- you want automated best-practice checks for Dockerfiles
- you need ShellCheck-powered linting of RUN command shell code
- you want a fast standalone CLI or container-based linter for CI

## When to avoid
- you need linting for docker-compose or Kubernetes manifests rather than Dockerfiles
- you need a general-purpose shell linter outside Dockerfiles
- you require IDE-only integration without CLI usage

## Facets
- artifact type: cli-tool
- maturity: active
- function: linter, static-site-generator, developer-tools, ci-cd
- domain: developer-tools
- platform: windows, cli
- tags: dockerfile, shellcheck, static-analysis, haskell, docker, devops, containers, command-line, linux, macos

## Member repositories
- hadolint/hadolint (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:52.577356+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:14:07.332982+00:00, confidence not recorded.
  - readme: https://github.com/hadolint/hadolint (fetched 2026-08-28T04:10:52.577356+00:00, sha 3c70acc7f269)
- Data as of 2026-08-30T08:39:29.467469+00:00.
