insideklion.blogg.se

Ilicense scanner
Ilicense scanner













  1. ILICENSE SCANNER UPDATE
  2. ILICENSE SCANNER SOFTWARE
  3. ILICENSE SCANNER LICENSE
  4. ILICENSE SCANNER FREE

Resources under resources/spdx/* and resources/custom/* are embedded in license-scanner or your own executables when building with the API.

ILICENSE SCANNER LICENSE

In addition, default examples used to recognize additional legal terms and extend SPDX license matching are provided under resources/custom/default.

ilicense scanner

This directory is provided in the repo for out-of-the-box functionality. By default, SPDX licenses and license exceptions are configured under resources/spdx/default.

ilicense scanner

License-scanner uses configurable resources to identify licenses and legal terms. Config file location (used to locate resources): -configPath, -configNameĮxample license library listing: resources/LIST.md Runtime flags Resource flags.Since you may have multiple locations for resources and multiple SPDX and custom folders under each of those resources, use the following flags to generate non-default listings: When running license_scanner -list a listing of the SPDX and custom license templates will be output. Config file location: -configPath, -configName.Resource flags (import destination): one of -spdx, -spdxPath, -custom, -customPath.The following runtime flags may be used to modify the behavior: When running license_scanner -addAll the input directory is used to validate, prepare, and import licenses. Output enhancer flags: -acceptable, -copyrights, -hash, -keywords, -normalized, -license.Config file location flags: -configPath, -configName.Output logging flags: -quiet or -debug.Resource flags: -spdx or -spdxPath and -custom or -customPath.The following optional runtime flags may be used to modify and enhance the behavior:

ilicense scanner

NameĪ directory in which to identify licenses When running license_scanner -dir the input directory is recursively scanned for license matches. When running license_scanner -file the input file is scanned for license matches. In help mode, all other flags are ignored. When you add -help or -h to any license_scanner command it will produce help output and no other action will be performed. Refer to configurer/README.md for advanced configuration options. Use WithFlags() to set the non-default flags for a scan result, err := scanSpecs.

ilicense scanner

"fmt" "io" "io/ioutil" "log" "net/http" "os" "/CycloneDX/license-scanner/api/scanner"įunc GetLicense( urls map string) SPDX License ID, SPDX License Expression, and License name. Initialize the ScanSpecs with LicenseText to scan the license text against the set of SPDX licenses and get theĬycloneDX LicenseChoice.

ILICENSE SCANNER SOFTWARE

IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.

ILICENSE SCANNER FREE

$ license-scanner -f ASYNC_LICENSE Looking for all licences FOUND LICENSE MATCHES: License ID: MIT begins: 0 ends: 1061 begins: 40 ends: 600 begins: 602 ends: 1061 :: Copyright (c) 2010-2018 Caolan McMahon Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

ILICENSE SCANNER UPDATE

$ license-scanner -help Usage: license-scanner Flags: -g, -acceptable Flag acceptable -addAll string Add licenses -configName string Base name for config file (default "config") -configPath string Path to any config files -c, -copyrights Flag copyrights -custom string Custom templates to use (default "default") -customPath string Path to external custom templates to use -d, -debug Enable debug logging -dir string A directory in which to identify licenses -f, -file string A file in which to identify licenses -x, -hash Output file hash -h, -help help for license-scanner -k, -keywords Flag keywords -l, -license string Display match debugging for the given license -list List the license templates to be used -n, -normalized Flag normalized -q, -quiet Set logging to quiet -spdx string Set of embedded SPDX templates to use (default "default") -spdxPath string Path to external SPDX templates to use -updateAll Update existing licenses Example CLI usageĮxample usage to scan LICENSE.txt, but only print the license IDs and positions of license matches:















Ilicense scanner