-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.Call for participation: Medium difficulty level problem and requires some initial experience.
Description
We currently have the disallowed_methods
(added in #6081) which allows for a clippy.toml
config of disallowed-methods = ["foo", "bar::baz"]
, etc.
It would be nice if the config also allowed for reasons, something like:
disallowed-methods = [
{path = "foo::bar", reason = "we don't like this"},
"bar::baz" # no reason given
]
so that the warning can output the reason when it comes across this methods
See https://twitter.com/nokusu/status/1432339032705544193, https://twitter.com/fasterthanlime/status/1432333612251238402
This shouldn't be hard to implement, happy to mentor!
DianaNites, akberg, Progdrasil, ssokolow, bahlo and 14 more
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.Call for participation: Medium difficulty level problem and requires some initial experience.