clang-tidy vs Hadolint
clang-tidy
clang.llvm.orgHadolint
github.comSide by side
| Figure | clang-tidy | Hadolint |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | — | Yes |
| Windows | — | Yes |
| macOS | — | Yes |
| Linux | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Linters | 8.5 (#4) | 7.9 (#13) |
| Configuration | Checks can be selected with comma-separated positive and negative globs, and configuration can be read from a .clang-tidy file. | Users can configure ignored rules, severity overrides, failure thresholds, output format, label schemas, and trusted registries. |
| License | The LLVM project states that its code is licensed under the Apache 2.0 License with LLVM exceptions. | The repository identifies its license as GPL-3.0. |
| Purpose | clang-tidy is a Clang-based C++ linter for diagnosing and fixing typical programming errors, including style violations, interface misuse, and bugs detectable by static analysis. | Hadolint is a Dockerfile linter that checks Dockerfiles for errors and best practices. |
Plans
In their own words
clang-tidy
clang-tidy has no write-up on Specifiction yet; its figures are above.
Hadolint
Hadolint is a free Dockerfile linter that parses files into an abstract syntax tree and checks that structure for errors and stated best practices. It uses ShellCheck to inspect Bash code inside Dockerfile RUN instructions. Rules carry either the DL prefix for Hadolint checks or SC for ShellCheck checks. Users can ignore rules, override severity, set failure thresholds, choose report formats, and configure label schemas and trusted registries. Output formats include tty, JSON, Checkstyle, Code Climate, GitLab Code Climate, GNU, Codacy, SonarQube, SARIF, and JUnit. Hadolint runs in Docker or Podman containers and is available as a pre-commit hook. Prebuilt binaries support Linux, macOS, and Windows; installation options include Homebrew, Scoop, Nix, containers, and source builds. Documented integrations cover major CI systems and editors. An online version is hosted at hadolint.github.io/hadolint. The latest listed release is v2.15.1, under GPL-3.0.