parent
4d2ea24c41
commit
239d94336a
8
Makefile
8
Makefile
|
@ -12,7 +12,7 @@ test:
|
||||||
go test -race -failfast ./...
|
go test -race -failfast ./...
|
||||||
|
|
||||||
test-color:
|
test-color:
|
||||||
go install github.com/haunt98/go-test-color@latest
|
# go install github.com/haunt98/go-test-color@latest
|
||||||
go-test-color -race -failfast ./...
|
go-test-color -race -failfast ./...
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
|
@ -31,9 +31,9 @@ lint:
|
||||||
golangci-lint run ./...
|
golangci-lint run ./...
|
||||||
|
|
||||||
format:
|
format:
|
||||||
go install github.com/haunt98/gofimports/cmd/gofimports@latest
|
# go install github.com/haunt98/gofimports/cmd/gofimports@latest
|
||||||
go install mvdan.cc/gofumpt@latest
|
# go install mvdan.cc/gofumpt@latest
|
||||||
go install mvdan.cc/sh/v3/cmd/shfmt@latest
|
# go install mvdan.cc/sh/v3/cmd/shfmt@latest
|
||||||
gofimports -w --company github.com/make-go-great,github.com/haunt98 .
|
gofimports -w --company github.com/make-go-great,github.com/haunt98 .
|
||||||
gofumpt -w -extra .
|
gofumpt -w -extra .
|
||||||
shfmt -w -ci -i 4 ./scripts ./data/zsh
|
shfmt -w -ci -i 4 ./scripts ./data/zsh
|
||||||
|
|
|
@ -33,6 +33,7 @@ git config --global pull.rebase false
|
||||||
git config --global pull.twohead ort
|
git config --global pull.twohead ort
|
||||||
git config --global push.autoSetupRemote true
|
git config --global push.autoSetupRemote true
|
||||||
git config --global rebase.stat true
|
git config --global rebase.stat true
|
||||||
|
git config --global rerere.enabled true
|
||||||
|
|
||||||
# https://github.com/dandavison/delta
|
# https://github.com/dandavison/delta
|
||||||
git config --global core.pager delta
|
git config --global core.pager delta
|
||||||
|
|
Loading…
Reference in New Issue