mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-28 00:49:28 +08:00
Replace verbose checks with optional checks
This commit is contained in:
@@ -985,6 +985,10 @@ readAnnotationWithoutPrefix = do
|
||||
int <- many1 digit
|
||||
return $ DisableComment (read int)
|
||||
|
||||
"enable" -> readName `sepBy` char ','
|
||||
where
|
||||
readName = EnableComment <$> many1 (letter <|> char '-')
|
||||
|
||||
"source" -> do
|
||||
filename <- many1 $ noneOf " \n"
|
||||
return [SourceOverride filename]
|
||||
|
Reference in New Issue
Block a user