Skip to content

Commit

Permalink
fix golangci-lint warnings and errors
Browse files Browse the repository at this point in the history
Signed-off-by: Phani Rithvij <[email protected]>
  • Loading branch information
phanirithvij committed Jun 9, 2024
1 parent 5ecbd6d commit a9c201d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
15 changes: 3 additions & 12 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
run:
timeout: 5m
go: "1.22"

linters-settings:
gocyclo:
Expand All @@ -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:
Expand All @@ -20,13 +20,11 @@ linters:
disable:
- bodyclose
- contextcheck
- deadcode
- depguard
- durationcheck
- dupl
- dupword
- exhaustruct
- exhaustivestruct
- forbidigo
- gci
- gochecknoglobals
Expand All @@ -36,41 +34,34 @@ 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
- tparallel
- typecheck
- unparam
- unused
- varcheck
- varnamelen
- wastedassign
- wrapcheck
Expand Down
1 change: 0 additions & 1 deletion git-credential_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit a9c201d

Please sign in to comment.