realm / realm/SwiftLint

Rule Request: mandatory_protocol_for_viewcontroller

Open
#4,029 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

rule-request
Dominant language
Swift
Stars
19.7k
Forks
2.3k
Avg merge
1d 1h
Merged PRs (30d)
11

Description

New Issue Checklist
New rule request
  1. This rule will restrict user to inherit protocol class in UIViewController. this will be help full to mandate Clean swift Viper architecture. also for those new controllers where some predefined set off constraint need to perform.
  2. i.e. If I have not inherited one protocol in my UIViewController then it will notify user to inherit mandatory protocol for this class.
  3. Yes this rule will be configurable. like it will be only apply to UIViewController only or else class as well.
  4. default this rule is disable. because not in every project this is needed.

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 source file or test is named. Start by reviewing SwiftLint's existing rule and configuration entry points, then determine how to detect UIViewController subclasses, require a configurable protocol, and keep the rule disabled by default; done means the rule reports missing protocol conformance only when enabled.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.