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