From 5aaa1a7d9ae89eda34b9e797799df45841129ef5 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sat, 10 Oct 2015 19:26:14 -0700 Subject: [PATCH] Split SC2165 messages into separate codes (2167). --- ShellCheck/Analytics.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellCheck/Analytics.hs b/ShellCheck/Analytics.hs index d0ab0da..4dd96dc 100644 --- a/ShellCheck/Analytics.hs +++ b/ShellCheck/Analytics.hs @@ -3486,7 +3486,7 @@ checkLoopVariableReassignment params token = next <- listToMaybe $ filter (\x -> loopVariable x == Just str) path return $ do warn (getId token) 2165 "This nested loop overrides the index variable of its parent." - warn (getId next) 2165 "This parent loop has its index variable overridden." + warn (getId next) 2167 "This parent loop has its index variable overridden." path = drop 1 $ getPath (parentMap params) token loopVariable :: Token -> Maybe String loopVariable t =