From 2ba481db1100a62654df333870fc04b682d3506e Mon Sep 17 00:00:00 2001 From: Ravi Date: Wed, 22 Apr 2020 23:10:57 +0530 Subject: [PATCH 1/2] Rename first column of csv output to path Signed-off-by: Ravi --- src/formattedcode/output_csv.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/formattedcode/output_csv.py b/src/formattedcode/output_csv.py index bde506a8ead..4c03b7c8db5 100644 --- a/src/formattedcode/output_csv.py +++ b/src/formattedcode/output_csv.py @@ -137,7 +137,7 @@ def collect_keys(mapping, key_group): errors = scanned_file.pop('scan_errors', []) - file_info = OrderedDict(Resource=path) + file_info = OrderedDict(path=path) file_info.update(((k, v) for k, v in scanned_file.items() # FIXME: info are NOT lists: lists are the actual scans if not isinstance(v, (list, dict)))) @@ -148,12 +148,12 @@ def collect_keys(mapping, key_group): yield file_info for lic_exp in scanned_file.get('license_expressions', []): - inf = OrderedDict(Resource=path, license_expression=lic_exp) + inf = OrderedDict(path=path, license_expression=lic_exp) collect_keys(inf, 'license_expression') yield inf for licensing in scanned_file.get('licenses', []): - lic = OrderedDict(Resource=path) + lic = OrderedDict(path=path) for k, val in licensing.items(): # do not include matched text for now. if k == 'matched_text': @@ -183,7 +183,7 @@ def collect_keys(mapping, key_group): yield lic for copyr in scanned_file.get('copyrights', []): - inf = OrderedDict(Resource=path) + inf = OrderedDict(path=path) inf['copyright'] = copyr['value'] inf['start_line'] = copyr['start_line'] inf['end_line'] = copyr['start_line'] @@ -191,7 +191,7 @@ def collect_keys(mapping, key_group): yield inf for copyr in scanned_file.get('holders', []): - inf = OrderedDict(Resource=path) + inf = OrderedDict(path=path) inf['copyright_holder'] = copyr['value'] inf['start_line'] = copyr['start_line'] inf['end_line'] = copyr['start_line'] @@ -199,7 +199,7 @@ def collect_keys(mapping, key_group): yield inf for copyr in scanned_file.get('authors', []): - inf = OrderedDict(Resource=path) + inf = OrderedDict(path=path) inf['author'] = copyr['value'] inf['start_line'] = copyr['start_line'] inf['end_line'] = copyr['start_line'] @@ -207,13 +207,13 @@ def collect_keys(mapping, key_group): yield inf for email in scanned_file.get('emails', []): - email_info = OrderedDict(Resource=path) + email_info = OrderedDict(path=path) email_info.update(email) collect_keys(email_info, 'email') yield email_info for url in scanned_file.get('urls', []): - url_info = OrderedDict(Resource=path) + url_info = OrderedDict(path=path) url_info.update(url) collect_keys(url_info, 'url') yield url_info @@ -286,7 +286,7 @@ def flatten_package(_package, path, prefix='package__'): package_columns = get_package_columns() - pack = OrderedDict(Resource=path) + pack = OrderedDict(path=path) for k, val in _package.items(): if k not in package_columns: continue From 391eeba4fdfe19d09ff66ba691bbe5dd8bb10a18 Mon Sep 17 00:00:00 2001 From: Ravi Date: Thu, 23 Apr 2020 00:18:34 +0530 Subject: [PATCH 2/2] Update tests expected data Signed-off-by: Ravi --- .../data/csv/expressions/expected.csv | 8 +- .../data/csv/flatten_scan/full.json-expected | 408 +++++++++--------- .../csv/flatten_scan/key_order.expected.json | 10 +- .../csv/flatten_scan/minimal.json-expected | 22 +- .../package_license_value_null.json-expected | 6 +- ...th_and_without_leading_slash.json-expected | 6 +- .../data/csv/livescan/expected.csv | 46 +- .../data/csv/non-standard/identified.csv | 14 +- .../data/csv/packages/expected-no-root.csv | 6 +- .../data/csv/packages/expected.csv | 8 +- tests/formattedcode/data/csv/srp.csv | 18 +- .../formattedcode/data/csv/tree/expected.csv | 48 +-- 12 files changed, 300 insertions(+), 300 deletions(-) diff --git a/tests/formattedcode/data/csv/expressions/expected.csv b/tests/formattedcode/data/csv/expressions/expected.csv index 28f52c2b52d..1d0b9dd50e5 100644 --- a/tests/formattedcode/data/csv/expressions/expected.csv +++ b/tests/formattedcode/data/csv/expressions/expected.csv @@ -1,4 +1,4 @@ -Resource,type,scan_errors,license_expression -apache-2.0.LICENSE,file,, -apache-2.0.LICENSE,,,apache-2.0 -apache-2.0.LICENSE,,,mit +path,type,scan_errors,license_expression +apache-2.0.LICENSE,file,, +apache-2.0.LICENSE,,,apache-2.0 +apache-2.0.LICENSE,,,mit diff --git a/tests/formattedcode/data/csv/flatten_scan/full.json-expected b/tests/formattedcode/data/csv/flatten_scan/full.json-expected index 079634bb08d..2d5beaafaba 100644 --- a/tests/formattedcode/data/csv/flatten_scan/full.json-expected +++ b/tests/formattedcode/data/csv/flatten_scan/full.json-expected @@ -1,6 +1,6 @@ [ { - "Resource": "samples/", + "path": "samples/", "type": "directory", "name": "samples", "base_name": "samples", @@ -24,7 +24,7 @@ "scan_errors": "" }, { - "Resource": "samples/README", + "path": "samples/README", "type": "file", "name": "README", "base_name": "README", @@ -48,19 +48,19 @@ "scan_errors": "" }, { - "Resource": "samples/README", + "path": "samples/README", "url": "http://zlib.net/zlib-1.2.8.tar.gz", "start_line": 3, "end_line": 3 }, { - "Resource": "samples/README", + "path": "samples/README", "url": "http://master.dl.sourceforge.net/project/javagroups/JGroups/2.10.0.GA/JGroups-2.10.0.GA.src.zip", "start_line": 4, "end_line": 4 }, { - "Resource": "samples/screenshot.png", + "path": "samples/screenshot.png", "type": "file", "name": "screenshot.png", "base_name": "screenshot", @@ -84,7 +84,7 @@ "scan_errors": "" }, { - "Resource": "samples/arch/", + "path": "samples/arch/", "type": "directory", "name": "arch", "base_name": "arch", @@ -108,7 +108,7 @@ "scan_errors": "" }, { - "Resource": "samples/arch/zlib.tar.gz", + "path": "samples/arch/zlib.tar.gz", "type": "file", "name": "zlib.tar.gz", "base_name": "zlib", @@ -132,7 +132,7 @@ "scan_errors": "" }, { - "Resource": "samples/arch/zlib.tar.gz", + "path": "samples/arch/zlib.tar.gz", "package__type": "tarball", "package__namespace": "", "package__name": "", @@ -153,7 +153,7 @@ "package__contains_source_code": "" }, { - "Resource": "samples/JGroups/", + "path": "samples/JGroups/", "type": "directory", "name": "JGroups", "base_name": "JGroups", @@ -177,7 +177,7 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/EULA", + "path": "samples/JGroups/EULA", "type": "file", "name": "EULA", "base_name": "EULA", @@ -201,7 +201,7 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/EULA", + "path": "samples/JGroups/EULA", "license__key": "jboss-eula", "license__score": "100.00", "license__short_name": "JBoss EULA", @@ -224,49 +224,49 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/JGroups/EULA", + "path": "samples/JGroups/EULA", "copyright": "Copyright 2006 Red Hat, Inc.", "start_line": 104, "end_line": 104 }, { - "Resource": "samples/JGroups/EULA", + "path": "samples/JGroups/EULA", "copyright_holder": "Red Hat, Inc.", "start_line": 104, "end_line": 104 }, { - "Resource": "samples/JGroups/EULA", + "path": "samples/JGroups/EULA", "url": "http://www.opensource.org/licenses/index.php", "start_line": 24, "end_line": 24 }, { - "Resource": "samples/JGroups/EULA", + "path": "samples/JGroups/EULA", "url": "http://www.jboss.org/", "start_line": 27, "end_line": 27 }, { - "Resource": "samples/JGroups/EULA", + "path": "samples/JGroups/EULA", "url": "http://www.redhat.com/about/corporate/trademark", "start_line": 40, "end_line": 40 }, { - "Resource": "samples/JGroups/EULA", + "path": "samples/JGroups/EULA", "url": "http://www.jboss.com/company/logos", "start_line": 43, "end_line": 43 }, { - "Resource": "samples/JGroups/EULA", + "path": "samples/JGroups/EULA", "url": "http://www.redhat.com/licenses", "start_line": 94, "end_line": 94 }, { - "Resource": "samples/JGroups/LICENSE", + "path": "samples/JGroups/LICENSE", "type": "file", "name": "LICENSE", "base_name": "LICENSE", @@ -290,7 +290,7 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/LICENSE", + "path": "samples/JGroups/LICENSE", "license__key": "lgpl-2.1-plus", "license__score": "100.00", "license__short_name": "LGPL 2.1 or later", @@ -313,31 +313,31 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/JGroups/LICENSE", + "path": "samples/JGroups/LICENSE", "copyright": "Copyright (c) 1991, 1999 Free Software Foundation, Inc.", "start_line": 4, "end_line": 4 }, { - "Resource": "samples/JGroups/LICENSE", + "path": "samples/JGroups/LICENSE", "copyright": "copyrighted by the Free Software Foundation", "start_line": 428, "end_line": 428 }, { - "Resource": "samples/JGroups/LICENSE", + "path": "samples/JGroups/LICENSE", "copyright_holder": "Free Software Foundation, Inc.", "start_line": 4, "end_line": 4 }, { - "Resource": "samples/JGroups/LICENSE", + "path": "samples/JGroups/LICENSE", "copyright_holder": "the Free Software Foundation", "start_line": 428, "end_line": 428 }, { - "Resource": "samples/JGroups/licenses/", + "path": "samples/JGroups/licenses/", "type": "directory", "name": "licenses", "base_name": "licenses", @@ -361,7 +361,7 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/licenses/apache-1.1.txt", + "path": "samples/JGroups/licenses/apache-1.1.txt", "type": "file", "name": "apache-1.1.txt", "base_name": "apache-1.1", @@ -385,7 +385,7 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/licenses/apache-1.1.txt", + "path": "samples/JGroups/licenses/apache-1.1.txt", "license__key": "apache-1.1", "license__score": "100.00", "license__short_name": "Apache 1.1", @@ -408,37 +408,37 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/JGroups/licenses/apache-1.1.txt", + "path": "samples/JGroups/licenses/apache-1.1.txt", "copyright": "Copyright (c) 2000 The Apache Software Foundation.", "start_line": 4, "end_line": 4 }, { - "Resource": "samples/JGroups/licenses/apache-1.1.txt", + "path": "samples/JGroups/licenses/apache-1.1.txt", "copyright_holder": "The Apache Software Foundation.", "start_line": 4, "end_line": 4 }, { - "Resource": "samples/JGroups/licenses/apache-1.1.txt", + "path": "samples/JGroups/licenses/apache-1.1.txt", "author": "the Apache Software Foundation (http://www.apache.org/).", "start_line": 21, "end_line": 21 }, { - "Resource": "samples/JGroups/licenses/apache-1.1.txt", + "path": "samples/JGroups/licenses/apache-1.1.txt", "email": "apache@apache.org", "start_line": 29, "end_line": 29 }, { - "Resource": "samples/JGroups/licenses/apache-1.1.txt", + "path": "samples/JGroups/licenses/apache-1.1.txt", "url": "http://www.apache.org/", "start_line": 22, "end_line": 22 }, { - "Resource": "samples/JGroups/licenses/apache-2.0.txt", + "path": "samples/JGroups/licenses/apache-2.0.txt", "type": "file", "name": "apache-2.0.txt", "base_name": "apache-2.0", @@ -462,7 +462,7 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/licenses/apache-2.0.txt", + "path": "samples/JGroups/licenses/apache-2.0.txt", "license__key": "apache-2.0", "license__score": "100.00", "license__short_name": "Apache 2.0", @@ -485,19 +485,19 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/JGroups/licenses/apache-2.0.txt", + "path": "samples/JGroups/licenses/apache-2.0.txt", "url": "http://www.apache.org/licenses/", "start_line": 4, "end_line": 4 }, { - "Resource": "samples/JGroups/licenses/apache-2.0.txt", + "path": "samples/JGroups/licenses/apache-2.0.txt", "url": "http://www.apache.org/licenses/LICENSE-2.0", "start_line": 196, "end_line": 196 }, { - "Resource": "samples/JGroups/licenses/bouncycastle.txt", + "path": "samples/JGroups/licenses/bouncycastle.txt", "type": "file", "name": "bouncycastle.txt", "base_name": "bouncycastle", @@ -521,7 +521,7 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/licenses/bouncycastle.txt", + "path": "samples/JGroups/licenses/bouncycastle.txt", "license__key": "mit", "license__score": "100.00", "license__short_name": "MIT License", @@ -544,25 +544,25 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/JGroups/licenses/bouncycastle.txt", + "path": "samples/JGroups/licenses/bouncycastle.txt", "copyright": "Copyright (c) 2000 - 2006 The Legion Of The Bouncy Castle (http://www.bouncycastle.org)", "start_line": 5, "end_line": 5 }, { - "Resource": "samples/JGroups/licenses/bouncycastle.txt", + "path": "samples/JGroups/licenses/bouncycastle.txt", "copyright_holder": "The Legion Of The Bouncy Castle", "start_line": 5, "end_line": 5 }, { - "Resource": "samples/JGroups/licenses/bouncycastle.txt", + "path": "samples/JGroups/licenses/bouncycastle.txt", "url": "http://www.bouncycastle.org/", "start_line": 5, "end_line": 5 }, { - "Resource": "samples/JGroups/licenses/cpl-1.0.txt", + "path": "samples/JGroups/licenses/cpl-1.0.txt", "type": "file", "name": "cpl-1.0.txt", "base_name": "cpl-1.0", @@ -586,7 +586,7 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/licenses/cpl-1.0.txt", + "path": "samples/JGroups/licenses/cpl-1.0.txt", "license__key": "cpl-1.0", "license__score": "99.94", "license__short_name": "CPL 1.0", @@ -609,7 +609,7 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/JGroups/licenses/lgpl.txt", + "path": "samples/JGroups/licenses/lgpl.txt", "type": "file", "name": "lgpl.txt", "base_name": "lgpl", @@ -633,7 +633,7 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/licenses/lgpl.txt", + "path": "samples/JGroups/licenses/lgpl.txt", "license__key": "lgpl-2.1-plus", "license__score": "100.00", "license__short_name": "LGPL 2.1 or later", @@ -656,31 +656,31 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/JGroups/licenses/lgpl.txt", + "path": "samples/JGroups/licenses/lgpl.txt", "copyright": "Copyright (c) 1991, 1999 Free Software Foundation, Inc.", "start_line": 4, "end_line": 4 }, { - "Resource": "samples/JGroups/licenses/lgpl.txt", + "path": "samples/JGroups/licenses/lgpl.txt", "copyright": "copyrighted by the Free Software Foundation", "start_line": 428, "end_line": 428 }, { - "Resource": "samples/JGroups/licenses/lgpl.txt", + "path": "samples/JGroups/licenses/lgpl.txt", "copyright_holder": "Free Software Foundation, Inc.", "start_line": 4, "end_line": 4 }, { - "Resource": "samples/JGroups/licenses/lgpl.txt", + "path": "samples/JGroups/licenses/lgpl.txt", "copyright_holder": "the Free Software Foundation", "start_line": 428, "end_line": 428 }, { - "Resource": "samples/JGroups/src/", + "path": "samples/JGroups/src/", "type": "directory", "name": "src", "base_name": "src", @@ -704,7 +704,7 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/src/FixedMembershipToken.java", + "path": "samples/JGroups/src/FixedMembershipToken.java", "type": "file", "name": "FixedMembershipToken.java", "base_name": "FixedMembershipToken", @@ -728,7 +728,7 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/src/FixedMembershipToken.java", + "path": "samples/JGroups/src/FixedMembershipToken.java", "license__key": "lgpl-2.1-plus", "license__score": "100.00", "license__short_name": "LGPL 2.1 or later", @@ -751,37 +751,37 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/JGroups/src/FixedMembershipToken.java", + "path": "samples/JGroups/src/FixedMembershipToken.java", "copyright": "Copyright 2005, JBoss Inc., and individual contributors", "start_line": 3, "end_line": 3 }, { - "Resource": "samples/JGroups/src/FixedMembershipToken.java", + "path": "samples/JGroups/src/FixedMembershipToken.java", "copyright_holder": "JBoss Inc., and individual contributors", "start_line": 3, "end_line": 3 }, { - "Resource": "samples/JGroups/src/FixedMembershipToken.java", + "path": "samples/JGroups/src/FixedMembershipToken.java", "author": "Chris Mills (millsy@jboss.com)", "start_line": 51, "end_line": 51 }, { - "Resource": "samples/JGroups/src/FixedMembershipToken.java", + "path": "samples/JGroups/src/FixedMembershipToken.java", "email": "millsy@jboss.com", "start_line": 51, "end_line": 51 }, { - "Resource": "samples/JGroups/src/FixedMembershipToken.java", + "path": "samples/JGroups/src/FixedMembershipToken.java", "url": "http://www.fsf.org/", "start_line": 20, "end_line": 20 }, { - "Resource": "samples/JGroups/src/GuardedBy.java", + "path": "samples/JGroups/src/GuardedBy.java", "type": "file", "name": "GuardedBy.java", "base_name": "GuardedBy", @@ -805,7 +805,7 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/src/GuardedBy.java", + "path": "samples/JGroups/src/GuardedBy.java", "license__key": "cc-by-2.5", "license__score": "70.00", "license__short_name": "CC-BY-2.5", @@ -828,37 +828,37 @@ "matched_rule__rule_relevance": "70.00" }, { - "Resource": "samples/JGroups/src/GuardedBy.java", + "path": "samples/JGroups/src/GuardedBy.java", "copyright": "Copyright (c) 2005 Brian Goetz and Tim Peierls", "start_line": 9, "end_line": 9 }, { - "Resource": "samples/JGroups/src/GuardedBy.java", + "path": "samples/JGroups/src/GuardedBy.java", "copyright_holder": "Brian Goetz and Tim Peierls", "start_line": 9, "end_line": 9 }, { - "Resource": "samples/JGroups/src/GuardedBy.java", + "path": "samples/JGroups/src/GuardedBy.java", "author": "Bela Ban", "start_line": 15, "end_line": 15 }, { - "Resource": "samples/JGroups/src/GuardedBy.java", + "path": "samples/JGroups/src/GuardedBy.java", "url": "http://creativecommons.org/licenses/by/2.5", "start_line": 11, "end_line": 11 }, { - "Resource": "samples/JGroups/src/GuardedBy.java", + "path": "samples/JGroups/src/GuardedBy.java", "url": "http://www.jcip.net/", "start_line": 12, "end_line": 12 }, { - "Resource": "samples/JGroups/src/ImmutableReference.java", + "path": "samples/JGroups/src/ImmutableReference.java", "type": "file", "name": "ImmutableReference.java", "base_name": "ImmutableReference", @@ -882,7 +882,7 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/src/ImmutableReference.java", + "path": "samples/JGroups/src/ImmutableReference.java", "license__key": "lgpl-2.1-plus", "license__score": "100.00", "license__short_name": "LGPL 2.1 or later", @@ -905,31 +905,31 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/JGroups/src/ImmutableReference.java", + "path": "samples/JGroups/src/ImmutableReference.java", "copyright": "Copyright 2010, Red Hat, Inc. and individual contributors", "start_line": 3, "end_line": 3 }, { - "Resource": "samples/JGroups/src/ImmutableReference.java", + "path": "samples/JGroups/src/ImmutableReference.java", "copyright_holder": "Red Hat, Inc. and individual contributors", "start_line": 3, "end_line": 3 }, { - "Resource": "samples/JGroups/src/ImmutableReference.java", + "path": "samples/JGroups/src/ImmutableReference.java", "author": "Brian Stansberry", "start_line": 29, "end_line": 29 }, { - "Resource": "samples/JGroups/src/ImmutableReference.java", + "path": "samples/JGroups/src/ImmutableReference.java", "url": "http://www.fsf.org/", "start_line": 20, "end_line": 20 }, { - "Resource": "samples/JGroups/src/RATE_LIMITER.java", + "path": "samples/JGroups/src/RATE_LIMITER.java", "type": "file", "name": "RATE_LIMITER.java", "base_name": "RATE_LIMITER", @@ -953,13 +953,13 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/src/RATE_LIMITER.java", + "path": "samples/JGroups/src/RATE_LIMITER.java", "author": "Bela Ban", "start_line": 14, "end_line": 14 }, { - "Resource": "samples/JGroups/src/RouterStub.java", + "path": "samples/JGroups/src/RouterStub.java", "type": "file", "name": "RouterStub.java", "base_name": "RouterStub", @@ -983,19 +983,19 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/src/RouterStub.java", + "path": "samples/JGroups/src/RouterStub.java", "author": "Bela Ban", "start_line": 23, "end_line": 23 }, { - "Resource": "samples/JGroups/src/RouterStub.java", + "path": "samples/JGroups/src/RouterStub.java", "url": "https://jira.jboss.org/jira/browse/JGRP-1151", "start_line": 232, "end_line": 232 }, { - "Resource": "samples/JGroups/src/RouterStubManager.java", + "path": "samples/JGroups/src/RouterStubManager.java", "type": "file", "name": "RouterStubManager.java", "base_name": "RouterStubManager", @@ -1019,7 +1019,7 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/src/RouterStubManager.java", + "path": "samples/JGroups/src/RouterStubManager.java", "license__key": "lgpl-2.1-plus", "license__score": "100.00", "license__short_name": "LGPL 2.1 or later", @@ -1042,25 +1042,25 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/JGroups/src/RouterStubManager.java", + "path": "samples/JGroups/src/RouterStubManager.java", "copyright": "Copyright 2009, Red Hat Middleware LLC, and individual contributors", "start_line": 3, "end_line": 3 }, { - "Resource": "samples/JGroups/src/RouterStubManager.java", + "path": "samples/JGroups/src/RouterStubManager.java", "copyright_holder": "Red Hat Middleware LLC, and individual contributors", "start_line": 3, "end_line": 3 }, { - "Resource": "samples/JGroups/src/RouterStubManager.java", + "path": "samples/JGroups/src/RouterStubManager.java", "url": "http://www.fsf.org/", "start_line": 20, "end_line": 20 }, { - "Resource": "samples/JGroups/src/S3_PING.java", + "path": "samples/JGroups/src/S3_PING.java", "type": "file", "name": "S3_PING.java", "base_name": "S3_PING", @@ -1084,7 +1084,7 @@ "scan_errors": "" }, { - "Resource": "samples/JGroups/src/S3_PING.java", + "path": "samples/JGroups/src/S3_PING.java", "license__key": "public-domain", "license__score": "10.00", "license__short_name": "Public Domain", @@ -1107,7 +1107,7 @@ "matched_rule__rule_relevance": "10.00" }, { - "Resource": "samples/JGroups/src/S3_PING.java", + "path": "samples/JGroups/src/S3_PING.java", "license__key": "public-domain", "license__score": "10.00", "license__short_name": "Public Domain", @@ -1130,43 +1130,43 @@ "matched_rule__rule_relevance": "10.00" }, { - "Resource": "samples/JGroups/src/S3_PING.java", + "path": "samples/JGroups/src/S3_PING.java", "author": "Bela Ban", "start_line": 35, "end_line": 35 }, { - "Resource": "samples/JGroups/src/S3_PING.java", + "path": "samples/JGroups/src/S3_PING.java", "author": "Robert Harder", "start_line": 1698, "end_line": 1698 }, { - "Resource": "samples/JGroups/src/S3_PING.java", + "path": "samples/JGroups/src/S3_PING.java", "author": "rob@iharder.net", "start_line": 1698, "end_line": 1698 }, { - "Resource": "samples/JGroups/src/S3_PING.java", + "path": "samples/JGroups/src/S3_PING.java", "email": "rob@iharder.net", "start_line": 1699, "end_line": 1699 }, { - "Resource": "samples/JGroups/src/S3_PING.java", + "path": "samples/JGroups/src/S3_PING.java", "url": "http://iharder.sourceforge.net/current/java/base64/", "start_line": 1652, "end_line": 1652 }, { - "Resource": "samples/JGroups/src/S3_PING.java", + "path": "samples/JGroups/src/S3_PING.java", "url": "http://iharder.net/base64", "start_line": 1695, "end_line": 1695 }, { - "Resource": "samples/srp/", + "path": "samples/srp/", "type": "directory", "name": "srp", "base_name": "srp", @@ -1190,7 +1190,7 @@ "scan_errors": "" }, { - "Resource": "samples/srp/build.info", + "path": "samples/srp/build.info", "type": "file", "name": "build.info", "base_name": "build", @@ -1214,7 +1214,7 @@ "scan_errors": "" }, { - "Resource": "samples/srp/srp_lib.c", + "path": "samples/srp/srp_lib.c", "type": "file", "name": "srp_lib.c", "base_name": "srp_lib", @@ -1238,7 +1238,7 @@ "scan_errors": "" }, { - "Resource": "samples/srp/srp_lib.c", + "path": "samples/srp/srp_lib.c", "license__key": "openssl", "license__score": "100.00", "license__short_name": "OpenSSL License", @@ -1261,25 +1261,25 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/srp/srp_lib.c", + "path": "samples/srp/srp_lib.c", "copyright": "Copyright 2011-2016 The OpenSSL Project", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/srp/srp_lib.c", + "path": "samples/srp/srp_lib.c", "copyright_holder": "The OpenSSL Project", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/srp/srp_lib.c", + "path": "samples/srp/srp_lib.c", "url": "https://www.openssl.org/source/license.html", "start_line": 7, "end_line": 7 }, { - "Resource": "samples/srp/srp_vfy.c", + "path": "samples/srp/srp_vfy.c", "type": "file", "name": "srp_vfy.c", "base_name": "srp_vfy", @@ -1303,7 +1303,7 @@ "scan_errors": "" }, { - "Resource": "samples/srp/srp_vfy.c", + "path": "samples/srp/srp_vfy.c", "license__key": "openssl", "license__score": "100.00", "license__short_name": "OpenSSL License", @@ -1326,25 +1326,25 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/srp/srp_vfy.c", + "path": "samples/srp/srp_vfy.c", "copyright": "Copyright 2011-2016 The OpenSSL Project", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/srp/srp_vfy.c", + "path": "samples/srp/srp_vfy.c", "copyright_holder": "The OpenSSL Project", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/srp/srp_vfy.c", + "path": "samples/srp/srp_vfy.c", "url": "https://www.openssl.org/source/license.html", "start_line": 7, "end_line": 7 }, { - "Resource": "samples/srp/scan/", + "path": "samples/srp/scan/", "type": "directory", "name": "scan", "base_name": "scan", @@ -1368,7 +1368,7 @@ "scan_errors": "" }, { - "Resource": "samples/srp/scan/", + "path": "samples/srp/scan/", "package__type": "npm", "package__namespace": "", "package__name": "cookie-signature", @@ -1389,7 +1389,7 @@ "package__contains_source_code": "" }, { - "Resource": "samples/srp/scan/json2csv.rb", + "path": "samples/srp/scan/json2csv.rb", "type": "file", "name": "json2csv.rb", "base_name": "json2csv", @@ -1413,7 +1413,7 @@ "scan_errors": "" }, { - "Resource": "samples/srp/scan/json2csv.rb", + "path": "samples/srp/scan/json2csv.rb", "license__key": "apache-2.0", "license__score": "89.53", "license__short_name": "Apache 2.0", @@ -1436,37 +1436,37 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/srp/scan/json2csv.rb", + "path": "samples/srp/scan/json2csv.rb", "copyright": "Copyright (c) 2017 nexB Inc. and others.", "start_line": 3, "end_line": 3 }, { - "Resource": "samples/srp/scan/json2csv.rb", + "path": "samples/srp/scan/json2csv.rb", "copyright_holder": "nexB Inc. and others.", "start_line": 3, "end_line": 3 }, { - "Resource": "samples/srp/scan/json2csv.rb", + "path": "samples/srp/scan/json2csv.rb", "url": "http://nexb.com/", "start_line": 4, "end_line": 4 }, { - "Resource": "samples/srp/scan/json2csv.rb", + "path": "samples/srp/scan/json2csv.rb", "url": "https://github.com/nexB/scancode-toolkit/", "start_line": 4, "end_line": 4 }, { - "Resource": "samples/srp/scan/json2csv.rb", + "path": "samples/srp/scan/json2csv.rb", "url": "http://apache.org/licenses/LICENSE-2.0", "start_line": 10, "end_line": 10 }, { - "Resource": "samples/srp/scan/license", + "path": "samples/srp/scan/license", "type": "file", "name": "license", "base_name": "license", @@ -1490,7 +1490,7 @@ "scan_errors": "" }, { - "Resource": "samples/srp/scan/license", + "path": "samples/srp/scan/license", "license__key": "gpl-2.0-plus", "license__score": "100.00", "license__short_name": "GPL 2.0 or later", @@ -1513,7 +1513,7 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/srp/scan/package.json", + "path": "samples/srp/scan/package.json", "type": "file", "name": "package.json", "base_name": "package", @@ -1537,7 +1537,7 @@ "scan_errors": "" }, { - "Resource": "samples/srp/scan/package.json", + "path": "samples/srp/scan/package.json", "license__key": "mit", "license__score": "15.00", "license__short_name": "MIT License", @@ -1560,7 +1560,7 @@ "matched_rule__rule_relevance": "15.00" }, { - "Resource": "samples/srp/scan/package.json", + "path": "samples/srp/scan/package.json", "license__key": "mit", "license__score": "100.00", "license__short_name": "MIT License", @@ -1583,37 +1583,37 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/srp/scan/package.json", + "path": "samples/srp/scan/package.json", "copyright": "Copyright (c) 2012 LearnBoost ", "start_line": 24, "end_line": 24 }, { - "Resource": "samples/srp/scan/package.json", + "path": "samples/srp/scan/package.json", "copyright_holder": "LearnBoost", "start_line": 24, "end_line": 24 }, { - "Resource": "samples/srp/scan/package.json", + "path": "samples/srp/scan/package.json", "email": "tj@learnboost.com", "start_line": 12, "end_line": 12 }, { - "Resource": "samples/srp/scan/package.json", + "path": "samples/srp/scan/package.json", "url": "https://github.com/visionmedia/node-cookie-signature.git", "start_line": 16, "end_line": 16 }, { - "Resource": "samples/srp/scan/package.json", + "path": "samples/srp/scan/package.json", "url": "https://github.com/visionmedia/node-cookie-signature/issues", "start_line": 27, "end_line": 27 }, { - "Resource": "samples/zlib/", + "path": "samples/zlib/", "type": "directory", "name": "zlib", "base_name": "zlib", @@ -1637,7 +1637,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/adler32.c", + "path": "samples/zlib/adler32.c", "type": "file", "name": "adler32.c", "base_name": "adler32", @@ -1661,7 +1661,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/adler32.c", + "path": "samples/zlib/adler32.c", "license__key": "zlib", "license__score": "60.00", "license__short_name": "ZLIB License", @@ -1684,19 +1684,19 @@ "matched_rule__rule_relevance": "60.00" }, { - "Resource": "samples/zlib/adler32.c", + "path": "samples/zlib/adler32.c", "copyright": "Copyright (c) 1995-2011 Mark Adler", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/zlib/adler32.c", + "path": "samples/zlib/adler32.c", "copyright_holder": "Mark Adler", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/zlib/deflate.c", + "path": "samples/zlib/deflate.c", "type": "file", "name": "deflate.c", "base_name": "deflate", @@ -1720,7 +1720,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/deflate.c", + "path": "samples/zlib/deflate.c", "license__key": "zlib", "license__score": "60.00", "license__short_name": "ZLIB License", @@ -1743,43 +1743,43 @@ "matched_rule__rule_relevance": "60.00" }, { - "Resource": "samples/zlib/deflate.c", + "path": "samples/zlib/deflate.c", "copyright": "Copyright (c) 1995-2013 Jean-loup Gailly and Mark Adler", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/zlib/deflate.c", + "path": "samples/zlib/deflate.c", "copyright": "Copyright 1995-2013 Jean-loup Gailly and Mark Adler", "start_line": 54, "end_line": 54 }, { - "Resource": "samples/zlib/deflate.c", + "path": "samples/zlib/deflate.c", "copyright_holder": "Jean-loup Gailly and Mark Adler", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/zlib/deflate.c", + "path": "samples/zlib/deflate.c", "copyright_holder": "Jean-loup Gailly and Mark Adler", "start_line": 54, "end_line": 54 }, { - "Resource": "samples/zlib/deflate.c", + "path": "samples/zlib/deflate.c", "author": "Leonid Broukhis.", "start_line": 34, "end_line": 34 }, { - "Resource": "samples/zlib/deflate.c", + "path": "samples/zlib/deflate.c", "url": "http://tools.ietf.org/html/rfc1951", "start_line": 40, "end_line": 40 }, { - "Resource": "samples/zlib/deflate.h", + "path": "samples/zlib/deflate.h", "type": "file", "name": "deflate.h", "base_name": "deflate", @@ -1803,7 +1803,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/deflate.h", + "path": "samples/zlib/deflate.h", "license__key": "zlib", "license__score": "60.00", "license__short_name": "ZLIB License", @@ -1826,7 +1826,7 @@ "matched_rule__rule_relevance": "60.00" }, { - "Resource": "samples/zlib/deflate.h", + "path": "samples/zlib/deflate.h", "license__key": "zlib", "license__score": "100.00", "license__short_name": "ZLIB License", @@ -1849,19 +1849,19 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/zlib/deflate.h", + "path": "samples/zlib/deflate.h", "copyright": "Copyright (c) 1995-2012 Jean-loup Gailly", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/zlib/deflate.h", + "path": "samples/zlib/deflate.h", "copyright_holder": "Jean-loup Gailly", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/zlib/zlib.h", + "path": "samples/zlib/zlib.h", "type": "file", "name": "zlib.h", "base_name": "zlib", @@ -1885,7 +1885,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/zlib.h", + "path": "samples/zlib/zlib.h", "license__key": "zlib", "license__score": "100.00", "license__short_name": "ZLIB License", @@ -1908,37 +1908,37 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/zlib/zlib.h", + "path": "samples/zlib/zlib.h", "copyright": "Copyright (c) 1995-2013 Jean-loup Gailly and Mark Adler", "start_line": 4, "end_line": 4 }, { - "Resource": "samples/zlib/zlib.h", + "path": "samples/zlib/zlib.h", "copyright_holder": "Jean-loup Gailly and Mark Adler", "start_line": 4, "end_line": 4 }, { - "Resource": "samples/zlib/zlib.h", + "path": "samples/zlib/zlib.h", "email": "jloup@gzip.org", "start_line": 23, "end_line": 23 }, { - "Resource": "samples/zlib/zlib.h", + "path": "samples/zlib/zlib.h", "email": "madler@alumni.caltech.edu", "start_line": 23, "end_line": 23 }, { - "Resource": "samples/zlib/zlib.h", + "path": "samples/zlib/zlib.h", "url": "http://tools.ietf.org/html/rfc1950", "start_line": 27, "end_line": 27 }, { - "Resource": "samples/zlib/zutil.c", + "path": "samples/zlib/zutil.c", "type": "file", "name": "zutil.c", "base_name": "zutil", @@ -1962,7 +1962,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/zutil.c", + "path": "samples/zlib/zutil.c", "license__key": "zlib", "license__score": "60.00", "license__short_name": "ZLIB License", @@ -1985,19 +1985,19 @@ "matched_rule__rule_relevance": "60.00" }, { - "Resource": "samples/zlib/zutil.c", + "path": "samples/zlib/zutil.c", "copyright": "Copyright (c) 1995-2005, 2010, 2011, 2012 Jean-loup Gailly.", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/zlib/zutil.c", + "path": "samples/zlib/zutil.c", "copyright_holder": "Jean-loup Gailly.", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/zlib/zutil.h", + "path": "samples/zlib/zutil.h", "type": "file", "name": "zutil.h", "base_name": "zutil", @@ -2021,7 +2021,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/zutil.h", + "path": "samples/zlib/zutil.h", "license__key": "zlib", "license__score": "60.00", "license__short_name": "ZLIB License", @@ -2044,19 +2044,19 @@ "matched_rule__rule_relevance": "60.00" }, { - "Resource": "samples/zlib/zutil.h", + "path": "samples/zlib/zutil.h", "copyright": "Copyright (c) 1995-2013 Jean-loup Gailly.", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/zlib/zutil.h", + "path": "samples/zlib/zutil.h", "copyright_holder": "Jean-loup Gailly.", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/zlib/ada/", + "path": "samples/zlib/ada/", "type": "directory", "name": "ada", "base_name": "ada", @@ -2080,7 +2080,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/ada/zlib.ads", + "path": "samples/zlib/ada/zlib.ads", "type": "file", "name": "zlib.ads", "base_name": "zlib", @@ -2104,7 +2104,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/ada/zlib.ads", + "path": "samples/zlib/ada/zlib.ads", "license__key": "lgpl-2.0-plus", "license__score": "97.39", "license__short_name": "LGPL 2.0 or later", @@ -2127,7 +2127,7 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/zlib/ada/zlib.ads", + "path": "samples/zlib/ada/zlib.ads", "license__key": "ada-linking-exception", "license__score": "100.00", "license__short_name": "Ada linking exception to GPL 2.0 or later", @@ -2150,19 +2150,19 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/zlib/ada/zlib.ads", + "path": "samples/zlib/ada/zlib.ads", "copyright": "Copyright (c) 2002-2004 Dmitriy Anisimkov", "start_line": 4, "end_line": 4 }, { - "Resource": "samples/zlib/ada/zlib.ads", + "path": "samples/zlib/ada/zlib.ads", "copyright_holder": "Dmitriy Anisimkov", "start_line": 4, "end_line": 4 }, { - "Resource": "samples/zlib/dotzlib/", + "path": "samples/zlib/dotzlib/", "type": "directory", "name": "dotzlib", "base_name": "dotzlib", @@ -2186,7 +2186,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/dotzlib/AssemblyInfo.cs", + "path": "samples/zlib/dotzlib/AssemblyInfo.cs", "type": "file", "name": "AssemblyInfo.cs", "base_name": "AssemblyInfo", @@ -2210,19 +2210,19 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/dotzlib/AssemblyInfo.cs", + "path": "samples/zlib/dotzlib/AssemblyInfo.cs", "copyright": "Copyright (c) 2004 by Henrik Ravn", "start_line": 14, "end_line": 14 }, { - "Resource": "samples/zlib/dotzlib/AssemblyInfo.cs", + "path": "samples/zlib/dotzlib/AssemblyInfo.cs", "copyright_holder": "Henrik Ravn", "start_line": 14, "end_line": 14 }, { - "Resource": "samples/zlib/dotzlib/ChecksumImpl.cs", + "path": "samples/zlib/dotzlib/ChecksumImpl.cs", "type": "file", "name": "ChecksumImpl.cs", "base_name": "ChecksumImpl", @@ -2246,7 +2246,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/dotzlib/ChecksumImpl.cs", + "path": "samples/zlib/dotzlib/ChecksumImpl.cs", "license__key": "boost-1.0", "license__score": "92.59", "license__short_name": "Boost 1.0", @@ -2269,25 +2269,25 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/zlib/dotzlib/ChecksumImpl.cs", + "path": "samples/zlib/dotzlib/ChecksumImpl.cs", "copyright": "(c) Copyright Henrik Ravn 2004", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/zlib/dotzlib/ChecksumImpl.cs", + "path": "samples/zlib/dotzlib/ChecksumImpl.cs", "copyright_holder": "Henrik Ravn", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/zlib/dotzlib/ChecksumImpl.cs", + "path": "samples/zlib/dotzlib/ChecksumImpl.cs", "url": "http://www.boost.org/LICENSE_1_0.txt", "start_line": 5, "end_line": 5 }, { - "Resource": "samples/zlib/dotzlib/LICENSE_1_0.txt", + "path": "samples/zlib/dotzlib/LICENSE_1_0.txt", "type": "file", "name": "LICENSE_1_0.txt", "base_name": "LICENSE_1_0", @@ -2311,7 +2311,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/dotzlib/LICENSE_1_0.txt", + "path": "samples/zlib/dotzlib/LICENSE_1_0.txt", "license__key": "boost-1.0", "license__score": "100.00", "license__short_name": "Boost 1.0", @@ -2334,7 +2334,7 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/zlib/dotzlib/readme.txt", + "path": "samples/zlib/dotzlib/readme.txt", "type": "file", "name": "readme.txt", "base_name": "readme", @@ -2358,7 +2358,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/dotzlib/readme.txt", + "path": "samples/zlib/dotzlib/readme.txt", "license__key": "boost-1.0", "license__score": "92.59", "license__short_name": "Boost 1.0", @@ -2381,25 +2381,25 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/zlib/dotzlib/readme.txt", + "path": "samples/zlib/dotzlib/readme.txt", "copyright": "Copyright (c) Henrik Ravn 2004", "start_line": 55, "end_line": 55 }, { - "Resource": "samples/zlib/dotzlib/readme.txt", + "path": "samples/zlib/dotzlib/readme.txt", "copyright_holder": "Henrik Ravn", "start_line": 55, "end_line": 55 }, { - "Resource": "samples/zlib/dotzlib/readme.txt", + "path": "samples/zlib/dotzlib/readme.txt", "url": "http://www.boost.org/LICENSE_1_0.txt", "start_line": 58, "end_line": 58 }, { - "Resource": "samples/zlib/gcc_gvmat64/", + "path": "samples/zlib/gcc_gvmat64/", "type": "directory", "name": "gcc_gvmat64", "base_name": "gcc_gvmat64", @@ -2423,7 +2423,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/gcc_gvmat64/gvmat64.S", + "path": "samples/zlib/gcc_gvmat64/gvmat64.S", "type": "file", "name": "gvmat64.S", "base_name": "gvmat64", @@ -2447,7 +2447,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/gcc_gvmat64/gvmat64.S", + "path": "samples/zlib/gcc_gvmat64/gvmat64.S", "license__key": "zlib", "license__score": "100.00", "license__short_name": "ZLIB License", @@ -2470,61 +2470,61 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/zlib/gcc_gvmat64/gvmat64.S", + "path": "samples/zlib/gcc_gvmat64/gvmat64.S", "copyright": "Copyright (c) 1995-2010 Jean-loup Gailly, Brian Raiter and Gilles Vollant.", "start_line": 10, "end_line": 10 }, { - "Resource": "samples/zlib/gcc_gvmat64/gvmat64.S", + "path": "samples/zlib/gcc_gvmat64/gvmat64.S", "copyright_holder": "Jean-loup Gailly, Brian Raiter and Gilles Vollant.", "start_line": 10, "end_line": 10 }, { - "Resource": "samples/zlib/gcc_gvmat64/gvmat64.S", + "path": "samples/zlib/gcc_gvmat64/gvmat64.S", "author": "Gilles Vollant", "start_line": 12, "end_line": 12 }, { - "Resource": "samples/zlib/gcc_gvmat64/gvmat64.S", + "path": "samples/zlib/gcc_gvmat64/gvmat64.S", "url": "http://www.zlib.net/", "start_line": 33, "end_line": 33 }, { - "Resource": "samples/zlib/gcc_gvmat64/gvmat64.S", + "path": "samples/zlib/gcc_gvmat64/gvmat64.S", "url": "http://www.winimage.com/zLibDll", "start_line": 34, "end_line": 34 }, { - "Resource": "samples/zlib/gcc_gvmat64/gvmat64.S", + "path": "samples/zlib/gcc_gvmat64/gvmat64.S", "url": "http://www.muppetlabs.com/~breadbox/software/assembly.html", "start_line": 35, "end_line": 35 }, { - "Resource": "samples/zlib/gcc_gvmat64/gvmat64.S", + "path": "samples/zlib/gcc_gvmat64/gvmat64.S", "url": "http://weblogs.asp.net/oldnewthing/archive/2004/01/14/58579.aspx", "start_line": 172, "end_line": 172 }, { - "Resource": "samples/zlib/gcc_gvmat64/gvmat64.S", + "path": "samples/zlib/gcc_gvmat64/gvmat64.S", "url": "http://msdn.microsoft.com/library/en-us/kmarch/hh/kmarch/64bitAMD_8e951dd2-ee77-4728-8702-55ce4b5dd24a.xml.asp", "start_line": 173, "end_line": 173 }, { - "Resource": "samples/zlib/gcc_gvmat64/gvmat64.S", + "path": "samples/zlib/gcc_gvmat64/gvmat64.S", "url": "http://www.x86-64.org/documentation/abi-0.99.pdf", "start_line": 180, "end_line": 180 }, { - "Resource": "samples/zlib/infback9/", + "path": "samples/zlib/infback9/", "type": "directory", "name": "infback9", "base_name": "infback9", @@ -2548,7 +2548,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/infback9/infback9.c", + "path": "samples/zlib/infback9/infback9.c", "type": "file", "name": "infback9.c", "base_name": "infback9", @@ -2572,7 +2572,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/infback9/infback9.c", + "path": "samples/zlib/infback9/infback9.c", "license__key": "zlib", "license__score": "60.00", "license__short_name": "ZLIB License", @@ -2595,19 +2595,19 @@ "matched_rule__rule_relevance": "60.00" }, { - "Resource": "samples/zlib/infback9/infback9.c", + "path": "samples/zlib/infback9/infback9.c", "copyright": "Copyright (c) 1995-2008 Mark Adler", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/zlib/infback9/infback9.c", + "path": "samples/zlib/infback9/infback9.c", "copyright_holder": "Mark Adler", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/zlib/infback9/infback9.h", + "path": "samples/zlib/infback9/infback9.h", "type": "file", "name": "infback9.h", "base_name": "infback9", @@ -2631,7 +2631,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/infback9/infback9.h", + "path": "samples/zlib/infback9/infback9.h", "license__key": "zlib", "license__score": "60.00", "license__short_name": "ZLIB License", @@ -2654,19 +2654,19 @@ "matched_rule__rule_relevance": "60.00" }, { - "Resource": "samples/zlib/infback9/infback9.h", + "path": "samples/zlib/infback9/infback9.h", "copyright": "Copyright (c) 2003 Mark Adler", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/zlib/infback9/infback9.h", + "path": "samples/zlib/infback9/infback9.h", "copyright_holder": "Mark Adler", "start_line": 2, "end_line": 2 }, { - "Resource": "samples/zlib/iostream2/", + "path": "samples/zlib/iostream2/", "type": "directory", "name": "iostream2", "base_name": "iostream2", @@ -2690,7 +2690,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/iostream2/zstream.h", + "path": "samples/zlib/iostream2/zstream.h", "type": "file", "name": "zstream.h", "base_name": "zstream", @@ -2714,7 +2714,7 @@ "scan_errors": "" }, { - "Resource": "samples/zlib/iostream2/zstream.h", + "path": "samples/zlib/iostream2/zstream.h", "license__key": "cmr-no", "license__score": "100.00", "license__short_name": "CMR License", @@ -2737,25 +2737,25 @@ "matched_rule__rule_relevance": "100.00" }, { - "Resource": "samples/zlib/iostream2/zstream.h", + "path": "samples/zlib/iostream2/zstream.h", "copyright": "Copyright (c) 1997 Christian Michelsen Research AS Advanced Computing", "start_line": 3, "end_line": 3 }, { - "Resource": "samples/zlib/iostream2/zstream.h", + "path": "samples/zlib/iostream2/zstream.h", "copyright_holder": "Christian Michelsen Research AS Advanced Computing", "start_line": 3, "end_line": 3 }, { - "Resource": "samples/zlib/iostream2/zstream.h", + "path": "samples/zlib/iostream2/zstream.h", "url": "http://www.cmr.no/", "start_line": 7, "end_line": 7 }, { - "Resource": "samples/zlib/iostream2/zstream_test.cpp", + "path": "samples/zlib/iostream2/zstream_test.cpp", "type": "file", "name": "zstream_test.cpp", "base_name": "zstream_test", @@ -2778,4 +2778,4 @@ "size_count": 0, "scan_errors": "" } -] \ No newline at end of file +] diff --git a/tests/formattedcode/data/csv/flatten_scan/key_order.expected.json b/tests/formattedcode/data/csv/flatten_scan/key_order.expected.json index 4f0017ac1e1..0a2c84df182 100644 --- a/tests/formattedcode/data/csv/flatten_scan/key_order.expected.json +++ b/tests/formattedcode/data/csv/flatten_scan/key_order.expected.json @@ -1,6 +1,6 @@ [ { - "Resource": "srp/", + "path": "srp/", "type": "directory", "name": "srp", "base_name": "srp", @@ -24,7 +24,7 @@ "scan_errors": "" }, { - "Resource": "srp/build.info", + "path": "srp/build.info", "type": "file", "name": "build.info", "base_name": "build", @@ -48,7 +48,7 @@ "scan_errors": "" }, { - "Resource": "srp/srp_lib.c", + "path": "srp/srp_lib.c", "type": "file", "name": "srp_lib.c", "base_name": "srp_lib", @@ -72,7 +72,7 @@ "scan_errors": "" }, { - "Resource": "srp/srp_vfy.c", + "path": "srp/srp_vfy.c", "type": "file", "name": "srp_vfy.c", "base_name": "srp_vfy", @@ -95,4 +95,4 @@ "size_count": 0, "scan_errors": "" } -] \ No newline at end of file +] diff --git a/tests/formattedcode/data/csv/flatten_scan/minimal.json-expected b/tests/formattedcode/data/csv/flatten_scan/minimal.json-expected index 90f2eaaf80d..6d7f0f70803 100644 --- a/tests/formattedcode/data/csv/flatten_scan/minimal.json-expected +++ b/tests/formattedcode/data/csv/flatten_scan/minimal.json-expected @@ -1,21 +1,21 @@ [ { - "Resource": "srp/", + "path": "srp/", "type": "directory", "scan_errors": "" }, { - "Resource": "srp/build.info", + "path": "srp/build.info", "type": "file", "scan_errors": "" }, { - "Resource": "srp/srp_lib.c", + "path": "srp/srp_lib.c", "type": "file", "scan_errors": "" }, { - "Resource": "srp/srp_lib.c", + "path": "srp/srp_lib.c", "license__key": "openssl", "license__score": "100.00", "license__short_name": "OpenSSL License", @@ -33,24 +33,24 @@ "matched_rule__licenses": "openssl" }, { - "Resource": "srp/srp_lib.c", + "path": "srp/srp_lib.c", "copyright": "Copyright 2011-2016 The OpenSSL Project", "start_line": 2, "end_line": 2 }, { - "Resource": "srp/srp_lib.c", + "path": "srp/srp_lib.c", "copyright_holder": "The OpenSSL Project", "start_line": 2, "end_line": 2 }, { - "Resource": "srp/srp_vfy.c", + "path": "srp/srp_vfy.c", "type": "file", "scan_errors": "" }, { - "Resource": "srp/srp_vfy.c", + "path": "srp/srp_vfy.c", "license__key": "openssl", "license__score": "100.00", "license__short_name": "OpenSSL License", @@ -68,15 +68,15 @@ "matched_rule__licenses": "openssl" }, { - "Resource": "srp/srp_vfy.c", + "path": "srp/srp_vfy.c", "copyright": "Copyright 2011-2016 The OpenSSL Project", "start_line": 2, "end_line": 2 }, { - "Resource": "srp/srp_vfy.c", + "path": "srp/srp_vfy.c", "copyright_holder": "The OpenSSL Project", "start_line": 2, "end_line": 2 } -] \ No newline at end of file +] diff --git a/tests/formattedcode/data/csv/flatten_scan/package_license_value_null.json-expected b/tests/formattedcode/data/csv/flatten_scan/package_license_value_null.json-expected index a2eba977b5a..975e49adc0a 100644 --- a/tests/formattedcode/data/csv/flatten_scan/package_license_value_null.json-expected +++ b/tests/formattedcode/data/csv/flatten_scan/package_license_value_null.json-expected @@ -1,6 +1,6 @@ [ { - "Resource": "package.json", + "path": "package.json", "type": "file", "name": "package.json", "base_name": "package", @@ -24,7 +24,7 @@ "scan_errors": "" }, { - "Resource": "package.json", + "path": "package.json", "package__type": "npm", "package__namespace": "", "package__name": "cookie-signature", @@ -44,4 +44,4 @@ "package__notice_text": "", "package__contains_source_code": "" } -] \ No newline at end of file +] diff --git a/tests/formattedcode/data/csv/flatten_scan/path_with_and_without_leading_slash.json-expected b/tests/formattedcode/data/csv/flatten_scan/path_with_and_without_leading_slash.json-expected index 90496cb8bad..d2bf6cf2db5 100644 --- a/tests/formattedcode/data/csv/flatten_scan/path_with_and_without_leading_slash.json-expected +++ b/tests/formattedcode/data/csv/flatten_scan/path_with_and_without_leading_slash.json-expected @@ -1,6 +1,6 @@ [ { - "Resource": "samples/", + "path": "samples/", "type": "directory", "name": "samples", "base_name": "samples", @@ -24,7 +24,7 @@ "scan_errors": "" }, { - "Resource": "samples/arch/", + "path": "samples/arch/", "type": "directory", "name": "arch", "base_name": "arch", @@ -47,4 +47,4 @@ "size_count": 28103, "scan_errors": "" } -] \ No newline at end of file +] diff --git a/tests/formattedcode/data/csv/livescan/expected.csv b/tests/formattedcode/data/csv/livescan/expected.csv index e0a5889f62d..738eced9d30 100644 --- a/tests/formattedcode/data/csv/livescan/expected.csv +++ b/tests/formattedcode/data/csv/livescan/expected.csv @@ -1,23 +1,23 @@ -Resource,type,name,base_name,extension,size,date,sha1,md5,mime_type,file_type,programming_language,is_binary,is_text,is_archive,is_media,is_source,is_script,files_count,dirs_count,size_count,scan_errors,license_expression,license__key,license__score,license__name,license__short_name,license__category,license__is_exception,license__owner,license__homepage_url,license__text_url,license__reference_url,license__spdx_license_key,license__spdx_url,start_line,end_line,matched_rule__identifier,matched_rule__license_expression,matched_rule__licenses,matched_rule__is_license_text,matched_rule__is_license_notice,matched_rule__is_license_reference,matched_rule__is_license_tag,matched_rule__matcher,matched_rule__rule_length,matched_rule__matched_length,matched_rule__match_coverage,matched_rule__rule_relevance,copyright,copyright_holder,email,url,package__type,package__namespace,package__name,package__version,package__qualifiers,package__subpath,package__primary_language,package__description,package__release_date,package__homepage_url,package__download_url,package__size,package__sha1,package__md5,package__sha256,package__sha512,package__bug_tracking_url,package__code_view_url,package__vcs_url,package__copyright,package__license_expression,package__declared_license,package__notice_text,package__root_path,package__contains_source_code -json2csv.rb,file,json2csv.rb,json2csv,.rb,912,2018-11-15,1236469a06a2bacbdd8e172ad718482af5b0a936,1307c281e0b153202e291b217eab85d5,text/x-python,"Python script, ASCII text executable",Ruby,False,True,False,False,True,True,0,0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -json2csv.rb,,,,,,,,,,,,,,,,,,,,,,apache-2.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -json2csv.rb,,,,,,,,,,,,,,,,,,,,,,,apache-2.0,100.00,Apache License 2.0,Apache 2.0,Permissive,False,Apache Software Foundation,http://www.apache.org/licenses/,http://www.apache.org/licenses/LICENSE-2.0,https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0,Apache-2.0,https://spdx.org/licenses/Apache-2.0,5,13,apache-2.0_7.RULE,apache-2.0,apache-2.0,,True,,,2-aho,85,85,100.00,100.00,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -json2csv.rb,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,3,3,,,,,,,,,,,,,Copyright (c) 2017 nexB Inc. and others,,,,,,,,,,,,,,,,,,,,,,,,,,,, -json2csv.rb,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,3,3,,,,,,,,,,,,,,nexB Inc. and others,,,,,,,,,,,,,,,,,,,,,,,,,,, -json2csv.rb,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,4,4,,,,,,,,,,,,,,,,http://nexb.com/,,,,,,,,,,,,,,,,,,,,,,,,, -json2csv.rb,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,4,4,,,,,,,,,,,,,,,,https://github.com/nexB/scancode-toolkit/,,,,,,,,,,,,,,,,,,,,,,,,, -json2csv.rb,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,8,8,,,,,,,,,,,,,,,,http://www.apache.org/licenses/LICENSE-2.0,,,,,,,,,,,,,,,,,,,,,,,,, -license,file,license,license,,679,2018-04-11,75c5490a718ddd45e40e0cc7ce0c756abc373123,b965a762efb9421cf1bf4405f336e278,text/plain,ASCII text,,False,True,False,False,False,False,0,0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -license,,,,,,,,,,,,,,,,,,,,,,gpl-2.0-plus,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -license,,,,,,,,,,,,,,,,,,,,,,,gpl-2.0-plus,100.00,GNU General Public License 2.0 or later,GPL 2.0 or later,Copyleft,False,Free Software Foundation (FSF),http://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html,http://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html,https://enterprise.dejacode.com/urn/urn:dje:license:gpl-2.0-plus,GPL-2.0-or-later,https://spdx.org/licenses/GPL-2.0-or-later,1,12,gpl-2.0-plus.LICENSE,gpl-2.0-plus,gpl-2.0-plus,True,,,,1-hash,113,113,100.00,100.00,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -package.json,file,package.json,package,.json,2200,2018-04-11,918376afce796ef90eeda1d6695f2289c90491ac,1f66239a9b850c5e60a9382dbe2162d2,text/plain,"ASCII text, with very long lines",,False,True,False,False,False,False,0,0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -package.json,,,,,,,,,,,,,,,,,,,,,,mit,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -package.json,,,,,,,,,,,,,,,,,,,,,,mit,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -package.json,,,,,,,,,,,,,,,,,,,,,,,mit,100.00,MIT License,MIT License,Permissive,False,MIT,http://opensource.org/licenses/mit-license.php,http://opensource.org/licenses/mit-license.php,https://enterprise.dejacode.com/urn/urn:dje:license:mit,MIT,https://spdx.org/licenses/MIT,24,24,mit_27.RULE,mit,mit,,,True,,2-aho,3,3,100.00,100.00,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -package.json,,,,,,,,,,,,,,,,,,,,,,,mit,100.00,MIT License,MIT License,Permissive,False,MIT,http://opensource.org/licenses/mit-license.php,http://opensource.org/licenses/mit-license.php,https://enterprise.dejacode.com/urn/urn:dje:license:mit,MIT,https://spdx.org/licenses/MIT,24,24,mit.LICENSE,mit,mit,True,,,,2-aho,161,161,100.00,100.00,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -package.json,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,24,24,,,,,,,,,,,,,Copyright (c) 2012 LearnBoost ,,,,,,,,,,,,,,,,,,,,,,,,,,,, -package.json,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,24,24,,,,,,,,,,,,,,LearnBoost,,,,,,,,,,,,,,,,,,,,,,,,,,, -package.json,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,12,12,,,,,,,,,,,,,,,tj@learnboost.com,,,,,,,,,,,,,,,,,,,,,,,,,, -package.json,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,16,16,,,,,,,,,,,,,,,,https://github.com/visionmedia/node-cookie-signature.git,,,,,,,,,,,,,,,,,,,,,,,,, -package.json,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,27,27,,,,,,,,,,,,,,,,https://github.com/visionmedia/node-cookie-signature/issues,,,,,,,,,,,,,,,,,,,,,,,,, -package.json,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,npm,,cookie-signature,v 1.0.3,,,JavaScript,Sign and unsign cookies,,,https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.3.tgz,,,,,,https://github.com/visionmedia/node-cookie-signature/issues,,git+https://github.com/visionmedia/node-cookie-signature.git,,,,,, +path,type,name,base_name,extension,size,date,sha1,md5,mime_type,file_type,programming_language,is_binary,is_text,is_archive,is_media,is_source,is_script,files_count,dirs_count,size_count,scan_errors,license_expression,license__key,license__score,license__name,license__short_name,license__category,license__is_exception,license__owner,license__homepage_url,license__text_url,license__reference_url,license__spdx_license_key,license__spdx_url,start_line,end_line,matched_rule__identifier,matched_rule__license_expression,matched_rule__licenses,matched_rule__is_license_text,matched_rule__is_license_notice,matched_rule__is_license_reference,matched_rule__is_license_tag,matched_rule__matcher,matched_rule__rule_length,matched_rule__matched_length,matched_rule__match_coverage,matched_rule__rule_relevance,copyright,copyright_holder,email,url,package__type,package__namespace,package__name,package__version,package__qualifiers,package__subpath,package__primary_language,package__description,package__release_date,package__homepage_url,package__download_url,package__size,package__sha1,package__md5,package__sha256,package__sha512,package__bug_tracking_url,package__code_view_url,package__vcs_url,package__copyright,package__license_expression,package__declared_license,package__notice_text,package__root_path,package__contains_source_code +json2csv.rb,file,json2csv.rb,json2csv,.rb,912,2018-11-15,1236469a06a2bacbdd8e172ad718482af5b0a936,1307c281e0b153202e291b217eab85d5,text/x-python,"Python script, ASCII text executable",Ruby,False,True,False,False,True,True,0,0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +json2csv.rb,,,,,,,,,,,,,,,,,,,,,,apache-2.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +json2csv.rb,,,,,,,,,,,,,,,,,,,,,,,apache-2.0,100,Apache License 2.0,Apache 2.0,Permissive,False,Apache Software Foundation,http://www.apache.org/licenses/,http://www.apache.org/licenses/LICENSE-2.0,https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0,Apache-2.0,https://spdx.org/licenses/Apache-2.0,5,13,apache-2.0_7.RULE,apache-2.0,apache-2.0,,True,,,2-aho,85,85,100,100,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +json2csv.rb,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,3,3,,,,,,,,,,,,,Copyright (c) 2017 nexB Inc. and others,,,,,,,,,,,,,,,,,,,,,,,,,,,, +json2csv.rb,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,3,3,,,,,,,,,,,,,,nexB Inc. and others,,,,,,,,,,,,,,,,,,,,,,,,,,, +json2csv.rb,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,4,4,,,,,,,,,,,,,,,,http://nexb.com/,,,,,,,,,,,,,,,,,,,,,,,,, +json2csv.rb,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,4,4,,,,,,,,,,,,,,,,https://github.com/nexB/scancode-toolkit/,,,,,,,,,,,,,,,,,,,,,,,,, +json2csv.rb,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,8,8,,,,,,,,,,,,,,,,http://www.apache.org/licenses/LICENSE-2.0,,,,,,,,,,,,,,,,,,,,,,,,, +license,file,license,license,,679,2018-04-11,75c5490a718ddd45e40e0cc7ce0c756abc373123,b965a762efb9421cf1bf4405f336e278,text/plain,ASCII text,,False,True,False,False,False,False,0,0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +license,,,,,,,,,,,,,,,,,,,,,,gpl-2.0-plus,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +license,,,,,,,,,,,,,,,,,,,,,,,gpl-2.0-plus,100,GNU General Public License 2.0 or later,GPL 2.0 or later,Copyleft,False,Free Software Foundation (FSF),http://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html,http://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html,https://enterprise.dejacode.com/urn/urn:dje:license:gpl-2.0-plus,GPL-2.0-or-later,https://spdx.org/licenses/GPL-2.0-or-later,1,12,gpl-2.0-plus.LICENSE,gpl-2.0-plus,gpl-2.0-plus,True,,,,1-hash,113,113,100,100,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +package.json,file,package.json,package,.json,2200,2018-04-11,918376afce796ef90eeda1d6695f2289c90491ac,1f66239a9b850c5e60a9382dbe2162d2,text/plain,"ASCII text, with very long lines",,False,True,False,False,False,False,0,0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +package.json,,,,,,,,,,,,,,,,,,,,,,mit,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +package.json,,,,,,,,,,,,,,,,,,,,,,mit,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +package.json,,,,,,,,,,,,,,,,,,,,,,,mit,100,MIT License,MIT License,Permissive,False,MIT,http://opensource.org/licenses/mit-license.php,http://opensource.org/licenses/mit-license.php,https://enterprise.dejacode.com/urn/urn:dje:license:mit,MIT,https://spdx.org/licenses/MIT,24,24,mit_27.RULE,mit,mit,,,True,,2-aho,3,3,100,100,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +package.json,,,,,,,,,,,,,,,,,,,,,,,mit,100,MIT License,MIT License,Permissive,False,MIT,http://opensource.org/licenses/mit-license.php,http://opensource.org/licenses/mit-license.php,https://enterprise.dejacode.com/urn/urn:dje:license:mit,MIT,https://spdx.org/licenses/MIT,24,24,mit.LICENSE,mit,mit,True,,,,2-aho,161,161,100,100,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +package.json,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,24,24,,,,,,,,,,,,,Copyright (c) 2012 LearnBoost ,,,,,,,,,,,,,,,,,,,,,,,,,,,, +package.json,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,24,24,,,,,,,,,,,,,,LearnBoost,,,,,,,,,,,,,,,,,,,,,,,,,,, +package.json,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,12,12,,,,,,,,,,,,,,,tj@learnboost.com,,,,,,,,,,,,,,,,,,,,,,,,,, +package.json,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,16,16,,,,,,,,,,,,,,,,https://github.com/visionmedia/node-cookie-signature.git,,,,,,,,,,,,,,,,,,,,,,,,, +package.json,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,27,27,,,,,,,,,,,,,,,,https://github.com/visionmedia/node-cookie-signature/issues,,,,,,,,,,,,,,,,,,,,,,,,, +package.json,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,npm,,cookie-signature,v 1.0.3,,,JavaScript,Sign and unsign cookies,,,https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.3.tgz,,,,,,https://github.com/visionmedia/node-cookie-signature/issues,,git+https://github.com/visionmedia/node-cookie-signature.git,,,,,, diff --git a/tests/formattedcode/data/csv/non-standard/identified.csv b/tests/formattedcode/data/csv/non-standard/identified.csv index 184212825d2..1e72f756981 100644 --- a/tests/formattedcode/data/csv/non-standard/identified.csv +++ b/tests/formattedcode/data/csv/non-standard/identified.csv @@ -1,7 +1,7 @@ -Resource,type,name,base_name,extension,size,date,sha1,md5,mime_type,file_type,programming_language,is_binary,is_text,is_archive,is_media,is_source,is_script,files_count,dirs_count,size_count,scan_errors,package__download_url,package__sha1,package__md5,package__size,package__release_date,package__primary_language,package__description,package__copyright,package__license_expression,package__reference_notes,package__homepage_url,package__notice_text,package__components__name,package__components__version,package__components__owner_name,package__components__copyright,package__components__license_expression,package__components__reference_notes,package__components__release_date,package__components__description,package__components__homepage_url,package__components__vcs_url,package__components__code_view_url,package__components__bug_tracking_url,package__components__primary_language,package__components__notice_text,package__components__notice_filename,package__components__notice_url,package__type,package__namespace,package__name,package__version,package__qualifiers,package__subpath -apache-log4j-extras-1.1.jar,file,apache-log4j-extras-1.1.jar,apache-log4j-extras-1.1,.jar,346729,2010-12-02,1e4b290f5c9ce5ea3a1a7352496c9c9d2a894800,acd91d528e26aa771198d930cf08e953,application/java-archive,Java archive data (JAR),,True,False,True,False,False,False,0,0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -apache-log4j-extras-1.1.jar,,,,,,,,,,,,,,,,,,,,,,http://central.maven.org/maven2/log4j/apache-log4j-extras/1.1/apache-log4j-extras-1.1.jar,1e4b290f5c9ce5ea3a1a7352496c9c9d2a894800,acd91d528e26aa771198d930cf08e953,346729,,,,,,,,,Apache Log4j Extras,1.1,Apache Software Foundation,Copyright 2007 The Apache Software Foundation,apache-2.0,,,Apache Extras for Apache log4j is a jar file full of additional functionality for log4j 1.2.x.,http://logging.apache.org/log4j/extras/,,,,Java,"Apache Extras Companion for log4j 1.2. -Copyright 2007 The Apache Software Foundation - -This product includes software developed at -The Apache Software Foundation (http://www.apache.org/).",NOTICE,,maven,log4j,apache-log4j-extras,v 1.1,, +path,type,name,base_name,extension,size,date,sha1,md5,mime_type,file_type,programming_language,is_binary,is_text,is_archive,is_media,is_source,is_script,files_count,dirs_count,size_count,scan_errors,package__download_url,package__sha1,package__md5,package__size,package__release_date,package__primary_language,package__description,package__copyright,package__license_expression,package__reference_notes,package__homepage_url,package__notice_text,package__components__name,package__components__version,package__components__owner_name,package__components__copyright,package__components__license_expression,package__components__reference_notes,package__components__release_date,package__components__description,package__components__homepage_url,package__components__vcs_url,package__components__code_view_url,package__components__bug_tracking_url,package__components__primary_language,package__components__notice_text,package__components__notice_filename,package__components__notice_url,package__type,package__namespace,package__name,package__version,package__qualifiers,package__subpath +apache-log4j-extras-1.1.jar,file,apache-log4j-extras-1.1.jar,apache-log4j-extras-1.1,.jar,346729,2010-12-02,1e4b290f5c9ce5ea3a1a7352496c9c9d2a894800,acd91d528e26aa771198d930cf08e953,application/java-archive,Java archive data (JAR),,True,False,True,False,False,False,0,0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +apache-log4j-extras-1.1.jar,,,,,,,,,,,,,,,,,,,,,,http://central.maven.org/maven2/log4j/apache-log4j-extras/1.1/apache-log4j-extras-1.1.jar,1e4b290f5c9ce5ea3a1a7352496c9c9d2a894800,acd91d528e26aa771198d930cf08e953,346729,,,,,,,,,Apache Log4j Extras,1.1,Apache Software Foundation,Copyright 2007 The Apache Software Foundation,apache-2.0,,,Apache Extras for Apache log4j is a jar file full of additional functionality for log4j 1.2.x.,http://logging.apache.org/log4j/extras/,,,,Java,"Apache Extras Companion for log4j 1.2. +Copyright 2007 The Apache Software Foundation + +This product includes software developed at +The Apache Software Foundation (http://www.apache.org/).",NOTICE,,maven,log4j,apache-log4j-extras,v 1.1,, diff --git a/tests/formattedcode/data/csv/packages/expected-no-root.csv b/tests/formattedcode/data/csv/packages/expected-no-root.csv index 6e099c92248..8a8156ad4ec 100644 --- a/tests/formattedcode/data/csv/packages/expected-no-root.csv +++ b/tests/formattedcode/data/csv/packages/expected-no-root.csv @@ -1,3 +1,3 @@ -Resource,type,scan_errors,package__type,package__namespace,package__name,package__version,package__qualifiers,package__subpath,package__primary_language,package__description,package__release_date,package__homepage_url,package__download_url,package__size,package__sha1,package__md5,package__sha256,package__sha512,package__bug_tracking_url,package__code_view_url,package__vcs_url,package__copyright,package__license_expression,package__declared_license,package__notice_text,package__root_path,package__contains_source_code -package.json,file,,,,,,,,,,,,,,,,,,,,,,,,,, -package.json,,,npm,,npm,v 2.13.5,,,JavaScript,a package manager for JavaScript,,https://docs.npmjs.com/,https://registry.npmjs.org/npm/-/npm-2.13.5.tgz,,a124386bce4a90506f28ad4b1d1a804a17baaf32,,,,http://github.com/npm/npm/issues,,git+https://github.com/npm/npm.git@fc7bbf03e39cc48a8924b90696d28345a6a90f3c,,artistic-2.0,Artistic-2.0,,, +path,type,scan_errors,package__type,package__namespace,package__name,package__version,package__qualifiers,package__subpath,package__primary_language,package__description,package__release_date,package__homepage_url,package__download_url,package__size,package__sha1,package__md5,package__sha256,package__sha512,package__bug_tracking_url,package__code_view_url,package__vcs_url,package__copyright,package__license_expression,package__declared_license,package__notice_text,package__root_path,package__contains_source_code +package.json,file,,,,,,,,,,,,,,,,,,,,,,,,,, +package.json,,,npm,,npm,v 2.13.5,,,JavaScript,a package manager for JavaScript,,https://docs.npmjs.com/,https://registry.npmjs.org/npm/-/npm-2.13.5.tgz,,a124386bce4a90506f28ad4b1d1a804a17baaf32,,,,http://github.com/npm/npm/issues,,git+https://github.com/npm/npm.git@fc7bbf03e39cc48a8924b90696d28345a6a90f3c,,artistic-2.0,Artistic-2.0,,, diff --git a/tests/formattedcode/data/csv/packages/expected.csv b/tests/formattedcode/data/csv/packages/expected.csv index 2058e56e98f..dfccf530e5d 100644 --- a/tests/formattedcode/data/csv/packages/expected.csv +++ b/tests/formattedcode/data/csv/packages/expected.csv @@ -1,4 +1,4 @@ -Resource,type,scan_errors,package__type,package__namespace,package__name,package__version,package__qualifiers,package__subpath,package__primary_language,package__description,package__release_date,package__homepage_url,package__download_url,package__size,package__sha1,package__md5,package__sha256,package__sha512,package__bug_tracking_url,package__code_view_url,package__vcs_url,package__copyright,package__license_expression,package__declared_license,package__notice_text,package__root_path,package__contains_source_code -scan/,directory,,,,,,,,,,,,,,,,,,,,,,,,,, -scan/package.json,file,,,,,,,,,,,,,,,,,,,,,,,,,, -scan/package.json,,,npm,,npm,v 2.13.5,,,JavaScript,a package manager for JavaScript,,https://docs.npmjs.com/,https://registry.npmjs.org/npm/-/npm-2.13.5.tgz,,a124386bce4a90506f28ad4b1d1a804a17baaf32,,,,http://github.com/npm/npm/issues,,git+https://github.com/npm/npm.git@fc7bbf03e39cc48a8924b90696d28345a6a90f3c,,artistic-2.0,Artistic-2.0,,scan, +path,type,scan_errors,package__type,package__namespace,package__name,package__version,package__qualifiers,package__subpath,package__primary_language,package__description,package__release_date,package__homepage_url,package__download_url,package__size,package__sha1,package__md5,package__sha256,package__sha512,package__bug_tracking_url,package__code_view_url,package__vcs_url,package__copyright,package__license_expression,package__declared_license,package__notice_text,package__root_path,package__contains_source_code +scan/,directory,,,,,,,,,,,,,,,,,,,,,,,,,, +scan/package.json,file,,,,,,,,,,,,,,,,,,,,,,,,,, +scan/package.json,,,npm,,npm,v 2.13.5,,,JavaScript,a package manager for JavaScript,,https://docs.npmjs.com/,https://registry.npmjs.org/npm/-/npm-2.13.5.tgz,,a124386bce4a90506f28ad4b1d1a804a17baaf32,,,,http://github.com/npm/npm/issues,,git+https://github.com/npm/npm.git@fc7bbf03e39cc48a8924b90696d28345a6a90f3c,,artistic-2.0,Artistic-2.0,,scan, diff --git a/tests/formattedcode/data/csv/srp.csv b/tests/formattedcode/data/csv/srp.csv index 5e3b109cf3e..40cf8e36e6c 100644 --- a/tests/formattedcode/data/csv/srp.csv +++ b/tests/formattedcode/data/csv/srp.csv @@ -1,9 +1,9 @@ -Resource,type,scan_errors,copyright,start_line,end_line,copyright_holder -srp/,directory,,,,, -srp/build.info,file,,,,, -srp/srp_lib.c,file,,,,, -srp/srp_lib.c,,,Copyright 2011-2016 The OpenSSL Project Authors,2,2, -srp/srp_lib.c,,,,2,2,The OpenSSL Project Authors -srp/srp_vfy.c,file,,,,, -srp/srp_vfy.c,,,Copyright 2011-2016 The OpenSSL Project Authors,2,2, -srp/srp_vfy.c,,,,2,2,The OpenSSL Project Authors +path,type,scan_errors,copyright,start_line,end_line,copyright_holder +srp/,directory,,,,, +srp/build.info,file,,,,, +srp/srp_lib.c,file,,,,, +srp/srp_lib.c,,,Copyright 2011-2016 The OpenSSL Project Authors,2,2, +srp/srp_lib.c,,,,2,2,The OpenSSL Project Authors +srp/srp_vfy.c,file,,,,, +srp/srp_vfy.c,,,Copyright 2011-2016 The OpenSSL Project Authors,2,2, +srp/srp_vfy.c,,,,2,2,The OpenSSL Project Authors diff --git a/tests/formattedcode/data/csv/tree/expected.csv b/tests/formattedcode/data/csv/tree/expected.csv index 4c0cf2a6162..f94adc3ecb4 100644 --- a/tests/formattedcode/data/csv/tree/expected.csv +++ b/tests/formattedcode/data/csv/tree/expected.csv @@ -1,24 +1,24 @@ -Resource,type,scan_errors,copyright,start_line,end_line,copyright_holder -scan/,directory,,,,, -scan/copy1.c,file,,,,, -scan/copy1.c,,,"Copyright (c) 2000 ACME, Inc.",1,1, -scan/copy1.c,,,,1,1,"ACME, Inc." -scan/copy2.c,file,,,,, -scan/copy2.c,,,"Copyright (c) 2000 ACME, Inc.",1,1, -scan/copy2.c,,,,1,1,"ACME, Inc." -scan/copy3.c,file,,,,, -scan/copy3.c,,,"Copyright (c) 2000 ACME, Inc.",1,1, -scan/copy3.c,,,,1,1,"ACME, Inc." -scan/subdir/,directory,,,,, -scan/subdir/copy1.c,file,,,,, -scan/subdir/copy1.c,,,"Copyright (c) 2000 ACME, Inc.",1,1, -scan/subdir/copy1.c,,,,1,1,"ACME, Inc." -scan/subdir/copy2.c,file,,,,, -scan/subdir/copy2.c,,,"Copyright (c) 2000 ACME, Inc.",1,1, -scan/subdir/copy2.c,,,,1,1,"ACME, Inc." -scan/subdir/copy3.c,file,,,,, -scan/subdir/copy3.c,,,"Copyright (c) 2000 ACME, Inc.",1,1, -scan/subdir/copy3.c,,,,1,1,"ACME, Inc." -scan/subdir/copy4.c,file,,,,, -scan/subdir/copy4.c,,,"Copyright (c) 2000 ACME, Inc.",1,1, -scan/subdir/copy4.c,,,,1,1,"ACME, Inc." +path,type,scan_errors,copyright,start_line,end_line,copyright_holder +scan/,directory,,,,, +scan/copy1.c,file,,,,, +scan/copy1.c,,,"Copyright (c) 2000 ACME, Inc.",1,1, +scan/copy1.c,,,,1,1,"ACME, Inc." +scan/copy2.c,file,,,,, +scan/copy2.c,,,"Copyright (c) 2000 ACME, Inc.",1,1, +scan/copy2.c,,,,1,1,"ACME, Inc." +scan/copy3.c,file,,,,, +scan/copy3.c,,,"Copyright (c) 2000 ACME, Inc.",1,1, +scan/copy3.c,,,,1,1,"ACME, Inc." +scan/subdir/,directory,,,,, +scan/subdir/copy1.c,file,,,,, +scan/subdir/copy1.c,,,"Copyright (c) 2000 ACME, Inc.",1,1, +scan/subdir/copy1.c,,,,1,1,"ACME, Inc." +scan/subdir/copy2.c,file,,,,, +scan/subdir/copy2.c,,,"Copyright (c) 2000 ACME, Inc.",1,1, +scan/subdir/copy2.c,,,,1,1,"ACME, Inc." +scan/subdir/copy3.c,file,,,,, +scan/subdir/copy3.c,,,"Copyright (c) 2000 ACME, Inc.",1,1, +scan/subdir/copy3.c,,,,1,1,"ACME, Inc." +scan/subdir/copy4.c,file,,,,, +scan/subdir/copy4.c,,,"Copyright (c) 2000 ACME, Inc.",1,1, +scan/subdir/copy4.c,,,,1,1,"ACME, Inc."