Skip to content

Commit

Permalink
Improve 'no such linter' error message (#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-tingaikin authored Jul 17, 2020
1 parent 862ed88 commit 21ee78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lint/lintersdb/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (v Validator) validateLintersNames(cfg *config.Linters) error {
allNames = append(allNames, cfg.Disable...)
for _, name := range allNames {
if v.m.GetLinterConfigs(name) == nil {
return fmt.Errorf("no such linter %q", name)
return fmt.Errorf("no such linter %v, run 'golangci-lint linters' to see the list of supported linters", name)
}
}

Expand Down

0 comments on commit 21ee78c

Please sign in to comment.