CodeQL library for Go
codeql/go-all 2.1.3 (changelog, source)
Search

Predicate InsecureFeatureFlag::exprIsFlag

Holds for string literals or named values matching flagKind and their fields.

Import path

import semmle.go.security.InsecureFeatureFlag
predicate exprIsFlag(Expr node, FlagKind flagKind)