Silence of the Lints

Odersky says “But warnings should be spot-on and not annoying.”

What if there were a mechanism for upvoting and downvoting warnings?

Some people hate certain Scala 2 lints, for example.

Downvoting could result in local suppression (by sbt), and/or submission to a service which collects votes, such that the most annoying warnings are relegated to -strict or -language:annoying.

Probably this feature is not realizable, but it’s worth acknowledging that the 3rd party lint ecosystem would be more vibrant if it included click-to-suppress.

Remember the poster for Silence of the Lambs? The icon could be a moth.

2 Likes