Giter Site home page Giter Site logo

hanshammel / license-compatibility-checker Goto Github PK

View Code? Open in Web Editor NEW
89.0 89.0 6.0 2.85 MB

Check npm dependencies' package.json for license compatibility (aka compliance check) with the current project based on spdx notation and naming conventions.

License: MIT License

JavaScript 100.00%

license-compatibility-checker's People

Contributors

hanshammel avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

license-compatibility-checker's Issues

Only non-zero exit when you are sure

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

More options on error handling

Hi,

I'm using license-compatibility-checker as module. When I execute the code I see this error message:

{ [Error: ENOENT: no such file or directory, access '/home/hf/Desktop/license-reporter/node_modules/@babel/package.json']
  errno: -2,
  code: 'ENOENT',
  syscall: 'access',
  path:
   '/home/hf/Desktop/license-reporter/node_modules/@babel/package.json' }

Any chance to suppress this kind of error?
thanks

Insights into the license compatibility chart

Hi HansHammel

Is it possible that you can provide some insights on the process you used to determine whether two licenses are incompatible as seen on the charts in the readme? It will be very much appreciated.

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet.
We recommend using:

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet.
We recommend using:

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

Does not work on macOS due to line endings

After installing on macOS I'm unable to run the cli ($ license-compatibility-checker) because of the error:

env: node\r: No such file or directory

It seems you have uploaded the files CRLF line endings instead of LF.
Could you possibly switch to LF? (e.g. via .gitattributes or .editorconfig)

Merge with tldrlegal?

Thanks for all of the hard work on this package!

What would you think about combining the functionality in this package with the work being done in tldrlegal? It seems like it would be handy to combine the compatibility checking with the other obligation checking in tldrlegal.

Does not support org-namespaced packages

modules org-scoped by name now appear as ./node_modules/@org/package

errors below

{ [Error: ENOENT: no such file or directory, access '/home/xyz/Development/metamask-extension2/node_modules/@types/package.json']
  errno: -2,
  code: 'ENOENT',
  syscall: 'access',
  path:
   '/home/xyz/Development/metamask-extension2/node_modules/@types/package.json' }
{ [Error: ENOENT: no such file or directory, access '/home/xyz/Development/metamask-extension2/node_modules/@wry/package.json']
  errno: -2,
  code: 'ENOENT',
  syscall: 'access',
  path:
   '/home/xyz/Development/metamask-extension2/node_modules/@wry/package.json' }
{ [Error: ENOENT: no such file or directory, access '/home/xyz/Development/metamask-extension2/node_modules/@xtuc/package.json']
  errno: -2,
  code: 'ENOENT',
  syscall: 'access',
  path:
   '/home/xyz/Development/metamask-extension2/node_modules/@xtuc/package.json' }
{ [Error: ENOENT: no such file or directory, access '/home/xyz/Development/metamask-extension2/node_modules/@webassemblyjs/package.json']
  errno: -2,
  code: 'ENOENT',
  syscall: 'access',
  path:
   '/home/xyz/Development/metamask-extension2/node_modules/@webassemblyjs/package.json' }
{ [Error: ENOENT: no such file or directory, access '/home/xyz/Development/metamask-extension2/node_modules/@zxing/package.json']
  errno: -2,
  code: 'ENOENT',
  syscall: 'access',
  path:
   '/home/xyz/Development/metamask-extension2/node_modules/@zxing/package.json' }

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet.
We recommend using:

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

How to ignore a list of licenses/packages?

I would like to use license-compatiblity-checker in a CI pipeline/workfow.
It should only fail if a new package with an incompatible license has been added.

Currently I get errors like

[email protected] (MIT OR CC0-1.0) (Unknown) - possibly incompatible with AGPL-3.0 (Network Protective)
[email protected] No license (Unlicensed) - possibly incompatible with AGPL-3.0 (Network Protective)

=> How can I manually allow some of the (unknown) licenses / add them to a whitelist?

Exit code 127 with yarn

yarn license-compatibility-checker emits

env: node\r: No such file or directory
error Command failed with exit code 127.

while npx license-compatibility-checker successfully runs.

  • node 11.3.0
  • yarn 1.12.3
  • license-compatibility-checker 0.3.3

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet.
We recommend using:

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.