Erik Krogh Kristensen
99213b94f5
detect uses of jsxFactory and jsxFragmentFactory in js/unused-local-variable
2020-10-06 12:23:15 +02:00
Erik Krogh Kristensen
f1dc36244c
update tests and queries that used getId()
2020-08-05 14:32:09 +00:00
Esben Sparre Andreasen
8af501d4d5
JS: avoid double reporting dead code with js/unused-variable
2019-02-21 21:44:28 +01:00
Esben Sparre Andreasen
91dccc3356
JS: add query js/unused-property
2019-02-21 21:44:28 +01:00
Max Schaefer
31bb39a810
JavaScript: Autoformat all QL files.
2019-01-07 10:15:45 +00:00
Max Schaefer
4d186e0edc
JavaScript: Teach Unused{Variable,Parameter} to ignore variables with leading underscore.
2018-12-11 08:50:50 +00:00
Esben Sparre Andreasen
f3889e715e
JS: simplify isReactImportForJSX to isReactForJSX
2018-11-28 15:06:53 +01:00
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
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
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
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