We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init()
The apple language docs always use Foo() style over Foo.init(). While both do the same thing, using .init() seems superfluous.
Foo()
Foo.init()
.init()
A check for this rule could find instances of the text .init and verify that it is not preceded by either self, or super.
.init
self
super
The text was updated successfully, but these errors were encountered:
You would also want to allow things like optionalString.flatMap(NSURL.init(string:)).
optionalString.flatMap(NSURL.init(string:))
Sorry, something went wrong.
Hmm, yes that would make this more tricky...
implemented on #715 and #826
No branches or pull requests
The apple language docs always use
Foo()
style overFoo.init()
. While both do the same thing, using.init()
seems superfluous.A check for this rule could find instances of the text
.init
and verify that it is not preceded by eitherself
, orsuper
.The text was updated successfully, but these errors were encountered: