swiftlint

Lint Swift code against configurable rules from a .swiftlint.yml file.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/onymchat/onym-ios --skill swiftlint
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swiftlint
Source: https://github.com/onymchat/onym-ios/tree/main/.claude/skills/swiftlint
Command: npx skills add https://github.com/onymchat/onym-ios --skill swiftlint

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

SwiftLint enforces Swift style and conventions by linting source files against a configurable rule set, helping teams maintain consistency and reduce code review toil.

Core Features & Use Cases

  • Configuration-driven linting: Define rules, suppression, baselines, and analyzer rules via a central .swiftlint.yml.
  • Flexible integration: Use the build tool plugin, command plugin, or Xcode run scripts to lint automatically during builds and CI.
  • Rollout and collaboration: Create baselines to adopt SwiftLint in existing codebases and gradually enable opt-in rules.

Quick Start

Install SwiftLint, add a top-level .swiftlint.yml, and enable the build tool plugin to lint on every build.

Frequently Asked Questions about swiftlint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce Swift style and conventions across my Xcode targets and SwiftPM projects?

You can enforce Swift style by linting source files against a configurable rule set. This requires a top-level .swiftlint.yml and supports integration via SwiftPM build tool plugins, command plugins, or Xcode run scripts.

What is the best way to automate Swift code linting in CI pipelines?

Automating Swift code linting in CI pipelines is best achieved by applying the build tool plugin or run script workflows. This validates configured rules, suppressions, baselines, and analyzer configurations automatically during builds.

Can I adopt linting in an existing Swift codebase without fixing all violations at once?

Yes, you can adopt linting in existing Swift codebases by creating baselines. Baselines allow you to suppress current violations and gradually enable opt-in rules over time without blocking development.

How does configuration-driven Swift linting work for teams?

Configuration-driven Swift linting works by defining rules, suppressions, baselines, and analyzer rules in a central .swiftlint.yml file. This helps teams maintain consistency and reduce code review toil.

Do I need a specific configuration file to start linting Swift code?

Yes, you need a top-level .swiftlint.yml configuration file to start linting Swift code. This file defines the rules, suppressions, baselines, and analyzer configurations applied across your SwiftPM projects and Xcode targets.