Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f8d8a9b

Browse files
max-schaeferjf205
andauthored
Apply suggestions from code review
Co-authored-by: James Fletcher <[email protected]>
1 parent 7e3feb4 commit f8d8a9b

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

docs/codeql/codeql-language-guides/specifying-additional-remote-flow-sources-for-javascript.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,23 @@ will then automatically pick up this new source of remote flow.
2222
However, this approach requires writing QL code and adding it to the standard library, which is not
2323
always easy to do. Instead, you can also add a JSON file describing custom sources of untrusted
2424
input to your code base and have it picked up without needing to modify the standard library. This
25-
JSON file can be hand-written or generated by another tool, but note that these customizations
26-
are specific to the code base containing the JSON file. To use them in other code bases, you need
27-
to copy over the JSON file.
25+
JSON file can be hand-written or generated by another tool. The custom remote flow sources are only available to the code base containing the JSON file. This means that you need to copy the JSON file into each code base that requires the customizations.
2826

2927
Specification format
3028
--------------------
3129

32-
The JSON file must be called ``codeql-javascript-remote-flow-sources.json`` (case-sensitive) and
30+
The JSON file must be called ``codeql-javascript-remote-flow-sources.json`` and
3331
can be located anywhere in your code base. It should consist of a single JSON object. The property
3432
names of this object are interpreted as `source types`. The values they map to should be arrays of
3533
strings. Each string should be of the form ``window.props``, where ``props`` is a sequence of one
36-
or more property names separated by dots, specifying that any value reachable from the global window
34+
or more property names separated by dots. This notation specifies that any value reachable from the global window
3735
object by this sequence of property names should be considered as untrusted user input of the
3836
associated source type.
3937

4038
Example
4139
-------
4240

43-
As an example, consider the following specification:
41+
Consider the following specification:
4442

4543
.. code-block:: json
4644

0 commit comments

Comments
 (0)