-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
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
Fixed initializer returns doc for implicitly unwrapped optional inits. #804
Conversation
Current coverage is 88.53% (diff: 100%)@@ master #804 diff @@
==========================================
Files 81 81
Lines 2771 2773 +2
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 2453 2455 +2
Misses 318 318
Partials 0 0
|
@@ -66,7 +66,7 @@ func matchOutsideBraces(declaration: String) -> NSString? { | |||
} | |||
|
|||
func declarationIsInitializer(declaration: String) -> Bool { | |||
return !regex("^((.+)?\\s+)?init\\?*\\(.*\\)") | |||
return !regex("^((.+)?\\s+)?init\\?*\\!*\\(.*\\)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think \\?*\\!*
should be [\\?\\!]{0,1}
.
Could you please add a bug fix entry to the changelog? Thanks! |
@@ -97,7 +99,7 @@ This release has seen a phenomenal uptake in community contributions! | |||
[bootstraponline](https://github.com/bootstraponline) | |||
[#689](https://github.com/realm/SwiftLint/issues/689) | |||
|
|||
* Add rule to check for private unit tests (private unit tests don't get run | |||
* Add rule to check for private unit tests (private unit tests don't get run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This trailing white space is required for the new lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't check other PR's trailing white spaces. I'll double check.
Closing this PR since we removed this rule. Thanks for contributing! |
No description provided.