aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2024-02-17 22:55:22 -0800
committerMax Resnick <max@ofmax.li>2024-02-17 22:55:22 -0800
commita889ec1d68eb4af4329890bd0de1d4a5282f3ac3 (patch)
treee0d18793af4a29b43945d34be069b5cef954faa4
parent18943d9345f15bf285c1061d36d05d413a99d640 (diff)
downloadgo-git-server-a889ec1d68eb4af4329890bd0de1d4a5282f3ac3.tar.gz
feat: wee bit o dev tools
Diffstat (limited to '')
-rw-r--r--.golangci.yaml7
-rw-r--r--justfile12
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..db5bd05
--- /dev/null
+++ b/justfile
@@ -0,0 +1,12 @@
+TEMPDIR := `mktemp -d`
+
+build:
+ CGO=0 go build -o go-git-server cmd/main.go
+
+test:
+ golangci-lint run
+ go test -v -coverprofile={{ TEMPDIR }}/testcover.out ./...
+ go tool cover -func={{ TEMPDIR }}/testcover.out
+
+debug-test:
+ dlv test -- -test.v