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

Add cognitive average #332

Merged
merged 1 commit into from
Nov 11, 2020
Merged

Conversation

Luni-4
Copy link
Collaborator

@Luni-4 Luni-4 commented Nov 10, 2020

Average Cognitive Complexity over the total number of functions/closures in a space.

Thanks in advance for your review! :)

@Luni-4 Luni-4 requested a review from calixteman November 10, 2020 18:14
@codecov-io
Copy link

codecov-io commented Nov 10, 2020

Codecov Report

Merging #332 (2e76507) into master (7f33ab1) will increase coverage by 0.16%.
The diff coverage is 58.82%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #332      +/-   ##
==========================================
+ Coverage   20.11%   20.28%   +0.16%     
==========================================
  Files          48       48              
  Lines        6179     6193      +14     
  Branches      799      802       +3     
==========================================
+ Hits         1243     1256      +13     
+ Misses       4421     4420       -1     
- Partials      515      517       +2     
Impacted Files Coverage Δ
rust-code-analysis-cli/src/web/server.rs 58.91% <ø> (ø)
src/metrics/cognitive.rs 51.59% <53.33%> (-0.11%) ⬇️
src/spaces.rs 61.84% <100.00%> (+0.50%) ⬆️
src/metrics/nom.rs 56.57% <0.00%> (+1.31%) ⬆️
src/getter.rs 48.48% <0.00%> (+1.73%) ⬆️

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 7f33ab1...2e76507. Read the comment docs.

@Luni-4 Luni-4 requested a review from marco-c November 11, 2020 13:17
@marco-c marco-c merged commit a03b78b into mozilla:master Nov 11, 2020
@Luni-4 Luni-4 deleted the cognitive-average branch November 11, 2020 21:49
spacedragon pushed a commit to spacedragon/rust-code-analysis that referenced this pull request Feb 2, 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.

3 participants