|
|
|
@ -995,6 +995,18 @@ golangci-lint run
|
|
|
|
# Format Go code
|
|
|
|
# Format Go code
|
|
|
|
go fmt ./...
|
|
|
|
go fmt ./...
|
|
|
|
goimports -w .
|
|
|
|
goimports -w .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Update go.mod of all services
|
|
|
|
|
|
|
|
find . -type f -name "*.mod" -printf "%h\0" | sort -zu | xargs -0 -I{} sh -c 'cd "{}" && go mod tidy'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Run all backend tests
|
|
|
|
|
|
|
|
go test $(go list -f '{{.Dir}}/...' -m | xargs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Go vet all backend code
|
|
|
|
|
|
|
|
go vet $(go list -f '{{.Dir}}/...' -m | xargs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Lint all backend code
|
|
|
|
|
|
|
|
golangci-lint run $(go list -f '{{.Dir}}/...' -m | xargs)
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Development Environment
|
|
|
|
### Development Environment
|
|
|
|
|