GS/BS
← Standards directory
Code quality

SwiftLint.

Enforce Swift conventions in each target

Share a rule configuration across app, library and test code. Surface file-level diagnostics in CI and justify any inline rule disablement.

Swift

Community rubric · v1

The evidence

Evidence coverage5 / 8
5 supported · 3 unresolved

One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.

Latest evidence review ·

  • Definition

    Verified

    The force_cast rule identifies forced as! conversions; upstream provides both triggering and non-triggering examples.

    Cited source ↗
  • Measurement

    Verified

    SwiftLint checks the selected rules and supports multiple reporting formats for the resulting violations.

    Cited source ↗
  • Conformance

    Verified

    The published force_cast rule example set labels both triggering Swift input and examples expected to pass; it exercises this specific SwiftLint convention.

    Cited source ↗
  • CI enforcement

    Verified

    The documented strict option makes warnings fatal. Xcode users can run the linter in a build phase.

    Cited source ↗
  • Getting started

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can a newcomer complete a first run? Contribute evidence ↗

  • Real-world adoption

    Verified

    CodeRabbit checks changed .swift files with SwiftLint and supports selecting a repository-specific configuration.

    Cited source ↗
  • Agent guidance

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can an agent act on a specific finding? Contribute evidence ↗

  • Agent portability

    Unknown

    No reviewed evidence is recorded for this dimension.

    Does the practice work in two agent harnesses? Contribute evidence ↗

Use this standard

Run the check with the tool installed and configured for your project.

swiftlint lint

Agent prompt

Use SwiftLint in this repository to meet this standard: Enforce Swift conventions in each target. Share a rule configuration across app, library and test code. Surface file-level diagnostics in CI and justify any inline rule disablement. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
Read the agent skill ↗

Primary source

SwiftLint documentation ↗