From 4aff73c750376184a1afe80b9ae3f68c50fadeca Mon Sep 17 00:00:00 2001 From: Tobias Brumhard Date: Tue, 9 May 2023 10:04:09 +0200 Subject: [PATCH] Fix linting issues --- .golangci.yml | 4 +--- alligotor.go | 4 +++- types.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index d708b76..e1decd4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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 @@ -30,13 +29,11 @@ linters: - rowserrcheck - exportloopref - staticcheck - - structcheck - stylecheck - typecheck - unconvert - unparam - unused - - varcheck - whitespace - asciicheck - gochecknoglobals @@ -61,6 +58,7 @@ issues: - goconst - gochecknoglobals - gocritic + - unparam # https://github.com/go-critic/go-critic/issues/926 - linters: - gocritic diff --git a/alligotor.go b/alligotor.go index a3dbd4a..1a9bb01 100644 --- a/alligotor.go +++ b/alligotor.go @@ -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(""), diff --git a/types.go b/types.go index 2464846..af7382e 100644 --- a/types.go +++ b/types.go @@ -6,7 +6,7 @@ import ( "time" ) -// nolint: gochecknoglobals // package lvl type definitions +//nolint:gochecknoglobals // package lvl type definitions var ( zeroString = "" zeroDuration = time.Duration(0)