Skip to content

Commit

Permalink
chore: Change repo config and curation to warning
Browse files Browse the repository at this point in the history
Because a repository configuration or curation may be purposeful,
declare a `WARNING` instead of `ERROR` for the evaluator.

Resolves oss-review-toolkit/ort#7753

Signed-off-by: Scott Schreckengaust <[email protected]>
  • Loading branch information
scottschreckengaust authored and sschuberth committed Nov 15, 2023
1 parent ae41944 commit 4840b4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evaluator.rules.kts
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ fun RuleSet.noLicenseInDependencyRule() = dependencyRule("NO_LICENSE_IN_DEPENDEN

fun RuleSet.packageConfigurationInOrtYmlRule() = ortResultRule("PACKAGE_CONFIGURATION_IN_ORT_YML") {
if (ortResult.repository.config.packageConfigurations.isNotEmpty()) {
error(
warning(
"The use of package configurations is not allowed in the *.ort.yml file.",
"Please use a global package configuration in the $ortConfigVcsMdLink."
)
Expand All @@ -1378,7 +1378,7 @@ fun RuleSet.packageConfigurationInOrtYmlRule() = ortResultRule("PACKAGE_CONFIGUR

fun RuleSet.packageCurationInOrtYmlRule() = ortResultRule("PACKAGE_CURATION_IN_ORT_YML") {
if (ortResult.repository.config.curations.packages.isNotEmpty()) {
error(
warning(
"The use of package curations is not allowed in the *.ort.yml file.",
"Please use a global package curation in the $ortConfigVcsMdLink."
)
Expand Down

0 comments on commit 4840b4e

Please sign in to comment.