Skip to content

Commit

Permalink
docs(config): Add forceOverwrite option to reference.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Dinesh <[email protected]>
  • Loading branch information
dineshr93 authored and sschuberth committed Jan 22, 2024
1 parent 8deb4b3 commit 559a6ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions model/src/main/resources/reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ ort:
enableRepositoryPackageConfigurations: true
enableRepositoryPackageCurations: true

# Force overwriting of any existing output files.
forceOverwrite: true

licenseFilePatterns:
licenseFilenames: ['license*']
patentFilenames: ['patents']
Expand Down
2 changes: 2 additions & 0 deletions model/src/test/kotlin/config/OrtConfigurationTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class OrtConfigurationTest : WordSpec({
ortConfig.enableRepositoryPackageConfigurations shouldBe true
ortConfig.enableRepositoryPackageCurations shouldBe true

ortConfig.forceOverwrite shouldBe true

with(ortConfig.licenseFilePatterns) {
licenseFilenames shouldContainExactly listOf("license*")
patentFilenames shouldContainExactly listOf("patents")
Expand Down

0 comments on commit 559a6ca

Please sign in to comment.