Skip to content

feat: add golangci-lint-fmt pre-commit hook #5705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025
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
10 changes: 9 additions & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,20 @@
pass_filenames: false
- id: golangci-lint-full
name: golangci-lint-full
description: Fast linters runner for Go. Runs on all files in the repo. Use this hook if you use pre-commit in CI.
description: Fast linters runner for Go. Runs on all files in the module. Use this hook if you use pre-commit in CI.
entry: golangci-lint run --fix
types: [go]
language: golang
require_serial: true
pass_filenames: false
- id: golangci-lint-fmt
name: golangci-lint-fmt
description: Fast linters runner for Go. Formats all files in the repo.
entry: golangci-lint fmt
types: [go]
language: golang
require_serial: true
pass_filenames: false
- id: golangci-lint-config-verify
name: golangci-lint-config-verify
description: Verifies the configuration file
Expand Down
Loading