The code-metrics tag has no wiki summary.
-2
votes
0answers
22 views
How to count operators and operands in a java file using antlr tool? [closed]
I am implementing halstead metrics.Right now i am able to parse a java file. But i don't know how to count the operators and operands using antlr. If anybody has any idea how to count them using antlr ...
2
votes
1answer
81 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 ...
2
votes
2answers
83 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
750 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
172 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
327 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
294 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
383 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?
9
votes
3answers
488 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 ...
25
votes
8answers
1k 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
756 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 ...
239
votes
6answers
8k 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?