Brightspace / d2l-license-checker

Simple tool to continuously check for D2L accepted licenses of all npm dependencies in a project.
4 stars 2 forks source link

Specify the accpeted licenses #147

Open YaminoYuki opened 2 years ago

YaminoYuki commented 2 years ago

I am using d2l-license-checker I followed the steps mentioned in the repo, but when I run it I am always getting: Package "name_of_certain_package" doesn't meet license requirements (BSD*).

I want to specify a list of licenses that are accepted and BSD is one of them in the description it was mentioned that: A simple tool to check licenses of all npm dependencies in a project against an approved set of licenses

what are the licenses that approved and how can we specify them ?

I know about the config file .licenseschecker.json but still can't find what I need

in general the examples for this package are very rare

any help ?

fhg-isi commented 1 year ago

I tried to specify/override "acceptedLicenses" in .licenseschecker.json but that did not work.

And I get

Package "tslib@2.6.1" doesn't meet license requirements (0BSD). Repository: https://github.com/Microsoft/tslib Path: C:\python_env\workspace\micat\front_end\node_modules\@swc\helpers\node_modules\tslib

even with 0BSD being listed in accepted licenses of

https://github.com/Brightspace/d2l-license-checker/blob/master/config/default_config.json