Skip to content

Commit

Permalink
Check goimports in golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Feb 23, 2024
1 parent 27656e4 commit d13ccfb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
linters:
# Enable specific linter
# https://golangci-lint.run/usage/linters/#enabled-by-default
enable:
- gofumpt
- goimports

linters-settings:
goimports:
local-prefixes: github.com/CosmWasm/wasmvm
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,11 @@ test-alpine: release-build-alpine create-tester-image
format:
find . -name '*.go' -type f | xargs gofumpt -w -s
find . -name '*.go' -type f | xargs misspell -w
find . -name '*.go' -type f | xargs goimports -w -local github.com/CosmWasm/wasmvm

.PHONY: lint
lint:
golangci-lint run

.PHONY: lint-fix
lint-fix:
golangci-lint run --fix

0 comments on commit d13ccfb

Please sign in to comment.