forked from alecthomas/gometalinter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error message in the case of an unknown linter (alecthomas#370)
* Fix error message in the case of an unknown linter Discovered in alecthomas#369 When an unknown linter is enabled, raise an error identifying which linter(s) are unknown, rather than failing with: WARNING: invalid command "" Note: linters defined with the --linter flag are not considered unknown and will not fail with this error. * address feedback - move validateLinters into linters.go - test the happy path too - remove unnecessary setup in test * clean up error handling
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters