-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
A-documentationArea: Adding or improving documentationArea: Adding or improving documentationC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesS-needs-discussionStatus: Needs further discussion before merging or work can be startedStatus: Needs further discussion before merging or work can be started
Description
Our documentation, how to add a lint, uses an EarlyLintPass
for the example lint. However, most new lints use the LateLintPass
since they need type information from rustc. Since the LateLintPass
is the main one used for new lint, I suggest updating the documentation to focus on that pass and to update the cargo dev new_lint
tool to use the LateLintPass
by default.
Related discussion on Zulip: https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Meeting.202022-08-09/near/292596176
I'll wait a bit until I do these changes, to potentially get additional feedback, but also because I don't have that much time rn 😅 🙃
nahuakang and koka831
Metadata
Metadata
Assignees
Labels
A-documentationArea: Adding or improving documentationArea: Adding or improving documentationC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesS-needs-discussionStatus: Needs further discussion before merging or work can be startedStatus: Needs further discussion before merging or work can be started