Merge pull request #2238 from bcran/legacy-backticks-msg

Fix typo in SC2006 message: "backticked" vs "backticks"
This commit is contained in:
Vidar Holen 2021-07-02 09:55:18 -07:00 committed by GitHub
commit 022bc8277c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 ()