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

Implement a license clarity score #1180

Closed
pombredanne opened this issue Sep 17, 2018 · 3 comments
Closed

Implement a license clarity score #1180

pombredanne opened this issue Sep 17, 2018 · 3 comments

Comments

@pombredanne
Copy link
Member

For use here and in ClearlyDefined, we should compute a license clarity score. The specification is documented in this ClearlyLicensed Metrics doc.

@pombredanne
Copy link
Member Author

There are several elements in the scoring and these would leverage:

@pombredanne
Copy link
Member Author

Here is the status so far:
The latest doc link for license scoring https://docs.google.com/document/d/1o_VuVnP1PMoYOXZHSm0TyDX4CsqDXM3zqESAE0AoUnQ/edit#

And I have a working scoring implementation https://github.com/nexB/scancode-toolkit/tree/license-scoring

  "license_score": {
    "score": 82,
    "has_top_level_declared_licenses": true,
    "file_level_license_and_copyright_coverage": 0.9,
    "has_consistent_key_and_file_level_license": true,
    "has_all_spdx_licenses": false,
    "has_all_license_texts": true
  },

that's using facets:

  "scancode_version": "2.9.2.post351.e23b1d79f.dirty.20180916153557",
  "scancode_options": {
    "input": "dnsmasq-2.45",
    "--classify": true,
    "--copyright": true,
    "--facet": [
      "dev=*/bld/*",
      "examples=*/contrib/*",
      "docs=*.html",
      "examples=*.example",
      "data=*/po/*",
      "data=*/dbus/*",
      "docs=*/man/*",
      "docs=CHANGELOG",
      "docs=FAQ"
    ],
    "--info": true,
    "--json-pp": "<stdout>",
    "--license": true,
    "--license-clarity-score": true,
    "--processes": "3",
    "--summary": true,
    "--summary-by-facet": true
  },

pombredanne added a commit that referenced this issue Sep 19, 2018
Signed-off-by: Philippe Ombredanne <[email protected]>
pombredanne added a commit that referenced this issue Oct 30, 2018
Signed-off-by: Philippe Ombredanne <[email protected]>
pombredanne added a commit that referenced this issue Oct 30, 2018
 * make the main loop simpler with configured scoring elements
 * add tests to license score computation
 * add support for future additional scoring elements

Signed-off-by: Philippe Ombredanne <[email protected]>
@pombredanne pombredanne added this to the v3.0 milestone Nov 5, 2018
pombredanne added a commit that referenced this issue Nov 8, 2018
Signed-off-by: Philippe Ombredanne <[email protected]>
pombredanne added a commit that referenced this issue Nov 8, 2018
 * make the main loop simpler with configured scoring elements
 * add tests to license score computation
 * add support for future additional scoring elements

Signed-off-by: Philippe Ombredanne <[email protected]>
pombredanne added a commit that referenced this issue Nov 8, 2018
Signed-off-by: Philippe Ombredanne <[email protected]>
pombredanne added a commit that referenced this issue Nov 8, 2018
 * make the main loop simpler with configured scoring elements
 * add tests to license score computation
 * add support for future additional scoring elements

Signed-off-by: Philippe Ombredanne <[email protected]>
@pombredanne
Copy link
Member Author

This is completed and merged in develop

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

No branches or pull requests

1 participant