mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +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;
|
pub struct %s;
|
||||||
);
|
);
|
||||||
impl Violation for %s {
|
impl Violation for %s {
|
||||||
|
#[derive_message_formats]
|
||||||
fn message(&self) -> String {
|
fn message(&self) -> String {
|
||||||
todo!("Implement message")
|
todo!("implement message");
|
||||||
}
|
format!("TODO: write message")
|
||||||
|
|
||||||
fn placeholder() -> Self {
|
|
||||||
%s
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
% (name, name, name)
|
% (name, name)
|
||||||
)
|
)
|
||||||
fp.write("\n")
|
fp.write("\n")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue