Autofix lint when we can (#99)
## 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
This commit is contained in:
@@ -4,7 +4,7 @@ example:
|
|||||||
|
|
||||||
lint:
|
lint:
|
||||||
( cd internal/lint && go build -o golangci-lint github.com/golangci/golangci-lint/cmd/golangci-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
|
check: lint
|
||||||
go test -cover ./...
|
go test -cover ./...
|
||||||
|
|||||||
Reference in New Issue
Block a user