HansHammel / license-compatibility-checker

Check npm dependencies' package.json for license compatibility (aka compliance check) with the current project based on spdx notation and naming conventions.
MIT License
93 stars 6 forks source link

Only non-zero exit when you are sure #19

Open melroy89 opened 2 years ago

melroy89 commented 2 years ago

Currently the compatibility checker exit non-zero also on "possible incompatible".

I would like to have a parameter to the checker script to return non-zero (error) only if there is a definitely comparability issue ("y").

Then I could use this package in my CI/CD pipeline.

Regards, Melroy van den Berg

Exponential-Workload commented 2 years ago

Made a fork that fulfils those needs - https://github.com/YieldingExploiter/license-compatibility-checker It's CLI does not work atm, however you could write something to interact with it's API, or use this action (Boilerplate) instead.