Skip to content

Commit a9afbfa

Browse files
committed
Document version matching and "$THISVERSION"
1 parent 3e2bbd3 commit a9afbfa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

go/ql/lib/semmle/go/dataflow/ExternalFlow.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
*
1818
* The interpretation of a row is similar to API-graphs with a left-to-right
1919
* reading.
20-
* 1. The `package` column selects a package.
20+
* 1. The `package` column selects a package. Note that if the package does not
21+
* contain a major version suffix (like "/v2") then we will match all major
22+
* versions. This can be disabled by putting `$THISVERSION` at the end of
23+
* the package path.
2124
* 2. The `type` column selects a type within that package.
2225
* 3. The `subtypes` is a boolean that indicates whether to jump to an
2326
* arbitrary subtype of that type.

0 commit comments

Comments
 (0)