Skip to content

Commit 46c9146

Browse files
committed
make it a warning query
1 parent 16bacc7 commit 46c9146

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ql/ql/src/queries/style/UnqueryableCode.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @name Unqueryable code
33
* @description Code that cannot affect the outcome of any query is suspicous.
44
* @kind problem
5-
* @problem.severity recommendation
5+
* @problem.severity warning
66
* @id ql/unqueryable-code
77
* @precision high
88
*/
@@ -12,4 +12,4 @@ import codeql_ql.style.DeadCodeQuery
1212

1313
from AstNode node
1414
where node = unQueryable()
15-
select node, "Code cannot affect the outcome of any query."
15+
select node, "Code cannot affect the outcome of any query (including tests)."

0 commit comments

Comments
 (0)