-
Notifications
You must be signed in to change notification settings - Fork 49
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
Java nom metrics #823
Java nom metrics #823
Conversation
b0de32c
to
13a21e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me. Could you also add a smaller test like cpp_nom
in addition to the one you already added?
Yeah... turns out lambdas in Java are really ugly :) |
src/metrics/nom.rs
Outdated
@@ -123,6 +123,7 @@ impl Stats { | |||
/// Returns the average number of function definitions over all spaces | |||
#[inline(always)] | |||
pub fn functions_average(&self) -> f64 { | |||
println!("SPACE {}", self.space_count); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the debugging statement ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bah! Forgot about it. Done.
Codecov Report
@@ Coverage Diff @@
## master #823 +/- ##
==========================================
+ Coverage 40.92% 41.03% +0.10%
==========================================
Files 51 51
Lines 7088 7101 +13
Branches 1011 1013 +2
==========================================
+ Hits 2901 2914 +13
+ Misses 3486 3485 -1
- Partials 701 702 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Adds
LambdaExpression
to theChecker
is_closure
and adds a test for Java nom metric.