Skip to content

Commit c0f04e8

Browse files
authored
chore: update linter (#2206)
1 parent 9dbc098 commit c0f04e8

File tree

7 files changed

+11
-13
lines changed

7 files changed

+11
-13
lines changed

.github/workflows/pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
env:
1515
GO_VERSION: stable
16-
GOLANGCI_LINT_VERSION: v1.59.0
16+
GOLANGCI_LINT_VERSION: v1.59.1
1717
HUGO_VERSION: 0.117.0
1818
CGO_ENABLED: 0
1919
LEGO_E2E_TESTS: CI

.golangci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ linters:
137137
- gosmopolitan # not relevant
138138
- exportloopref # Useless with go1.22
139139
- canonicalheader # Can create side effects in the context of API clients
140+
- usestdlibvars # false-positive https://github.com/sashamelentyev/usestdlibvars/issues/96
140141

141142
issues:
142143
exclude-use-default: false

docs/data/zz_cli_help.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ NAME:
5959
lego run - Register an account, then create and install a certificate
6060
6161
USAGE:
62-
lego run [command options] [arguments...]
62+
lego run [command options]
6363
6464
OPTIONS:
6565
--no-bundle Do not create a certificate bundle by adding the issuers certificate to the new certificate. (default: false)
@@ -79,7 +79,7 @@ NAME:
7979
lego renew - Renew a certificate
8080
8181
USAGE:
82-
lego renew [command options] [arguments...]
82+
lego renew [command options]
8383
8484
OPTIONS:
8585
--days value The number of days left on a certificate to renew it. (default: 30)
@@ -104,7 +104,7 @@ NAME:
104104
lego revoke - Revoke a certificate
105105
106106
USAGE:
107-
lego revoke [command options] [arguments...]
107+
lego revoke [command options]
108108
109109
OPTIONS:
110110
--keep, -k Keep the certificates after the revocation instead of archiving them. (default: false)
@@ -119,7 +119,7 @@ NAME:
119119
lego list - Display certificates and accounts information.
120120
121121
USAGE:
122-
lego list [command options] [arguments...]
122+
lego list [command options]
123123
124124
OPTIONS:
125125
--accounts, -a Display accounts. (default: false)

go.sum

+1-4
Original file line numberDiff line numberDiff line change
@@ -751,8 +751,7 @@ golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
751751
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
752752
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
753753
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
754-
golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA=
755-
golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
754+
golang.org/x/mod v0.18.0 h1:5+9lSbEzPSdWkH32vYPBwEpX8KwDbM52Ud9xBUvNlb0=
756755
golang.org/x/mod v0.18.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
757756
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
758757
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -918,8 +917,6 @@ golang.org/x/tools v0.0.0-20210114065538-d78b04bdf963/go.mod h1:emZCQorbCU4vsT4f
918917
golang.org/x/tools v0.1.6-0.20210726203631-07bc1bf47fb2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
919918
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
920919
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
921-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg=
922-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
923920
golang.org/x/tools v0.22.0 h1:gqSGLZqv+AI9lIQzniJ0nZDRG5GBPsSi+DRNHWNz6yA=
924921
golang.org/x/tools v0.22.0/go.mod h1:aCwcsjqvq7Yqt6TNyX7QMU2enbQ/Gt0bo6krSeEri+c=
925922
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

providers/dns/dynu/internal/client_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func TestGetRootDomain(t *testing.T) {
106106

107107
require.NoError(t, err)
108108

109-
assert.NotNil(t, domain) //nolint:testifylint // false positive https://github.com/Antonboom/testifylint/issues/95
109+
assert.NotNil(t, domain)
110110
assert.Equal(t, test.expected.domain, domain)
111111
})
112112
}

providers/dns/rcodezero/internal/client_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func TestClient_UpdateRecords_error(t *testing.T) {
7474

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

8080
func TestClient_UpdateRecords(t *testing.T) {

providers/dns/servercow/internal/client_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func TestClient_CreateUpdateRecord_error(t *testing.T) {
151151
msg, err := client.CreateUpdateRecord(context.Background(), "lego.wtf", record)
152152
require.Error(t, err)
153153

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

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

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

0 commit comments

Comments
 (0)