-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: setup golangci-lint config file
Signed-off-by: Matthieu MOREL <[email protected]>
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 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,4 @@ | ||
# ensure that line endings for Windows builds are properly formatted | ||
# see https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#how-to-use | ||
# at "Multiple OS Example" section | ||
*.go text eol=lf |
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,16 @@ | ||
issues: | ||
max-same-issues: 0 | ||
linters: | ||
disable-all: true | ||
enable: # please keep this alphabetized | ||
- errcheck | ||
- gofmt | ||
- goimports | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- staticcheck | ||
- unused | ||
linters-settings: # please keep this alphabetized | ||
goimports: | ||
local-prefixes: go.etcd.io # Put imports beginning with prefix after 3rd-party packages. |