Closed Fdawgs closed 2 years ago
Can you show the result of error when --summary
is used?
Can you show the result of error when
--summary
is used?
Sure, it's the same as if not using --summary
, as an example from fastify-nextjs:
Package "caniuse-lite@1.0.30001373" is licensed under "CC-BY-4.0" which is not permitted by the --onlyAllow flag. Exiting.
Yes, use the less verbose one.
Prerequisites
Issue
License checking output is quite verbose atm, for example:
https://github.com/fastify/fastify-helmet/runs/7727727775?check_suite_focus=true
The output is:
Obviously
@fastify/helmet
is one of the smaller plugins, this is a lot longer for something like@fastify/swagger
or@fastify/static
.If we add the
--summary
option to license-checker then it'd cut it down to:It still throws errors even with this option enabled, so we'll still catch unacceptable licenses, we just won't have to scroll through the long output to get to it.