swiftlint-macos

Configure SwiftLint for macOS 26+ with AppKit-specific rules and CI integration.

1|Updated Jun 5, 2026
One-click install
npx skills add https://github.com/LaughingJackalope/macos-skills --skill swiftlint-macos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swiftlint-macos
Source: https://github.com/LaughingJackalope/macos-skills/tree/main/swiftlint-macos
Command: npx skills add https://github.com/LaughingJackalope/macos-skills --skill swiftlint-macos

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Setting up SwiftLint for macOS projects requires platform-specific configuration for AppKit patterns, Objective-C interop, and integration with Xcode, SPM, and CI pipelines, which is time-consuming and error-prone for teams without established linting workflows. This Skill eliminates that manual effort with pre-vetted, macOS-aligned configurations and integration guides.

Core Features & Use Cases

  • macOS-Specific Lint Rules: Pre-configured rules for AppKit naming conventions, NSObject anti-patterns, NSLog replacement, and IBOutlet safety tailored to macOS development.
  • Build System Integration: Step-by-step guides for integrating SwiftLint via SPM build tool plugins, Xcode run script build phases, and Bazel for macOS 26+ projects.
  • CI Pipeline Templates: Ready-to-use GitHub Actions workflows for linting and swiftlint analyze with xcodebuild, including strict mode enforcement and baseline management for existing codebases.
  • Use Case: A macOS app team can use this Skill to enforce consistent code quality, catch AppKit-specific bugs early, and block PRs with lint violations in CI within minutes.

Quick Start

Use the swiftlint-macos skill to generate a production-ready SwiftLint configuration with macOS-specific rules and CI integration for your macOS app project.

Frequently Asked Questions about swiftlint-macos

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

FAQPage Schema
How do I configure SwiftLint for macOS AppKit projects?

Configure SwiftLint for macOS by applying pre-vetted rules for AppKit naming conventions, NSObject anti-patterns, and IBOutlet safety. This eliminates manual configuration overhead and enforces platform-aligned coding standards for Apple desktop applications.

How do I integrate SwiftLint into an Xcode or SPM build pipeline?

Integrate SwiftLint into Xcode or SPM using step-by-step guides for SPM build tool plugins and Xcode run script build phases. This automates linting in build and release processes for macOS 26+ development workflows.

What's the best way to run SwiftLint in CI with xcodebuild?

Run SwiftLint in CI using ready-to-use GitHub Actions workflows that execute swiftlint analyze with xcodebuild. This setup includes strict mode enforcement and baseline management to block PRs with lint violations.

Does SwiftLint support custom anti-pattern detection for macOS development?

SwiftLint supports custom anti-pattern detection for macOS through pre-configured rules targeting NSLog replacement and NSObject safety. This catches AppKit-specific bugs early and enforces consistent Swift code quality.

How do I manage SwiftLint baselines for an existing macOS codebase?

Manage SwiftLint baselines for existing macOS codebases using the included baseline management workflows. This allows teams to adopt SwiftLint gradually without needing to resolve every historical violation simultaneously.

Can I use SwiftLint with Bazel for macOS 26+ projects?

SwiftLint integrates with Bazel for macOS 26+ projects through the provided build system integration guides. This supports flexible automation of Swift code quality checks across different build environments.