File tree 2 files changed +5
-3
lines changed
scripts/expand_website_templates
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ linters-settings:
30
30
- octalLiteral
31
31
- whyNoLint
32
32
- wrapperFunc
33
- - ioutilDeprecated # disable this rule for go1.15 compatibility
34
33
gocyclo :
35
34
min-complexity : 15
36
35
goimports :
@@ -118,7 +117,10 @@ linters:
118
117
# - wsl
119
118
120
119
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
122
124
exclude-rules :
123
125
- path : _test\.go
124
126
linters :
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ func getLatestVersion() (string, error) {
136
136
req , err := http .NewRequest ( // nolint:noctx
137
137
http .MethodGet ,
138
138
"https://api.github.com/repos/golangci/golangci-lint/releases/latest" ,
139
- nil ,
139
+ http . NoBody ,
140
140
)
141
141
if err != nil {
142
142
return "" , fmt .Errorf ("failed to prepare a http request: %s" , err )
You can’t perform that action at this time.
0 commit comments