Skip to content

Commit 6561185

Browse files
committed
test: disable gofumpt for now and fix language version
1 parent 2843048 commit 6561185

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.golangci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ linters:
3030
enable:
3131
- gocyclo
3232
- godot
33-
- gofumpt
33+
# Disabled as the latest version - 0.4.0 from 2022-09-27 is not built with go 1.19 and
34+
# therefore disagrees with swag fmt about the formatting of the swagger comments.
35+
# See https://github.com/mvdan/gofumpt/issues/254
36+
# - gofumpt
3437
- goimports
3538
- govet
3639
- revive
@@ -39,7 +42,7 @@ linters:
3942

4043
linters-settings:
4144
gofumpt:
42-
lang-version: "1.20"
45+
lang-version: "1.19"
4346
extra-rules: true
4447
gocyclo:
4548
min-complexity: 15

0 commit comments

Comments
 (0)