Skip to content

Commit

Permalink
Add go vet and staticcheck as local targets
Browse files Browse the repository at this point in the history
  • Loading branch information
J12934 committed Oct 19, 2024
1 parent 2b9e2d7 commit 611ff00
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ tasks:
cmds:
- task: balancer:ui:build

lint:
aliases: [l]
cmds:
- task: cleaner:lint
- task: balancer:api:lint
- task: progress-watchdog:lint

test:
aliases: [t]
cmds:
Expand Down Expand Up @@ -50,6 +57,15 @@ tasks:
- go test ./...
dir: balancer/

balancer:api:lint:
preconditions:
- sh: which staticcheck
msg: "staticcheck needs to be installed for running the balancer api linter."
cmds:
- go vet ./...
- staticcheck ./...
dir: balancer/

progress-watchdog:test:
preconditions:
- sh: which go
Expand All @@ -58,11 +74,29 @@ tasks:
- go test ./...
dir: progress-watchdog/

progress-watchdog:lint:
preconditions:
- sh: which staticcheck
msg: "staticcheck needs to be installed for running the progress-watchdog linter."
cmds:
- go vet ./...
- staticcheck ./...
dir: progress-watchdog/

cleaner:test:
cmds:
- go test ./...
dir: cleaner/

cleaner:lint:
preconditions:
- sh: which staticcheck
msg: "staticcheck needs to be installed for running the cleaner linter."
cmds:
- go vet ./...
- staticcheck ./...
dir: cleaner/

helm:test:
preconditions:
- sh: helm version
Expand Down

0 comments on commit 611ff00

Please sign in to comment.