-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: config code linter in pre-commit phase
- Loading branch information
1 parent
50bf6df
commit bdc728f
Showing
2 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
repos: | ||
- repo: https://github.com/golangci/golangci-lint # golangci-lint hook repo | ||
rev: v1.54.0 # golangci-lint hook repo revision | ||
hooks: | ||
- id: golangci-lint | ||
name: golangci-lint | ||
description: Fast linters runner for Go. | ||
entry: golangci-lint run --fix | ||
types: [go] | ||
language: golang | ||
pass_filenames: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters