You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found this package to be very helpful for a quick look at code complexity. Thank you!
One thing that struck me as counter-intuitive, however, is that the sum row is always listed as 50% in the percentage columns. This makes it hard to interpret the actual percentages. For example the blank lines from C++ files should be 63% here instead of 31.5%.
I found this package to be very helpful for a quick look at code complexity. Thank you!
One thing that struck me as counter-intuitive, however, is that the sum row is always listed as 50% in the percentage columns. This makes it hard to interpret the actual percentages. For example the blank lines from C++ files should be 63% here instead of 31.5%.
What do you think about excluding the sum row from the denominator of these calculations? https://github.com/hrbrmstr/cloc/blob/master/R/cloc.R#L102-L105
The sum row of percentage columns could then be corrected to 100% after, or set as NA.
The text was updated successfully, but these errors were encountered: