Code inspection: Use discard assignment
Last modified: 15 May 2024tip
This inspection suggests using the discard syntax _
for intentionally unused variables.
It employs various heuristics to detect code patterns that existed before the introduction of discard assignment to deal with intentionally unused variables. A quick-fix is offered to rewrite the code more idiomatically using discards.