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.
Click to show internal directories.
Click to hide internal directories.