Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort set of licenses in HTML report #431

Merged
merged 5 commits into from
Feb 2, 2024

Conversation

monae
Copy link
Contributor

@monae monae commented Feb 1, 2024

Closes #408.

This PR fixes a bug where license keys were not sorted correctly for merging projects with the same license set into one group.

In addition, the order of licenses displayed in the HTML report for merged groups is also sorted in the same way.
This change may cause output to be different than before.
A real-word example I found is here:

https://mvnrepository.com/artifact/com.facebook.android/audience-network-sdk/6.16.0

Before:

[https://github.com/facebook/facebook-android-sdk/blob/main/LICENSE.txt, apache-2.0.txt, https://www.facebook.com/legal/audience_network_beta_sdk_terms]

After:

[apache-2.0.txt, https://github.com/facebook/facebook-android-sdk/blob/main/LICENSE.txt, https://www.facebook.com/legal/audience_network_beta_sdk_terms]

@monae
Copy link
Contributor Author

monae commented Feb 1, 2024

./gradlew ktlintCheck -s runs successfully on my machine so I couldn't fix the build error.

@jaredsburrows
Copy link
Owner

@monae I just updated the branch. Run gradlew ktlintformat and add any changes.

@jaredsburrows jaredsburrows merged commit ddca272 into jaredsburrows:master Feb 2, 2024
2 checks passed
@jaredsburrows
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Licenses of a single project are not sorted correctly
2 participants