Skip to content

Commit

Permalink
feat(aosd): Trim trailing whitespace from license texts
Browse files Browse the repository at this point in the history
This eases file comparison. Do not trim leading whitespace as some
license texts (like for `Apache-2.0`) actually start with indentation.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Dec 16, 2024
1 parent d8f70f0 commit 7a5dcec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/reporters/aosd/src/main/kotlin/Aosd21Reporter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private fun Map<Identifier, IndexedValue<CuratedPackage>>.toComponents(

val licenseTexts = licenseExpressions.licenses().mapNotNullTo(mutableSetOf()) { license ->
input.licenseTextProvider.getLicenseText(license)
}.joinToString("\n--\n")
}.joinToString("\n--\n") { it.trimEnd() }

with(pkg.metadata) {
Component(
Expand Down

0 comments on commit 7a5dcec

Please sign in to comment.