willsigmon

swiftlint-autofix

Run SwiftFormat and fix all auto-correctable SwiftLint issues

willsigmon 10 1 Updated 6mo ago
GitHub

Install

npx skillscat add willsigmon/sigstack/swiftlint-autofix

Install via the SkillsCat registry.

About this skill

This skill automatically applies SwiftFormat to standardize code formatting and uses SwiftLint's autocorrect feature to resolve fixable style issues. It addresses minor formatting inconsistencies and lint errors that could be resolved without manual review. Developers or agents should use it during routine code maintenance to reduce manual effort in enforcing style guidelines before final checks or deployment.

SKILL.md

SwiftLint Auto-Fix Workflow

Automatically fix code style issues:

  1. Run SwiftFormat:
make format
  1. Run SwiftLint with autocorrect:
swiftlint --fix --quiet
  1. Check remaining issues:
swiftlint | grep -E "(error:|warning:)" | head -20
  1. Report:
  • Files formatted count
  • Issues auto-fixed count
  • Remaining manual issues
  • File paths needing manual attention

Return concise summary of what was fixed.