File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ type Builder interface {
19
19
Build (cfg * config.Config ) []* linter.Config
20
20
}
21
21
22
- // Manager This a kind of database for all the linters (internals or plugins).
22
+ // Manager is a type of database for all linters (internals or plugins).
23
23
// It provides methods to access to the linter sets.
24
24
type Manager struct {
25
25
log logutils.Log
@@ -273,11 +273,11 @@ func (m *Manager) verbosePrintLintersStatus(lcs map[string]*linter.Config) {
273
273
274
274
linterNames = append (linterNames , lc .Name ())
275
275
}
276
- sort .StringSlice (linterNames ). Sort ( )
276
+ sort .Strings (linterNames )
277
277
m .log .Infof ("Active %d linters: %s" , len (linterNames ), linterNames )
278
278
279
279
if len (m .cfg .Linters .Presets ) != 0 {
280
- sort .StringSlice (m .cfg .Linters .Presets ). Sort ( )
280
+ sort .Strings (m .cfg .Linters .Presets )
281
281
m .log .Infof ("Active presets: %s" , m .cfg .Linters .Presets )
282
282
}
283
283
}
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ func TestEnabledLinters(t *testing.T) {
129
129
Runner ().
130
130
Run ()
131
131
132
- sort .StringSlice (c .enabledLinters ). Sort ( )
132
+ sort .Strings (c .enabledLinters )
133
133
134
134
r .ExpectOutputContains (fmt .Sprintf ("Active %d linters: [%s]" ,
135
135
len (c .enabledLinters ), strings .Join (c .enabledLinters , " " )))
You can’t perform that action at this time.
0 commit comments