Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse & analyse LICENSE files #3

Open
3 tasks
msrcodes opened this issue Oct 17, 2021 · 0 comments
Open
3 tasks

Parse & analyse LICENSE files #3

msrcodes opened this issue Oct 17, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@msrcodes
Copy link
Owner

Is your feature request related to a problem? Please describe.
Many projects ship with a LICENSE file, detailing the terms of the license for that project. This will often be the same as the license specified in package.json, but:

  • The LICENSE may not be the same as the one in package.json
  • The LICENSE file may exist, but the license attribute in package.json may not
  • The license attribute may exist, but the LICENSE file may not

Describe the solution you'd like
Per stated issues above:

  • The LICENSE may not be the same as the one in package.json
    This should be flagged as an error in the console for esnecil list. Having two stated licenses should require manual intervention.
  • The LICENSE file may exist, but the license attribute in package.json may not
    In this case, state that the tool has parsed the LICENSE file and use this data to inform data as usual. If both are missing, assume NO_LICENSE.
  • The license attribute may exist, but the LICENSE file may not
    This is fine, we can ignore this case.

Describe alternatives you've considered
Not doing this: a risk, for reasons stated above

Additional context
LICENSE files aren't standardised, unsure of approach

@msrcodes msrcodes added enhancement New feature or request help wanted Extra attention is needed labels Oct 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant