willsigmon

swiftlint-autofix

Run SwiftFormat and fix all auto-correctable SwiftLint issues

willsigmon 10 1 Actualitzat fa 8 mesos
GitHub

Instal·la

npx skillscat add willsigmon/sigstack/swiftlint-autofix

Instal·la des del registre de SkillsCat.

Sobre aquest 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.