From a8e6751d96120eb63c8bc69aeea4003a84b2b74a Mon Sep 17 00:00:00 2001 From: lvlcn-t <75443136+lvlcn-t@users.noreply.github.com> Date: Sat, 18 May 2024 13:13:31 +0200 Subject: [PATCH] chore: exclude unnecessary directories from golangci-lint * chore: rm old nolint comment --- .golangci.yaml | 6 ------ pkg/sparrow/controller.go | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 7feb9db4..56aff1de 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -131,12 +131,6 @@ linters: # - wsl issues: - # Excluding configuration per-path, per-linter, per-text and per-source - exclude-dirs: - - test/testdata_etc # test files - - internal/cache # extracted from Go code - - internal/renameio # extracted from Go code - - internal/robustio # extracted from Go code exclude-rules: - path: _test\.go linters: diff --git a/pkg/sparrow/controller.go b/pkg/sparrow/controller.go index 08d25cbc..5ac06bec 100644 --- a/pkg/sparrow/controller.go +++ b/pkg/sparrow/controller.go @@ -48,7 +48,7 @@ func NewChecksController(dbase db.DB, metrics Metrics) *ChecksController { db: dbase, metrics: metrics, checks: runtime.Checks{}, - cResult: make(chan checks.ResultDTO, 8), //nolint:mnd,gomnd // Buffered channel to avoid blocking the checks + cResult: make(chan checks.ResultDTO, 8), //nolint:mnd // Buffered channel to avoid blocking the checks cErr: make(chan error, 1), done: make(chan struct{}, 1), }