switch_case_alignment should have autocorrect
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Swift
- Stars
- 19.7k
- Forks
- 2.3k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 11
Description
New Issue Checklist
- [Y] I've Updated SwiftLint to the latest version.
- [Y] I've searched for existing GitHub issues.
switch_case_alignment should have autocorrect
Annoying to manually update these statements across projects when many things need chaning
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the switch_case_alignment rule and its existing tests in SwiftLint. Review how other rules implement autocorrect, then add equivalent coverage showing that the rule can automatically fix the reported alignment. Done means the rule autocorrects the affected statements and the relevant tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100