CodeQL library for Swift
codeql/swift-all 5.0.10-dev (changelog, source)
Search

Module AlertFilteringImpl

Module for applying alert location filtering.

Import path

import codeql.util.AlertFiltering

Predicates

diffInformationAvailable

Holds if diff information is available in this evaluation.

fileIsInDiff

Holds if diff information is available, and filePath is in the diff range.

filterByLocation

Holds if the given location is a match for one of the active filtering predicates in this module, or if all filtering predicates are inactive (which means that all alerts must be produced).

locationIsInDiff

Like filterByLocation, except that if there is no diff range, this predicate never holds.

Parameters

LocationLocationSig