aboutsummaryrefslogtreecommitdiff
path: root/report_test.go
AgeCommit message (Collapse)Author
2026-01-15all: move checking REUSE annotation after all files listedShulhan
Use case: on the first scan, the file result in group unknown. User then modify the spdxconv.cfg to add or update the match-file-pattern. The next scan should check again the files in unknown group, in case its match with updated config.
2026-01-15all: add group "done" in the reportShulhan
The done group contain list of file that has been processed. File from group regular and binary that has been modified or added with SPDX format will be moved to here.
2026-01-15all: improve the scan by loading the existing reportShulhan
In the second or next scan, load the existing spdxconv.report and check if the file is already scanned before. If the file is in group regular or binary, skip the scan; otherwise re-scan it again.
2026-01-15file: change the flag for grouping to use int instead of boolShulhan
Previously, we use two boolean fields to flag a file as binary and unknown. In order to simplify it in the future we change it to int.
2026-01-14all: get the copyright year from git historyShulhan
If the line that match with pattern on match-copyright does not contains year, or there is no match, try to get the year from the first commit of the file using "git log --follow ..." command. If no commit history or its not using git, use default copyright year from configuration.
2026-01-10report: store the index line number and comments in reportShulhan
For the index line number, instead of tied to license_id and copyright_id value (separated by ":"), store it in separate column as idx_license_id and idx_copyright_id. For comments, store the prefix and suffix at column 6 and 7 in CSV line.
2026-01-10report: add method loadReportShulhan
The loadReport method load the ReportFile from the current directory, as written by [report.write] method.