Skip to content

Commit

Permalink
update go-critic to v0.5.6 (#1925)
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrre committed May 1, 2021
1 parent c610079 commit 8da9d3a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -18,7 +18,7 @@ require (
github.com/esimonov/ifshort v1.0.2
github.com/fatih/color v1.10.0
github.com/fzipp/gocyclo v0.3.1
github.com/go-critic/go-critic v0.5.5
github.com/go-critic/go-critic v0.5.6
github.com/go-xmlfmt/xmlfmt v0.0.0-20191208150333-d5b6f63a941b
github.com/gofrs/flock v0.8.0
github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2
Expand Down
11 changes: 5 additions & 6 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions pkg/golinters/govet_test.go
Expand Up @@ -18,9 +18,10 @@ import (

func TestGovet(t *testing.T) {
// Checking that every default analyzer is in "all analyzers" list.
checkList := append(defaultAnalyzers,
shadow.Analyzer, // special case, used in analyzersFromConfig
)
var checkList []*analysis.Analyzer
checkList = append(checkList, defaultAnalyzers...)
checkList = append(checkList, shadow.Analyzer) // special case, used in analyzersFromConfig

for _, defaultAnalyzer := range checkList {
found := false
for _, a := range allAnalyzers {
Expand Down

0 comments on commit 8da9d3a

Please sign in to comment.