Skip to content
SPECIFICTION
Get listed

Hadolint vs SwiftLint

Hadolint

github.com

SwiftLint

realm.github.io

Side by side

FigureHadolintSwiftLint
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WebYes—
WindowsYesYes
macOSYesYes
LinuxYesYes
Plans published11
Spec score · Linters7.9 (#13)8.0 (#11)
CI integrationsThe project documents integrations including GitHub Actions, GitLab CI, Azure DevOps Pipelines, Bitbucket Pipelines, CircleCI, Drone CI, Jenkins, and Travis CI.SwiftLint documents a Fastlane action and a Docker image, and says it is embedded in MegaLinter.
ConfigurationUsers can configure ignored rules, severity overrides, failure thresholds, output format, label schemas, and trusted registries.File inclusions and exclusions can be configured in a `.swiftlint.yml` configuration file.
LicenseThe repository identifies its license as GPL-3.0.The GitHub repository identifies SwiftLint as MIT licensed.
PurposeHadolint is a Dockerfile linter that checks Dockerfiles for errors and best practices.SwiftLint enforces Swift style and conventions based on rules generally accepted by the Swift community.

Plans

Hadolint

  • HadolintFree

Hadolint pricing →

SwiftLint

  • SwiftLintFree

SwiftLint pricing →

In their own words

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.

Visit github.com

SwiftLint

SwiftLint is a free, MIT-licensed tool that checks Swift source against style rules and conventions accepted by the Swift community. It includes more than 200 built-in rules, with opt-in rules disabled by default. A project can set active rules, included and excluded paths, and rule settings in a `.swiftlint.yml` file. SwiftLint can automatically correct some violations, overwriting affected files, and its command line supports linting, analysis, baselines, rule listings, and multiple reporters. Documented integrations include Xcode and Swift Package Manager plugins, pre-commit, Fastlane, Docker, Visual Studio Code, and MegaLinter. Installation choices include package managers, prebuilt packages, and source builds. Releases include macOS, Windows, and Linux binaries. SwiftLint is intended for valid, compilable source, and non-compiling code may produce unexpected results, especially when autocorrecting. Analyzer rules are considerably slower than lint rules. The project is maintained by volunteers, and the maintainers describe it as non-commercial.

Visit realm.github.io