mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +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
|
@ -4,12 +4,12 @@
|
|||
/// `--select`. For pylint this is e.g. C0414 and E0118 but also C and E01.
|
||||
use std::fmt::Formatter;
|
||||
|
||||
use strum_macros::{AsRefStr, EnumIter};
|
||||
|
||||
use crate::registry::{AsRule, Linter};
|
||||
use crate::rule_selector::is_single_rule_selector;
|
||||
use crate::rules;
|
||||
|
||||
use strum_macros::{AsRefStr, EnumIter};
|
||||
|
||||
#[derive(PartialEq, Eq, PartialOrd, Ord)]
|
||||
pub struct NoqaCode(&'static str, &'static str);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue