report

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportJSONReport

func ExportJSONReport(ctx context.Context, path, filename string, body interface{}) error

ExportJSONReport - encodes a given body to a JSON file in a given filepath

func PrintASFFReport

func PrintASFFReport(ctx context.Context, path, filename string, body interface{}, sciInfo *model.SCIInfo) error

PrintASFFReport prints the ASFF report in the given path and filename with the given body

func PrintCSVReport

func PrintCSVReport(ctx context.Context, path, filename string, body interface{}, sciInfo *model.SCIInfo) error

PrintCSVReport prints the CSV report in the given path and filename with the given body

func PrintCodeClimateReport

func PrintCodeClimateReport(ctx context.Context, path, filename string, body interface{}, sciInfo *model.SCIInfo) error

PrintCodeClimateReport prints the code climate report in the given path and filename with the given body

func PrintCycloneDxReport

func PrintCycloneDxReport(ctx context.Context, path, filename string, body interface{}, sciInfo *model.SCIInfo) error

PrintCycloneDxReport prints the CycloneDX report in the given path and filename with the given body

func PrintGitlabSASTReport

func PrintGitlabSASTReport(ctx context.Context, path, filename string, body interface{}, sciInfo *model.SCIInfo) error

PrintGitlabSASTReport creates a report file on sarif format

func PrintHTMLReport

func PrintHTMLReport(ctx context.Context, path, filename string, body interface{}, sciInfo *model.SCIInfo) error

PrintHTMLReport creates a report file on HTML format

func PrintJSONReport

func PrintJSONReport(ctx context.Context, path, filename string, body interface{}, sciInfo *model.SCIInfo) error

PrintJSONReport prints on JSON file the summary results

func PrintJUnitReport

func PrintJUnitReport(ctx context.Context, path, filename string, body interface{}, sciInfo *model.SCIInfo) error

PrintJUnitReport prints the JUnit report in the given path and filename with the given body

func PrintPdfReport

func PrintPdfReport(ctx context.Context, path, filename string, body interface{}, sciInfo *model.SCIInfo) error

PrintPdfReport creates a report file on the PDF format

func PrintSarifReport

func PrintSarifReport(ctx context.Context, path, filename string, body interface{}, sciInfo *model.SCIInfo) error

PrintSarifReport creates a report file on sarif format, fetching the ID and GUID from relationships to be inputted to taxonomies field

func PrintSimpleJSONReport added in v1.7.0

func PrintSimpleJSONReport(ctx context.Context, path, filename string, body interface{}, sciInfo *model.SCIInfo) error

PrintSimpleJSONReport prints a flat JSON array of findings, one entry per (query × file) pair.

func PrintSonarQubeReport

func PrintSonarQubeReport(ctx context.Context, path, filename string, body interface{}, sciInfo *model.SCIInfo) error

PrintSonarQubeReport prints the SonarQube report in the given path and filename with the given body

Types

type SimpleJSONFinding added in v1.7.0

type SimpleJSONFinding struct {
	QueryID     string `json:"queryID"`
	QueryName   string `json:"queryName"`
	Severity    string `json:"severity"`
	Platform    string `json:"platform"`
	Line        int    `json:"line"`
	FileName    string `json:"fileName"`
	FingerPrint string `json:"fingerPrint"`
}

SimpleJSONFinding represents one finding in the simple-json report.

Directories

Path Synopsis
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.

Jump to

Keyboard shortcuts

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