Skip to content

Commit 4840b4e

Browse files
scottschreckengaustsschuberth
authored andcommitted
chore: Change repo config and curation to warning
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 <scottschreckengaust@users.noreply.github.com>
1 parent ae41944 commit 4840b4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

evaluator.rules.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,7 @@ fun RuleSet.noLicenseInDependencyRule() = dependencyRule("NO_LICENSE_IN_DEPENDEN
13691369

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

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

0 commit comments

Comments
 (0)