license-scanner icon indicating copy to clipboard operation
license-scanner copied to clipboard

Have LicenseScanner capture licenses from limited information

Open nigellh opened this issue 2 years ago • 5 comments

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 avatar Mar 23 '23 10:03 nigellh

/**
 * @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 avatar Mar 23 '23 10:03 nigellh

/**
  @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 avatar Mar 23 '23 10:03 nigellh

/** @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 avatar Mar 23 '23 10:03 nigellh

/**
 * @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

nigellh avatar Mar 23 '23 10:03 nigellh

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

markstur avatar Mar 27 '23 17:03 markstur