csv

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 6 Imported by: 0

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

func (f *Formatter) FileExtension() string

FileExtension returns the CSV file extension.

func (*Formatter) Format

func (f *Formatter) Format(w io.Writer, findings []finding.Finding) error

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.

Jump to

Keyboard shortcuts

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