copyright

package
v0.43.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, opts ...Option) renovate.Renovator

New returns a renovator which performs a copyright update.

Types

type CopyrightConfig

type CopyrightConfig struct {
	Licenses []license.License
	Diffs    []license.LicenseDiff
	Format   string // "simple" or "flat"
}

CopyrightConfig contains the configuration data for a copyright update renovator.

type Option

type Option func(cfg *CopyrightConfig) error

Option sets a config option on a CopyrightConfig.

func WithDiffs added in v0.24.0

func WithDiffs(diffs []license.LicenseDiff) Option

WithLicenses sets the differences to consider for the renovator.

func WithFormat added in v0.29.1

func WithFormat(format string) Option

WithFormat sets whether the copyright should be populated with a single node containing all detected licenses joined together (simple), or with multiple nodes, one per license (flat).

func WithLicenses

func WithLicenses(licenses []license.License) Option

WithTargetVersion sets the licenses to be used for the renovator.

Jump to

Keyboard shortcuts

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