Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Statistics ¶
func Statistics(r *malcontent.Report) error
Types ¶
type JSON ¶
type JSON struct {
// contains filtered or unexported fields
}
func (JSON) File ¶
func (r JSON) File(_ context.Context, _ *malcontent.FileReport) error
type KeyedBehavior ¶
type KeyedBehavior struct { Key string Behavior *malcontent.Behavior }
type Markdown ¶
type Markdown struct {
// contains filtered or unexported fields
}
func NewMarkdown ¶
func (Markdown) File ¶
func (r Markdown) File(ctx context.Context, fr *malcontent.FileReport) error
type Report ¶ added in v1.5.0
type Report struct { Diff *malcontent.DiffReport `json:",omitempty" yaml:",omitempty"` Files map[string]*malcontent.FileReport `json:",omitempty" yaml:",omitempty"` Filter string `json:",omitempty" yaml:",omitempty"` }
Report stores a JSON- or YAML-friendly representation of File Reports.
type Simple ¶
type Simple struct {
// contains filtered or unexported fields
}
func (Simple) File ¶
func (r Simple) File(_ context.Context, fr *malcontent.FileReport) error
type StringMatches ¶ added in v1.2.0
type StringMatches struct {
// contains filtered or unexported fields
}
func NewStringMatches ¶ added in v1.2.0
func NewStringMatches(w io.Writer) StringMatches
func (StringMatches) File ¶ added in v1.2.0
func (r StringMatches) File(_ context.Context, fr *malcontent.FileReport) error
func (StringMatches) Full ¶ added in v1.2.0
func (r StringMatches) Full(_ context.Context, rep *malcontent.Report) error
type Terminal ¶
type Terminal struct {
// contains filtered or unexported fields
}
func NewTerminal ¶
func (Terminal) File ¶
func (r Terminal) File(ctx context.Context, fr *malcontent.FileReport) error
type TerminalBrief ¶
type TerminalBrief struct {
// contains filtered or unexported fields
}
func NewTerminalBrief ¶
func NewTerminalBrief(w io.Writer) TerminalBrief
func (TerminalBrief) File ¶
func (r TerminalBrief) File(_ context.Context, fr *malcontent.FileReport) error
func (TerminalBrief) Full ¶
func (r TerminalBrief) Full(_ context.Context, rep *malcontent.Report) error
type YAML ¶
type YAML struct {
// contains filtered or unexported fields
}
func (YAML) File ¶
func (r YAML) File(_ context.Context, _ *malcontent.FileReport) error
Click to show internal directories.
Click to hide internal directories.