-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
enhancementIdeas for improvements of existing features and rules.Ideas for improvements of existing features and rules.
Description
New Issue Checklist
- [ x ] I've Updated SwiftLint to the latest version.
- [ x ] I've searched for existing GitHub issues.
Feature Request or Enhancement Proposal
I suggest supporting substitutions in custom rules to provide contextual warnings and errors.
Example of the rule with a substitution:
corner_radius_setter:
name: "CornerRadius setter"
regex: 'layer\.cornerRadius = (.+)'
message: "Use setCornerRadius($1) instead"
severity: warning
So for this line:
layer.cornerRadius = 34We get the message:
Use setCornerRadius(34) instead
Metadata
Metadata
Assignees
Labels
enhancementIdeas for improvements of existing features and rules.Ideas for improvements of existing features and rules.