mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 21:41:34 -07:00
SC2249: When verbose, warn about missing default case (fixes #997)
This commit is contained in:
parent
b76c0a8221
commit
5b7354918f
3 changed files with 20 additions and 0 deletions
|
@ -154,6 +154,7 @@ warn id code str = addComment $ makeComment WarningC id code str
|
|||
err id code str = addComment $ makeComment ErrorC id code str
|
||||
info id code str = addComment $ makeComment InfoC id code str
|
||||
style id code str = addComment $ makeComment StyleC id code str
|
||||
verbose id code str = addComment $ makeComment VerboseC id code str
|
||||
|
||||
warnWithFix :: MonadWriter [TokenComment] m => Id -> Code -> String -> Fix -> m ()
|
||||
warnWithFix = addCommentWithFix WarningC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue