licenses

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScanLicenseFiles

func ScanLicenseFiles(sourceDir string) ([]models.LicenseFile, error)

ScanLicenseFiles walks sourceDir for candidate LICENSE/COPYING file paths. It does not read file contents — SPDX matching (IdentifyLicenses) re-reads from disk so that license texts don't get duplicated into persisted outputs. Files that pass globbing but fail isValidLicensePath are skipped silently. Symlinks and paths that escape sourceDir are also skipped to keep the G304 suppression in ReadLicenseFile honest.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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