mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-20 13:23:55 -07:00
parent
2364fd58b6
commit
5dac723593
3 changed files with 297 additions and 305 deletions
|
@ -28,7 +28,7 @@ import Test.QuickCheck.All (quickCheckAll)
|
|||
shellCheck :: String -> [AnalysisOption] -> [ShellCheckComment]
|
||||
shellCheck script options =
|
||||
let (ParseResult result notes) = parseShell "-" script in
|
||||
let allNotes = notes ++ (concat $ maybeToList $ do
|
||||
let allNotes = notes ++ concat (maybeToList $ do
|
||||
(tree, posMap) <- result
|
||||
let list = runAnalytics options tree
|
||||
return $ map (noteToParseNote posMap) $ filterByAnnotation tree list
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue