From dd47e6773bb23256b16af0b5e60f56bc84ace1eb Mon Sep 17 00:00:00 2001 From: tnv1 Date: Wed, 10 Jan 2024 16:41:17 +0700 Subject: [PATCH 1/3] Add test for Makefile and add some ignores. --- .gitignore | 8 +++++++- Makefile | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ea4e1146..9e02b1f2 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,10 @@ # vendor/ # Go go.work -go.work.sum \ No newline at end of file +go.work.sum + +bin/ + +# IDE config +.vscode/ +.idea/ \ No newline at end of file diff --git a/Makefile b/Makefile index 7d70d5b5..b208c3c9 100644 --- a/Makefile +++ b/Makefile @@ -93,6 +93,9 @@ 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 . @@ -100,7 +103,7 @@ 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 ### From adc0d39b7b45177543aef49f6524a38d576376cd Mon Sep 17 00:00:00 2001 From: tnv1 Date: Thu, 11 Jan 2024 12:06:54 +0700 Subject: [PATCH 2/3] Disable goconst lint --- .golangci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index c9686a60..a6b60db8 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -9,7 +9,6 @@ linters: - exportloopref - errcheck - gci - - goconst - gocritic - gofumpt - gosec From dfb0ed9b623ae4f62bc64d365f6b07553006beb1 Mon Sep 17 00:00:00 2001 From: tnv1 Date: Thu, 11 Jan 2024 12:08:39 +0700 Subject: [PATCH 3/3] Disable revive lint --- .golangci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index a6b60db8..a02ced68 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -21,7 +21,6 @@ linters: - thelper - typecheck - stylecheck - - revive - typecheck - tenv - unconvert