mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 21:41:34 -07:00
Warn when shell functions blatantly recurse (fixes #1994)
This commit is contained in:
parent
cc81bdee31
commit
1ac2c31728
3 changed files with 40 additions and 0 deletions
|
@ -163,6 +163,8 @@ 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
|
||||
|
||||
errWithFix :: MonadWriter [TokenComment] m => Id -> Code -> String -> Fix -> m ()
|
||||
errWithFix = addCommentWithFix ErrorC
|
||||
warnWithFix :: MonadWriter [TokenComment] m => Id -> Code -> String -> Fix -> m ()
|
||||
warnWithFix = addCommentWithFix WarningC
|
||||
styleWithFix :: MonadWriter [TokenComment] m => Id -> Code -> String -> Fix -> m ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue