1
0
mirror of https://github.com/go-acme/lego.git synced 2026-06-21 06:36:48 +02:00

chore: update linter (#3037)

This commit is contained in:
Ludovic Fernandez
2026-05-04 15:23:26 +02:00
committed by GitHub
parent fad056f432
commit 1da5445c90
2 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
env:
GO_VERSION: stable
GOLANGCI_LINT_VERSION: v2.11
GOLANGCI_LINT_VERSION: v2.12
HUGO_VERSION: 0.148.2
CGO_ENABLED: 0
LEGO_E2E_TESTS: CI
+15 -4
View File
@@ -18,6 +18,7 @@ linters:
default: all
disable:
- wsl # Deprecated
- gomodguard # Deprecated
- bodyclose
- canonicalheader
- contextcheck
@@ -68,6 +69,7 @@ linters:
goconst:
min-len: 3
min-occurrences: 3
ignore-tests: true
gocritic:
disabled-checks:
- paramTypeCombine # already handle by gofumpt.extra-rules
@@ -180,12 +182,21 @@ linters:
text: Error return value of `fmt.Fprintln` is not checked
linters:
- errcheck
- text: "var-naming: avoid meaningless package names"
- text: "string `TXT` has \\d+ occurrences, make it a constant"
linters:
- revive
- text: "var-naming: avoid package names that conflict with Go standard library package names"
- goconst
- path: internal/clihelp/generator.go
text: "string `(help|lego)` has \\d+ occurrences, make it a constant"
linters:
- revive
- goconst
- path: certcrypto/crypto.go
text: "string `CERTIFICATE` has \\d+ occurrences, make it a constant"
linters:
- goconst
- path: cmd/(certs_storage|flags).go
text: "string `RC2` has \\d+ occurrences, make it a constant"
linters:
- goconst
- path: certcrypto/crypto.go
text: (tlsFeatureExtensionOID|ocspMustStapleFeature) is a global variable
linters: