Skip to content

Update docs and tooling to focus on LateLintPasses #9311

Open
@xFrednet

Description

@xFrednet

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 😅 🙃

Metadata

Metadata

Assignees

Labels

A-documentationArea: Adding or improving documentationC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesS-needs-discussionStatus: Needs further discussion before merging or work can be started

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions