Add rule documentation template to `scripts/add_rule.py` (#5519)

This commit is contained in:
Evan Rittenhouse 2023-07-04 20:57:26 -05:00 committed by GitHub
parent 26a268a3ec
commit 5100c56273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -98,6 +98,17 @@ use ruff_macros::{{derive_message_formats, violation}};
use crate::checkers::ast::Checker;
/// ## What it does
///
/// ## Why is this bad?
///
/// ## Example
/// ```python
/// ```
///
/// Use instead:
/// ```python
/// ```
#[violation]
pub struct {name};