Skip to content

Rule for pointless assignments #17714

Answered by mdjermanovic
ChristophP asked this question in Q&A
Discussion options

You must be logged in to vote

So I found myself wanting a rule that finds cases of values being assigned without being read before they are reassigned.
I looked around a bit but couldn't find anything like this. Does anyone know if a rule like this exists? If not, would that be considered a good addition?

It currently doesn't exist in the core, but a proposal for this rule has been accepted (#17559) and we are already working on it in #17625.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ChristophP
Comment options

Answer selected by ChristophP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants