Skip to content

Commit 8b4f83b

Browse files
committed
Update golangci-lint config for v2.x compatibility
- Add version field required by v2 - Change output.formats from list to map format - Move goimports to formatters section - Remove deprecated gosimple and stylecheck linters
1 parent 4df2616 commit 8b4f83b

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

engine/.golangci.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
version: "2"
2+
13
run:
24
timeout: 2m
35
issues-exit-code: 1
46
tests: true
57
output:
68
formats:
7-
- format: colored-line-number
9+
colored-line-number:
10+
path: stdout
811
print-issued-lines: true
912
print-linter-name: true
1013

@@ -73,8 +76,6 @@ linters:
7376
- gochecknoinits
7477
- goconst
7578
- gocritic
76-
- goimports
77-
- gosimple
7879
- govet
7980
- ineffassign
8081
- lll
@@ -83,7 +84,6 @@ linters:
8384
- prealloc
8485
- revive
8586
- staticcheck
86-
- stylecheck
8787
- unconvert
8888
- unused
8989
- unparam
@@ -95,6 +95,14 @@ linters:
9595
- gocyclo # currently unmaintained
9696
fast: false
9797

98+
formatters:
99+
enable:
100+
- goimports
101+
settings:
102+
goimports:
103+
local-prefixes:
104+
- gitlab.com/postgres-ai/database-lab
105+
98106
issues:
99107
exclude-rules:
100108
- path: _test\.go

0 commit comments

Comments
 (0)