Fix typo in SC2006 message: "backticked" vs "backticks"

This commit is contained in:
Rebecca Cran 2021-05-24 13:33:50 -06:00
parent 331e89be99
commit b61a7658d6
1 changed files with 1 additions and 1 deletions

View File

@ -1595,7 +1595,7 @@ prop_checkBackticks2 = verifyNot checkBackticks "echo $(foo)"
prop_checkBackticks3 = verifyNot checkBackticks "echo `#inlined comment` foo" prop_checkBackticks3 = verifyNot checkBackticks "echo `#inlined comment` foo"
checkBackticks params (T_Backticked id list) | not (null list) = checkBackticks params (T_Backticked id list) | not (null list) =
addComment $ addComment $
makeCommentWithFix StyleC id 2006 "Use $(...) notation instead of legacy backticked `...`." makeCommentWithFix StyleC id 2006 "Use $(...) notation instead of legacy backticks `...`."
(fixWith [replaceStart id params 1 "$(", replaceEnd id params 1 ")"]) (fixWith [replaceStart id params 1 "$(", replaceEnd id params 1 ")"])
checkBackticks _ _ = return () checkBackticks _ _ = return ()