format

package
v0.0.1-2020.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2020 License: MIT, BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package format provides formatters for linter problems.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter interface {
	Format(p lint.Problem)
}

type JSON

type JSON struct {
	W io.Writer
}

func (JSON) Format

func (o JSON) Format(p lint.Problem)

type Statter

type Statter interface {
	Stats(total, errors, warnings, ignored int)
}

type Stylish

type Stylish struct {
	W io.Writer
	// contains filtered or unexported fields
}

func (*Stylish) Format

func (o *Stylish) Format(p lint.Problem)

func (*Stylish) Stats

func (o *Stylish) Stats(total, errors, warnings, ignored int)

type Text

type Text struct {
	W io.Writer
}

func (Text) Format

func (o Text) Format(p lint.Problem)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL