Skip to content

Commit

Permalink
Merge pull request #18197 from github/cklin/restrict-alerts-to-all-or…
Browse files Browse the repository at this point in the history
…-none

AlertFiltering: prohibit partial filtering
  • Loading branch information
jbj authored Dec 4, 2024
2 parents 4371433 + 63c8769 commit 5285fc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shared/util/codeql/util/AlertFiltering.qll
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ private import codeql.util.Location
* - endLine: End line number (starting with 1, inclusive) to restrict alerts to.
*
* If startLine and endLine are both 0, accept alerts anywhere in the file.
*
* A query should either completely ignore this predicate (i.e., perform no filtering whatsoever),
* or only return alerts that meet the filtering criteria as specified above.
*/
extensible predicate restrictAlertsTo(string filePath, int startLine, int endLine);

Expand Down

0 comments on commit 5285fc0

Please sign in to comment.