Skip to content

Commit 21b05f6

Browse files
committed
fix(spdx): Add missing aliases for config options
This is a fixup for ff6ca62 which renamed the plugin options for the `SpdxDocumentReporter` without defining aliases for their old names. Signed-off-by: Martin Nonnenmacher <[email protected]>
1 parent a625863 commit 21b05f6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

plugins/reporters/spdx/src/main/kotlin/SpdxDocumentReporter.kt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,40 +40,44 @@ data class SpdxDocumentReporterConfig(
4040
/**
4141
* The comment to add to the [SpdxDocument.creationInfo].
4242
*/
43+
@OrtPluginOption(aliases = ["creationInfo.comment"])
4344
val creationInfoComment: String?,
4445

4546
/**
4647
* The person to add to the [SpdxDocument.creationInfo].
4748
*/
49+
@OrtPluginOption(aliases = ["creationInfo.person"])
4850
val creationInfoPerson: String?,
4951

5052
/**
5153
* The organization to add to the [SpdxDocument.creationInfo].
5254
*/
55+
@OrtPluginOption(aliases = ["creationInfo.organization"])
5356
val creationInfoOrganization: String?,
5457

5558
/**
5659
* The comment to add to the [SpdxDocument].
5760
*/
61+
@OrtPluginOption(aliases = ["document.comment"])
5862
val documentComment: String?,
5963

6064
/**
6165
* The name of the generated [SpdxDocument].
6266
*/
63-
@OrtPluginOption(defaultValue = "Unnamed document")
67+
@OrtPluginOption(defaultValue = "Unnamed document", aliases = ["document.name"])
6468
val documentName: String,
6569

6670
/**
6771
* The list of file formats to generate. Supported values are "YAML" and "JSON".
6872
*/
69-
@OrtPluginOption(defaultValue = "YAML")
73+
@OrtPluginOption(defaultValue = "YAML", aliases = ["output.file.formats"])
7074
val outputFileFormats: List<String>,
7175

7276
/**
7377
* Toggle whether the output document should contain information on file granularity about files containing
7478
* findings.
7579
*/
76-
@OrtPluginOption(defaultValue = "true")
80+
@OrtPluginOption(defaultValue = "true", aliases = ["file.information.enabled"])
7781
val fileInformationEnabled: Boolean
7882
)
7983

0 commit comments

Comments
 (0)