scalacenter / scalafix

Refactoring and linting tool for Scala
https://scalacenter.github.io/scalafix/
BSD 3-Clause "New" or "Revised" License
826 stars 186 forks source link

RemoveUnused: guard Term.Block RHS in unused Defn #1978

Closed bjaglin closed 5 months ago

bjaglin commented 5 months ago

Closes https://github.com/scalacenter/scalafix/issues/914

Adds locally to Term.Block RHS to avoid affecting lines above, precisely as described in the scaladoc example.