mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-09 02:48:25 +08:00
Gave Parsec errors proper positioning info
This commit is contained in:
@@ -4,6 +4,7 @@ import Shpell.Parser
|
||||
import Shpell.Analytics
|
||||
import Data.Maybe
|
||||
import Text.Parsec.Pos
|
||||
import Data.List
|
||||
|
||||
shpellCheck :: String -> [ShpellComment]
|
||||
shpellCheck script =
|
||||
@@ -14,7 +15,7 @@ shpellCheck script =
|
||||
return $ notesFromMap newMap
|
||||
)
|
||||
in
|
||||
map formatNote $ sortNotes allNotes
|
||||
map formatNote $ nub $ sortNotes allNotes
|
||||
|
||||
data ShpellComment = ShpellComment { shpellLine :: Int, shpellColumn :: Int, shpellSeverity :: String, shpellComment :: String }
|
||||
|
||||
|
Reference in New Issue
Block a user