Esben Sparre Andreasen
408ac9878b
JS: document limitation of js/useless-assignment-to-local
2019-03-12 15:30:28 +01:00
Max Schaefer
3cabc12be3
JavaScript: Teach InvalidExport to never flag module.exports = exports = ... and similar.
...
This was previously flagged if `exports` wasn't used any further. While it's true that the assignment to `exports` is redundant in this case, the assignment is also flagged by DeadStorOfLocal, so there is no point in InvalidExport flagging it as well.
2019-03-04 09:53:37 +00:00
Esben Sparre Andreasen
90c77134af
JS: make use of getUnderlyingValue in js/useless-assignment-to-local
2018-10-29 09:22:53 +01:00
Esben Sparre Andreasen
fbd3a097a2
JS: add misc. tests
2018-10-29 09:22:53 +01:00
Esben Sparre Andreasen
595fe217dd
JS: support noop parentheses in js/useless-assignment-to-local
...
The syntatic recognizer `isNullOrUndef` did not handle expressions
that were wrapped in parentheses.
This eliminates some results here:
https://lgtm.com/projects/g/vuejs/vue/alerts?mode=tree&ruleFocus=7900088
2018-10-02 09:31:32 +02:00
Asger F
3d444f3dc6
JavaScript: fix CFG for EnhancedForStmt
2018-09-11 12:15:01 +01:00
Pavel Avgustinov
b55526aa58
QL code and tests for C#/C++/JavaScript.
2018-08-02 17:53:23 +01:00