Erik Krogh Kristensen
7d6700a943
Merge branch 'main' into depMore
2022-03-14 11:49:18 +01:00
Erik Krogh Kristensen
54760081dc
add pointers to the qldoc of deprecated predicates
2022-03-14 10:10:38 +01:00
Erik Krogh Kristensen
4fc85a791d
deprecate DefiningIdentifier, it was not used in any query
2022-03-13 23:54:53 +01:00
Erik Krogh Kristensen
69353bb014
patch upper-case acronyms to be PascalCase
2022-03-11 11:10:33 +01:00
Erik Krogh Kristensen
a1c5724be7
fix most ql-for-ql warnings in JS
2022-02-11 17:57:37 +01:00
Erik Krogh Kristensen
5780161b2c
fix most issues found by ql/class-doc-style in JS
2022-01-20 15:10:16 +01:00
Asger Feldthaus
d52b2bd863
JS: Fix FP in ˚MixedStaticInstanceThisAccess
2021-10-29 14:16:54 +02:00
Andrew Eisenberg
57ef989a89
Fixes compile errors by moving files
...
The two files moved in this commit are referenced from the
javascript/lib qlpack, but they are located in the
javascript/src qlpack. This causes compile errors when running
compile-ish commands for javascript queries. Moving the
files fixes it.
2021-10-05 14:00:02 -07:00
Asger Feldthaus
8a50d99f33
JS: Treat GeneratedCodeExpr as DirectEval in UnusedVariable.ql
2021-08-11 12:36:35 +02:00
Chris Smowton
455b840712
Fix all dead qhelp links
...
For those documents with no obvious new home I've pointed the links to the Internet Archive.
2021-04-23 15:20:21 +01:00
Asger Feldthaus
929d9da4b4
JS: Migrate to new JSON API
2021-04-13 10:29:13 +01:00
Marcono1234
5a8ffa5a85
Use .inc.qhelp extension for included help files
2021-03-04 22:04:48 +01:00
Asger Feldthaus
1637b72092
JS: Ignore Angular templates in a few non-security queries
2021-01-27 11:02:19 +00:00
Erik Krogh Kristensen
9112d417e4
avoid using getFirstToken for sorting
2020-10-15 20:57:29 +02:00
Erik Krogh Kristensen
96db3459d0
remove stray todo
2020-10-13 11:48:06 +02:00
Erik Krogh Kristensen
99213b94f5
detect uses of jsxFactory and jsxFragmentFactory in js/unused-local-variable
2020-10-06 12:23:15 +02:00
Asger F
2c0e9f0c86
Merge pull request #4186 from github/rc/1.25
...
Mergeback: 1.25 -> main
2020-09-02 15:12:25 +01:00
Erik Krogh Kristensen
a1394c363a
more consistent naming of predicates
2020-08-11 14:49:51 +02:00
Erik Krogh Kristensen
2974c4923f
introduce and use isAPropertyWrite
2020-08-11 14:43:25 +02:00
Erik Krogh Kristensen
8f6721e087
add explanation for purity-check in getANodeAfterWrite/getANodeBeforeWrite and move them into an internal module
2020-08-11 14:40:13 +02:00
Erik Krogh Kristensen
9e768375ce
mention purity check in docstring for maybeAssignsAccessedPropInBlock
2020-08-11 14:40:02 +02:00
Erik Krogh Kristensen
374b1b7b97
apply manual magic in both cases in maybeAssignsAccessedPropInBlock
2020-08-11 14:24:49 +02:00
Erik Krogh Kristensen
f1dc36244c
update tests and queries that used getId()
2020-08-05 14:32:09 +00:00
Erik Krogh Kristensen
eccfade928
rewrite parts of the DeadStoreOfProperty query
2020-08-04 10:25:05 +02:00
Erik Krogh Kristensen
e629e6bbb0
changes based on review
2020-08-04 10:25:05 +02:00
Erik Krogh Kristensen
97aa3cc8a3
rewrite DeadStoreOfProperty to improve worst-case complexity
2020-08-04 10:25:05 +02:00
Max Schaefer
a803120414
Lower precision for a number of queries.
...
These queries are currently run by default, but don't have their results displayed.
Looking through results on LGTM.com, they are either false positives (e.g., `BitwiseSignCheck` which flags many perfectly harmless operations and `CompareIdenticalValues` which mostly flags NaN checks) or harmless results that developers are unlikely to care about (e.g., `EmptyArrayInit` or `MisspelledIdentifier`).
With this PR, the only queries that are still run but not displayed are security queries, where different considerations may apply.
2020-05-19 13:43:17 +01:00
Dave Bartolomeo
06783938d3
JavaScript: Rename sanity -> consistency
2020-05-11 13:46:12 -04:00
Erik Krogh Kristensen
45797dc729
autoformat
2020-03-31 13:53:00 +02:00
Erik Krogh Kristensen
3784b180d8
changes based on review
2020-03-31 12:07:55 +02:00
Erik Krogh Kristensen
40fd1825e9
autoformat
2020-03-31 09:08:32 +02:00
Erik Krogh Kristensen
7938bc4ed0
improve alert message for js/useless-assignment-to-local
2020-03-30 20:19:50 +02:00
Asger Feldthaus
53569453ba
JS: Autoformat again
2020-03-04 19:28:24 +00:00
Erik Krogh Kristensen
68fb8c52e9
check the type of the this-type, instead of the AST-node
2020-03-02 16:35:16 +01:00
Erik Krogh Kristensen
e0fcc4af6a
handle this parameters when finding unreachable overloads
2020-03-02 16:26:00 +01:00
Asger Feldthaus
fefcf1a7a6
JS: Autoformat everything
2020-02-27 09:41:01 +00:00
Esben Sparre Andreasen
96748ca32e
JS: sharpen js/duplicate-parameter-name
2020-01-06 08:51:00 +01:00
semmle-qlci
0dcb189e67
Merge pull request #2162 from xiemaisi/js/remove-deprecated-queries
...
Approved by esben-semmle
2019-10-22 07:15:58 +01:00
Max Schaefer
55fb86d618
JavaScript: Remove deprecated queries.
...
These queries have all been deprecated since 1.17 (released in July 2018). I think it's time to say goodbye.
2019-10-21 14:42:02 +01:00
Erik Krogh Kristensen
9eda120de4
implement a new query to detect unreachable overloaded methods in TypeScript
2019-10-21 13:34:42 +02:00
Erik Krogh Kristensen
14cc352bd9
small documentation change based on review
2019-10-04 15:26:32 +02:00
Erik Krogh Kristensen
144e831515
mention that "function" should not be used when declaring a call signature in an interface
2019-10-04 15:05:11 +02:00
Erik Krogh Kristensen
bf1fd83851
fix typo in predicate name
2019-10-04 15:04:39 +02:00
Erik Krogh Kristensen
b741a65e9b
documentation changes based on review
...
Co-Authored-By: shati-patel <42641846+shati-patel@users.noreply.github.com >
2019-10-04 14:42:16 +02:00
Erik Krogh Kristensen
c8d60c9e2a
update @description of js/suspicious-method-name-declaration
2019-10-04 11:40:33 +02:00
Erik Krogh Kristensen
712a337bdd
qhelp adjustments based on code-review
2019-10-04 11:06:11 +02:00
Erik Krogh Kristensen
ced5e3ea29
qhelp adjustment from code-review
...
Co-Authored-By: Esben Sparre Andreasen <42067045+esben-semmle@users.noreply.github.com >
2019-10-04 11:02:15 +02:00
Erik Krogh Kristensen
2b5e3aebb7
change tabs to spaces
2019-10-02 15:03:38 +02:00
Erik Krogh Kristensen
0c46e5c1a8
update description of js/suspicious-method-name-declaration
2019-10-02 15:01:25 +02:00
Erik Krogh Kristensen
c0b7538cf0
made the blacklist for methods named "function" work again
2019-10-02 14:56:41 +02:00