no_magic_number - Ignore UIColor initializers #5183
Labels
enhancement
Ideas for improvements of existing features and rules.
good first issue
Issue to be taken up by new contributors yet unfamiliar with the project.
New Issue Checklist
New rule request
Requesting another enhancement to "no_magic_numbers", where it will ignore UIColor definitions.
Since the nature of definiting a color is going to have some "magic numbers", I think it would make sense to just ignore the values -
(including all other UIColor constructors
I don't think this needs to be an "opt-in" configuration...I would think most people would want this by default...but not opposed to it being an opt-in rule.
Hopefully that makes sense!
-Thanks!
The text was updated successfully, but these errors were encountered: