Commit Graph

5849 Commits

Author SHA1 Message Date
Erik Krogh Kristensen
35b5b660c5 renamed "rangeQuantifierUpperBound" to "range_quantifier_upper_bound" 2020-09-04 11:52:07 +02:00
Erik Krogh Kristensen
defbee2567 renamed "rangeQuantifierLowerBound" to "range_quantifier_lower_bound" 2020-09-04 11:52:06 +02:00
Erik Krogh Kristensen
0962af51d2 renamed "isGreedy" to "is_greedy" 2020-09-04 11:52:05 +02:00
Erik Krogh Kristensen
37432232b8 renamed "regexpParseErrors" to "regexp_parse_errors" 2020-09-04 11:52:05 +02:00
Erik Krogh Kristensen
fdb615fb91 renamed "jsParseErrors" to "js_parse_errors" 2020-09-04 11:52:04 +02:00
Erik Krogh Kristensen
b5d6cbd5b3 renamed "hasAssertsKeyword" to "has_asserts_keyword" 2020-09-04 11:52:03 +02:00
Erik Krogh Kristensen
fc7f024147 renamed "isOptionalParameterDeclaration" to "is_optional_parameter_declaration" 2020-09-04 11:52:02 +02:00
Erik Krogh Kristensen
3f3b4d65bd renamed "hasDefiniteAssignmentAssertion" to "has_definite_assignment_assertion" 2020-09-04 11:52:01 +02:00
Erik Krogh Kristensen
8ae48bbf8b renamed "isOptionalMember" to "is_optional_member" 2020-09-04 11:52:01 +02:00
Erik Krogh Kristensen
8c969f0539 renamed "hasTypeKeyword" to "has_type_keyword" 2020-09-04 11:52:00 +02:00
Erik Krogh Kristensen
007447b0ad renamed "hasReadonlyKeyword" to "has_readonly_keyword" 2020-09-04 11:51:59 +02:00
Erik Krogh Kristensen
4b74c1d4b3 renamed "hasProtectedKeyword" to "has_protected_keyword" 2020-09-04 11:51:58 +02:00
Erik Krogh Kristensen
719c0d2030 renamed "hasPrivateKeyword" to "has_private_keyword" 2020-09-04 11:51:58 +02:00
Erik Krogh Kristensen
82ddbc3b47 renamed "hasPublicKeyword" to "has_public_keyword" 2020-09-04 11:51:57 +02:00
Erik Krogh Kristensen
29e5bdb4d7 renamed "isAbstractClass" to "is_abstract_class" 2020-09-04 11:51:56 +02:00
Erik Krogh Kristensen
a0afcaa3a8 renamed "isConstEnum" to "is_const_enum" 2020-09-04 11:51:55 +02:00
Erik Krogh Kristensen
ac345fbecd renamed "isAbstractMember" to "is_abstract_member" 2020-09-04 11:51:54 +02:00
Erik Krogh Kristensen
2c3b3e7173 renamed "isStatic" to "is_static" 2020-09-04 11:51:54 +02:00
Erik Krogh Kristensen
10439fb522 renamed "isMethod" to "is_method" 2020-09-04 11:51:53 +02:00
Erik Krogh Kristensen
6382f6d202 renamed "isComputed" to "is_computed" 2020-09-04 11:51:52 +02:00
Erik Krogh Kristensen
2204b1e92d renamed "isArgumentsObject" to "is_arguments_object" 2020-09-04 11:51:51 +02:00
Erik Krogh Kristensen
3fb561d72b renamed "isDelegating" to "is_delegating" 2020-09-04 11:51:50 +02:00
Erik Krogh Kristensen
ba600acd5e renamed "arraySize" to "array_size" 2020-09-04 11:51:50 +02:00
Erik Krogh Kristensen
83b89fa52d renamed "exprContainers" to "expr_containers" 2020-09-04 11:51:49 +02:00
Erik Krogh Kristensen
30ba7d29a1 renamed "enclosingStmt" to "enclosing_stmt" 2020-09-04 11:51:48 +02:00
Erik Krogh Kristensen
99f8887844 renamed "isForAwaitOf" to "is_for_await_of" 2020-09-04 11:51:47 +02:00
Erik Krogh Kristensen
621e702e99 renamed "hasDeclareKeyword" to "has_declare_keyword" 2020-09-04 11:51:46 +02:00
Erik Krogh Kristensen
49b71d515c renamed "isInstantiated" to "is_instantiated" 2020-09-04 11:51:45 +02:00
Erik Krogh Kristensen
76f728aacd renamed "jumpTargets" to "jump_targets" 2020-09-04 11:51:45 +02:00
Erik Krogh Kristensen
059d72858a renamed "stmtContainers" to "stmt_containers" 2020-09-04 11:51:44 +02:00
Erik Krogh Kristensen
07fd747069 renamed "isClosureModule" to "is_closure_module" 2020-09-04 11:51:43 +02:00
Erik Krogh Kristensen
2a2901f6ae renamed "isES2015Module" to "is_es2015_module" 2020-09-04 11:51:42 +02:00
Erik Krogh Kristensen
8782c2b8e0 renamed "isNodejs" to "is_nodejs" 2020-09-04 11:51:41 +02:00
Erik Krogh Kristensen
4fb6d6060c renamed "isModule" to "is_module" 2020-09-04 11:51:40 +02:00
Erik Krogh Kristensen
39ff727ec7 renamed "isExterns" to "is_externs" 2020-09-04 11:51:39 +02:00
Erik Krogh Kristensen
05c38da2cb add section to Aliases.qll for deprecated dbscheme relations 2020-09-04 11:51:38 +02:00
Erik Krogh Kristensen
41eed43aa4 create upgrade folder for renamings 2020-09-04 11:51:38 +02:00
Asger Feldthaus
961554eb6f JS: Autoformat 2020-09-04 10:42:26 +01:00
Erik Krogh Kristensen
fd05156298 clarifying comment on the last jQuery inconsistency 2020-09-04 10:30:42 +02:00
Erik Krogh Kristensen
b18f51806c regain the lost property presence result 2020-09-04 10:30:38 +02:00
Asger F
0704be4d41 Update javascript/ql/src/semmle/javascript/TypeScript.qll
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
2020-09-04 08:55:31 +01:00
Max Schaefer
252902d245 JavaScript: Restructure API-graph tests.
With the old test runner we cannot have `VerifyAssertions.qlref`s for each individual test that reference a shared `VerifyAssertions.ql` in the parent directory, since it doesn't like nested tests.

Instead, we have to turn `VerifyAssertions.ql` into `VerifyAssertions.qll`, and each `VerifyAsssertions.qlref` into a `VerifyAssertions.ql` that imports it.

But then that doesn't work with our old directory structure, since the import path would have to contain the invalid identifier `library-tests`. As a workaround, I have moved the API graph tests into a directory without dashes in its path.
2020-09-04 08:43:15 +01:00
Erik Krogh Kristensen
6fccf5aa70 use isLikelyIntentionalHtmlSink in the sink instead of in the where clause 2020-09-04 09:26:03 +02:00
CodeQL CI
58f51899c9 Merge pull request #4173 from erik-krogh/targetBlankFP
Approved by esbena
2020-09-04 08:21:22 +01:00
Max Schaefer
cb433a0c0f JavaScript: Add test for custom API-graph entry points. 2020-09-03 22:28:09 +01:00
Max Schaefer
58702e4c52 JavaScript: Rename EntryPoint.getADef to getARhs. 2020-09-03 22:28:09 +01:00
Max Schaefer
f3173ca968 JavaScript: Add a few unit tests for API graphs. 2020-09-03 22:28:09 +01:00
Max Schaefer
985399f4cf JavaScript: Move ApiGraphs library to semmle.javascript and import it from javascript.qll. 2020-09-03 22:28:09 +01:00
Max Schaefer
aaa70e4ad3 JavaScript: Make API-graph edge labels accessible outside ApiGraphs.qll. 2020-09-03 22:28:09 +01:00
Max Schaefer
7239f1fb6f JavaScript: Distinguish more carefully between def and use nodes in API graphs.
In particular, we now have two different kinds of module features: module definitions and module uses.

For the most part, `API::Definition`s correspond to right-hand sides in the data-flow graph, and `API::Use`s correspond to references. However, module definitions can have references (via the CommonJS `module` variable), and so can their exports (via `module.exports` or `exports`). Note that this is different from references to uses of the module, which are simply imports.
2020-09-03 22:28:09 +01:00