Skip to content

Commit

Permalink
chore: update linter (#2190)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored May 27, 2024
1 parent 92bde4c commit 220c608
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
env:
GO_VERSION: stable
GOLANGCI_LINT_VERSION: v1.58.1
GOLANGCI_LINT_VERSION: v1.59.0
HUGO_VERSION: 0.117.0
CGO_ENABLED: 0
LEGO_E2E_TESTS: CI
Expand Down
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ issues:
- funlen
- goconst
- maintidx
- path: (.+)_test.go
text: 'Error return value of `fmt.Fprintln` is not checked'
linters:
- errcheck
- path: providers/dns/dns_providers.go
linters:
- gocyclo
Expand Down
2 changes: 1 addition & 1 deletion providers/dns/dynu/internal/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func TestGetRootDomain(t *testing.T) {

require.NoError(t, err)

assert.NotNil(t, domain)
assert.NotNil(t, domain) //nolint:testifylint // false positive https://github.com/Antonboom/testifylint/issues/95
assert.Equal(t, test.expected.domain, domain)
})
}
Expand Down
2 changes: 1 addition & 1 deletion providers/dns/rcodezero/internal/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func TestClient_UpdateRecords_error(t *testing.T) {

resp, err := client.UpdateRecords(context.Background(), "example.org", rrSet)
require.ErrorAs(t, err, new(*APIResponse))
assert.Nil(t, resp)
assert.Nil(t, resp) //nolint:testifylint // false positive https://github.com/Antonboom/testifylint/issues/95
}

func TestClient_UpdateRecords(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions providers/dns/servercow/internal/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func TestClient_CreateUpdateRecord_error(t *testing.T) {
msg, err := client.CreateUpdateRecord(context.Background(), "lego.wtf", record)
require.Error(t, err)

assert.Nil(t, msg)
assert.Nil(t, msg) //nolint:testifylint // false positive https://github.com/Antonboom/testifylint/issues/95
}

func TestClient_DeleteRecord(t *testing.T) {
Expand Down Expand Up @@ -218,5 +218,5 @@ func TestClient_DeleteRecord_error(t *testing.T) {
msg, err := client.DeleteRecord(context.Background(), "lego.wtf", record)
require.Error(t, err)

assert.Nil(t, msg)
assert.Nil(t, msg) //nolint:testifylint // false positive https://github.com/Antonboom/testifylint/issues/95
}

0 comments on commit 220c608

Please sign in to comment.