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:
Edgar R. M 2023-06-22 14:06:47 -06:00 committed by GitHub
parent 8bc7378002
commit e0e1d13d9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ mod tests {
fn rules(rule_code: Rule, path: &Path) -> Result<()> {
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(),
&settings::Settings::for_rule(rule_code),
)?;