Skip to content

Commit 181fba0

Browse files
committed
chore: enable badLock from go-critic
Signed-off-by: Matthieu MOREL <[email protected]>
1 parent 022a5ea commit 181fba0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ linters:
6666
gocritic:
6767
disabled-checks:
6868
- appendAssign
69-
- badLock
7069
- commentedOutCode
7170
- deferInLoop
7271
- dupArg

cmd/collector/app/queue/bounded_queue_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func helper(t *testing.T, startConsumers func(q *BoundedQueue[string], consumerF
4343

4444
// block further processing until startLock is released
4545
startLock.Lock()
46-
//nolint:staticcheck // empty section is ok
46+
//nolint:gocritic,staticcheck // empty section is ok
4747
startLock.Unlock()
4848
})
4949

0 commit comments

Comments
 (0)