mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-24 13:33:50 +00:00
Require documentation for all lint rules (#7751)
## Summary Now that all rules have documentation, we can enforce the requirement in our tests.
This commit is contained in:
parent
6a4437ea81
commit
1df8101b9e
3 changed files with 17 additions and 4 deletions
|
@ -416,6 +416,8 @@ fn register_rules<'a>(input: impl Iterator<Item = &'a Rule>) -> TokenStream {
|
|||
}
|
||||
|
||||
quote! {
|
||||
use ruff_diagnostics::Violation;
|
||||
|
||||
#[derive(
|
||||
EnumIter,
|
||||
Debug,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue