Skip to content

Commit 8da9d3a

Browse files
authored
update go-critic to v0.5.6 (#1925)
1 parent c610079 commit 8da9d3a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require (
1818
github.com/esimonov/ifshort v1.0.2
1919
github.com/fatih/color v1.10.0
2020
github.com/fzipp/gocyclo v0.3.1
21-
github.com/go-critic/go-critic v0.5.5
21+
github.com/go-critic/go-critic v0.5.6
2222
github.com/go-xmlfmt/xmlfmt v0.0.0-20191208150333-d5b6f63a941b
2323
github.com/gofrs/flock v0.8.0
2424
github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2

go.sum

+5-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/govet_test.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ import (
1818

1919
func TestGovet(t *testing.T) {
2020
// Checking that every default analyzer is in "all analyzers" list.
21-
checkList := append(defaultAnalyzers,
22-
shadow.Analyzer, // special case, used in analyzersFromConfig
23-
)
21+
var checkList []*analysis.Analyzer
22+
checkList = append(checkList, defaultAnalyzers...)
23+
checkList = append(checkList, shadow.Analyzer) // special case, used in analyzersFromConfig
24+
2425
for _, defaultAnalyzer := range checkList {
2526
found := false
2627
for _, a := range allAnalyzers {

0 commit comments

Comments
 (0)