diff options
| author | Max Resnick <max@ofmax.li> | 2024-02-25 22:03:23 -0800 |
|---|---|---|
| committer | Max Resnick <max@ofmax.li> | 2024-02-25 22:03:23 -0800 |
| commit | d857aaafef63d5fd7d8e2e7407f8da726c74ad00 (patch) | |
| tree | 8416462d6b713dc8f48293ad0533675ca7c1e70d | |
| parent | 481b5fab41ab05db2e7ef0565dc92661e09ddf7f (diff) | |
| download | go-bumpver-d857aaafef63d5fd7d8e2e7407f8da726c74ad00.tar.gz | |
feat: dev tools
| -rw-r--r-- | .golangci.yaml | 7 | ||||
| -rw-r--r-- | justfile | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/.golangci.yaml b/.golangci.yaml new file mode 100644 index 0000000..4655178 --- /dev/null +++ b/.golangci.yaml @@ -0,0 +1,7 @@ +linters: + enable: + - bodyclose + - asciicheck + - gosec + - gci + - goconst diff --git a/justfile b/justfile new file mode 100644 index 0000000..42a333d --- /dev/null +++ b/justfile @@ -0,0 +1,12 @@ +TEMPDIR := `mktemp -d` + +build: + CGO=0 go build -o bumpver + +install: + install bumpver $HOME/.local/bin + +test: + golangci-lint run + go test -v -coverprofile={{ TEMPDIR }}/testcover.out ./... + go tool cover -func={{ TEMPDIR }}/testcover.out |