Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
Policies []Policy `yaml:"policies"`
}
Configuration of for allowing/blocking dependencies using its https://github.com/ossf/scorecard score
type Policy ¶
type Policy struct { // Description of the policy Description string `yaml:"description"` // Packages to include, supports wildcards in paths Include []string `yaml:"include,omitempty"` // Packages to exclude, supports wildcards in paths Exclude []string `yaml:"exclude,omitempty"` // Rules for this policy Rules []Rule `yaml:"rules"` }
Policy a policy to apply when validating scorecards
type Processor ¶
type Processor struct { Config *Configuration Modfile *modfile.File // contains filtered or unexported fields }
Processor processes go files
func NewProcessor ¶
func NewProcessor(config *Configuration) (*Processor, error)
NewProcessor will create a Processor to lint blocked packages.
Click to show internal directories.
Click to hide internal directories.