Skip to content

Commit

Permalink
JsonSchemeTest: Add additional .ort.yml examples to test more scenarios
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.io>
  • Loading branch information
MarcelBochtler committed Oct 29, 2021
1 parent 9bfb921 commit 7d52f91
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
25 changes: 25 additions & 0 deletions examples/curations.ort.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
curations:
license_findings:
- path: "src/**.cpp"
start_lines: "3,8"
line_count: 1
detected_license: "GPL-2.0-only"
reason: "CODE"
comment: "The scanner matches a variable named `gpl`."
concluded_license: "Apache-2.0"
packages:
- id: "Maven:com.example:dummy:0.0.1"
curations:
comment: "An explanation why the curation is needed."
homepage_url: "https://example.com"
is_modified: false
vcs:
type: "Git"
url: "https://example.com/package.git"
revision: "main"
authors:
- "Name of the author"
is_meta_data_only: false
concluded_license: "BSD-2-Clause"
declared_license_mapping:
The BSD License: "BSD-2-Clause"
11 changes: 11 additions & 0 deletions examples/package-configurations.ort.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package_configurations:
- id: 'Maven:com.example:package:1.2.3'
source_artifact_url: "https://repo.maven.apache.org/maven2/com/example/package/1.2.3/package-1.2.3-sources.jar"
license_finding_curations:
- path: "path/to/problematic/file.java"
start_lines: 22
line_count: 1
detected_license: "GPL-2.0-only"
reason: "CODE"
comment: "The scanner matches a variable named `gpl`."
concluded_license: "Apache-2.0"
9 changes: 9 additions & 0 deletions examples/resolutions.ort.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
resolutions:
issues:
- message: "Could not download 'Maven:com.example:library:.*"
reason: "CANT_FIX_ISSUE"
comment: "An example for an issue resolution."
rule_violations:
- message: "Example rule violation*."
reason: "DYNAMIC_LINKAGE_EXCEPTION"
comment: "An example for rule a rule violation resolution."

0 comments on commit 7d52f91

Please sign in to comment.