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

Have LicenseScanner capture licenses from limited information #18

Open
nigellh opened this issue Mar 23, 2023 · 5 comments
Open

Have LicenseScanner capture licenses from limited information #18

nigellh opened this issue Mar 23, 2023 · 5 comments

Comments

@nigellh
Copy link

nigellh commented Mar 23, 2023

Many packages do not have the full license in the package and might just have the name of the license(s).

LicenseScanner should still be able to pick these up.

Sometimes it is just specified in a package definition file such as package.json, but it could just be text at the head of the file.

I will start pasting a range as I come across them.

@nigellh
Copy link
Author

nigellh commented Mar 23, 2023

/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */

@nigellh
Copy link
Author

nigellh commented Mar 23, 2023

/**
  @license
  Apache License 2.0 https://github.com/ReactiveX/RxJS/blob/master/LICENSE.txt
 **/
/**
  @license
  Apache License 2.0 https://github.com/ReactiveX/RxJS/blob/master/LICENSE.txt
 **/
/*

And yes they were both at the top of a single file!

@nigellh
Copy link
Author

nigellh commented Mar 23, 2023

/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */

While the license isn't directly specified, LicenseScanner could capture it for further investigation

@nigellh
Copy link
Author

nigellh commented Mar 23, 2023

/**
 * @license
 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
 */
// @version 0.7.24

@markstur
Copy link
Contributor

We should add an example of how to enable by-name and by-ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants