-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Provide a way to suppress incubating warnings #20328
Comments
These warnings are coming from you IDE, not Gradle. Have you tried using the standard suppressions? Note: in some cases IDEA doesn't know that it could put the suppression on the statement or parent block, it only suggests class BuildTimeTrackerPlugin @Inject constructor(
private val registry: @Suppress("UnstableApiUsage") BuildEventsListenerRegistry
) : Plugin<Project> { |
Thank you for your response. I can confirm that
|
It's the name of the IDEA Inspection. You cannot add a compiler flag, because it's in the IDE. You can add it by the menu item I'm showing, or once you learn it, manually. You can also press "Disable inspection" or "Edit inspection profile settings" (which shows the docs). In edit, you can tune it to your liking: e.g. you can remove the Gradle annotation from the list, or tune down the level to weak warning, typo, or other. If you want to share this with others, tied to your project, version control |
Thanks. |
APIs annotated as
@Incubating
show up in IntelliJ as nasty yellow warnings. It's good that you're calling out unstable APIs, but when I'm using those knowingly, I want to be able to clear these warnings.Expected Behavior
I should be able to add a suppress annotation locally, or a compiler flag globally, to clear the warning highlights in code.
Current Behavior
No such annotation or compiler flag exists.
Context
The misleading warnings take time away from real ones. IntelliJ also shows more useful warnings that are code bugs (like NPE), but get lost among the incubating warnings.
The text was updated successfully, but these errors were encountered: