Skip to content

Conversation

AyanSinhaMahapatra
Copy link
Member

@AyanSinhaMahapatra AyanSinhaMahapatra commented Jun 20, 2023

Changes:

  1. The top level license detection is now sorted.
  2. License tallies are now computed from license detections.
  3. Fix a bug effecting the count of files with no license detected.

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled 📑 and links the original issue above 🔗
  • Tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR
    Run tests locally to check for errors.
  • Commits are in uniquely-named feature branch and has no merge conflicts 📁
  • Looked for possible updates in documentation and added updates if applicable
  • Updated CHANGELOG.rst

This makes the top level license detection sorted, first in
alphabetical order, then in descending order of detection_count
and then on the identifier/UUID. Also regens tests for the same.

Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
@AyanSinhaMahapatra AyanSinhaMahapatra marked this pull request as draft June 20, 2023 22:13
Fix license tallies to be keyed by license expressions for each
license detection, instead of the detected_license_expression
for a file. Also take into account package license detections.

Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
@AyanSinhaMahapatra AyanSinhaMahapatra marked this pull request as ready for review June 22, 2023 11:06
Copy link
Member

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! you may want to check your usage of constants inside functions for improved readability (e.g., use less of these ;) )

@pombredanne pombredanne merged commit dc86a47 into develop Jun 29, 2023
@pombredanne pombredanne deleted the fix-summary-license branch June 29, 2023 16:54
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.

2 participants