mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-03-31 06:24:00 -04:00
chore(ci): bump linter to v2.4.0
This commit is contained in:
@@ -1,22 +1,48 @@
|
|||||||
linters-settings:
|
version: "2"
|
||||||
misspell:
|
|
||||||
locale: US
|
|
||||||
|
|
||||||
issues:
|
formatters:
|
||||||
exclude-rules:
|
enable:
|
||||||
- path: _test\.go
|
- gci
|
||||||
linters:
|
- gofumpt
|
||||||
- containedctx
|
- goimports
|
||||||
- dupl
|
exclusions:
|
||||||
- err113
|
generated: lax
|
||||||
- text: Function `exitHealthchecksio` should pass the context parameter
|
paths:
|
||||||
linters:
|
- third_party$
|
||||||
- contextcheck
|
- builtin$
|
||||||
- source: "See https://"
|
- examples$
|
||||||
linters:
|
|
||||||
- lll
|
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
|
settings:
|
||||||
|
misspell:
|
||||||
|
locale: US
|
||||||
|
exclusions:
|
||||||
|
generated: lax
|
||||||
|
presets:
|
||||||
|
- comments
|
||||||
|
- common-false-positives
|
||||||
|
- legacy
|
||||||
|
- std-error-handling
|
||||||
|
rules:
|
||||||
|
- linters:
|
||||||
|
- containedctx
|
||||||
|
- dupl
|
||||||
|
- err113
|
||||||
|
path: _test\.go
|
||||||
|
- linters:
|
||||||
|
- contextcheck
|
||||||
|
text: Function `exitHealthchecksio` should pass the context parameter
|
||||||
|
- linters:
|
||||||
|
- lll
|
||||||
|
source: See https://
|
||||||
|
- linters:
|
||||||
|
- revive
|
||||||
|
text: "var-naming: avoid meaningless package names"
|
||||||
|
path: internal\/provider\/utils\/
|
||||||
|
paths:
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
enable:
|
enable:
|
||||||
# - cyclop
|
# - cyclop
|
||||||
- asasalint
|
- asasalint
|
||||||
@@ -39,7 +65,6 @@ linters:
|
|||||||
- exhaustive
|
- exhaustive
|
||||||
- fatcontext
|
- fatcontext
|
||||||
- forcetypeassert
|
- forcetypeassert
|
||||||
- gci
|
|
||||||
- gocheckcompilerdirectives
|
- gocheckcompilerdirectives
|
||||||
- gochecknoglobals
|
- gochecknoglobals
|
||||||
- gochecknoinits
|
- gochecknoinits
|
||||||
@@ -49,9 +74,7 @@ linters:
|
|||||||
- gocritic
|
- gocritic
|
||||||
- gocyclo
|
- gocyclo
|
||||||
- godot
|
- godot
|
||||||
- gofumpt
|
|
||||||
- goheader
|
- goheader
|
||||||
- goimports
|
|
||||||
- gomoddirectives
|
- gomoddirectives
|
||||||
- goprintffuncname
|
- goprintffuncname
|
||||||
- gosec
|
- gosec
|
||||||
@@ -88,7 +111,6 @@ linters:
|
|||||||
- sloglint
|
- sloglint
|
||||||
- sqlclosecheck
|
- sqlclosecheck
|
||||||
- tagalign
|
- tagalign
|
||||||
- tenv
|
|
||||||
- thelper
|
- thelper
|
||||||
- tparallel
|
- tparallel
|
||||||
- unconvert
|
- unconvert
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ ARG BUILDPLATFORM=linux/amd64
|
|||||||
ARG ALPINE_VERSION=3.22
|
ARG ALPINE_VERSION=3.22
|
||||||
ARG GO_VERSION=1.25
|
ARG GO_VERSION=1.25
|
||||||
ARG XCPUTRANSLATE_VERSION=v0.9.0
|
ARG XCPUTRANSLATE_VERSION=v0.9.0
|
||||||
ARG GOLANGCI_LINT_VERSION=v1.61.0
|
ARG GOLANGCI_LINT_VERSION=v2.4.0
|
||||||
ARG MOCKGEN_VERSION=v1.6.0
|
ARG MOCKGEN_VERSION=v1.6.0
|
||||||
|
|
||||||
FROM --platform=${BUILDPLATFORM} ghcr.io/qdm12/xcputranslate:${XCPUTRANSLATE_VERSION} AS xcputranslate
|
FROM --platform=${BUILDPLATFORM} ghcr.io/qdm12/xcputranslate:${XCPUTRANSLATE_VERSION} AS xcputranslate
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ func Benchmark_IPv6(b *testing.B) {
|
|||||||
" fac00"
|
" fac00"
|
||||||
|
|
||||||
b.ResetTimer()
|
b.ResetTimer()
|
||||||
for i := 0; i < b.N; i++ {
|
for range b.N {
|
||||||
_ = IPv6(text)
|
_ = IPv6(text)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -160,6 +160,6 @@ func (provider Provider) SupportsVersion(version ipversion.IPVersion) bool {
|
|||||||
// It is the responsibility of the caller to make sure it is a valid URL
|
// It is the responsibility of the caller to make sure it is a valid URL
|
||||||
// and that it supports the desired IP version(s) as no further check is
|
// and that it supports the desired IP version(s) as no further check is
|
||||||
// done on it.
|
// done on it.
|
||||||
func CustomProvider(httpsURL *url.URL) Provider { //nolint:interfacer
|
func CustomProvider(httpsURL *url.URL) Provider {
|
||||||
return Provider("url:" + httpsURL.String())
|
return Provider("url:" + httpsURL.String())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user