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

Improve summary and score #1253

Merged
merged 4 commits into from
Nov 10, 2018
Merged

Improve summary and score #1253

merged 4 commits into from
Nov 10, 2018

Conversation

pombredanne
Copy link
Contributor

This PR is a set of improvements for #1180

This add an is_key_file as a file flag and improves the computation.
This also improves generated code detection for #377

@codecov
Copy link

codecov bot commented Nov 8, 2018

Codecov Report

Merging #1253 into develop will increase coverage by 0.97%.
The diff coverage is 89.61%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1253      +/-   ##
===========================================
+ Coverage    83.25%   84.23%   +0.97%     
===========================================
  Files          118      118              
  Lines        13001    13180     +179     
===========================================
+ Hits         10824    11102     +278     
+ Misses        2177     2078      -99
Impacted Files Coverage Δ
src/summarycode/generated.py 72.54% <ø> (ø) ⬆️
src/summarycode/classify.py 85.71% <100%> (+4.94%) ⬆️
src/summarycode/score.py 84.44% <88.88%> (+64.93%) ⬆️
src/scancode/cli.py 76.74% <0%> (+0.32%) ⬆️
src/typecode/pygments_lexers.py 52.9% <0%> (+0.64%) ⬆️
src/scancode/resource.py 85.67% <0%> (+1.7%) ⬆️
src/scancode/interrupt.py 42.1% <0%> (+2.63%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 02dc508...f441d8d. Read the comment docs.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
 * 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 <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne
Copy link
Contributor Author

All green. Merging

@pombredanne pombredanne merged commit 66efe52 into develop Nov 10, 2018
@pombredanne pombredanne deleted the improve-summary-and-score branch November 10, 2018 10:50
pombredanne pushed a commit that referenced this pull request Jul 14, 2021
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.

1 participant