Don't warn about deprecated `` when just used for comments.
This commit is contained in:
parent
d1df3713ca
commit
c3df2bf761
|
@ -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…
Reference in New Issue