mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
refactor and don't print congrats if timeouted
This commit is contained in:
parent
2f333be584
commit
0a111acaab
60 changed files with 805 additions and 704 deletions
|
@ -44,10 +44,10 @@ func (e Executor) executeLinters(cmd *cobra.Command, args []string) {
|
|||
|
||||
color.Green("\nLinters presets:")
|
||||
for _, p := range pkg.AllPresets() {
|
||||
linters := pkg.GetAllLintersForPreset(p)
|
||||
linters := pkg.GetAllLinterConfigsForPreset(p)
|
||||
linterNames := []string{}
|
||||
for _, linter := range linters {
|
||||
linterNames = append(linterNames, linter.Name())
|
||||
for _, lc := range linters {
|
||||
linterNames = append(linterNames, lc.Linter.Name())
|
||||
}
|
||||
fmt.Fprintf(printers.StdOut, "%s: %s\n", color.YellowString(p), strings.Join(linterNames, ", "))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue