SwiftLint icon indicating copy to clipboard operation
SwiftLint copied to clipboard

Is it possible to have a warning for use of reserved Objective-C names (such as `description` or `debugDescription`)?

Open krypt-lynx opened this issue 2 years ago • 1 comments

Pretty much all it title, Swift allows to use those names for methods and properties, but it makes use of interfaces like CustomStringConvertable impossible

I want to know how bad it already is in existing project and maybe prevent such conflicts in future.

krypt-lynx avatar May 27 '22 06:05 krypt-lynx

To just get an idea of the used identifiers in your code base, you could define a custom rule. Custom rules are regex-based but should be sufficient for this purpose.

SimplyDanny avatar Sep 03 '22 16:09 SimplyDanny