mirror of https://github.com/astral-sh/ruff
Fix `diagnostics` variable name in `add_plugin.py` script (#5317)
## Summary Fix a variable name in the `add_plugin.py` script. ## Test Plan I don't think there are any tests for the scripts, other than manual confirmation
This commit is contained in:
parent
8bc7378002
commit
e0e1d13d9f
|
|
@ -45,7 +45,7 @@ mod tests {
|
||||||
|
|
||||||
fn rules(rule_code: Rule, path: &Path) -> Result<()> {
|
fn rules(rule_code: Rule, path: &Path) -> Result<()> {
|
||||||
let snapshot = format!("{}_{}", rule_code.as_ref(), path.to_string_lossy());
|
let snapshot = format!("{}_{}", rule_code.as_ref(), path.to_string_lossy());
|
||||||
let messages = test_path(
|
let diagnostics = test_path(
|
||||||
Path::new("%s").join(path).as_path(),
|
Path::new("%s").join(path).as_path(),
|
||||||
&settings::Settings::for_rule(rule_code),
|
&settings::Settings::for_rule(rule_code),
|
||||||
)?;
|
)?;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue