tern icon indicating copy to clipboard operation
tern copied to clipboard

May need to adjust scancode parsing variable names

Open rnjudge opened this issue 2 years ago • 1 comments

Description Potentially revert or modify https://github.com/tern-tools/tern/commit/ce5c76305c577e089879d28c7e9e0fdeac20045e when resolution has been reached for https://github.com/nexB/scancode-toolkit/issues/2803.

The declared_license naming field is perhaps not something Tern should collect as it is currently only the extracted license statement that exists in a package manifest using the same data structure as provided upstream, so it could be a list, a string, a dict or anything. declared_license is NOT normalized by design since it is supposed to represent the upstream data and structure. Instead the license_expression (which Tern collects as part of a package licenses attribute is probably what we want since it contains the normalized license expression using ScanCode keys.

rnjudge avatar Jan 25 '22 22:01 rnjudge

See https://github.com/nexB/scancode-toolkit/issues/2803#issuecomment-1317336149

AyanSinhaMahapatra avatar Nov 16 '22 16:11 AyanSinhaMahapatra