mirror of
https://github.com/github/codeql.git
synced 2026-02-20 00:43:44 +01:00
Apply suggestions from code review - doc improvements, simplification
Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com>
This commit is contained in:
@@ -8,11 +8,7 @@ import semmle.code.java.security.SecurityTests
|
||||
/** Holds if `ex` looks like a check that this is a debug build. */
|
||||
private predicate isDebugCheck(Expr ex) {
|
||||
exists(Expr subex, string debug |
|
||||
(
|
||||
debug.toLowerCase().matches("%debug%")
|
||||
or
|
||||
debug.toLowerCase().matches("%test%")
|
||||
) and
|
||||
debug.toLowerCase().matches(["%debug%", "%test%"]) and
|
||||
subex.getParent*() = ex
|
||||
|
|
||||
subex.(VarAccess).getVariable().getName() = debug
|
||||
|
||||
Reference in New Issue
Block a user