From b101547649e607e04c350bb0c10db7718330fa5b Mon Sep 17 00:00:00 2001 From: Luke Tucker Date: Mon, 16 Dec 2024 14:49:01 -0500 Subject: [PATCH] enable gofumpt linter --- .github/golangci.yaml | 5 +++++ Makefile | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/.github/golangci.yaml b/.github/golangci.yaml index 4be75f8..92b667f 100644 --- a/.github/golangci.yaml +++ b/.github/golangci.yaml @@ -15,6 +15,7 @@ linters: - govet - gosimple - bodyclose + - gofumpt issues: exclude-use-default: false @@ -26,3 +27,7 @@ issues: severity: default-severity: error + +linters-settings: + go-fumpt: + extra-rules: true diff --git a/Makefile b/Makefile index 9c4f431..150d892 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,10 @@ deps: lint: @golangci-lint run ./... --config .github/golangci.yaml +.PHONY: fix-lint +fix-lint: + @golangci-lint run ./... --config .github/golangci.yaml --fix + .PHONY: test test: @go test -race ./...