realm / realm/SwiftLint

Enable/disable rules in #Preview macros

Open
#6,154 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion
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

I would like to be able to enable/disable specific rules in #Preview macros. I saw this and the associated PR but it doesn't seem to give users a way to configure this. The solution proposed in that issue (but didn't make it to the implementation) would work. Would it be possible to expose such a config to users?

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

Start by reading issue #5775 and its associated pull request to understand the existing #Preview macro handling and the proposed configuration approach. Then trace the current #Preview support and rule-configuration entry points; done means users can configure which rules are enabled or disabled within #Preview macros, with coverage for the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.