Documentation ¶
Index ¶
Constants ¶
View Source
const (
SchemaVersion = 2
)
Variables ¶
View Source
var CustomTemplateFuncMap = map[string]interface{}{}
CustomTemplateFuncMap is used to overwrite existing functions for testing.
View Source
var Now = time.Now
Now returns the current time
Functions ¶
Types ¶
type JSONWriter ¶ added in v0.13.0
JSONWriter implements result Writer
type SarifWriter ¶ added in v0.23.0
type SarifWriter struct { Output io.Writer Version string // contains filtered or unexported fields }
SarifWriter implements result Writer
type TableWriter ¶
type TableWriter struct { Severities []dbTypes.Severity Output io.Writer // We have to show a message once about using the '-format json' subcommand to get the full pkgPath ShowMessageOnce *sync.Once // For misconfigurations IncludeNonFailures bool Trace bool }
TableWriter implements Writer and output in tabular form
func (TableWriter) Println ¶ added in v0.19.0
func (tw TableWriter) Println(a ...interface{})
type TemplateWriter ¶ added in v0.2.0
TemplateWriter write result in custom format defined by user's template
func NewTemplateWriter ¶ added in v0.11.0
func NewTemplateWriter(output io.Writer, outputTemplate string) (*TemplateWriter, error)
NewTemplateWriter is the factory method to return TemplateWriter object
Click to show internal directories.
Click to hide internal directories.