-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(backend): Add golangci-lint and pre-commit config (#9428)
* Add golangci-lint and pre-commit config * Adopt golanci-lint config from k8s
- Loading branch information
Showing
3 changed files
with
45 additions
and
7 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,27 @@ | ||
run: | ||
timeout: 30m | ||
skip-files: | ||
- "api\\*.go$" | ||
- "backend\\api\\*.go" | ||
|
||
issues: | ||
max-same-issues: 0 | ||
|
||
linters: | ||
disable-all: true | ||
enable: # please keep this alphabetized | ||
- gocritic | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- staticcheck | ||
- stylecheck | ||
- unused | ||
|
||
linters-settings: # please keep this alphabetized | ||
misspell: | ||
locale: US | ||
staticcheck: | ||
checks: | ||
- "all" |
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
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