diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-12-24 19:20:11 +0100 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-12-24 19:20:11 +0100 |
| commit | 6d05a64a0a40df152b218d76c9247c1aa743c879 (patch) | |
| tree | 60acab12bada942cf4f0fff2e507f0874dd595a7 /Taskfile.yml | |
| parent | 81ca1bd74bfad653315cfd30aebff2c6c43a7bbf (diff) | |
Refactors task definitions for improved code quality checks
Enhances the taskfile by consolidating and updating commands for code quality checks, including static analysis and vulnerability assessments.
This change ensures a more streamlined process for maintaining code quality and security in the project.
Relates to the integration of new tools and optimizations in the build process.
Diffstat (limited to 'Taskfile.yml')
| -rw-r--r-- | Taskfile.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..0ba1f5f --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,33 @@ +# https://taskfile.dev +version: '3' + +tasks: + templates: + cmds: + - go tool templ generate + + check: + cmds: + - gofmt -d -e -s . + - go vet ./... + - go tool staticcheck ./... + - go tool gosec -quiet ./... + - go tool golangci-lint run + - go tool govulncheck + - go test -race ./... + - go tool revive + - go mod tidy + + tools: + cmds: + - go get -tool github.com/a-h/templ/cmd/templ + - go get -tool github.com/amacneil/dbmate + - go get -tool github.com/golangci/golangci-lint/v2/cmd/golangci-lint + - go get -tool github.com/securego/gosec/v2/cmd/gosec + - go get -tool golang.org/x/vuln/cmd/govulncheck + - go get -tool honnef.co/go/tools/cmd/staticcheck + + test: + cmds: + - go test -v -cover -coverprofile=coverage.out ./... + - go tool cover -html=coverage.out
\ No newline at end of file |
