resultsPrinter

package
v0.0.0-...-8873498 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CICD_PLATFORMS = map[string]string{
	"github-actions-workflows": "Github Actions",
	"jfrog-pipelines":          "Jfrog Pipelines",
	"gitlab-ci":                "Gitlab CI",
}
View Source
var SCM_PLATFORMS = map[string]string{
	"github": "Github",
	"gitlab": "Gitlab",
	"local":  "Local",
}

Functions

func PatchLocalErrors

func PatchLocalErrors(ruleResults map[int]*rulesConfig.RuleResult)

func PrintResults

func PrintResults(ruleResults map[int]*rulesConfig.RuleResult, summary rulesConfig.OutputSummary, disabledRules map[string]bool, outputFormat string, localValidation bool) error

Types

type OutputCsv

type OutputCsv struct {
	OwnerName       string `csv:"owner"`
	RepositoryName  string `csv:"repository"`
	WorkflowRelPath string `csv:"workflowRelPath"`
	RuleName        string `csv:"ruleName"`
	FailureMessage  string `csv:"failureMessage"`
}

Jump to

Keyboard shortcuts

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