Explain StringOps::Formatting::Range, with a link

This commit is contained in:
Owen Mansel-Chan
2025-01-17 14:49:35 +00:00
parent 549baba330
commit ed44db71d2

View File

@@ -132,6 +132,7 @@ Then we can make the source more specific, for example an access to a parameter.
select p
This query finds calls to formatting functions where the format string is not hard-coded.
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.
.. code-block:: ql