diff --git a/.golangci.yml b/.golangci.yml index 363296b..f758fa3 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,16 +1,14 @@ run: - timeout: 2m + timeout: 5m tests: false skip-dirs: - ".*test.*" - ".*mock.*" - - ".*generated.*" - ".*example.*" - ".*utils.*" skip-files: - ".*Mock.*" - ".*_mock.*" - - ".*_generated.*" output: sort-results: true @@ -35,11 +33,11 @@ linters: - gocritic - goerr113 - gofumpt - - gomodguard - gosec - importas - makezero - nilnil + - noctx - prealloc - reassign # - rowserrcheck @@ -69,16 +67,26 @@ linters-settings: - unmarshal - unreachable - unusedresult + staticcheck: + checks: ["all", "-SA1019"] # Custom gocritic: disabled-checks: - ifElseChain - singleCaseSwitch + - unnamedResult + - whyNoLint enabled-tags: - diagnostic - style - - performance gosec: + excludes: + - G101 + - G112 + - G402 + - G404 + - G501 + - G505 exclude-generated: true reassign: patterns: diff --git a/internal/config/config_real.go b/internal/config/config_real.go index 5a91f13..420b704 100644 --- a/internal/config/config_real.go +++ b/internal/config/config_real.go @@ -105,6 +105,7 @@ func (c *ConfigReal) Download() error { } eg.Go(func() error { + // nolint:noctx httpRsp, err := c.httpClient.Get(p.URL) if err != nil { return fmt.Errorf("http client: failed to get: %w", err)