Separate check-private-items
configuration for different lints
#13074
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
Description
Issue
check-private-items
currently controls behavior of multiple lints, e.g.missing_panics_doc
andmissing_safety_doc
.However, I would like to check even private items for safety docs but I don't care as much about panics. Especially since we also lint tests where I often use panics.
Proposal
Add more fine-grained options which can override
check-private-items
:check-private-items-missing-panics-doc
check-private-items-missing-safety-doc
Then
clippy.toml
such aswould work like this:
Version
No response
Additional Labels
@rustbot label +C-enhancement
The text was updated successfully, but these errors were encountered: