Skip to content
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

Match cocoapods static analyzer settings, fix issues #897

Merged
merged 4 commits into from
Feb 21, 2018

Conversation

danj-stripe
Copy link
Contributor

@danj-stripe danj-stripe commented Feb 20, 2018

Summary

Misuse of 'nonnull' and 'Suspicious Conversions of NSNumber' are aggressive by default
when using cocoapods. Adopts the same settings for our project.

screen shot 2018-02-20 at 1 54 36 pm

Motivation

#895

Testing

Automated tests. There should be no functional changes from these commits.

…ocoapods targets.

We should fix these, so that anyone integrating with the SDK does not encounter analyzer
issues.
… that matches.

The request will fail to deserialize if the "object" key is nil and there are multiple
deserializers that could be used.

As far as I can tell, the only time there're multiple deserializers is `[STPCard, STPSource]`,
neither of which have a nil `stripeObject`.
… comparing with `nil`

These were all correct as-is, but making the comparison with nil explicit for readability
and to suppress the issue when users integrate through Cocoapods.
Copy link
Contributor

@bg-stripe bg-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@danj-stripe danj-stripe merged commit e428afd into master Feb 21, 2018
@danj-stripe danj-stripe deleted the danj/bugfix/analyzer-issues branch February 21, 2018 00:48
@joeydong-stripe
Copy link
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants