Formats the result of elm-review
in a nice human-readable way.
{ moduleName : Maybe String
, ruleName : String
, message : String
, details : List String
, range : Range
, hasFix : Basics.Bool
}
Contents of an error. Convert the errors from
Review
to this type.
{ path : String
, source : String
}
Represents a file.
{ str : String
, color : Maybe ( Basics.Int
, Basics.Int
, Basics.Int )
, backgroundColor : Maybe ( Basics.Int
, Basics.Int
, Basics.Int )
}
Represents styled text.
Formatter functions return a list of these, that should be styled in the viewing medium according to the associated colors and joined together without spaces.
Mode in which elm-review
is running.
formatReport : Mode -> List ( File, List Error ) -> List TextContent
Reports the errors reported by elm-review
in a nice human-readable way.
formatFixProposal : File -> Error -> String -> List TextContent
Reports a fix proposal for a single error reported by elm-review
in a nice human-readable way.