mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-07 06:22:32 +08:00
Don't warn about deprecated `` when just used for comments.
This commit is contained in:
@@ -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 ()
|
||||
|
||||
|
Reference in New Issue
Block a user