Animesh Sahu
Animesh Sahu

Reputation: 8096

Suppressing "unused" warnings for public API functions in Intellij (for Kotlin)

There's a way to suppress the warnings for Java codebase in IntelliJ.

But seems like there's no option to disable that for Kotlin:

enter image description here

I'm aware of @file:Supress("unused") but that seems to disable whole inspection in the file while I only want to disable it for the public classes and functions, and also for the whole project instead of single file.

My main focus is on a Gradle based solution if possible, otherwise any help is greatly appreciated.

Upvotes: 4

Views: 533

Answers (1)

Ilya Kalibrov
Ilya Kalibrov

Reputation: 56

This request already exist in public tracker of Kotlin. You can subscribe to be notified if the status of a task will change.

Upvotes: 2

Related Questions