mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-14 07:18:44 -04:00
output: add colored-tab (#3729)
This commit is contained in:
parent
9c46d7d7c0
commit
00d17cc8d1
13 changed files with 157 additions and 39 deletions
pkg/commands
|
@ -475,8 +475,10 @@ func (e *Executor) createPrinter(format string, w io.Writer) (printers.Printer,
|
|||
p = printers.NewText(e.cfg.Output.PrintIssuedLine,
|
||||
format == config.OutFormatColoredLineNumber, e.cfg.Output.PrintLinterName,
|
||||
e.log.Child(logutils.DebugKeyTextPrinter), w)
|
||||
case config.OutFormatTab:
|
||||
p = printers.NewTab(e.cfg.Output.PrintLinterName, e.log.Child(logutils.DebugKeyTabPrinter), w)
|
||||
case config.OutFormatTab, config.OutFormatColoredTab:
|
||||
p = printers.NewTab(e.cfg.Output.PrintLinterName,
|
||||
format == config.OutFormatColoredTab,
|
||||
e.log.Child(logutils.DebugKeyTabPrinter), w)
|
||||
case config.OutFormatCheckstyle:
|
||||
p = printers.NewCheckstyle(w)
|
||||
case config.OutFormatCodeClimate:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue