https://kotlinlang.org logo
Title
s

spierce7

04/18/2017, 3:51 PM
All our builds have a few warnings "parameter
blah blah
is never used." Is there a way to silence that specific Kotlin warning for my entire team? We're using gradle to build.
m

miha-x64

04/18/2017, 3:53 PM
@Suppress(”UNUSED”)
, AFAIK
m

mg6maciej

04/18/2017, 3:55 PM
I would suggest using parameters instead. Unused parameters react with denial after a commit (the warning you see), after about 10 commits they become angry... In the end (about 1024 commits) they accept they are not used. The study shows they clearly follow Kübler-Ross model (AKA the five stages of grief).
p

Paul Woitaschek

04/18/2017, 3:57 PM
I have these false warnings all over the place
s

spierce7

04/18/2017, 4:07 PM
Lol, I know they are unused. I have 3 of them, and have accepted that I want to keep them.
rather, 2 I want to keep. 1 I'll kill. Perhaps @Suppress("UNUSED") is the best option