realm / realm/SwiftLint

Feature request: Add a rationale to the rule description

Open
#4,811 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion documentation enhancement
Dominant language
Swift
Stars
19.7k
Forks
2.3k
Avg merge
1d 1h
Merged PRs (30d)
11

Description

New Issue Checklist
Describe the bug

The rule descriptions are quite sparse, and especially for novices, it may be very unclear what the motivation behind a given rule is, and why it might, or might not be, a good idea to enable or disable it.

The idea would be to add a text block to the rule descriptions that could be displayed in the documentation, explaining the rationale behind the rule, possibly with links etc.

Faux Pas (http://fauxpasapp.com) has a feature like this:

Screenshot 2023-03-11 at 16 58 40

Even better would be if there was some way to jump directly to this from the warnings displayed in Xcode.

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 tracing how SwiftLint rule descriptions are defined and rendered in the documentation. Compare the existing descriptions with the proposed rationale text and determine how links and an Xcode warning entry point would fit. Done means the scope is agreed and rationale content can be displayed consistently without leaving the requested behavior unresolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
documentation, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.