Skip to content

Conversation

@marco-ballario
Copy link
Contributor

This PR adds some averages calculations for the Nom metrics. Averages are calculated over spaces, like for the Cyclomatic metric. Tests have been updated accordingly. This PR should partly resolve issue #409 . Thanks in advance for the review.

@codecov-commenter
Copy link

codecov-commenter commented Dec 28, 2021

Codecov Report

Merging #736 (003b5dc) into master (f9c1454) will increase coverage by 0.47%.
The diff coverage is 87.30%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #736      +/-   ##
==========================================
+ Coverage   37.95%   38.43%   +0.47%     
==========================================
  Files          51       51              
  Lines        6549     6611      +62     
  Branches      963      965       +2     
==========================================
+ Hits         2486     2541      +55     
- Misses       3403     3407       +4     
- Partials      660      663       +3     
Impacted Files Coverage Δ
rust-code-analysis-web/src/web/server.rs 61.81% <ø> (ø)
src/metrics/nom.rs 72.63% <87.30%> (+7.78%) ⬆️

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 f9c1454...003b5dc. Read the comment docs.

calixteman
calixteman previously approved these changes Jan 10, 2022
Copy link
Collaborator

@calixteman calixteman left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for doing this.

@calixteman
Copy link
Collaborator

@marco-ballario could you rebase please ?

@calixteman calixteman merged commit 25349e7 into mozilla:master Jan 11, 2022
@Luni-4 Luni-4 deleted the average-sum-metrics branch January 11, 2022 10:08
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.

3 participants