# realm/SwiftLint

A tool to enforce Swift style and conventions.

Repository: https://github.com/realm/SwiftLint
Canonical: https://ross.abutalabs.com/products/swiftlint
Homepage: https://realm.github.io/SwiftLint
Language: Swift
License: MIT
License Family: permissive
Topics: linter, linting, swift, static-analysis, code-quality, hacktoberfest
Last push: 2026-08-26T22:05:55+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 98, longevity 100
- inputs: {"age_days": 4127, "days_push": 7, "days_rel": 12, "gap_med": 14, "n_releases_24m": 20}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 19712, forks 2320 (observed 2026-08-28T04:11:29.109575+00:00)

## What it is
SwiftLint is a tool that enforces Swift style and conventions based on community-accepted style guide rules. It is built on SwiftSyntax with some rules using Clang and SourceKit, and integrates with Xcode and Swift Package Manager.

## Use cases
- enforce swift style guide rules in a project
- lint swift code in ci
- check swift code style automatically
- integrate linting into xcode builds
- keep swift codebase consistent across a team

## When to choose
- you write Swift and want automated style enforcement
- you want CI-integrated linting for Swift projects
- you need Xcode or SPM plugin integration

## When to avoid
- your project is not written in Swift
- you need a general-purpose multi-language linter

## Facets
- artifact type: cli-tool
- maturity: stable
- function: linter, code-review, cli, developer-tools
- domain: developer-tools, programming-languages
- platform: cli
- tags: swift, style-guide, swiftsyntax, xcode, code-quality, static-analysis, macos, linux

## Member repositories
- realm/SwiftLint (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:29.109575+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:59:52.481601+00:00, confidence not recorded.
  - readme: https://github.com/realm/SwiftLint (fetched 2026-08-28T04:11:29.109575+00:00, sha dba595e97653)
  - homepage: https://realm.github.io/SwiftLint (fetched 2026-08-29T07:58:09.370349+00:00, sha f4ce3eda80e8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
