code-metrics Questions
15
Solved
Is there a way to determine how many lines of code an Xcode project contains? I promise not to use such information for managerial measurement or employee benchmarking purposes. ;)
Windowsill asked 5/1, 2010 at 1:18
4
Solved
When I am in a .java file, the unused code is usually grayed out or has a green underline saying this code will probably (probably because of some weird JNI/Reflection corner cases) be unused. But ...
Assimilate asked 5/7, 2011 at 19:18
2
This seems a pretty straightforward thing to do, but I cannot find relevant information. In Visual Studio is very easy to calculate code metrics for all projects and I would like to do the same dur...
Descent asked 5/5, 2021 at 18:40
5
Code quality metric tool like Sonar does provide the ability to drill down to a class and find out the number of:
Afferent (incoming) couplings
Efferent (outgoing) couplings
What are these two ...
Cubiform asked 7/3, 2013 at 13:14
2
So I'm trying to take the right path here and understand how to solve this cop, this looks like a small piece of code IMO, why is it complaining?
moving the nested if-else doesn't change anything, ...
Meretricious asked 24/4, 2022 at 0:21
6
Solved
There has been a considerable amout of discussion about code metrics (e.g.: What is the fascination with code metrics?). I (as a software developer) am really interested in those metrics beca...
Vulvitis asked 3/12, 2009 at 7:46
2
Solved
What is the prefered score range for the code metrics calculation for the following
Maintainability Index
Cyclomatic Complexity
Depth of Inheritance
class Coupling
Devi asked 9/1, 2010 at 14:56
3
Solved
One of the things I’ve been thinking about a lot off and on is how we can use metrics of some kind to measure change, are we going backwards or not? This is in the context of a large, legacy code b...
Padriac asked 6/10, 2010 at 6:18
15
Solved
Code coverage is propably the most controversial code metric. Some say, you have to reach 80% code coverage, other say, it's superficial and does not say anything about your testing quality. ...
Beecham asked 26/6, 2009 at 7:13
2
Solved
I'm receiving error on code analysis with visual studio 2017 on dotnet code projects. I have to say that in other projects everything is ok.
I searched but nothing special to solve this error. the...
Rumal asked 23/10, 2018 at 11:47
4
Solved
I have a relatively large Python project that I work on, and we don't have any cyclomatic complexity tools as a part of our automated test and deployment process.
How important are cyclomati...
Dissimilar asked 13/7, 2016 at 14:33
2
Solved
Basis for claim that the number of bugs per line of code is constant regardless of the language used
I've heard people say (although I can't recall who in particular) that the number of bugs per line of code is roughly constant regardless of what language is used. What is the research that backs t...
Fernery asked 24/5, 2010 at 16:40
3
The code metrics analyser in Visual Studio, as well as the code metrics power tool, report the number of lines of code in the TestMethod method of the following code as 8.
At the most, I would exp...
Jeromyjerreed asked 26/10, 2012 at 10:28
3
Issue description
When I tried to run code metrics in Visual Studio 2013 for c# project (Analyze -> Calculate Code Metrics for Solution) I get following error:
"an error occurred while calculatin...
Sagamore asked 21/1, 2015 at 16:40
1
I do some tests with Visual Studio Code Metrics. As I can calculate the Cyclomatic Complexity, each if, while, for - operators increase the complexity with 1. I have the next simple method:
static...
Vishnu asked 3/10, 2018 at 12:0
1
In recent earlier versions of Visual Studio (i.e.: earlier than VS2017), Microsoft released a separate code metrics powertool that could be run through the command line and generate an XML containi...
Ganglion asked 26/7, 2017 at 21:25
1
Recently, I encountered a sementic issue in the way of calculating the LCOM4, a metric used to find how the methods and the properties of a class are cohersive.
Introduction
LCOM4 is "the 4th met...
Newmann asked 27/2, 2017 at 16:36
3
Suppose I have the original method below.
public String someMethod(String str) {
String returnStr;
if("BLAH".equals(str)) {
returnStr="ok";
} else if ("BLING".equals(str)) {
returnStr="not o...
Reannareap asked 6/11, 2016 at 16:47
30
Solved
If you were to mandate a minimum percentage code-coverage for unit tests, perhaps even as a requirement for committing to a repository, what would it be?
Please explain how you arrived at yo...
Proffitt asked 18/9, 2008 at 4:25
13
We are documenting our software development process. For technical people, this is pretty easy: iterative development with internal milestones every four weeks, external every 3 months.
How...
Washerman asked 22/9, 2010 at 13:30
2
Solved
My organization is emphasizing a line and branch coverage of 80%. I have absolutely no problem with the line coverage requirement, but the branch coverage has given me an issue.
Let's take the fol...
Decennium asked 11/5, 2016 at 17:8
1
Solved
Is block coverage the same as branch coverage, similar to it or completely different?
The top Google link explaining branch coverage: http://www.tutorialspoint.com/software_testing_dictionary/bran...
Doable asked 7/3, 2016 at 13:0
1
Solved
Rubocop is always report the error:
app/controllers/account_controller.rb:5:3: C: Assignment Branch Condition size for index is too high. [30.95/24]
if params[:role]
@users = @search.result....
Hebraic asked 9/1, 2016 at 4:21
6
Solved
As antiquated and painful as it is - I work at a company that continues to actively use VB6 for a large project. In fact, 18 months ago we came up against the 32k identifier limit.
Not willing to...
Isochronize asked 17/4, 2009 at 12:58
2
Solved
I recently used NDepend and it produced a good report on my .net assemblies and related pdbs.
The most interesting thing I found in the report was abstractness vs. instability graph. I wanted to u...
Mainmast asked 23/6, 2009 at 7:39
1 Next >
© 2022 - 2024 — McMap. All rights reserved.