Add a verbose mode: -S verbose

This commit is contained in:
Vidar Holen 2019-04-13 13:10:48 -07:00
parent f514f5f735
commit 9652ccfdbd
6 changed files with 11 additions and 6 deletions

View file

@ -32,7 +32,7 @@ module ShellCheck.Interface
, ExecutionMode(Executed, Sourced)
, ErrorMessage
, Code
, Severity(ErrorC, WarningC, InfoC, StyleC)
, Severity(ErrorC, WarningC, InfoC, StyleC, VerboseC)
, Position(posFile, posLine, posColumn)
, Comment(cSeverity, cCode, cMessage)
, PositionedComment(pcStartPos , pcEndPos , pcComment, pcFix)
@ -189,7 +189,7 @@ data ExecutionMode = Executed | Sourced deriving (Show, Eq)
type ErrorMessage = String
type Code = Integer
data Severity = ErrorC | WarningC | InfoC | StyleC
data Severity = ErrorC | WarningC | InfoC | StyleC | VerboseC
deriving (Show, Eq, Ord, Generic, NFData)
data Position = Position {
posFile :: String, -- Filename