Skip to content
SPECIFICTION
Get listed

ShellCheck vs SwiftLint

ShellCheck

shellcheck.net

SwiftLint

realm.github.io

Side by side

FigureShellCheckSwiftLint
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WebYes—
WindowsYesYes
macOSYesYes
LinuxYesYes
Plans published11
Spec score · Linters7.6 (#24)8.0 (#11)
CI integrationsThe project lists services including Travis CI, Codacy, Code Climate, CodeFactor, CircleCI, GitHub Actions, and Trunk as supporting ShellCheck.SwiftLint documents a Fastlane action and a Docker image, and says it is embedded in MegaLinter.
Install optionsThe project documents installation through package managers, precompiled binaries, Docker, and source compilation.The documentation lists Homebrew, CocoaPods, Mint, Bazel, a prebuilt package, and building from source as installation options.
LicenseShellCheck is available under the GPLv3 license.The GitHub repository identifies SwiftLint as MIT licensed.
PurposeShellCheck is a static analysis tool that gives warnings and suggestions for Bash and sh scripts.SwiftLint enforces Swift style and conventions based on rules generally accepted by the Swift community.

Plans

ShellCheck

  • ShellCheckFree

ShellCheck pricing →

SwiftLint

  • SwiftLintFree

SwiftLint pricing →

In their own words

ShellCheck

ShellCheck is a free static analysis tool for Bash and sh scripts. It flags syntax problems, semantic issues, and subtle pitfalls that could make scripts fail in future circumstances, then offers warnings and suggestions. You can paste a script into ShellCheck.net or run it from a terminal with `shellcheck yourscript`.

The project lists integrations for Vim, Emacs, Sublime, Pulsar Edit, and VS Code, along with GCC-compatible warnings for other editors. It can also be added to builds or test suites, with support listed for services including Travis CI, Codacy, Code Climate, CodeFactor, CircleCI, GitHub Actions, and Trunk. Output options include JSON, CheckStyle-compatible XML, GCC-compatible warnings, and readable text with or without ANSI colors. Installation routes include package managers, precompiled binaries, Docker, and source compilation. ShellCheck is licensed under GPLv3; its wiki documents the tool, and bugs can be reported through GitHub issues. There are no official Apple Silicon binaries, and compiling from source requires 2 GB of RAM.

Visit shellcheck.net

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