| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Hadolint.Formatter.Format
Synopsis
- data OutputFormat
- data Result s e = Result {}
- errorBundlePretty :: (VisualStream s, TraversableStream s, ShowErrorComponent e) => ParseErrorBundle s e -> String
- errorMessage :: (VisualStream s, ShowErrorComponent e) => ParseErrorBundle s e -> String
- errorMessageLine :: (VisualStream s, TraversableStream s, ShowErrorComponent e) => ParseErrorBundle s e -> String
- errorPosition :: TraversableStream s => ParseErrorBundle s e -> SourcePos
- errorPositionPretty :: TraversableStream s => ParseErrorBundle s e -> String
- severityText :: DLSeverity -> Text
- stripNewlines :: String -> String
- readMaybeOutputFormat :: Text -> Maybe OutputFormat
- toResult :: Text -> Either (ParseErrorBundle s e) Failures -> Result s e
Documentation
data OutputFormat Source #
Constructors
| Json | |
| SonarQube | |
| TTY | |
| CodeclimateJson | |
| GitlabCodeclimateJson | |
| Gnu | |
| Checkstyle | |
| Codacy | |
| Sarif |
Instances
| FromYAML OutputFormat Source # | |
Defined in Hadolint.Formatter.Format | |
| Monoid OutputFormat Source # | |
Defined in Hadolint.Formatter.Format Methods mempty :: OutputFormat # mappend :: OutputFormat -> OutputFormat -> OutputFormat # mconcat :: [OutputFormat] -> OutputFormat # | |
| Semigroup OutputFormat Source # | |
Defined in Hadolint.Formatter.Format Methods (<>) :: OutputFormat -> OutputFormat -> OutputFormat # sconcat :: NonEmpty OutputFormat -> OutputFormat # stimes :: Integral b => b -> OutputFormat -> OutputFormat # | |
| Show OutputFormat Source # | |
Defined in Hadolint.Formatter.Format Methods showsPrec :: Int -> OutputFormat -> ShowS # show :: OutputFormat -> String # showList :: [OutputFormat] -> ShowS # | |
| Default OutputFormat Source # | |
Defined in Hadolint.Formatter.Format Methods def :: OutputFormat # | |
| Eq OutputFormat Source # | |
Defined in Hadolint.Formatter.Format | |
| Pretty OutputFormat Source # | |
Defined in Hadolint.Formatter.Format | |
Arguments
| :: (VisualStream s, TraversableStream s, ShowErrorComponent e) | |
| => ParseErrorBundle s e | Parse error bundle to display |
| -> String | Textual rendition of the bundle |
Pretty-print a ParseErrorBundle. All ParseErrors in the bundle will
be pretty-printed in order together with the corresponding offending
lines by doing a single pass over the input stream. The rendered String
always ends with a newline.
Since: megaparsec-7.0.0
errorMessage :: (VisualStream s, ShowErrorComponent e) => ParseErrorBundle s e -> String Source #
errorMessageLine :: (VisualStream s, TraversableStream s, ShowErrorComponent e) => ParseErrorBundle s e -> String Source #
errorPosition :: TraversableStream s => ParseErrorBundle s e -> SourcePos Source #
errorPositionPretty :: TraversableStream s => ParseErrorBundle s e -> String Source #
severityText :: DLSeverity -> Text Source #
stripNewlines :: String -> String Source #