From 19355226e1d88abac37bb2eb5f366110ead0ecb1 Mon Sep 17 00:00:00 2001 From: Martin Bagge / brother Date: Sun, 27 Dec 2020 00:27:36 +0100 Subject: [PATCH] Change error 2076 to a warning. Implementing the suggestion by @pixarbuff #1985. --- src/ShellCheck/Analytics.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ShellCheck/Analytics.hs b/src/ShellCheck/Analytics.hs index 2fb1253..a2ab577 100644 --- a/src/ShellCheck/Analytics.hs +++ b/src/ShellCheck/Analytics.hs @@ -1193,8 +1193,8 @@ checkQuotedCondRegex _ (TC_Binary _ _ "=~" _ rhs) = where error t = unless (isConstantNonRe t) $ - err (getId t) 2076 - "Don't quote right-hand side of =~, it'll match literally rather than as a regex." + warn (getId t) 2076 + "Remove quotes from right-hand side of =~ to match as a regex rather than literally." re = mkRegex "[][*.+()|]" hasMetachars s = s `matches` re isConstantNonRe t = fromMaybe False $ do