Charles05/21/2020, 3:20 PM
in Kotlin code, because we're trying to track warning suppressing and normalizing would help. The problem with this particular annotation is that there is no associated import to filter on at a file level.
gammax05/21/2020, 3:24 PM
. I’m not aware of nothing like that already available in Detekt
Charles05/22/2020, 12:58 AM
Brais Gabin05/22/2020, 7:41 AM
gammax05/22/2020, 8:47 AM
. Just a note that this has a lot of overlapping with
(that generally suffice to prevent usage of unwanted annotations). The presented case is more like an edge case as
has no imports.
Charles05/22/2020, 3:01 PM
gammax05/22/2020, 3:24 PM
will allow you to catch it regardless of the usage site of the annotation.
gammax05/22/2020, 3:47 PM