Skip to content

Commit a7b11e0

Browse files
ldezdmke
andauthored
chore: update linter (#1767)
Co-authored-by: Dominik Menke <[email protected]>
1 parent 2431f83 commit a7b11e0

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
env:
1515
GO_VERSION: 1.19
16-
GOLANGCI_LINT_VERSION: v1.49.0
16+
GOLANGCI_LINT_VERSION: v1.50.1
1717
HUGO_VERSION: 0.54.0
1818
CGO_ENABLED: 0
1919
LEGO_E2E_TESTS: CI

.golangci.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,7 @@
204204
[[issues.exclude-rules]]
205205
path = "providers/dns/sakuracloud/client.go"
206206
text = "mu is a global variable"
207+
208+
[[issues.exclude-rules]]
209+
path = "providers/dns/hosttech/internal/client_test.go"
210+
text = "Duplicate words \\(0\\) found"

challenge/resolver/solver_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (c *SolverManager) SetDNS01Provider(p challenge.Provider, opts ...dns01.Cha
5353
return nil
5454
}
5555

56-
// Remove Remove a challenge type from the available solvers.
56+
// Remove removes a challenge type from the available solvers.
5757
func (c *SolverManager) Remove(chlgType challenge.Type) {
5858
delete(c.solvers, chlgType)
5959
}

providers/dns/constellix/internal/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func (t *TokenTransport) Client() *http.Client {
6565
return &http.Client{Transport: t}
6666
}
6767

68-
// Wrap Wrap a HTTP client Transport with the TokenTransport.
68+
// Wrap wraps an HTTP client Transport with the TokenTransport.
6969
func (t *TokenTransport) Wrap(client *http.Client) *http.Client {
7070
backup := client.Transport
7171
t.Transport = backup

providers/dns/dynu/internal/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (t *TokenTransport) Client() *http.Client {
5454
return &http.Client{Transport: t}
5555
}
5656

57-
// Wrap Wrap a HTTP client Transport with the TokenTransport.
57+
// Wrap wraps an HTTP client Transport with the TokenTransport.
5858
func (t *TokenTransport) Wrap(client *http.Client) *http.Client {
5959
backup := client.Transport
6060
t.Transport = backup

providers/dns/iij/iij_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,21 +167,21 @@ func TestSplitDomain(t *testing.T) {
167167
expectedZone: "domain.com",
168168
},
169169
{
170-
desc: "with a sub domain",
170+
desc: "with a subdomain",
171171
domain: "my.domain.com",
172172
zones: []string{"domain.com"},
173173
expectedOwner: "_acme-challenge.my",
174174
expectedZone: "domain.com",
175175
},
176176
{
177-
desc: "with a sub domain in a zone",
177+
desc: "with a subdomain in a zone",
178178
domain: "my.sub.domain.com",
179179
zones: []string{"sub.domain.com", "domain.com"},
180180
expectedOwner: "_acme-challenge.my",
181181
expectedZone: "sub.domain.com",
182182
},
183183
{
184-
desc: "with a sub sub domain",
184+
desc: "with a sub-subdomain",
185185
domain: "my.sub.domain.com",
186186
zones: []string{"domain1.com", "domain.com"},
187187
expectedOwner: "_acme-challenge.my.sub",

0 commit comments

Comments
 (0)