File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- linters-settings :
2- misspell :
3- locale : US
1+ version : " 2"
42
5- issues :
6- exclude-rules :
7- - path : _test\.go
8- linters :
9- - containedctx
10- - dupl
11- - err113
12- - text : Function `exitHealthchecksio` should pass the context parameter
13- linters :
14- - contextcheck
15- - source : " See https://"
16- linters :
17- - lll
3+ formatters :
4+ enable :
5+ - gci
6+ - gofumpt
7+ - goimports
8+ exclusions :
9+ generated : lax
10+ paths :
11+ - third_party$
12+ - builtin$
13+ - examples$
1814
1915linters :
16+ settings :
17+ misspell :
18+ locale : US
19+ exclusions :
20+ generated : lax
21+ presets :
22+ - comments
23+ - common-false-positives
24+ - legacy
25+ - std-error-handling
26+ rules :
27+ - linters :
28+ - containedctx
29+ - dupl
30+ - err113
31+ path : _test\.go
32+ - linters :
33+ - contextcheck
34+ text : Function `exitHealthchecksio` should pass the context parameter
35+ - linters :
36+ - lll
37+ source : See https://
38+ - linters :
39+ - revive
40+ text : " var-naming: avoid meaningless package names"
41+ path : internal\/provider\/utils\/
42+ paths :
43+ - third_party$
44+ - builtin$
45+ - examples$
2046 enable :
2147 # - cyclop
2248 - asasalint
@@ -39,7 +65,6 @@ linters:
3965 - exhaustive
4066 - fatcontext
4167 - forcetypeassert
42- - gci
4368 - gocheckcompilerdirectives
4469 - gochecknoglobals
4570 - gochecknoinits
@@ -49,9 +74,7 @@ linters:
4974 - gocritic
5075 - gocyclo
5176 - godot
52- - gofumpt
5377 - goheader
54- - goimports
5578 - gomoddirectives
5679 - goprintffuncname
5780 - gosec
@@ -88,7 +111,6 @@ linters:
88111 - sloglint
89112 - sqlclosecheck
90113 - tagalign
91- - tenv
92114 - thelper
93115 - tparallel
94116 - unconvert
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ ARG BUILDPLATFORM=linux/amd64
22ARG ALPINE_VERSION=3.22
33ARG GO_VERSION=1.25
44ARG XCPUTRANSLATE_VERSION=v0.9.0
5- ARG GOLANGCI_LINT_VERSION=v1.61 .0
5+ ARG GOLANGCI_LINT_VERSION=v2.4 .0
66ARG MOCKGEN_VERSION=v1.6.0
77
88FROM --platform=${BUILDPLATFORM} ghcr.io/qdm12/xcputranslate:${XCPUTRANSLATE_VERSION} AS xcputranslate
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ func Benchmark_IPv6(b *testing.B) {
121121 " fac00"
122122
123123 b .ResetTimer ()
124- for i := 0 ; i < b .N ; i ++ {
124+ for range b .N {
125125 _ = IPv6 (text )
126126 }
127127}
Original file line number Diff line number Diff line change @@ -160,6 +160,6 @@ func (provider Provider) SupportsVersion(version ipversion.IPVersion) bool {
160160// It is the responsibility of the caller to make sure it is a valid URL
161161// and that it supports the desired IP version(s) as no further check is
162162// done on it.
163- func CustomProvider (httpsURL * url.URL ) Provider { //nolint:interfacer
163+ func CustomProvider (httpsURL * url.URL ) Provider {
164164 return Provider ("url:" + httpsURL .String ())
165165}
You can’t perform that action at this time.
0 commit comments