# Lint

> Run SwiftLint on the PrebidMobile Swift sources

- Skill: `prebid/lint` (Agent Skill)
- Install (CLI): `npx skillmds@latest add prebid/lint`
- Raw SKILL.md: https://api.skillmd.com/api/skills/prebid/lint/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: prebid (https://skillmd.com/u/prebid)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/prebid/lint

---


Run SwiftLint on the project using the existing config file:

```
swiftlint --config .swiftlint.yml
```

If SwiftLint is not installed, offer to install it via Homebrew:
```
brew install swiftlint
```

After linting, summarize:
- Total warnings and errors
- Files with the most violations
- Any errors that must be fixed (errors block builds; warnings do not)

If the user asks to auto-fix violations, run:
```
swiftlint --fix --config .swiftlint.yml
```
and report what was corrected vs. what still needs manual attention.

