Skip to content

Commit

Permalink
chore: lint golang code on pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mishamyrt committed Apr 24, 2024
1 parent e442e5b commit 2ca81f3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lefthook.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
pre-commit:
commands:
format:
lint-backend-revive:
stage_fixed: true
glob: "*.go"
run: revive -config ./revive.toml ./...
lint-backend-golangci:
stage_fixed: true
glob: "*.go"
run: golangci-lint run ./...
format-ui:
priority: 1
stage_fixed: true
root: "ui/"
Expand Down

0 comments on commit 2ca81f3

Please sign in to comment.