Skip to content

Commit e04a0b7

Browse files
committed
fix: update golangci-lint config to match version 1.60+
1 parent 771483d commit e04a0b7

1 file changed

Lines changed: 23 additions & 31 deletions

File tree

.golangci.yml

Lines changed: 23 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# https://golangci-lint.run/usage/configuration
2-
version: "2"
3-
42
run:
53
timeout: 5m
64
tests: true
@@ -24,40 +22,34 @@ linters:
2422
- noctx
2523
- prealloc
2624
- whitespace
27-
settings:
28-
errcheck:
29-
check-type-assertions: true
30-
check-blank: false
31-
staticcheck:
32-
checks:
33-
- all
34-
- '-QF1008' # Allow embedded structs to be referenced by field
35-
- '-ST1000' # Do not require package comments
36-
govet:
37-
enable-all: true
38-
disable:
39-
- fieldalignment
40-
revive:
41-
rules:
42-
- name: exported
43-
disabled: true
44-
- name: package-comments
45-
disabled: true
46-
47-
formatters:
48-
enable:
4925
- gofmt
5026
- goimports
51-
settings:
52-
goimports:
53-
local-prefixes:
54-
- github.com/flashcatcloud
27+
28+
linters-settings:
29+
errcheck:
30+
check-type-assertions: true
31+
check-blank: false
32+
staticcheck:
33+
checks:
34+
- all
35+
- "-QF1008" # Allow embedded structs to be referenced by field
36+
- "-ST1000" # Do not require package comments
37+
govet:
38+
enable-all: true
39+
disable:
40+
- fieldalignment
41+
revive:
42+
rules:
43+
- name: exported
44+
disabled: true
45+
- name: package-comments
46+
disabled: true
47+
goimports:
48+
local-prefixes: github.com/flashcatcloud
5549

5650
output:
5751
formats:
58-
text:
59-
print-linter-name: true
60-
print-issued-lines: true
52+
- name: colored-line-number
6153

6254
issues:
6355
exclude-rules:

0 commit comments

Comments
 (0)