From 00c470f323355cc01a91f5529b5c943571542c63 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sun, 1 Mar 2015 12:20:37 -0800 Subject: [PATCH] Improve SC2143 error message --- ShellCheck/Analytics.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ShellCheck/Analytics.hs b/ShellCheck/Analytics.hs index c2447a3..dc93bb5 100644 --- a/ShellCheck/Analytics.hs +++ b/ShellCheck/Analytics.hs @@ -3133,8 +3133,8 @@ checkShouldUseGrepQ params t = let op = if bool then "-n" else "-z" let flip = if bool then "" else "! " return . style id 2143 $ - "Instead of [ " ++ op ++ " $(foo | " ++ name ++ " bar) ], " ++ - "use " ++ flip ++ "foo | " ++ name ++ " -q bar ." + "Use " ++ flip ++ name ++ " -q instead of " ++ + "comparing output with [ " ++ op ++ " .. ]." getFinalGrep t = do cmds <- getPipeline t