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
1 answer

Calculate Code Metrics of compiled C Program

To evaluate different C Obfuscators I'm searching for a way to calculate established Code Metrics (for example the McCabes Cyclomatic Complexity) on a compiled C Program. Thus there is no source code available. Is ist possible to calculate such…
la-ga
  • 160
  • 2
  • 13
0
votes
1 answer

Tool used to retrieve code metrics in xUnit Test Patterns?

I'm reading xUnit Test Patterns by Gerard Meszaros. On one of the pages he refers to some software metrics: While the need to wrap lines to keep them at 65 characters makes this code look even longer than it really is, it is still…
leeand00
  • 25,510
  • 39
  • 140
  • 297
0
votes
1 answer

Class Coupling - using for vs foreach (Visual Studio)

I am trying to simplify some of my code (right now I'm at the cyclomatic complexity and class coupling part) and I am having an issue with the class coupling metric... This is the scenario: public class firstTestClass { public string…
norb
  • 165
  • 2
  • 11
0
votes
0 answers

How can I extract metrics (code churn metric) on the variation of the code of two software versions?

I'm a little confused. I would like to extract the metrics related to different versions of a software (source code) exists, which take into account the different modifications in the two versions of the software. I would like to understand how I…
Ugo Giordano
  • 373
  • 3
  • 11
0
votes
1 answer

Does McCabe formula consider data flow?

When using the McCabe formula M = E-N + 2C does it take into consideration if data is restricted to flowing in only one direction? It seems graphs show data flowing in many directions, regardless if that is actually what happens or not. A…
4thSpace
  • 43,672
  • 97
  • 296
  • 475
0
votes
1 answer

Most used methods from external libraries

Is there any way to know the most used methods from external libraries within a C# project / solution? Right now, i'm using Visual Studio 2008 (but ansers for newer versions are ok). Just need a simple listing like: Namespace Class Method …
cag
  • 129
  • 2
  • 5
0
votes
0 answers

Code Metrics per TFS User

Is there a way in Visual Studio 2010 or TFS 2010 to calculate the Code Metrics of a Solution but have it split per TFS user? For example: User A: 250,000 Lines User B: 23,000 Lines User C: 12,000 Lines ect.
doreye01
  • 490
  • 4
  • 11
0
votes
3 answers

Rails code quality tools that I can run in development mode without sharing my code

I came across https://codeclimate.com. Super awesome, but I'm working on a project whose code I cannot share with others or Code Climate. Now I would like to be able to improve my code quality and wonder if anyone can suggest tools that do what…
Rubytastic
  • 15,001
  • 18
  • 87
  • 175
0
votes
1 answer

I would like know if have possibility of add a new metric in eclipse metrics plugin

I would like know if have possibility of add a new metric in eclipse metrics plugin. for example: don't have the metric TCC - Tight Class Cohesion, I would like add in list of preference.
gisele.rossi
  • 21
  • 1
  • 6
0
votes
3 answers

Compiling historical information (esp. SLOCs) about a project

I am looking for a tool that will help me to compile a history of certain code metrics for a given project. The project is stored inside a mercurial repository and has about a hundred revisions. I am looking for something that: checks out each…
Johannes Rudolph
  • 35,298
  • 14
  • 114
  • 172
0
votes
2 answers

What are trade-offs of different values for Code metrics in a .NET application

I have a situation which demands the following code metrics. Maintainability index > 80 & Cyclomatic complexity < 20 But as per MSDN (http://msdn.microsoft.com/en-us/library/cc667398(v=VS.90).aspx). Maintainability index > 20 is green Cyclomatic…
Beryl Wilson
  • 125
  • 8
0
votes
1 answer

Error while analyzing sonar project

Hi I have a custom sonar plugin for RPG and am having a sonar project that I am trying to run. Here's my plugin class: @Properties({ @Property(key = "rpg", defaultValue = "rpg", name = "File suffixes", description = "Comma-separated list of…
Sumit Bisht
  • 1,507
  • 1
  • 16
  • 31
0
votes
1 answer

Is there a industry standard numbers available for sonar results?

Sonar produces a good setup of numbers and I would like to know if there are industry standard or threshold numbers available for these indexes it creates? I can assume some of the numbers like Unit test coverage we have to look to reach 100% so…
Nair
  • 7,438
  • 10
  • 41
  • 69
0
votes
2 answers

How to find out that a method is Long Method?

How can I find out that whether a method is considered a long method or not. Because, it may possibly contain 3 lines of code or it may contain 300 lines of code. If it contains 3 lines of code then it is not a long method, but if it contains 300…
user2077743
  • 27
  • 1
  • 3
0
votes
1 answer

What does "LifeCycle expectations" mean in SQALE?

I was going through this wiki article on SQALE(Software Quality Assessment based on Lifecycle Expectations). The Software Quality assurance part of it is clear. But I am unable to understand the "based on LifeCycle expectations" part of the model.…
Inquisitive
  • 7,476
  • 14
  • 50
  • 61
1 2 3
18
19