format

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ASCIIFail      = '-'
	ASCIIOK        = '+'
	ASCIISeparator = '/'
	Fail           = '❌'
	LISTMAX        = 8
	OK             = '✓'
	Separator      = '•'
)
View Source
const (
	FormatCodeclimate = "codeclimate"
)
View Source
const FormatJUnit = "junit"
View Source
const (
	FormatNone = "none"
)
View Source
const FormatText = "text"

Variables

This section is empty.

Functions

This section is empty.

Types

type Codeclimate added in v0.1.0

type Codeclimate struct {
	Config
	// contains filtered or unexported fields
}

func NewCodeclimate added in v0.1.0

func NewCodeclimate(config Config) *Codeclimate

func (*Codeclimate) AfterTask added in v0.1.0

func (c *Codeclimate) AfterTask(ctx context.Context, res *task.Result) error

func (*Codeclimate) BeforeTask added in v0.1.0

func (*Codeclimate) BeforeTask(context.Context, *spec.Tool, *file.File) error

func (*Codeclimate) Close added in v0.1.0

func (c *Codeclimate) Close() (err error)

func (*Codeclimate) Open added in v0.1.0

func (c *Codeclimate) Open(context.Context) error

type Config

type Config struct {
	ASCII     bool
	Colour    bool
	Verbosity int
	Writer    io.Writer
}

type Format

type Format interface {
	internal.Observer
}

func New

func New(format string, config Config) (Format, error)

type JUnit

type JUnit struct {
	Config
	// contains filtered or unexported fields
}

func NewJUnit

func NewJUnit(config Config) *JUnit

func (*JUnit) AfterTask

func (j *JUnit) AfterTask(_ context.Context, res *task.Result) error

func (*JUnit) BeforeTask

func (j *JUnit) BeforeTask(context.Context, *spec.Tool, *file.File) error

func (*JUnit) Close

func (j *JUnit) Close() (err error)

func (*JUnit) Open

func (j *JUnit) Open(context.Context) error

type Text

type Text struct {
	Config
	// contains filtered or unexported fields
}

func NewText

func NewText(config Config) *Text

func (*Text) AfterTask

func (text *Text) AfterTask(ctx context.Context, res *task.Result) error

func (*Text) BeforeTask

func (text *Text) BeforeTask(
	context.Context,
	*spec.Tool,
	*file.File,
) error

func (*Text) Close

func (text *Text) Close() (err error)

func (*Text) Open

func (text *Text) Open(context.Context) error

Jump to

Keyboard shortcuts

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