detekt / detekt-intellij-plugin

detekt plugin for IntelliJ
https://plugins.jetbrains.com/plugin/10761-detekt
Apache License 2.0
290 stars 39 forks source link

Do not show warning notifications of the same issue type. #486

Open DenisYelkin opened 11 months ago

DenisYelkin commented 11 months ago

Every time you comment the code, detekt shows tons of notifications about unused imports. Please show only one warning notification per issue type.

image
arturbosch commented 11 months ago

Hi, have you noticed other findings producing as many warning notifications ? It seems as the NoUnusedImports rule reports the imports at the file node, hm.

IDEA 2023.2 fixes this issue automatically for me:

Screenshot from 2023-08-14 10-31-45

which version are you using?

Edit: It is a bug from the detekt core side introduced in 1.23.0, see https://github.com/detekt/detekt/pull/6390 Not sure how fast a new detekt version will be published and if we should introduce a workaround in the meantime :)