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

Now shows full path to modules when its license fails the checker; resolves #26. #55

Closed neverendingqs closed 6 years ago

neverendingqs commented 7 years ago

Depends on https://github.com/davglass/license-checker/pull/126.

neverendingqs commented 7 years ago

Sample output:

Running command "node bin/license-checker-ci test/data/proj-license-issue-dev"
stdout:
stderr:
No config file specified, using unmodified defaults.
>>> Package "bson@0.2.22" doesn't meet license requirements (Apache License, Version 2.0).
    Repository: https://github.com/mongodb/js-bson
    Path: /home/travis/build/Brightspace/license-checker-ci/test/data/proj-license-issue-dev/node_modules/bson
>>> Package "kerberos@0.0.4" doesn't meet license requirements (Apache*).
    Repository: https://github.com/christkv/kerberos
    Path: /home/travis/build/Brightspace/license-checker-ci/test/data/proj-license-issue-dev/node_modules/kerberos
>>> Package "modm@0.4.1" doesn't meet license requirements (UNKNOWN).
    Repository: https://github.com/adioo/modm
    Path: /home/travis/build/Brightspace/license-checker-ci/test/data/proj-license-issue-dev/node_modules/modm
>>> Package "mongodb@1.4.14" doesn't meet license requirements (Apache License, Version 2.0).
    Repository: https://github.com/mongodb/node-mongodb-native
    Path: /home/travis/build/Brightspace/license-checker-ci/test/data/proj-license-issue-dev/node_modules/mongodb
ERROR: Some licenses didn't pass the requirements (see above).
       Please check the offending packages or update the configuration file (.licensechecker.json).
       You can generate a template by running this tool with --generate-template.
       You can find more information at https://github.com/Brightspace/license-checker-ci
zommerfelds commented 6 years ago

I'm gonna make some more modifications today and then we can update the version.