Add CLI option to disable rules
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 19.7k
- Forks
- 2.3k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 11
Description
New Issue Checklist
- I've Updated SwiftLint to the latest version.
- I've searched for existing GitHub issues.
Feature or Enhancement Proposal
Please add a CLI option to disable rules, presumably named --disable-rule <rule-name>, which can be provided 0 to many times.
This is useful for ad hoc disabling of rules without needing to modify a config file, which can be a pain & can lead to accidental rule disabling being committed to the repo.
Thanks.
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
No file or test is named in the issue. Start by locating SwiftLint's CLI option parsing and its tests, then trace how rule configuration is passed to linting. Done means a repeatable --disable-rule option accepts zero or more uses and disables only the requested rules without changing the config file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100