Skip to content

Commit c9fcef2

Browse files
committed
go: add a precision tag to go/examples/deferinloop
1 parent 1ec2049 commit c9fcef2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

go/ql/src/experimental/InconsistentCode/DeferInLoop.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* This can lead to unintentionally holding resources open like file handles or database transactions.
55
* @id go/examples/deferinloop
66
* @kind problem
7+
* @problem.severity warning
8+
* @precision high
79
* @tags defer
810
* nesting
911
*/

0 commit comments

Comments
 (0)