Skip to content

Commit 1dc5645

Browse files
committed
chore: remove deprecated configs in golang-ci lint
1 parent 67d89dd commit 1dc5645

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.golangci.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
run:
22
timeout: 5m
3+
go: "1.22"
34

45
issues:
56
exclude-use-default: false
@@ -45,23 +46,19 @@ linters-settings:
4546
excludes:
4647
- G101
4748
gosimple:
48-
go: "1.16"
4949
checks: ["all"]
5050
nolintlint:
51-
allow-leading-space: false # require machine-readable nolint directives (i.e. with no leading space)
5251
allow-unused: false # report any unused nolint directives
5352
require-explanation: false # don't require an explanation for nolint directives
5453
require-specific: true # require nolint directives to be specific about which linter is being skipped
5554
revive:
56-
min-confidence: 0
55+
confidence: 0
5756
# Due to https://github.com/golangci/golangci-lint/issues/2355 on MacOS the linter is failing with the error
5857
# message too many files. Set the max-open-files explicitly.
5958
max-open-files: 2048
6059
staticcheck:
61-
go: "1.16"
6260
checks: ["all"]
6361
stylecheck:
64-
go: "1.16"
6562
checks: ["all", "-ST1000"]
6663

6764
linters:

0 commit comments

Comments
 (0)