Skip to content
SPECIFICTION
Get listed

cpplint vs SwiftLint

cpplint

github.com

SwiftLint

realm.github.io

Side by side

FigurecpplintSwiftLint
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WindowsYesYes
macOSYesYes
LinuxYesYes
Plans published11
Spec score · Linters7.9 (#12)8.0 (#11)
IntegrationsCpplint can run as a pre-commit hook and is included in MegaLinter, an open-source linter aggregator for CI.Documented integrations include Swift Package Manager and Xcode plugins, pre-commit, Fastlane, Docker, Visual Studio Code, and MegaLinter.
LicenseThe package is distributed under the BSD-3-Clause license.The GitHub repository identifies SwiftLint as MIT licensed.
PurposeCpplint is a command-line tool that checks C/C++ files for style issues according to Google’s C++ style guide.SwiftLint enforces Swift style and conventions based on rules generally accepted by the Swift community.
SupportThe repository identifies maintainers and provides GitHub issues, pull requests, discussions, and contribution guidance.The maintainers ask users to support the project by contributing, reporting issues, and helping the community, and note that volunteer time is limited.

Plans

cpplint

  • cpplintFree

cpplint pricing →

SwiftLint

  • SwiftLintFree

SwiftLint pricing →

In their own words

cpplint

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

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