Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
brumhard committed May 9, 2023
1 parent 0707aa5 commit 4aff73c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ linters:
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
Expand All @@ -30,13 +29,11 @@ linters:
- rowserrcheck
- exportloopref
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
- asciicheck
- gochecknoglobals
Expand All @@ -61,6 +58,7 @@ issues:
- goconst
- gochecknoglobals
- gocritic
- unparam
# https://github.com/go-critic/go-critic/issues/926
- linters:
- gocritic
Expand Down
4 changes: 3 additions & 1 deletion alligotor.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ const (
)

// DefaultCollector is the default Collector and is used by Get.
var DefaultCollector = &Collector{ // nolint: gochecknoglobals // usage just like in http package
//
//nolint:gochecknoglobals // usage just like in http package
var DefaultCollector = &Collector{
Sources: []ConfigSource{
NewFilesSource("./config.*"),
NewEnvSource(""),
Expand Down
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"
)

// nolint: gochecknoglobals // package lvl type definitions
//nolint:gochecknoglobals // package lvl type definitions
var (
zeroString = ""
zeroDuration = time.Duration(0)
Expand Down

0 comments on commit 4aff73c

Please sign in to comment.