-
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
Add redundant nil coalesing operator opt-in rule #773
Add redundant nil coalesing operator opt-in rule #773
Conversation
@@ -8,7 +8,9 @@ | |||
|
|||
##### Enhancements | |||
|
|||
* None. | |||
* Add `RedundantNilCoalesingRule` Opt-In rule that warns against `?? nil`. |
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.
Missing two trailing spaces, as noted in contributing.md
Also, this should be moved to a new top-level changelog section now that 0.12.0 is out.
I feel like this could easily conform to |
39af02e
to
33a817e
Compare
@jpsim updated. I'll add |
Not sure why the build is stuck... |
The build is stuck because Travis isn't running OS X jobs at this time:
|
|
||
* Add `RedundantNilCoalesingRule` Opt-In rule that warns against `?? nil`. | ||
[Daniel Beard](https://github.com/daniel-beard) | ||
[#764](https://github.com/realm/SwiftLint/issues/764) |
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.
trailing whitespace is at the wrong place. see other changelog entries for format.
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.
got it, fixed.
This is missing a test in |
33a817e
to
63d73b2
Compare
63d73b2
to
4cb4401
Compare
Added test as well. |
👍 local test passes so merging. |
?? nil
#764