Skip to content
SPECIFICTION
Get listed

Credo vs SwiftLint

Credo

credo.hexdocs.pm

SwiftLint

realm.github.io

Side by side

FigureCredoSwiftLint
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
Windows—Yes
macOS—Yes
Linux—Yes
Plans published11
Spec score · Linters7.8 (#15)8.0 (#11)
ConfigurationCredo uses a `.credo.exs` configuration file that can be placed in the project root or its `config/` folder.File inclusions and exclusions can be configured in a `.swiftlint.yml` configuration file.
IntegrationsThe maker lists integrations for IntelliJ, Atom, VS Code, Emacs, Kakoune, Neovim, and Codacy.Documented integrations include Swift Package Manager and Xcode plugins, pre-commit, Fastlane, Docker, Visual Studio Code, and MegaLinter.
LicenseCredo is released under the MIT License.The GitHub repository identifies SwiftLint as MIT licensed.
OutputCredo can output command results as JSON.The command line supports linting, analysis, baselines, rule listings, and multiple reporters.
PurposeCredo is a static code analysis tool for Elixir focused on code consistency and teaching.SwiftLint enforces Swift style and conventions based on rules generally accepted by the Swift community.

Plans

Credo

  • CredoFree

Credo pricing →

SwiftLint

  • SwiftLintFree

SwiftLint pricing →

In their own words

Credo

Credo has no write-up on Specifiction yet; its figures are above.

Visit credo.hexdocs.pm

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