mirror of
https://github.com/go-acme/lego.git
synced 2024-11-21 13:25:48 +02:00
chore: update linter (#2341)
This commit is contained in:
parent
a7aaae4abe
commit
c17ca37e48
2
.github/workflows/pr.yml
vendored
2
.github/workflows/pr.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GO_VERSION: stable
|
GO_VERSION: stable
|
||||||
GOLANGCI_LINT_VERSION: v1.60.1
|
GOLANGCI_LINT_VERSION: v1.62.0
|
||||||
HUGO_VERSION: 0.131.0
|
HUGO_VERSION: 0.131.0
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
LEGO_E2E_TESTS: CI
|
LEGO_E2E_TESTS: CI
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
linters:
|
linters:
|
||||||
enable-all: true
|
enable-all: true
|
||||||
disable:
|
disable:
|
||||||
- gomnd # deprecated
|
|
||||||
- cyclop # duplicate of gocyclo
|
- cyclop # duplicate of gocyclo
|
||||||
- sqlclosecheck # not relevant (SQL)
|
- sqlclosecheck # not relevant (SQL)
|
||||||
- rowserrcheck # not relevant (SQL)
|
- rowserrcheck # not relevant (SQL)
|
||||||
- execinquery # not relevant (SQL)
|
|
||||||
- lll
|
- lll
|
||||||
- gosec
|
- gosec
|
||||||
- dupl # not relevant
|
- dupl # not relevant
|
||||||
@ -255,6 +253,10 @@ issues:
|
|||||||
text: 'cyclomatic complexity 13 of func `\(\*DNSProvider\)\.CleanUp` is high'
|
text: 'cyclomatic complexity 13 of func `\(\*DNSProvider\)\.CleanUp` is high'
|
||||||
linters:
|
linters:
|
||||||
- gocyclo
|
- gocyclo
|
||||||
|
- path: providers/dns/servercow/internal/types.go
|
||||||
|
text: 'the methods of "Value" use pointer receiver and non-pointer receiver.'
|
||||||
|
linters:
|
||||||
|
- recvcheck
|
||||||
|
|
||||||
# Those elements have been replaced by non-exposed structures.
|
# Those elements have been replaced by non-exposed structures.
|
||||||
- path: providers/dns/linode/linode_test.go
|
- path: providers/dns/linode/linode_test.go
|
||||||
|
@ -163,7 +163,7 @@ func TestDNSProvider_Present(t *testing.T) {
|
|||||||
|
|
||||||
reqBody, err := io.ReadAll(r.Body)
|
reqBody, err := io.ReadAll(r.Body)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
assert.Equal(t, `{"type":"TXT","name":"_acme-challenge","content":"w6uP8Tcg6K2QR905Rms8iXTlksL6OD1KOWBxTK7wxPI","ttl":300}`, string(reqBody))
|
assert.JSONEq(t, `{"type":"TXT","name":"_acme-challenge","content":"w6uP8Tcg6K2QR905Rms8iXTlksL6OD1KOWBxTK7wxPI","ttl":300}`, string(reqBody))
|
||||||
|
|
||||||
w.WriteHeader(http.StatusCreated)
|
w.WriteHeader(http.StatusCreated)
|
||||||
fmt.Fprintf(w, `{
|
fmt.Fprintf(w, `{
|
||||||
|
Loading…
Reference in New Issue
Block a user