Split SC2165 messages into separate codes (2167).

This commit is contained in:
Vidar Holen 2015-10-10 19:26:14 -07:00
parent 3b36c2c820
commit 5aaa1a7d9a
1 changed files with 1 additions and 1 deletions

View File

@ -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 =