Skip to content

Commit 8bacbd3

Browse files
committed
fixes
1 parent a55e506 commit 8bacbd3

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.golangci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ linters:
117117
# - wsl
118118

119119
issues:
120+
exclude:
121+
# disable this rule for go1.15 compatibility
122+
- 'ioutilDeprecated:'
120123
# Excluding configuration per-path, per-linter, per-text and per-source
121124
exclude-rules:
122125
- path: _test\.go

pkg/golinters/gocritic.go

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"sync"
1313

1414
gocriticlinter "github.com/go-critic/go-critic/framework/linter"
15+
_ "github.com/quasilyte/go-ruleguard/dsl"
1516
"golang.org/x/tools/go/analysis"
1617

1718
"github.com/golangci/golangci-lint/pkg/config"

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)