Documentation
¶
Overview ¶
Package csv provides a CSV output formatter for Leakwatch findings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter struct {
// ShowRaw, when true, appends a trailing "raw" column holding the
// unredacted secret value. When false, no raw column is emitted at all.
ShowRaw bool
}
Formatter outputs findings in CSV format.
func (*Formatter) FileExtension ¶
FileExtension returns the CSV file extension.
func (*Formatter) Format ¶
Format writes findings as CSV to the given writer. Header (ShowRaw=false): id,detector_id,severity,redacted,source,file_path,line,commit,verification_status,remediation Header (ShowRaw=true): the above, with a trailing "raw" column. Every cell is sanitized against spreadsheet formula injection before writing.
Click to show internal directories.
Click to hide internal directories.