mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Update InsufficientControlFlowManagementAfterRefactoringTheCode.ql
This commit is contained in:
@@ -105,7 +105,7 @@ class UsingArithmeticInComparison extends BinaryArithmeticOperation {
|
||||
}
|
||||
}
|
||||
|
||||
from Expr exp, WhileStmt wst
|
||||
from Expr exp
|
||||
where
|
||||
exp instanceof UsingArithmeticInComparison and
|
||||
not exp.(UsingArithmeticInComparison).workingWithValue() and
|
||||
@@ -114,5 +114,5 @@ where
|
||||
not exp.(UsingArithmeticInComparison).compareWithZero() and
|
||||
exp.(UsingArithmeticInComparison).compareWithOutZero()
|
||||
or
|
||||
wst instanceof UsingWhileAfterWhile and exp = wst.getCondition()
|
||||
exists(WhileStmt wst | wst instanceof UsingWhileAfterWhile and exp = wst.getCondition())
|
||||
select exp, "this expression needs your attention"
|
||||
|
||||
Reference in New Issue
Block a user