mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-09 22:25:20 +00:00
fix: Update add_rule.py to account for 16e79c8d
This commit is contained in:
parent
e1d6ac3265
commit
16c81f75c2
1 changed files with 4 additions and 6 deletions
|
@ -65,16 +65,14 @@ pub fn {snake_case(name)}(checker: &mut Checker) {{}}
|
|||
pub struct %s;
|
||||
);
|
||||
impl Violation for %s {
|
||||
#[derive_message_formats]
|
||||
fn message(&self) -> String {
|
||||
todo!("Implement message")
|
||||
}
|
||||
|
||||
fn placeholder() -> Self {
|
||||
%s
|
||||
todo!("implement message");
|
||||
format!("TODO: write message")
|
||||
}
|
||||
}
|
||||
"""
|
||||
% (name, name, name)
|
||||
% (name, name)
|
||||
)
|
||||
fp.write("\n")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue