From e227a4315f3411f82408a07d23333ab31c26ce0c Mon Sep 17 00:00:00 2001 From: Sam Partington Date: Fri, 16 Jul 2021 14:25:58 +0100 Subject: [PATCH] Add @kind to deferinloop.ql Required to use this query with the CodeQL CLI --- ql/examples/snippets/deferinloop.ql | 1 + 1 file changed, 1 insertion(+) diff --git a/ql/examples/snippets/deferinloop.ql b/ql/examples/snippets/deferinloop.ql index 85f52236bb0..c2c077010a8 100644 --- a/ql/examples/snippets/deferinloop.ql +++ b/ql/examples/snippets/deferinloop.ql @@ -3,6 +3,7 @@ * @description A deferred statement in a loop will not execute until the end of the function. * This can lead to unintentionally holding resources open like file handles or database transactions. * @id go/examples/deferinloop + * @kind problem * @tags defer * nesting */