Skip to content
Permalink
Browse files

Add an .ort.yml file for ORT

The configuration excludes all test scopes and test files. Also, some
ScanCode timeout errors are resolved.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@here.com>
  • Loading branch information...
mnonnenmacher committed Mar 13, 2019
1 parent 2afb491 commit 16280f90d96e52e3609ce38b88541bf63cc44071
Showing with 38 additions and 0 deletions.
  1. +38 −0 .ort.yml
@@ -0,0 +1,38 @@
excludes:
paths:
- pattern: "analyzer/src/funTest/assets/projects/**"
reason : "TEST_TOOL_OF"
comment: "This project is only used for testing and is not part of the distribution."
- pattern: "reporter/src/{funTest,test}/assets/**"
reason : "TEST_TOOL_OF"
comment: "This file contains test data. Contained licenses do not apply to the OSS Review Toolkit."
- pattern: "reporter-web-app/src/config.js"
reason : "DATA_FILE_OF"
comment: "This file contains license data used in the web app report. Contained licenses do not apply to the OSS Review Toolkit."
- pattern: "reporter-web-app/src/data/choosealicense/**"
reason : "DATA_FILE_OF"
comment: "This file contains license data used in the web app report. Contained licenses do not apply to the OSS Review Toolkit."
- pattern: "scanner/src/funTest/kotlin/scanners/ScanPathTest.kt"
reason : "TEST_TOOL_OF"
comment: "Licenses contained in this class are used for testing and do not apply to the OSS Review Toolkit."
- pattern: "spdx-utils/src/main/resources/{exceptions,licenserefs,licenses}/**"
reason : "DATA_FILE_OF"
comment: "This license file is used for generating license notes and does not apply to the OSS Review Toolkit."
- pattern: "spdx-utils/src/main/kotlin/{SpdxDeclaredLicenseMapping,SpdxLicense,SpdxLicenseAliasMapping,SpdxLicenseException}.kt"
reason : "DATA_FILE_OF"
comment: "Licenses contained in this class are used for processing licenses and do not apply to the OSS Review Toolkit."
- pattern: "spdx-utils/src/test/kotlin/**"
reason : "TEST_TOOL_OF"
comment: "Licenses contained in this class are used for testing and do not apply to the OSS Review Toolkit."
scopes:
- name : "(test|funTest)"
reason : "TEST_TOOL_OF"
comment: "These are test dependencies which are not part of the binary distribution."
resolutions:
errors:
- message: "ERROR: Timeout after 300 seconds while scanning file 'reporter-web-app/public/index.html'."
reason : "SCANNER_ISSUE"
comment: "The error can be ignored because the file does contain relevant license information."
- message: "ERROR: Timeout after 300 seconds while scanning file 'scanner/src/test/assets/aws-java-sdk-core-1.11.160_scancode-2.9.7.json'."
reason : "SCANNER_ISSUE"
comment: "This file contains test data. Contained licenses do not apply to the OSS Review Toolkit."

0 comments on commit 16280f9

Please sign in to comment.
You can’t perform that action at this time.