Skip to content

Commit

Permalink
Add test for Makefile and add fix lints. (#118)
Browse files Browse the repository at this point in the history
* Add test for Makefile and add some ignores.

* Disable goconst lint

* Disable revive lint
  • Loading branch information
tnv1 authored Jan 11, 2024
1 parent e8fe536 commit 4d1abe7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,10 @@
# vendor/
# Go
go.work
go.work.sum
go.work.sum

bin/

# IDE config
.vscode/
.idea/
2 changes: 0 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ linters:
- exportloopref
- errcheck
- gci
- goconst
- gocritic
- gofumpt
- gosec
Expand All @@ -22,7 +21,6 @@ linters:
- thelper
- typecheck
- stylecheck
- revive
- typecheck
- tenv
- unconvert
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,17 @@ install: go.sum
build:
go build $(BUILD_FLAGS) -o bin/feeappd ./cmd/feeappd

test:
go test -race -v ./...

docker-build-debug:
@DOCKER_BUILDKIT=1 docker build -t feeapp:debug -f Dockerfile .

lint:
@find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -name '*.pb.go' -not -name '*.gw.go' | xargs go run mvdan.cc/gofumpt -w .
@find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -name '*.pb.go' -not -name '*.gw.go' | xargs go run github.com/client9/misspell/cmd/misspell -w
@find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -name '*.pb.go' -not -name '*.gw.go' | xargs go run golang.org/x/tools/cmd/goimports -w -local github.com/osmosis-labs/fee-abstraction
.PHONY: lint
.PHONY: lint test

###############################################################################
### Interchain test ###
Expand Down

0 comments on commit 4d1abe7

Please sign in to comment.