Skip to content

Commit f0c5382

Browse files
committed
review
1 parent dae9cfe commit f0c5382

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.golangci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ linters-settings:
3030
- octalLiteral
3131
- whyNoLint
3232
- wrapperFunc
33-
- ioutilDeprecated # disable this rule for go1.15 compatibility
3433
gocyclo:
3534
min-complexity: 15
3635
goimports:
@@ -118,7 +117,10 @@ linters:
118117
# - wsl
119118

120119
issues:
121-
# Excluding configuration per-path, per-linter, per-text and per-source
120+
exclude:
121+
# disable this rule for go1.15 compatibility
122+
- 'ioutilDeprecated:'
123+
# Excluding configuration per-path, per-linter, per-text and per-source
122124
exclude-rules:
123125
- path: _test\.go
124126
linters:

scripts/expand_website_templates/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func getLatestVersion() (string, error) {
136136
req, err := http.NewRequest( // nolint:noctx
137137
http.MethodGet,
138138
"https://api.github.com/repos/golangci/golangci-lint/releases/latest",
139-
nil,
139+
http.NoBody,
140140
)
141141
if err != nil {
142142
return "", fmt.Errorf("failed to prepare a http request: %s", err)

0 commit comments

Comments
 (0)