Skip to content

Commit 003b0ac

Browse files
tsteenbesschuberth
authored andcommitted
fix(rules): Change property type to read-only
The value of `doNotWorryText` property is not changing so per the Kotlin docs [1] the read-only `val` should be used instead of mutable `var`. [1]: https://kotlinlang.org/docs/properties.html#declaring-properties Signed-off-by: Thomas Steenbergen <[email protected]>
1 parent 57d86c9 commit 003b0ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evaluator.rules.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ val orgOssProjectsApprovedLicenses = listOf(
121121
/**
122122
* Variables used to generate MarkDown text of howToFixDefault()
123123
*/
124-
var doNotWorryText = "_Note_: Do not worry about creating a perfect curation or exclude. Reviewers will provide feedback."
124+
val doNotWorryText = "_Note_: Do not worry about creating a perfect curation or exclude. Reviewers will provide feedback."
125125
val globTutorialMdLink = "[reference documentation](https://docs.oracle.com/javase/tutorial/essential/io/fileOps.html#glob)"
126126
val ortConfigContributingMdLink = "[CONTRIBUTING.md](https://github.com/oss-review-toolkit/ort-config/blob/main/CONTRIBUTING.md)"
127127
val ortConfigVcsMdLink = "[ort-config repository](https://github.com/oss-review-toolkit/ort-config)"

0 commit comments

Comments
 (0)