MCPcopy
hub / github.com/eslint/eslint / isPermissible

Function isPermissible

Makefile.js:947–960  ·  view source on GitHub ↗

* Check if a dependency is eligible to be used by us * @param {Object} dependency dependency to check * @returns {boolean} true if we have permission * @private

(dependency)

Source from the content-addressed store, hash-verified

945 * @private
946 */
947 function isPermissible(dependency) {
948 const licenses = dependency.licenses;
949
950 if (Array.isArray(licenses)) {
951 return licenses.some(license =>
952 isPermissible({
953 name: dependency.name,
954 licenses: license,
955 }),
956 );
957 }
958
959 return OPEN_SOURCE_LICENSES.some(license => license.test(licenses));
960 }
961
962 echo("Validating licenses");
963

Callers 1

Makefile.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…