https://kotlinlang.org logo
Title
m

Mahmoud Ahmed

08/20/2022, 11:21 AM
Hello, I want someone can give me example for magic number warning or wildcard import and remove it with @Suppress annotation as intelliJ not support this for kotlin
m

Michael Marshall

08/20/2022, 1:51 PM
@Suppress is definitely supported for Kotlin! We use it in our Kotlin project
m

Mahmoud Ahmed

08/20/2022, 2:38 PM
Thanks for this information! I know that it's supported but I want to apply it in these two specific example, as they not supported with IntelliJ IDE
l

LeoColman

08/20/2022, 4:09 PM
What's the error detekt is giving you?
Like, the rules your code is violating
For Wildcard I think you can go @file:Suppress("WildcardImport")
For magic number I think it's @Supress("MagicNumber")
m

Mahmoud Ahmed

08/20/2022, 4:33 PM
thanks