Skip to content

Commit 64b4268

Browse files
authored
Merge pull request #913 from mmorel-35/golangci-lint
chore: setup golangci-lint config file
2 parents 526ef1e + 47910f1 commit 64b4268

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# ensure that line endings for Windows builds are properly formatted
2+
# see https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#how-to-use
3+
# at "Multiple OS Example" section
4+
*.go text eol=lf

.golangci.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
issues:
2+
max-same-issues: 0
3+
linters:
4+
disable-all: true
5+
enable: # please keep this alphabetized
6+
- errcheck
7+
- gofmt
8+
- goimports
9+
- gosimple
10+
- govet
11+
- ineffassign
12+
- staticcheck
13+
- unused
14+
linters-settings: # please keep this alphabetized
15+
goimports:
16+
local-prefixes: go.etcd.io # Put imports beginning with prefix after 3rd-party packages.

0 commit comments

Comments
 (0)