-
Notifications
You must be signed in to change notification settings - Fork 82
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
Feature request: allow specifying suppressions for generated files #169
Comments
To be crystal clear I assume this would be a sample: @Deprecated("abc")
class MyType
@Module
class MyModule {
@Provides fun provideMyType(): MyType = MyType()
} Which results in this error:
|
Yup! |
I see you went with the hardcoded approach. Any reason not to use a generic option like I mentioned above? Another one that comes up occasionally is explicit API mode from kotlinpoet leading to redundant qualifiers, which would be a different suppression and not covered by the hardcoded deprecation warning. |
We talked somewhere else about this. So far there's no need for such an API and the hardcoded approach works good enough. |
We enable warnings as errors in our project, which sometimes means suppressing a deprecated usage in a type but this isn't carried over to the generated code. It would be neat if we could disable these via specifying suppressions we need
The text was updated successfully, but these errors were encountered: