mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-09-18 01:37:09 +08:00
Moar errors
This commit is contained in:
@@ -981,7 +981,7 @@ collectNotes = do
|
|||||||
|
|
||||||
getNotes s = getNotesWith readScript doAllAnalysis s
|
getNotes s = getNotesWith readScript doAllAnalysis s
|
||||||
getNotesWith parser analytics s =
|
getNotesWith parser analytics s =
|
||||||
case rp (parseWithNotes (parser) analytics) s of
|
case rp (parseWithNotes (do { x <- parser; eof; return x; }) analytics) s of
|
||||||
(Right (x, notes), parsenotes) -> sortNotes $ notes ++ parsenotes
|
(Right (x, notes), parsenotes) -> sortNotes $ notes ++ parsenotes
|
||||||
(Left err, p) -> sortNotes $ (ParseNote (initialPos "-") ErrorC $ "Parsing failed: " ++ (show err)):(p)
|
(Left err, p) -> sortNotes $ (ParseNote (initialPos "-") ErrorC $ "Parsing failed: " ++ (show err)):(p)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user