The code-metrics tag has no wiki summary.
4
votes
3answers
92 views
Codebase Analysis of Trends over Time
I've looked around for a solution (preferably not hosted, something I can run locally) to do static analysis of a codebase over time for things like SLOC, Complexity, authors, commits, etc. It has to ...
1
vote
1answer
89 views
Estimated errors in implementation comparison
I've been working on improving an existing library to be more maintainable after trying to implement a feature I wanted and found the code to be hard to alter.
The library is a node.js grunt plugin ...
2
votes
1answer
341 views
What does the “4” in LCOM4 mean?
I know that methods in a class should have high cohesion which roughly translates to having all the methods use all the instance variables directly or indirectly. I know that LCOM4 (Lack of ...
3
votes
2answers
124 views
Strategies for using a code metric evaluation tool
Should code quality metric evaluation tools like Sonar be integrated with IDE for running local analysis or should they be a part of the build process (like integrated with maven) for continuous ...
12
votes
4answers
941 views
Source code metrics for measuring code stability?
Considering how software is developed during a release cycle (implementation, testing, bug fixing, release) I was thinking that one should be able to see some pattern in the lines of code that are ...
0
votes
3answers
224 views
Is the number of bugs in a section of code proportional to the # of lines ? The square of the # of lines ?
Are there any studies that aggregate data over a wide population of contributed code, that establish a correlation between amount of code written in a commit and the # of bugs discovered in that code ...
8
votes
2answers
647 views
How is technical debt best measured? What metric(s) are most useful? [duplicate]
Possible Duplicate:
How can I quantify the amount of technical debt that exists in a project?
If I wanted to help a customer understand the degree of technical debt in his application, what ...
5
votes
3answers
475 views
Code metrics for .net code [closed]
While the code metrics tool gives a pretty good analysis of the code being analyzed, I was wondering if there was any such benchmark on acceptable standards for the following as well:
Maximum number ...
11
votes
2answers
631 views
Are There Metrics For Cohesion And Coupling?
Is there a metric analogous to the McCabe Complexity measure to measure how cohesive a routine is and also how loosely (or tightly) coupled the routine is to other code in the same code base?
10
votes
3answers
806 views
Experiments correlating code metrics to bug density
I'm wondering if someone has done some experiments correlating code metrics (SLOC, Cyclomatic Complexity, etc) with bug density in Object Oriented applications.
I'm not looking for experiments that ...
32
votes
10answers
2k views
How can I quantify the amount of technical debt that exists in a project?
Does anyone know if there is some kind of tool to put a number on technical debt of a code base, as a kind of code metric? If not, is anyone aware of an algorithm or set of heuristics for it?
If ...
6
votes
3answers
994 views
Does it make sense to compute cyclomatic complexity/lines of code ratio?
In general, maintainability index relies on many factors. For example, in Visual Studio, it rely on cyclomatic complexity, depth of inheritance, class coupling and lines of code; those four values ...
250
votes
6answers
10k views
What is negative code?
I was reading the Wikipedia article on Douglas McIlroy and found a quote that mentions
"The real hero of programming is the one who writes negative code."
What does that mean?