Skip to content

Commit

Permalink
docs(model): Document the impact of the severe threshold properties
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Jan 27, 2024
1 parent 95dcce2 commit 00cd17a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions model/src/main/kotlin/config/OrtConfiguration.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import org.apache.logging.log4j.kotlin.logger

import org.ossreviewtoolkit.model.Severity
import org.ossreviewtoolkit.utils.common.EnvironmentVariableFilter
import org.ossreviewtoolkit.utils.ort.ORT_FAILURE_STATUS_CODE
import org.ossreviewtoolkit.utils.ort.ORT_PACKAGE_CONFIGURATIONS_DIRNAME
import org.ossreviewtoolkit.utils.ort.ORT_PACKAGE_CURATIONS_DIRNAME
import org.ossreviewtoolkit.utils.ort.ORT_PACKAGE_CURATIONS_FILENAME
Expand Down Expand Up @@ -100,12 +101,14 @@ data class OrtConfiguration(
),

/**
* The threshold from which on issues count as severe.
* The threshold from which on issues count as severe. Severe issues cause the status code on exit of the CLI
* commands to be at least [ORT_FAILURE_STATUS_CODE].
*/
val severeIssueThreshold: Severity = Severity.WARNING,

/**
* The threshold from which on rule violations count as severe.
* The threshold from which on rule violations count as severe. Severe rule violations cause the status code on exit
* of the CLI commands to be at least [ORT_FAILURE_STATUS_CODE].
*/
val severeRuleViolationThreshold: Severity = Severity.WARNING,

Expand Down

0 comments on commit 00cd17a

Please sign in to comment.