Skip to content

Conversation

jeparlefrancais
Copy link
Contributor

@jeparlefrancais jeparlefrancais commented Jun 19, 2025

Closes #209

Fixed the remove_unused_variable rule to correctly handle trailing unassigned but used variables.

  • add entry to the changelog

Copy link

Coverage after merging fix-remove-unused-variable-bug into main will be

86.76%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
src/rules
   remove_unused_variable.rs97.14%100%100%96.82%146, 177–180, 182–183

@jeparlefrancais jeparlefrancais merged commit 841ff6a into main Jun 19, 2025
6 checks passed
@jeparlefrancais jeparlefrancais deleted the fix-remove-unused-variable-bug branch June 19, 2025 20:59
@jeparlefrancais jeparlefrancais mentioned this pull request Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove_unused_variable incorrect behavior
1 participant