Håkon Pettersen
04/04/2025, 4:21 AM@Suppress("all")
like this:
ForbiddenSuppress:
active: true
rules: ["all", "CyclomaticComplexMethod"]
Currently, @Suppress("all")
isn't being caught, whereas "CyclomaticComplexMethod"
works as expected. Has anyone encountered this issue?
docs: https://detekt.dev/docs/rules/style/#forbiddensuppressSam
04/04/2025, 6:30 AM@Suppress("all")
suppresses the ForbiddenSuppress rule.
This rule is not capable of reporting suppression of itself, as that's a language feature with precedence.(https://detekt.dev/docs/rules/style/#forbiddensuppress)
Håkon Pettersen
04/04/2025, 6:45 AMSam
04/04/2025, 6:57 AMSam
04/04/2025, 6:58 AMgrep
could identify @Suppress("all")
and simple variations of it.Håkon Pettersen
04/04/2025, 7:13 AMSam
04/04/2025, 7:14 AM@Suppress("all")
in order to encourage people to specify more granular suppressions? That actually seems like a good idea, and very much in line with the point I was making 👍 I should not have been so hasty to start preaching 😁Håkon Pettersen
04/04/2025, 7:30 AM