Skip to content

Commit

Permalink
Java: add alert filtering helper
Browse files Browse the repository at this point in the history
  • Loading branch information
cklin committed Aug 13, 2024
1 parent a8cdf1f commit aed9c89
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions java/ql/lib/java.qll
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Customizations
import semmle.code.FileSystem
import semmle.code.Location
import semmle.code.Unit
import semmle.code.java.AlertFiltering
import semmle.code.java.Annotation
import semmle.code.java.Compilation
import semmle.code.java.CompilationUnit
Expand Down
12 changes: 12 additions & 0 deletions java/ql/lib/semmle/code/java/AlertFiltering.qll
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Provides a Java-specific instantiation of the `AlertFiltering` module.
*/

private import codeql.util.AlertFiltering
private import semmle.code.Location

module AlertFiltering {
import AlertFilteringImpl<Location>

predicate filterByLocatable(Top top) { filterByLocation(top.getLocation()) }
}

0 comments on commit aed9c89

Please sign in to comment.