Skip to content

Commit

Permalink
chore: exclude unnecessary directories from golangci-lint
Browse files Browse the repository at this point in the history
* chore: rm old nolint comment
  • Loading branch information
lvlcn-t committed May 18, 2024
1 parent b29ec71 commit a8e6751
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pkg/sparrow/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit a8e6751

Please sign in to comment.