license

package
v0.53.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type License

type License interface {
	// AddExcludedFile adds files to be excluded from license checking.
	// Adding the same file multiple times has no effect.
	AddExcludedFile(files ...string) License
	// AddExcludedDir adds directories to be excluded from license checking.
	// Adding the same directory multiple times has no effect.
	AddExcludedDir(dirs ...string) License
	// AddExcludedPattern adds file patterns to be excluded from license checking.
	// Adding the same pattern multiple times has no effect.
	AddExcludedPattern(patterns ...string) License
	// AddPattern adds file patterns to be included in license checking.
	// Adding the same pattern multiple times has no effect.
	AddPattern(patterns ...string) License
	// RegisterFlags registers command-line flags for license checking.
	// This is mandatory to call this method before calling Execute.
	RegisterFlags()
	// Execute performs the license checking or fixing based on the registered flags.
	Execute()
}

func DefaultLicense

func DefaultLicense() License

DefaultLicense returns a License struct with default excluded directories and file patterns that matches most common use cases in the Perses project.

func New

func New() License

Jump to

Keyboard shortcuts

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