Skip to content

Commit d0846a0

Browse files
committed
Update .golangci.yml configuration format
Changed config keys to use updated naming conventions and YAML structure. Replaced 'linters-settings' with 'settings', updated version quoting, and removed commented-out linter entries for clarity.
1 parent 2586ea4 commit d0846a0

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.golangci.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,26 @@
1-
version: 2
1+
version: "2"
22

33
run:
4-
# timeout for analysis, e.g. 30s, 5m, default is 1m
54
timeout: 5m
5+
66
linters:
77
enable:
8-
#- golint
9-
#- interfacer
108
- unconvert
11-
#- dupl
129
- goconst
1310
- gofmt
1411
- misspell
1512
- unparam
1613
- nakedret
1714
- prealloc
1815
- revive
19-
#- gosec
20-
linters-settings:
16+
17+
settings:
2118
misspell:
2219
locale: US
2320
revive:
2421
rules:
2522
- name: redundant-build-tag
23+
2624
issues:
27-
max-same-issues: 0
28-
max-issues-per-linter: 0
29-
exclude-use-default: false
30-
exclude:
31-
# gosec: Duplicated errcheck checks
32-
- G104
25+
max-per-linter: 0
26+
max-same: 0

0 commit comments

Comments
 (0)