swiftlint
brew install swiftlint
v0.63.3
MIT
Swift linter and static analyzer enforcing style conventions and code quality rules.
Why you might care
Catches style violations, naming issues, and potential bugs in Swift code before commit or CI. Integrates easily into Xcode, build pipelines, and pre-commit hooks with customizable rules. Essential for teams enforcing consistent Swift style across large codebases.
33.7k
30-day installs · #174
95.7k
90-day · #187
418.5k
365-day · #169
19.6k
★ GitHub stars · updated today
GitHub topics
code-quality
hacktoberfest
linter
linting
static-analysis
swift
Links
- https://github.com/realm/SwiftLint
- GitHub: realm/SwiftLint
- Brew formula source: Formula/s/swiftlint.rb
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"aliases": [],
"alternatives": [
"swiftformat",
"taiga"
],
"build_dependencies": [],
"categories": [
"linter",
"static-analysis"
],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Tool to enforce Swift style and conventions",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:40:43+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "swiftlint",
"github_default_branch": "main",
"github_last_commit_at": "2026-06-20T21:13:46Z",
"github_readme_excerpt": "# SwiftLint\n\nA tool to enforce Swift style and conventions, loosely based on the now\narchived [GitHub Swift Style Guide](https://github.com/github/swift-style-guide).\nSwiftLint enforces the style guide rules that are generally accepted by the\nSwift community. These rules are well described in popular style guides like\n[Kodeco\u0027s Swift Style Guide](https://github.com/kodecocodes/swift-style-guide).\n\nSwiftLint rules are predominantly based on [SwiftSyntax](https://github.com/swiftlang/swift-syntax).\nSome rules still hook into [Clang](http://clang.llvm.org) and\n[SourceKit](http://www.jpsim.com/uncovering-sourcekit) to access type information.\n\n[](https://swiftpackageindex.com/realm/SwiftLint)\n[](https://swiftpackageindex.com/realm/SwiftLint)\n[](https://buildkite.com/swiftlint/swiftlint)\n\n\n\nThis project adheres to the\n[Contributor Covenant Code of Conduct](https://realm.io/conduct).\nBy participating, you are expected to uphold this code.\n\n\u003e Switch Language:\n\u003e [\u4e2d\u6587](https://github.com/realm/SwiftLint/blob/main/README_CN.md),\n\u003e [\ud55c\uad6d\uc5b4](https://github.com/realm/SwiftLint/blob/main/README_KR.md)\n\n## Video Introduction\n\nTo get a high-level overview of SwiftLint, we encourage you to watch this\npresentation recorded January 9th, 2017 by JP Simard (transcript provided):\n\n[](https://youtu.be/9Z1nTMTejqU)\n\n## Installati",
"github_repo": "realm/SwiftLint",
"github_stars": 19628,
"github_topics": [
"code-quality",
"hacktoberfest",
"linter",
"linting",
"static-analysis",
"swift"
],
"homepage": "https://github.com/realm/SwiftLint",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 33725,
"installs_365d": 418478,
"installs_90d": 95740,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": "2026-06-20T23:43:12+00:00",
"llm_model": "claude-haiku-4-5",
"name": "swiftlint",
"oldnames": [],
"one_liner": "Swift linter and static analyzer enforcing style conventions and code quality rules.",
"optional_dependencies": [],
"rank_30d": 174,
"rank_365d": 169,
"rank_90d": 187,
"raw_hash": "2b648776bbbbc2fd",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/s/swiftlint.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [
{
"swift": "build"
},
"curl",
"libxml2"
],
"version_head": "HEAD",
"version_stable": "0.63.3",
"versioned_formulae": [],
"why_use_this": "Catches style violations, naming issues, and potential bugs in Swift code before commit or CI. Integrates easily into Xcode, build pipelines, and pre-commit hooks with customizable rules. Essential for teams enforcing consistent Swift style across large codebases."
}