Skip to content

Commit 21ee78c

Browse files
Improve 'no such linter' error message (#1244)
1 parent 862ed88 commit 21ee78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/lint/lintersdb/validator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func (v Validator) validateLintersNames(cfg *config.Linters) error {
2222
allNames = append(allNames, cfg.Disable...)
2323
for _, name := range allNames {
2424
if v.m.GetLinterConfigs(name) == nil {
25-
return fmt.Errorf("no such linter %q", name)
25+
return fmt.Errorf("no such linter %v, run 'golangci-lint linters' to see the list of supported linters", name)
2626
}
2727
}
2828

0 commit comments

Comments
 (0)