refactor and don't print congrats if timeouted

This commit is contained in:
golangci 2018-05-31 23:53:01 +03:00
parent 2f333be584
commit 0a111acaab
60 changed files with 805 additions and 704 deletions

View file

@ -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, ", "))
}