reports

package
v0.0.0-...-ac32242 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2018 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleReport

type ConsoleReport struct{}

ConsoleReport is a type of text-based report that writes to stdout.

func (*ConsoleReport) Generate

func (cr *ConsoleReport) Generate(report *Report)

Generate generates a text-based report.

type Generator

type Generator interface {
	Generate(*Report)
}

Generator is a type that can generate reports.

type Report

type Report struct {
	GeneratedAt time.Time
	Analyzers   []analyzers.Analyzer
	Sources     []*sources.Source
	Issues      []*analyzers.Issue
	// contains filtered or unexported fields
}

Report represents a report of issues found.

func New

func New(generator Generator) *Report

New returns a new instance of Report.

func (*Report) AddAnalyzers

func (r *Report) AddAnalyzers(analyzers []analyzers.Analyzer)

AddAnalyzers adds a list of analyzers to the report.

func (*Report) AddIssues

func (r *Report) AddIssues(issues []*analyzers.Issue)

AddIssues adds a list of issues to a report.

func (*Report) AddSources

func (r *Report) AddSources(sources []*sources.Source)

AddSources adds a list of sources to the report.

func (*Report) AnalyzersRun

func (r *Report) AnalyzersRun() string

AnalyzersRun returns a list of IDs associated with the analyzers that were run.

func (*Report) Generate

func (r *Report) Generate()

Generate generates a report.

Jump to

Keyboard shortcuts

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