Resolve minor static analysis issues #770
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Not a major issue by any definition of the word, but we're seeing static analysis issues come through in our build logs when including RxSwift as a subproject.
I could use some guidance here on your project's style and approach: there are 11 additional static analysis warnings as follows:
I see that you've annotated the
NSError *__autoreleasing *__nonnull
, however if you read Apple's blog post on nullability, they specifically say:So these issues are only going to go away if the code is changed to treat them as nullable. I'm happy to make this change (something as simple as an early return, or a parameter assertion), but I wasn't sure which approach you'd prefer.
It's also worth noting that people have filed radars against this issue, however I'd like to see this resolved sooner rather than later.