Skip to content

Commit ed44db7

Browse files
committed
Explain StringOps::Formatting::Range, with a link
1 parent 549baba commit ed44db7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/codeql/codeql-language-guides/analyzing-data-flow-in-go.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ Then we can make the source more specific, for example an access to a parameter.
132132
select p
133133
134134
This query finds calls to formatting functions where the format string is not hard-coded.
135+
Note that `StringOps::Formatting::Range <https://codeql.github.com/codeql-standard-libraries/go/semmle/go/StringOps.qll/type.StringOps$StringOps$Formatting$Range.html>`_ is a class that represents all functions which have a format string, and its member predicate `getFormatStringIndex` gives the index of the argument which is the format string.
135136

136137
.. code-block:: ql
137138

0 commit comments

Comments
 (0)