Questions tagged [code-metrics]

Software metrics are quantitative data pertaining to source code, e.g. number of lines of code (LOC) for a file.

Questions with this tag will often be about which metrics are most useful for certain purposes or which tools are available to provide certain metrics.

276 questions
0
votes
2 answers

What metrics are useful for measuring developer progress based on git?

Can git show any metrics that might be helpful to track the progress of developers? I know git shortlog --since="1/1/12" as a basic utility to see how many total commits each developer has. What about lines per commit or files added?
Shamoon
  • 41,293
  • 91
  • 306
  • 570
0
votes
1 answer

Is there a library out there to analyze VB.Net code complexity from my C# code?

Given VB.Net code in a string, is there a library (or a command line tool) out there that could calculate Cyclomatic Complextiy and LOC? This has to be done within my C# code. Thanks.
Doguhan Uluca
  • 6,933
  • 4
  • 38
  • 51
-1
votes
1 answer

Attempt to read from field in AndroidDevMetrics on a null object reference

I am trying to implement frogermcs/AndroidDevMetrics library in my project This is the link: https://github.com/frogermcs/AndroidDevMetrics I followed these steps to integrate AndroidDevMetrics into my project. Added these in…
Sajid Zeb
  • 1,806
  • 18
  • 32
-1
votes
6 answers

Minimum Acceptable Code Coverage Numbers in the real world

Possible Duplicate: What is a reasonable code coverage % for unit tests (and why)? I am in the middle of putting together some guidelines around unit test code coverage and I want to specify a number that really makes sense. It's easy to repeat…
Pita.O
  • 1,864
  • 1
  • 19
  • 27
-1
votes
1 answer

Is there a tool that can count the number of interface references in a project?

I have a C# codebase which has evolved over the past year, and I'd like to get some visibility on the number of interface type references vs class type references. Suppose the code is: namespace Infrastructure { public class Foo { private…
Daniel A. Thompson
  • 1,904
  • 1
  • 17
  • 26
-2
votes
2 answers

Which is the more important code quality metric - between cyclomatic complexity or average fan out?

I was working on TICS code quality metrics for the first time, and I have this question. Many suggest breaking large functions into one or more functions in order to keep complexity less than 15. Doing so would increase number of functions called by…
1 2 3
18
19