formatters

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatCSV

func FormatCSV(w io.Writer, results []result.Result, _ string, _ ...FormatterOption) error

FormatCSV ...

func FormatDefault

func FormatDefault(_ io.Writer, results []result.Result, _ string, options ...FormatterOption) error

FormatDefault ...

func FormatJSON

func FormatJSON(w io.Writer, results []result.Result, _ string, _ ...FormatterOption) error

FormatJSON ...

func FormatSarif added in v0.0.5

func FormatSarif(w io.Writer, results []result.Result, _ string, _ ...FormatterOption) error

Types

type Formatter

type Formatter func(w io.Writer, results []result.Result, scanPath string, options ...FormatterOption) error

Formatter formats scan results into a specific format

type FormatterOption

type FormatterOption int

FormatterOption ...

const (
	ConciseOutput FormatterOption = iota
	IncludePassed
	PassingGif
)

ConciseOutput ...

type JSONOutput

type JSONOutput struct {
	Results []result.Result `json:"results"`
}

JSONOutput ...

Jump to

Keyboard shortcuts

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