diff --git a/.golangci.yml b/.golangci.yml index c911815..fec38f7 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,5 +1,6 @@ run: timeout: 5m + go: "1.22" linters-settings: gocyclo: @@ -8,7 +9,6 @@ linters-settings: max-complexity: 22 skip-tests: true staticcheck: - go: "1.22" # https://staticcheck.io/docs/options#checks checks: ["all","-SA1019"] funlen: @@ -20,13 +20,11 @@ linters: disable: - bodyclose - contextcheck - - deadcode - depguard - durationcheck - dupl - dupword - exhaustruct - - exhaustivestruct - forbidigo - gci - gochecknoglobals @@ -36,33 +34,27 @@ linters: - gocritic - gocyclo - godox - - goerr113 - - golint + - err113 - gomnd - gosec - gosimple - govet - - interfacer - - ifshort - inamedparam - interfacebloat - ireturn - lll - maintidx - - maligned + - mnd - musttag - nilerr - noctx - nolintlint - - nosnakecase - paralleltest - perfsprint - revive - rowserrcheck - - scopelint - sqlclosecheck - staticcheck - - structcheck - stylecheck - tagliatelle - testpackage @@ -70,7 +62,6 @@ linters: - typecheck - unparam - unused - - varcheck - varnamelen - wastedassign - wrapcheck diff --git a/git-credential_test.go b/git-credential_test.go index c771430..fb804dd 100644 --- a/git-credential_test.go +++ b/git-credential_test.go @@ -245,7 +245,6 @@ func Test_getOptions(t *testing.T) { } for _, tt := range tests { - tt := tt t.Run(tt.name, func(t *testing.T) { t.Parallel()