Don't warn about deprecated `` when just used for comments.

This commit is contained in:
Vidar Holen 2015-12-05 13:33:39 -08:00
parent d1df3713ca
commit c3df2bf761
1 changed files with 2 additions and 1 deletions

View File

@ -1921,7 +1921,8 @@ checkPS1Assignments _ _ = return ()
prop_checkBackticks1 = verify checkBackticks "echo `foo`" prop_checkBackticks1 = verify checkBackticks "echo `foo`"
prop_checkBackticks2 = verifyNot 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 `..`." style id 2006 "Use $(..) instead of legacy `..`."
checkBackticks _ _ = return () checkBackticks _ _ = return ()