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

What do you usually include/exclude from code coverate in c#?

We decided to enable code coverage metrics and now we're customizing settings to include/exclude different things. We have some classes that look like following: public class MyOptions { public string SomeConfigValue { get; set; } } And code…
steavy
  • 1,483
  • 6
  • 19
  • 42
0
votes
1 answer

How do you compare analysis of two projects in SonarQube 7?

Currently using SonarQube 7.2 LGPL v3 Community. Branching has not been provided in community edition,it is a paid plugin for developer addition so that is not an option. I simply want to see LOC of two projects as a chart. Help would be greatly…
0
votes
1 answer

How to get 'Code Metrics' out of VS2003?

I want to use VS2010 power tool 'Code Metrics' with VS2003 Projects and Solutions? do you know how I can manage to do that? http://www.kodyaz.com/articles/visual-studio-code-metrics-for-vs2010.aspx
Txugo
  • 5,008
  • 5
  • 33
  • 40
0
votes
0 answers

h2metrics/constructKnots.m - ERROR

I'm trying to run the following code: "https://github.com/h2metrics/h2metrics/blob/master/constructKnots.m" %% constructEmptySplineData % % Function constructs an empty splineData struct. Some default parameters % are being set; others are set to…
Iuli
  • 167
  • 12
0
votes
1 answer

Code duplication metrics - Best practice

When looking at code duplication metrics over a long period of time (>10 years) are there guidelines / best practices for what level of code duplication is "normal" or "recommended"? I have great difficulty with this question as if the code quality…
Rob Smyth
  • 1,768
  • 11
  • 19
0
votes
1 answer

Looking for a program that can help me generates for a lisp program a lines of code per function statistics

I am looking for program that can generate for me a statistics of the lines of code per functions in a lisp program. In Lisp this means for each function or macro to count how many functions are recursively included in the top level function. Any…
user2193970
  • 345
  • 2
  • 10
0
votes
2 answers

CppDepend.Console.exe closes very quickly

I'm using CppDepend and I need it to be running from the command line. So, I'm using CppDepend.Console.exe, my problem is that it opens for 1 seconds and closes immediately! I don't even get to type anything.
Nerminz
  • 27
  • 6
0
votes
1 answer

Cppdepend C++ linux base

I'm trying to generate code metrics for a C++ project which is not a Visual Studio one, rather it was written on Linux. I tried the Project Maker and followed the steps except for the last part (After adding the source files, you can specify the…
Nerminz
  • 27
  • 6
0
votes
1 answer

Number of Instructions in C code according to HIS code metrics

How many instructions are there in following function according to HIS code metrics? static uint16 CalcSignalBjbCurrents() { uint16 u16Current; if(TRUE == bCurrValid) { if() { u16Current = 2; } else if() …
Has9
  • 41
  • 1
  • 7
0
votes
1 answer

measure memory used by static local variables in C code

Are there any static code metrics tools that measure total size of static local variables in c functions. The tools that I explored report the stack size but not the size of the static local variables. Is there another option apart from using linux…
upen
  • 68
  • 6
0
votes
1 answer

Class inheritance versus Interface inheritance

What is the difference between the Class inheritance and Interface inheritance? What of the above yields a lower coupling and a higher cohesion..
Marine
  • 1
  • 3
0
votes
1 answer

Lines counted raw or nonblank noncomment

When the size of a code base is reported in lines, is it more usual/standard to report raw wc count, or nonblank noncomment lines? I'm not asking which measure should be used, only, if I see a number given with no other information, which measure it…
rwallace
  • 31,405
  • 40
  • 123
  • 242
0
votes
1 answer

How does Visual Studio handle missing dependant assemblies when generating Code Metrics?

I'm building a build step to generate code metrics using the metrics.exe tool into our build pipeline. When running metrics.exe /f:MyApp.Web.dll /o:results.xml I get the following error. Calculating metrics for file…
Naeem Sarfraz
  • 7,360
  • 5
  • 37
  • 63
0
votes
1 answer

metriks log to file not working

I wrote a basic program to test the ruby metriks gem require 'metriks' require 'metriks/reporter/logger' @registry = Metriks::Registry.new @logger = Logger.new('/tmp/metrics.log') @reporter = Metriks::Reporter::Logger.new(:logger =>…
resultsway
  • 12,299
  • 7
  • 36
  • 43
0
votes
1 answer

"The plugin java is not supported with Java 1.6.0_45" from SonarQube 4.5.4 with a specify java version 1.7

I'm trying to configure the SonarQube 4.5.4 on my server. For that SonarQube version, it needs jdk 1.7, in case of building my Android system firmware, only jdk 1.6 can be set as the default jdk. Now jdk 1.7 is still on my Computer, not the defalut…
Sysphus
  • 194
  • 1
  • 3
  • 11