Split duplicate SC1009 into SC1014 for if [ grep foo bar ]

This commit is contained in:
Vidar Holen 2016-10-01 13:34:14 -07:00
parent 1a8e34bfea
commit 8672af29ef
1 changed files with 1 additions and 1 deletions

View File

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