IBDecodable / IBLinter

A linter tool for Interface Builder
MIT License
948 stars 42 forks source link

Disable Swiftlint rule "Trailing Comma Rule" for "allRules" collection #182

Closed Adobels closed 2 years ago

Adobels commented 2 years ago

Disabling The Swiftlint rule "Trailing Comma Rule" on code level "Rule.swift:24" will simplify the source diff in a code review (one added line instead of one removed line and two added lines) and will mark the "allRules" collection as a collection open for new elements. I would use the comma where you know you're going to add elements later, and omit it if the list of items is final.

Capture d’écran 2022-03-28 à 11 24 24