Skip to content

Commit e227a43

Browse files
authored
Add @kind to deferinloop.ql
Required to use this query with the CodeQL CLI
1 parent 73227f1 commit e227a43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ql/examples/snippets/deferinloop.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* @description A deferred statement in a loop will not execute until the end of the function.
44
* This can lead to unintentionally holding resources open like file handles or database transactions.
55
* @id go/examples/deferinloop
6+
* @kind problem
67
* @tags defer
78
* nesting
89
*/

0 commit comments

Comments
 (0)