You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/codeql/codeql-cli/creating-codeql-query-suites.rst
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -142,24 +142,23 @@ recommend filtering on the query ``id``, which is a unique and stable identifier
142
142
each query. The following three query suite definitions are semantically identical and
143
143
filter by the query ``id``:
144
144
145
-
Matches all queries in the default suite of ``codeql/cpp-queries``, except for the two queries with either given ``id``::
145
+
This filter matches all the queries in the default suite of ``codeql/cpp-queries``, except for the two queries with the excluded identifiers::
146
146
147
147
- qlpack: codeql/cpp-queries
148
148
- exclude:
149
149
id:
150
150
- cpp/cleartext-transmission
151
151
- cpp/cleartext-storage-file
152
152
153
-
As above, but splits the matching into two ``exclude`` instructions::
153
+
In this example, a separate ``exclude`` instruction is used for each query::
154
154
155
155
- qlpack: codeql/cpp-queries
156
156
- exclude:
157
157
id: cpp/cleartext-transmission
158
158
- exclude:
159
159
id: cpp/cleartext-storage-file
160
160
161
-
As above, but uses a regular expression to match the ``id`` (assuming
162
-
that the regular expression matches exactly the previous queries)::
161
+
In this example, a regular expression excludes the same two queries. It would also exclude any future queries added to the suite with identifiers that begin: ``cpp/cleartext-``::
163
162
164
163
- qlpack: codeql/cpp-queries
165
164
- exclude:
@@ -182,8 +181,7 @@ and ``@precision high`` from the ``my-custom-queries`` directory, use::
182
181
kind: problem
183
182
precision: very-high
184
183
185
-
Note that the following query suite definition is not equivalent to the above
186
-
definition. This definition will select queries that are ``@kind problem`` *or*
184
+
Note that the following query suite definition behaves differently from the definition above. This definition selects queries that are ``@kind problem`` *or*
0 commit comments