mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-14 02:27:30 -07:00
Don't warn about deprecated `` when just used for comments.
This commit is contained in:
parent
d1df3713ca
commit
c3df2bf761
1 changed files with 2 additions and 1 deletions
|
@ -1921,7 +1921,8 @@ checkPS1Assignments _ _ = return ()
|
|||
|
||||
prop_checkBackticks1 = verify checkBackticks "echo `foo`"
|
||||
prop_checkBackticks2 = verifyNot checkBackticks "echo $(foo)"
|
||||
checkBackticks _ (T_Backticked id _) =
|
||||
prop_checkBackticks3 = verifyNot checkBackticks "echo `#inlined comment` foo"
|
||||
checkBackticks _ (T_Backticked id list) | not (null list) =
|
||||
style id 2006 "Use $(..) instead of legacy `..`."
|
||||
checkBackticks _ _ = return ()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue