Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 549
Animesh Sahu Avatar asked Oct 17 '25 06:10

Animesh Sahu


1 Answers

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

like image 140
Ilya Kalibrov Avatar answered Oct 19 '25 23:10

Ilya Kalibrov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!