Skip to content

Commit

Permalink
chore: remove depguard and bump golangci-lint (cosmos#2596)
Browse files Browse the repository at this point in the history
* remove depguard from gaia, bump golangci-lint

* use the actual latest version of golangci-lint

* update state sync script to use sg1 cached endpoint

* use 1.53.3

* revert changes to statesync script
  • Loading branch information
faddat committed Jul 18, 2023
1 parent 69d1dd0 commit 700da38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ run:
linters:
disable-all: true
enable:
- depguard
- dogsled
- errcheck
- exportloopref
Expand All @@ -32,25 +31,25 @@ linters:

issues:
exclude-rules:
- text: "Use of weak random number generator"
- text: 'Use of weak random number generator'
linters:
- gosec
- text: "comment on exported var"
- text: 'comment on exported var'
linters:
- golint
- text: "don't use an underscore in package name"
linters:
- golint
- text: "ST1003:"
- text: 'ST1003:'
linters:
- stylecheck
# FIXME: Disabled until golangci-lint updates stylecheck with this fix:
# https://github.com/dominikh/go-tools/issues/389
- text: "ST1016:"
- text: 'ST1016:'
linters:
- stylecheck
- path: "migrations"
text: "SA1019:"
- path: 'migrations'
text: 'SA1019:'
linters:
- staticcheck

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ docker-build-all: docker-build-debug docker-build-hermes
### Linting ###
###############################################################################
golangci_lint_cmd=golangci-lint
golangci_version=v1.52.2
golangci_version=v1.53.3

lint:
@echo "--> Running linter"
Expand Down

0 comments on commit 700da38

Please sign in to comment.