Esben Sparre Andreasen
54e2215db4
JS: support require in isReactImportForJSX
2018-11-28 13:16:55 +01:00
Esben Sparre Andreasen
737a816e6f
JS: refactor isReactImportForJSX
2018-11-28 13:16:55 +01:00
semmle-qlci
4e72a08b8d
Merge pull request #507 from esben-semmle/js/mixed-static-intance-this-access-inheritance
...
Approved by xiemaisi
2018-11-21 16:07:25 +00:00
Esben Sparre Andreasen
caea6212ed
JS: use inheritance in js/mixed-static-instance-this-access
2018-11-21 09:48:37 +01:00
Esben Sparre Andreasen
01ad9ed8bc
JS: address review comments
2018-11-21 09:19:20 +01:00
Esben Sparre Andreasen
82fc8ae32a
JS: support indirection with extra args in js/missing-this-qualifier
2018-11-20 11:29:03 +01:00
Max Schaefer
1b59a28be0
JavaScript: Downgrade a few "error" rules to "warning".
...
For all of these queries, the results we tend to see in practice are certainly worth investigating, but aren't crashing bugs, so making them warnings seems more appropriate.
2018-11-19 09:09:26 +00:00
Max Schaefer
663bdd60a0
Merge pull request #396 from esben-semmle/js/unconditional-property-override
...
JS: add query: js/unconditional-property-override
2018-11-12 17:10:32 +00:00
Esben Sparre Andreasen
2033bf81cc
JS: address docstring review comments
2018-11-12 10:03:08 +01:00
Esben Sparre Andreasen
ca215391b4
JS: substitute Assignment for DataFlow::PropWrite
2018-11-08 13:23:19 +01:00
Esben Sparre Andreasen
d813a7cad2
JS: push negation
2018-11-08 13:23:19 +01:00
Esben Sparre Andreasen
470c241c82
JS: use range instead of ad hoc LT/GT
2018-11-08 13:23:19 +01:00
Esben Sparre Andreasen
1389009388
JS: naming and doc cleanups
2018-11-08 13:23:19 +01:00
Esben Sparre Andreasen
33a297c829
JS: add query: js/useless-assignment-to-property
2018-11-08 13:23:19 +01:00
Esben Sparre Andreasen
6ee47c437e
JS: generalize and move DeadStoreOfLocal.qhelp to DeadStore.qhelp
2018-11-08 13:23:19 +01:00
Esben Sparre Andreasen
cacb8fdee0
JS: move DeadStoreOfLocal::isDefaultInit to separate module
2018-11-08 13:23:19 +01:00
Esben Sparre Andreasen
43e215c7af
JS: replace .stripParens query uses w. .getUnderlyingValue
2018-11-07 09:32:02 +01:00
semmle-qlci
f00863fb58
Merge pull request #383 from esben-semmle/js/unused-eval-variable
...
Approved by xiemaisi
2018-10-31 10:42:55 +00:00
Esben Sparre Andreasen
74642b9b81
JS: whitelist js/unused-local-variable near direct eval calls
2018-10-30 13:08:24 +01:00
semmle-qlci
8b866ade0e
Merge pull request #373 from asger-semmle/jsx-factory-import
...
Approved by xiemaisi
2018-10-30 10:35:49 +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
ec1722c4db
JS: add utility SyntacticConstants::isNullOrUndefined
2018-10-29 09:22:53 +01:00
Asger F
3bd91bdf08
JS: introduce common class for Babel plugins
2018-10-26 12:55:37 +01:00
Asger F
91943ae2cb
JS: support transform-react-jsx plugin
2018-10-26 12:06:56 +01:00
Esben Sparre Andreasen
9c2ca9a7fa
JS: make js/unused-local-variable flag import statements
2018-10-18 11:49:45 +02: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
Max Schaefer
06f43748b8
JavaScript: Generalize description of js/unused-local-variable.
...
The query also flags unused imports, functions and classes (which, of course, are just unused variables at the end of the day). This is now made more explicit in the description.
2018-08-06 09:34:38 +01:00
Pavel Avgustinov
b55526aa58
QL code and tests for C#/C++/JavaScript.
2018-08-02 17:53:23 +01:00