2022-08-22 00:00:05 +02:00
|
|
|
build: fmt
|
2022-08-24 11:40:55 +02:00
|
|
|
CGO_ENABLED=0 go build -ldflags '-s -w' -v -o bin/mugo ./src
|
2022-08-22 00:00:05 +02:00
|
|
|
|
|
|
|
tool-gofumpt:
|
|
|
|
which golangci-lint > /dev/null 2>&1 || go install mvdan.cc/gofumpt@latest
|
|
|
|
|
|
|
|
fmt: tool-gofumpt
|
2022-08-24 11:42:32 +02:00
|
|
|
gofumpt -w --extra ./src
|
2022-08-22 00:03:57 +02:00
|
|
|
|
|
|
|
.ONESHELL:
|
|
|
|
run-code-quality-analysis:
|
|
|
|
export SONAR_TOKEN="$$SONAR_TOKEN_DEBLAN_MU_GO"
|
|
|
|
sonar-scanner -Dsonar.projectKey=deblan-mu-go -Dsonar.sources=. -Dsonar.host.url="$$SONAR_SERVER"
|