Skip to content
This repository was archived by the owner on Mar 22, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,22 @@ lint:
test -z $$(gofmt -l .) || (echo "Code isn't gofmt'ed!" && exit 1)
go vet $$(go list ./... | grep -v /tmp)
gosec -quiet -fmt=golint -exclude-dir="tmp" ./...
pointerinterface ./...

# Generate pretty coverage report
analyse:
go tool cover -html=".cover.out" -o="cover.html"
@echo -e "\nCOVERAGE\n===================="
go tool cover -func=.cover.out
@echo -e "\nCYCLOMATIC COMPLEXITY\n===================="
gocyclo -avg -top 10 .
gocyclo -avg -top 10 -ignore test.go .

# Updates 3rd party packages and tools
deps:
go mod download
go install github.com/securego/gosec/v2/cmd/gosec@latest
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest
go install code.larus.se/lmas/pointerinterface@latest

# Show documentation of public parts of package, in the current dir
docs:
Expand All @@ -41,4 +43,3 @@ build:
clean:
go clean
rm .cover.out cover.html
# TODO: add raspberrypi bins
Loading