This project is archived and is in readonly mode.
Stats can report negative numbers for LOC/M
-
Rohit Arondekar
- State changed from new to stale
- Importance changed from to Low
Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.
Preferably upload a sample app to Github or attach one here.
-
Vijay Dev
Dan,
Am I missing anything? Shouldn't the subtraction by 2 be removed in this line before you go on to subtract by 2 in a new line?
loc_over_m = (statistics["codelines"] / statistics["methods"]) - 2 rescue loc_over_m = 0 -
Dan Mayer
the -2 removes the def method and end lines when there is a method as they shouldn't count. The issue is when it has 0 or 1 as a result it outputs -1 or -2.
