config

package
v0.0.0-...-51f1176 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {

	// Confidence threshold that the license is correctly matched.
	// eg 0.7 would require a 70% confidence that it's a match
	MatchConfidenceThreshold float64 `yaml:"match_confidence"`

	// RiskThreshold specifies at what point to alert - default is 4, RESTRICTED
	RiskThreshold int `yaml:"risk_threshold"`

	// Licenses that can be ignored because they're acceptable or
	// not a concern
	IgnoredLicences []string `yaml:"ignored_licenses"`

	// When scanning files, check the header for licenses
	IncludeHeaders bool `yaml:"include_headers"`
}

Jump to

Keyboard shortcuts

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