We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e88d5f commit 31a13d9Copy full SHA for 31a13d9
scripts/add_rule.py
@@ -92,7 +92,7 @@ def main(*, name: str, prefix: str, code: str, linter: str) -> None:
92
with (rules_dir / f"{rule_name_snake}.rs").open("w") as fp:
93
fp.write(
94
f"""\
95
-use ruff_diagnostics::Violation;
+use crate::Violation;
96
use ruff_macros::{{ViolationMetadata, derive_message_formats}};
97
98
use crate::checkers::ast::Checker;
0 commit comments