Split duplicate SC1009 into SC1014 for if [ grep foo bar ]
This commit is contained in:
parent
1a8e34bfea
commit
8672af29ef
|
@ -411,7 +411,7 @@ readConditionContents single =
|
||||||
pos <- getPosition
|
pos <- getPosition
|
||||||
s <- many1 letter
|
s <- many1 letter
|
||||||
when (s `elem` commonCommands) $
|
when (s `elem` commonCommands) $
|
||||||
parseProblemAt pos WarningC 1009 "Use 'if cmd; then ..' to check exit code, or 'if [[ $(cmd) == .. ]]' to check output.")
|
parseProblemAt pos WarningC 1014 "Use 'if cmd; then ..' to check exit code, or 'if [[ $(cmd) == .. ]]' to check output.")
|
||||||
|
|
||||||
where
|
where
|
||||||
spacingOrLf = condSpacing True
|
spacingOrLf = condSpacing True
|
||||||
|
|
Loading…
Reference in New Issue