Documentation ¶
Index ¶
- func New(kind string, w io.Writer) (malcontent.Renderer, error)
- func ShortRisk(s string) string
- func Statistics(c *malcontent.Config, r *malcontent.Report) error
- type Interactive
- type JSON
- type KeyedBehavior
- type Markdown
- type Match
- type Report
- type Simple
- type StringMatches
- type Terminal
- type TerminalBrief
- type YAML
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Statistics ¶
func Statistics(c *malcontent.Config, r *malcontent.Report) error
Types ¶
type Interactive ¶ added in v1.6.0
type Interactive struct {
// contains filtered or unexported fields
}
func NewInteractive ¶ added in v1.6.0
func NewInteractive(w io.Writer) *Interactive
func (*Interactive) File ¶ added in v1.6.0
func (r *Interactive) File(ctx context.Context, fr *malcontent.FileReport) error
func (*Interactive) Full ¶ added in v1.6.0
func (r *Interactive) Full(ctx context.Context, rep *malcontent.Report) error
func (*Interactive) Name ¶ added in v1.6.0
func (r *Interactive) Name() string
func (*Interactive) Scanning ¶ added in v1.6.0
func (r *Interactive) Scanning(_ context.Context, path string)
func (*Interactive) Start ¶ added in v1.6.0
func (r *Interactive) Start()
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
func (StringMatches) Name ¶ added in v1.6.0
func (r StringMatches) Name() string
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
func (TerminalBrief) Name ¶ added in v1.6.0
func (r TerminalBrief) Name() string
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.