To contribute a new style rule first fork the repo and create your branch from master
. Then open a PR and propose the rule following the structure below.
If you have an idea that's not completely fleshed out, please open an issue to discuss.
At minimum every rule should contain:
- A permalink to reference easily.
- A short description.
- A link to the appropriate SwiftLint / SwiftFormat rule.
- (optional) A "Why?" section describing the reasoning behind the rule.
- A code example describing the incorrect and correct behaviours.
-
(link) This is the description of the rule.