generated from aboutcode-org/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reference: #41 Signed-off-by: Philippe Ombredanne <[email protected]>
- Loading branch information
1 parent
ae06ca0
commit f1b791b
Showing
4 changed files
with
358 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
tests/data/packages-config/packages.config-dev/Sample.Nexb.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net45</TargetFrameworks> | ||
<RuntimeIdentifier>linux-x64</RuntimeIdentifier> | ||
<RootNamespace>Sample.Nexb</RootNamespace> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
</Project> |
341 changes: 341 additions & 0 deletions
341
tests/data/packages-config/packages.config-dev/Sample.Nexb.csproj-expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,341 @@ | ||
{ | ||
"headers": [ | ||
{ | ||
"tool_name": "nuget-inspector", | ||
"tool_homepageurl": "https://github.com/nexB/nuget-inspector", | ||
"tool_version": "0.0.0", | ||
"options": [ | ||
"--project-file /packages-config/packages.config-dev/Sample.Nexb.csproj" | ||
], | ||
"project_framework": "net45", | ||
"notice": "Dependency tree generated with nuget-inspector.\nnuget-inspector is a free software tool from nexB Inc. and others.\nVisit https://github.com/nexB/nuget-inspector/ for support and download.", | ||
"warnings": [], | ||
"errors": [] | ||
} | ||
], | ||
"files": [], | ||
"packages": [ | ||
{ | ||
"type": "nuget", | ||
"namespace": "", | ||
"name": "Sample.Nexb", | ||
"version": null, | ||
"qualifiers": "", | ||
"subpath": "", | ||
"purl": "", | ||
"primary_language": "C#", | ||
"description": "", | ||
"release_date": "", | ||
"parties": [], | ||
"keywords": [], | ||
"homepage_url": "", | ||
"download_url": "", | ||
"size": 0, | ||
"sha1": "", | ||
"md5": "", | ||
"sha256": "", | ||
"sha512": "", | ||
"bug_tracking_url": "", | ||
"code_view_url": "", | ||
"vcs_url": "", | ||
"copyright": "", | ||
"license_expression": "", | ||
"declared_license": "", | ||
"notice_text": "", | ||
"source_packages": [], | ||
"extra_data": {}, | ||
"repository_homepage_url": "", | ||
"repository_download_url": "", | ||
"api_data_url": "", | ||
"datasource_id": "nuget-packages.config", | ||
"datafile_path": "/packages-config/packages.config-dev/Sample.Nexb.csproj", | ||
"dependencies": [ | ||
{ | ||
"type": "nuget", | ||
"namespace": "", | ||
"name": "WebGrease", | ||
"version": "1.5.2", | ||
"qualifiers": "", | ||
"subpath": "", | ||
"purl": "pkg:nuget/[email protected]", | ||
"primary_language": "C#", | ||
"description": "Web Grease is a suite of tools for optimizing javascript, css files and images.", | ||
"release_date": "", | ||
"parties": [ | ||
{ | ||
"type": "organization", | ||
"role": "author", | ||
"name": "[email protected]", | ||
"email": "", | ||
"url": "" | ||
} | ||
], | ||
"keywords": [], | ||
"homepage_url": "", | ||
"download_url": "https://api.nuget.org/v3-flatcontainer/webgrease/1.5.2/webgrease.1.5.2.nupkg", | ||
"size": 0, | ||
"sha1": "", | ||
"md5": "", | ||
"sha256": "", | ||
"sha512": "", | ||
"bug_tracking_url": "", | ||
"code_view_url": "", | ||
"vcs_url": "", | ||
"copyright": "", | ||
"license_expression": "", | ||
"declared_license": "LicenseUrl: http://www.microsoft.com/web/webpi/eula/msn_webgrease_eula.htm", | ||
"notice_text": "", | ||
"source_packages": [], | ||
"extra_data": {}, | ||
"repository_homepage_url": "https://www.nuget.org/packages/WebGrease/1.5.2?_src=template", | ||
"repository_download_url": "https://api.nuget.org/v3-flatcontainer/webgrease/1.5.2/webgrease.1.5.2.nupkg", | ||
"api_data_url": "https://api.nuget.org/v3/registration5-gz-semver2/webgrease/1.5.2.json", | ||
"datasource_id": "", | ||
"datafile_path": "", | ||
"dependencies": [ | ||
{ | ||
"type": "nuget", | ||
"namespace": "", | ||
"name": "Antlr", | ||
"version": "3.4.1.9004", | ||
"qualifiers": "", | ||
"subpath": "", | ||
"purl": "pkg:nuget/[email protected]", | ||
"primary_language": "C#", | ||
"description": "ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target languages.", | ||
"release_date": "", | ||
"parties": [ | ||
{ | ||
"type": "organization", | ||
"role": "author", | ||
"name": "Terence Parr", | ||
"email": "", | ||
"url": "" | ||
} | ||
], | ||
"keywords": [], | ||
"homepage_url": "", | ||
"download_url": "https://api.nuget.org/v3-flatcontainer/antlr/3.4.1.9004/antlr.3.4.1.9004.nupkg", | ||
"size": 0, | ||
"sha1": "", | ||
"md5": "", | ||
"sha256": "", | ||
"sha512": "", | ||
"bug_tracking_url": "", | ||
"code_view_url": "", | ||
"vcs_url": "", | ||
"copyright": "", | ||
"license_expression": "", | ||
"declared_license": "", | ||
"notice_text": "", | ||
"source_packages": [], | ||
"extra_data": {}, | ||
"repository_homepage_url": "https://www.nuget.org/packages/Antlr/3.4.1.9004?_src=template", | ||
"repository_download_url": "https://api.nuget.org/v3-flatcontainer/antlr/3.4.1.9004/antlr.3.4.1.9004.nupkg", | ||
"api_data_url": "https://api.nuget.org/v3/registration5-gz-semver2/antlr/3.4.1.9004.json", | ||
"datasource_id": "", | ||
"datafile_path": "", | ||
"dependencies": [], | ||
"warnings": [], | ||
"errors": [] | ||
}, | ||
{ | ||
"type": "nuget", | ||
"namespace": "", | ||
"name": "Newtonsoft.Json", | ||
"version": "5.0.4", | ||
"qualifiers": "", | ||
"subpath": "", | ||
"purl": "pkg:nuget/[email protected]", | ||
"primary_language": "C#", | ||
"description": "Json.NET is a popular high-performance JSON framework for .NET", | ||
"release_date": "", | ||
"parties": [ | ||
{ | ||
"type": "organization", | ||
"role": "author", | ||
"name": "James Newton-King", | ||
"email": "", | ||
"url": "" | ||
} | ||
], | ||
"keywords": [ | ||
"json" | ||
], | ||
"homepage_url": "http://james.newtonking.com/projects/json-net.aspx", | ||
"download_url": "https://api.nuget.org/v3-flatcontainer/newtonsoft.json/5.0.4/newtonsoft.json.5.0.4.nupkg", | ||
"size": 0, | ||
"sha1": "", | ||
"md5": "", | ||
"sha256": "", | ||
"sha512": "", | ||
"bug_tracking_url": "", | ||
"code_view_url": "", | ||
"vcs_url": "", | ||
"copyright": "", | ||
"license_expression": "", | ||
"declared_license": "LicenseUrl: http://json.codeplex.com/license", | ||
"notice_text": "", | ||
"source_packages": [], | ||
"extra_data": {}, | ||
"repository_homepage_url": "https://www.nuget.org/packages/Newtonsoft.Json/5.0.4?_src=template", | ||
"repository_download_url": "https://api.nuget.org/v3-flatcontainer/newtonsoft.json/5.0.4/newtonsoft.json.5.0.4.nupkg", | ||
"api_data_url": "https://api.nuget.org/v3/registration5-gz-semver2/newtonsoft.json/5.0.4.json", | ||
"datasource_id": "", | ||
"datafile_path": "", | ||
"dependencies": [], | ||
"warnings": [], | ||
"errors": [] | ||
} | ||
], | ||
"warnings": [], | ||
"errors": [] | ||
} | ||
], | ||
"warnings": [], | ||
"errors": [] | ||
} | ||
], | ||
"dependencies": [ | ||
{ | ||
"type": "nuget", | ||
"namespace": "", | ||
"name": "Antlr", | ||
"version": "3.4.1.9004", | ||
"qualifiers": "", | ||
"subpath": "", | ||
"purl": "pkg:nuget/[email protected]", | ||
"primary_language": "C#", | ||
"description": "ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target languages.", | ||
"release_date": "", | ||
"parties": [ | ||
{ | ||
"type": "organization", | ||
"role": "author", | ||
"name": "Terence Parr", | ||
"email": "", | ||
"url": "" | ||
} | ||
], | ||
"keywords": [], | ||
"homepage_url": "", | ||
"download_url": "https://api.nuget.org/v3-flatcontainer/antlr/3.4.1.9004/antlr.3.4.1.9004.nupkg", | ||
"size": 0, | ||
"sha1": "", | ||
"md5": "", | ||
"sha256": "", | ||
"sha512": "", | ||
"bug_tracking_url": "", | ||
"code_view_url": "", | ||
"vcs_url": "", | ||
"copyright": "", | ||
"license_expression": "", | ||
"declared_license": "", | ||
"notice_text": "", | ||
"source_packages": [], | ||
"extra_data": {}, | ||
"repository_homepage_url": "https://www.nuget.org/packages/Antlr/3.4.1.9004?_src=template", | ||
"repository_download_url": "https://api.nuget.org/v3-flatcontainer/antlr/3.4.1.9004/antlr.3.4.1.9004.nupkg", | ||
"api_data_url": "https://api.nuget.org/v3/registration5-gz-semver2/antlr/3.4.1.9004.json", | ||
"datasource_id": "", | ||
"datafile_path": "", | ||
"dependencies": [], | ||
"warnings": [], | ||
"errors": [] | ||
}, | ||
{ | ||
"type": "nuget", | ||
"namespace": "", | ||
"name": "Newtonsoft.Json", | ||
"version": "5.0.4", | ||
"qualifiers": "", | ||
"subpath": "", | ||
"purl": "pkg:nuget/[email protected]", | ||
"primary_language": "C#", | ||
"description": "Json.NET is a popular high-performance JSON framework for .NET", | ||
"release_date": "", | ||
"parties": [ | ||
{ | ||
"type": "organization", | ||
"role": "author", | ||
"name": "James Newton-King", | ||
"email": "", | ||
"url": "" | ||
} | ||
], | ||
"keywords": [ | ||
"json" | ||
], | ||
"homepage_url": "http://james.newtonking.com/projects/json-net.aspx", | ||
"download_url": "https://api.nuget.org/v3-flatcontainer/newtonsoft.json/5.0.4/newtonsoft.json.5.0.4.nupkg", | ||
"size": 0, | ||
"sha1": "", | ||
"md5": "", | ||
"sha256": "", | ||
"sha512": "", | ||
"bug_tracking_url": "", | ||
"code_view_url": "", | ||
"vcs_url": "", | ||
"copyright": "", | ||
"license_expression": "", | ||
"declared_license": "LicenseUrl: http://json.codeplex.com/license", | ||
"notice_text": "", | ||
"source_packages": [], | ||
"extra_data": {}, | ||
"repository_homepage_url": "https://www.nuget.org/packages/Newtonsoft.Json/5.0.4?_src=template", | ||
"repository_download_url": "https://api.nuget.org/v3-flatcontainer/newtonsoft.json/5.0.4/newtonsoft.json.5.0.4.nupkg", | ||
"api_data_url": "https://api.nuget.org/v3/registration5-gz-semver2/newtonsoft.json/5.0.4.json", | ||
"datasource_id": "", | ||
"datafile_path": "", | ||
"dependencies": [], | ||
"warnings": [], | ||
"errors": [] | ||
}, | ||
{ | ||
"type": "nuget", | ||
"namespace": "", | ||
"name": "WebGrease", | ||
"version": "1.5.2", | ||
"qualifiers": "", | ||
"subpath": "", | ||
"purl": "pkg:nuget/[email protected]", | ||
"primary_language": "C#", | ||
"description": "Web Grease is a suite of tools for optimizing javascript, css files and images.", | ||
"release_date": "", | ||
"parties": [ | ||
{ | ||
"type": "organization", | ||
"role": "author", | ||
"name": "[email protected]", | ||
"email": "", | ||
"url": "" | ||
} | ||
], | ||
"keywords": [], | ||
"homepage_url": "", | ||
"download_url": "https://api.nuget.org/v3-flatcontainer/webgrease/1.5.2/webgrease.1.5.2.nupkg", | ||
"size": 0, | ||
"sha1": "", | ||
"md5": "", | ||
"sha256": "", | ||
"sha512": "", | ||
"bug_tracking_url": "", | ||
"code_view_url": "", | ||
"vcs_url": "", | ||
"copyright": "", | ||
"license_expression": "", | ||
"declared_license": "LicenseUrl: http://www.microsoft.com/web/webpi/eula/msn_webgrease_eula.htm", | ||
"notice_text": "", | ||
"source_packages": [], | ||
"extra_data": {}, | ||
"repository_homepage_url": "https://www.nuget.org/packages/WebGrease/1.5.2?_src=template", | ||
"repository_download_url": "https://api.nuget.org/v3-flatcontainer/webgrease/1.5.2/webgrease.1.5.2.nupkg", | ||
"api_data_url": "https://api.nuget.org/v3/registration5-gz-semver2/webgrease/1.5.2.json", | ||
"datasource_id": "", | ||
"datafile_path": "", | ||
"dependencies": [], | ||
"warnings": [], | ||
"errors": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
download_url: https://raw.githubusercontent.com/oss-review-toolkit/ort/f6356723dbfc0d8bd9f44d7b4088373adfdd571d/analyzer/src/funTest/assets/projects/synthetic/nuget/packages.config |
6 changes: 6 additions & 0 deletions
6
tests/data/packages-config/packages.config-dev/packages.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="WebGrease" version="1.5.2" targetFramework="net45" developmentDependency="true" /> | ||
<package id="Antlr" version="3.4.1.9004" targetFramework="net45" /> | ||
<package id="Newtonsoft.Json" version="5.0.4" targetFramework="net45" /> | ||
</packages> |