realm / realm/SwiftLint

Add CLI option to disable rules

Open
#6,831 0 comments 1 reaction 0 assignees View on GitHub

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
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.