Skip to content

Commit

Permalink
ci: Upgrade linter (ankitpokhrel#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitpokhrel authored Apr 7, 2024
1 parent f1a0354 commit fa90ec6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
run:
timeout: 5m
deadline: 5m
skip-dirs-use-default: true
linters:
disable-all: true
enable:
Expand Down Expand Up @@ -35,8 +33,7 @@ linters-settings:
- name: package-comments
disabled: true
gomnd:
settings:
mnd:
ignored-numbers: 0,1,2,3
ignored-numbers: ['0', '1', '2', '3']
issues:
exclude-use-default: false
exclude-dirs-use-default: true
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ install:
lint:
@if ! command -v golangci-lint > /dev/null 2>&1; then \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \
sh -s -- -b "$$(go env GOPATH)/bin" v1.55.2 ; \
sh -s -- -b "$$(go env GOPATH)/bin" v1.57.2 ; \
fi
golangci-lint run ./...

Expand Down

0 comments on commit fa90ec6

Please sign in to comment.