mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 14:27:35 +08:00
Merge pull request #2238 from bcran/legacy-backticks-msg
Fix typo in SC2006 message: "backticked" vs "backticks"
This commit is contained in:
@@ -1596,7 +1596,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 ()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user