Skip to content

Commit f02ccd3

Browse files
committed
(Trivial) Remove trailing spaces in some docs
1 parent 6e0bee7 commit f02ccd3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ We need to add a tuple to the ``summaryModel``\(package, type, subtypes, name, s
171171
pack: codeql/go-all
172172
extensible: summaryModel
173173
data:
174-
- ["slices", "", False, "Max", "", "", "Argument[0].ArrayElement", "ReturnValue", "value", "manual"]
174+
- ["slices", "", False, "Max", "", "", "Argument[0].ArrayElement", "ReturnValue", "value", "manual"]
175175
176176
Since we are adding flow through a method, we need to add tuples to the ``summaryModel`` extensible predicate.
177177
The first row defines flow from the first argument (``a`` in the example) to the return value (``max`` in the example).
@@ -307,7 +307,7 @@ This example shows how the Go query pack models flow through a method for a simp
307307
host := u.Hostname() // There is taint flow from u to host.
308308
...
309309
}
310-
310+
311311
We need to add a tuple to the ``summaryModel``\(package, type, subtypes, name, signature, ext, input, output, kind, provenance) extensible predicate by updating a data extension file:
312312

313313
.. code-block:: yaml
@@ -387,7 +387,7 @@ Note that packages hosted at ``gopkg.in`` use a slightly different syntax: the m
387387
To write models that only apply to ``github.com/couchbase/gocb/v2``, it is sufficient to include the major version suffix (``/v2``) in the package column. To write models that only apply to ``github.com/couchbase/gocb``, you may prefix the package column with ``fixed-version:``. For example, here are two models for a method that has changed name from v1 to v2.
388388

389389
.. code-block:: yaml
390-
390+
391391
extensions:
392392
- addsTo:
393393
pack: codeql/go-all

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Python analysis can be customized by adding library models in data extension fil
99

1010
A data extension for Python is a YAML file of the form:
1111

12-
.. code-block:: yaml
12+
.. code-block:: yaml
1313
1414
extensions:
1515
- addsTo:
@@ -177,7 +177,7 @@ Note that this source is already known by the CodeQL Python analysis, but for th
177177
The **!** at the end of the type name indicates that we are looking for the class itself rather than instances of this class.
178178

179179
- The second column is an access path that is evaluated from left to right, starting at the values that were identified by the first column.
180-
180+
181181
- **Call** selects calls to the class. That is, constructor calls.
182182
- **Argument[0,upload_to:]** selects the first positional argument, or the named argument named **upload_to**. Note that the colon at the end of the argument name indicates that we are looking for a named argument.
183183
- **Parameter[1]** selects the second parameter of the callback function, which is the parameter receiving the filename.

0 commit comments

Comments
 (0)