From c399be2792c0735f07d8aa1a5215d22280352381 Mon Sep 17 00:00:00 2001 From: Ben Kraft Date: Thu, 16 Sep 2021 09:06:14 -0700 Subject: [PATCH] Autofix lint when we can (#99) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary: This is mostly useful for gofumpt, although a few other linters may support it. Anyway, we may as well. ## Test plan: make lint Author: benjaminjkraft Reviewers: dnerdy, StevenACoffman Required Reviewers: Approved By: dnerdy, StevenACoffman Checks: ✅ Test (1.17), ✅ Test (1.16), ✅ Test (1.15), ✅ Test (1.14), ✅ Lint, ✅ Test (1.17), ✅ Test (1.16), ✅ Test (1.15), ✅ Test (1.14), ✅ Lint Pull Request URL: https://github.com/Khan/genqlient/pull/99 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index becdf4e..c111727 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ example: lint: ( cd internal/lint && go build -o golangci-lint github.com/golangci/golangci-lint/cmd/golangci-lint ) - internal/lint/golangci-lint run ./... + internal/lint/golangci-lint run ./... --fix check: lint go test -cover ./...