Add wiki links to output, and a -W controlling it. (Fixes #920)

This commit is contained in:
Vidar Holen 2018-10-10 21:27:52 -07:00
parent 79319558a5
commit e0e46e979a
5 changed files with 89 additions and 14 deletions

View file

@ -26,7 +26,7 @@ module ShellCheck.Interface
, ParseResult(prComments, prTokenPositions, prRoot)
, AnalysisSpec(asScript, asShellType, asExecutionMode, asCheckSourced)
, AnalysisResult(arComments)
, FormatterOptions(foColorOption)
, FormatterOptions(foColorOption, foWikiLinkCount)
, Shell(Ksh, Sh, Bash, Dash)
, ExecutionMode(Executed, Sourced)
, ErrorMessage
@ -145,12 +145,14 @@ newAnalysisResult = AnalysisResult {
}
-- Formatter options
newtype FormatterOptions = FormatterOptions {
foColorOption :: ColorOption
data FormatterOptions = FormatterOptions {
foColorOption :: ColorOption,
foWikiLinkCount :: Integer
}
newFormatterOptions = FormatterOptions {
foColorOption = ColorAuto
foColorOption = ColorAuto,
foWikiLinkCount = 3
}