Skip to content

Commit 45fef5d

Browse files
committed
review
1 parent 9d196f4 commit 45fef5d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/lint/lintersdb/manager.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type Builder interface {
1919
Build(cfg *config.Config) []*linter.Config
2020
}
2121

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).
2323
// It provides methods to access to the linter sets.
2424
type Manager struct {
2525
log logutils.Log
@@ -273,11 +273,11 @@ func (m *Manager) verbosePrintLintersStatus(lcs map[string]*linter.Config) {
273273

274274
linterNames = append(linterNames, lc.Name())
275275
}
276-
sort.StringSlice(linterNames).Sort()
276+
sort.Strings(linterNames)
277277
m.log.Infof("Active %d linters: %s", len(linterNames), linterNames)
278278

279279
if len(m.cfg.Linters.Presets) != 0 {
280-
sort.StringSlice(m.cfg.Linters.Presets).Sort()
280+
sort.Strings(m.cfg.Linters.Presets)
281281
m.log.Infof("Active presets: %s", m.cfg.Linters.Presets)
282282
}
283283
}

test/enabled_linters_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func TestEnabledLinters(t *testing.T) {
129129
Runner().
130130
Run()
131131

132-
sort.StringSlice(c.enabledLinters).Sort()
132+
sort.Strings(c.enabledLinters)
133133

134134
r.ExpectOutputContains(fmt.Sprintf("Active %d linters: [%s]",
135135
len(c.enabledLinters), strings.Join(c.enabledLinters, " ")))

0 commit comments

Comments
 (0)