Skip to content

Commit

Permalink
respect dummy variable setting
Browse files Browse the repository at this point in the history
  • Loading branch information
diceroll123 committed Mar 15, 2024
1 parent 2bc5498 commit 173b04f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ fn check_expr(checker: &mut Checker, expr: &Expr, names: &mut Vec<String>) {
}
}
Expr::Name(ast::ExprName { id, .. }) => {
if *id == "_" {
// Ignore `_` assignments
if checker.settings.dummy_variable_rgx.is_match(id) {
// Ignore dummy variable assignments
return;
}
if names.contains(id) {
Expand Down

0 comments on commit 173b04f

Please sign in to comment.