Skip to content

Commit bf11e2c

Browse files
committed
Fix code block
1 parent 9b43b49 commit bf11e2c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,14 @@ Note that packages hosted at ``gopkg.in`` use a slightly different syntax: the m
298298
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.
299299

300300
.. code-block:: yaml
301-
extensions:
302-
- addsTo:
303-
pack: codeql/go-all
304-
extensible: sinkModel
305-
data:
306-
- ["fixed-version:github.com/couchbase/gocb", "Cluster", True, "ExecuteAnalyticsQuery", "", "", "Argument[0]", "nosql-injection", "manual"]
307-
- ["github.com/couchbase/gocb/v2", "Cluster", True, "AnalyticsQuery", "", "", "Argument[0]", "nosql-injection", "manual"]
301+
302+
extensions:
303+
- addsTo:
304+
pack: codeql/go-all
305+
extensible: sinkModel
306+
data:
307+
- ["fixed-version:github.com/couchbase/gocb", "Cluster", True, "ExecuteAnalyticsQuery", "", "", "Argument[0]", "nosql-injection", "manual"]
308+
- ["github.com/couchbase/gocb/v2", "Cluster", True, "AnalyticsQuery", "", "", "Argument[0]", "nosql-injection", "manual"]
308309
309310
Package grouping
310311
~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)