Skip to content

Commit f7a66d0

Browse files
build(deps): bump github.com/go-critic/go-critic from 0.6.2 to 0.6.3 (#2759)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent f368405 commit f7a66d0

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

Diff for: go.mod

+4-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/esimonov/ifshort v1.0.4
2525
github.com/fatih/color v1.13.0
2626
github.com/fzipp/gocyclo v0.5.1
27-
github.com/go-critic/go-critic v0.6.2
27+
github.com/go-critic/go-critic v0.6.3
2828
github.com/go-xmlfmt/xmlfmt v0.0.0-20191208150333-d5b6f63a941b
2929
github.com/gofrs/flock v0.8.1
3030
github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2
@@ -147,9 +147,10 @@ require (
147147
github.com/prometheus/client_model v0.2.0 // indirect
148148
github.com/prometheus/common v0.10.0 // indirect
149149
github.com/prometheus/procfs v0.6.0 // indirect
150-
github.com/quasilyte/go-ruleguard v0.3.15 // indirect
151-
github.com/quasilyte/gogrep v0.0.0-20220103110004-ffaa07af02e3 // indirect
150+
github.com/quasilyte/go-ruleguard v0.3.16-0.20220213074421-6aa060fab41a // indirect
151+
github.com/quasilyte/gogrep v0.0.0-20220120141003-628d8b3623b5 // indirect
152152
github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95 // indirect
153+
github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect
153154
github.com/spf13/afero v1.6.0 // indirect
154155
github.com/spf13/cast v1.4.1 // indirect
155156
github.com/spf13/jwalterweatherman v1.1.0 // indirect

Diff for: go.sum

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

Diff for: pkg/commands/help.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (e *Executor) initHelp() {
3939

4040
func printLinterConfigs(lcs []*linter.Config) {
4141
sort.Slice(lcs, func(i, j int) bool {
42-
return strings.Compare(lcs[i].Name(), lcs[j].Name()) < 0
42+
return lcs[i].Name() < lcs[j].Name()
4343
})
4444
for _, lc := range lcs {
4545
altNamesStr := ""

Diff for: pkg/golinters/goanalysis/adapters.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func MakeFakeLoaderProgram(pass *analysis.Pass) *loader.Program {
1919
{
2020
Pkg: pass.Pkg,
2121
Importable: true, // not used
22-
TransitivelyErrorFree: true, // TODO
22+
TransitivelyErrorFree: true, // TODO ???
2323

2424
Files: pass.Files,
2525
Errors: nil,

Diff for: pkg/lint/lintersdb/enabled_set.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package lintersdb
33
import (
44
"os"
55
"sort"
6-
"strings"
76

87
"github.com/golangci/golangci-lint/pkg/config"
98
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
@@ -123,7 +122,7 @@ func (es EnabledSet) GetOptimizedLinters() ([]*linter.Config, error) {
123122
if a.DoesChangeTypes != b.DoesChangeTypes {
124123
return b.DoesChangeTypes // move type-changing linters to the end to optimize speed
125124
}
126-
return strings.Compare(a.Name(), b.Name()) < 0
125+
return a.Name() < b.Name()
127126
})
128127

129128
return resultLinters, nil
@@ -168,7 +167,7 @@ func (es EnabledSet) combineGoAnalysisLinters(linters map[string]*linter.Config)
168167
return false
169168
}
170169

171-
return strings.Compare(a.Name(), b.Name()) <= 0
170+
return a.Name() <= b.Name()
172171
})
173172

174173
ml := goanalysis.NewMetaLinter(goanalysisLinters)

0 commit comments

Comments
 (0)