You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Linter does not report undefined on += and similar operators #1671
We don't consider assignment operators to be actual assignments, since they'd need to have some sort of assignment beforehand to then add to. We could make this more loose but it might be strange.
I misinterpreted when I wrote this comment; the title says that this is an issue (not that it should be okay and make dest defined).
Activity
jakebailey commentedon Oct 11, 2019
We don't consider assignment operators to be actual assignments, since they'd need to have some sort of assignment beforehand to then add to. We could make this more loose but it might be strange.I misinterpreted when I wrote this comment; the title says that this is an issue (not that it should be okay and make
destdefined).bsandrow commentedon Oct 23, 2019
Shouldn't
destbe marked as an undefined variable on the+=line if you want to keep that classification?jakebailey commentedon Oct 23, 2019
Yes, that's what this bug is about, that it should. The linter is likely just not walking the lefthand side of these augmented assignments.