mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-04 13:16:58 -06:00
Pass only Git-tracked Go files to gofumpt
This commit is contained in:
1 parent
b1382da9ec
commit
e9cc07d4d3
1 file changed
+3
-1
@@ -34,9 +34,11 @@ test: unit-test integration-test-all
|
||||
generate:
|
||||
go generate ./...
|
||||
|
||||
# If you execute `gofumpt -l -w .`, it will format all Go files in the current directory, including `test/_results/*` files.
|
||||
# We pass only Git-tracked Go files to gofumpt because we don't want to format the test results or get errors from it.
|
||||
.PHONY: format
|
||||
format:
|
||||
gofumpt -l -w .
|
||||
git ls-files '*.go' ':!vendor' | xargs gofumpt -l -w
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
|
||||
Reference in new issue
Block a user