Skip to content

Conversation

@gbirch-stripe
Copy link

In the Stripe iOS SDK, we use Periphery with the retain_public option enabled to check for dead code while ignoring our many public APIs. However, we also use @_spi attributes throughout our SDK to create internal APIs only for use by our own modules. We would like Periphery to scan these declarations and report if they are unused, as if they were internal, but currently the retain_public option causes Periphery to ignore them.

This PR introduces a new check_spi option that takes in a list of @_spi flags to always check, regardless of the retain_public usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant