Skip to content

Commit f6900bd

Browse files
committed
JS: Rephrase a few sentences
1 parent 2a57b00 commit f6900bd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/codeql/codeql-language-guides/customizing-library-models-for-javascript.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ In this example, we'll show how to add the following argument, passed to **execa
4444
import { shell } from "execa";
4545
shell(cmd); // <-- add 'cmd' as a taint sink
4646
47-
This sink is already recognized by the CodeQL JS analysis, but for the sake of this example we'll show how it could be added as an extension.
48-
49-
This can be achieved with the following data extension:
47+
Note that this sink is already recognized by the CodeQL JS analysis, but for this example, you could use the following data extension:
5048

5149
.. code-block:: yaml
5250
@@ -79,7 +77,7 @@ In this example, we'll show how the **event.data** expression below could be mar
7977
let data = event.data; // <-- add 'event.data' as a taint source
8078
});
8179
82-
This source is already known by the CodeQL JS analysis, but we'll show how it could be added as an extension. This can be achieved with the following extension:
80+
Note that this source is already known by the CodeQL JS analysis, but for this example, you could use the following data extension:
8381

8482
.. code-block:: yaml
8583
@@ -220,7 +218,7 @@ In this example, we'll show how to add flow through calls to `decodeURIComponent
220218
221219
let y = decodeURIComponent(x); // add taint flow from 'x' to 'y'
222220
223-
This flow is already recognized by the CodeQL JS analysis, but this is how it could be added with an extension:
221+
Note that this flow is already recognized by the CodeQL JS analysis, but for this example, you could use the following data extension:
224222

225223
.. code-block:: yaml
226224
@@ -258,7 +256,7 @@ In this example, we'll show how to add flow through calls to **forEach** from th
258256
259257
require('underscore').forEach([x, y], (v) => { ... }); // add value flow from 'x' and 'y' to 'v'
260258
261-
This flow is already recognized by the CodeQL JS analysis, but we'll show how it could be added with an extension.
259+
Note that this flow is already recognized by the CodeQL JS analysis, but for this example, you could use the following data extension:
262260

263261
.. code-block:: yaml
264262

0 commit comments

Comments
 (0)