Split SC2165 messages into separate codes (2167).
This commit is contained in:
parent
3b36c2c820
commit
5aaa1a7d9a
ShellCheck
|
@ -3486,7 +3486,7 @@ checkLoopVariableReassignment params token =
|
||||||
next <- listToMaybe $ filter (\x -> loopVariable x == Just str) path
|
next <- listToMaybe $ filter (\x -> loopVariable x == Just str) path
|
||||||
return $ do
|
return $ do
|
||||||
warn (getId token) 2165 "This nested loop overrides the index variable of its parent."
|
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
|
path = drop 1 $ getPath (parentMap params) token
|
||||||
loopVariable :: Token -> Maybe String
|
loopVariable :: Token -> Maybe String
|
||||||
loopVariable t =
|
loopVariable t =
|
||||||
|
|
Loading…
Reference in New Issue