code-metrics

Visual Studio 2010 Code Metrics at Function Level

I ran the code metrics calculation on a project of mine, and am seeing results for each namespace/class in the project. I'd like to see results at the function level. Even the filter still works at the class level. Is there any way to do this? For example, I want to see any functions where the cyclomatic complexity is over 10, or one...

How bad is SLOC (source lines of code) as a metric?

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. However, the purpose of this exercise is to expose things for our project management in terms that they can understand. Specifically, these non-tech...

visual studio code analysis/metrics tools

Hi, I just downloaded a trial version of NDepend. What I'm looking for is a tool that helps in standardization of code. Not only in style of braces, spaces, naming conventions, etc, but also in cohesion & complexity. Is anybody using it that can tell me if I can integrate cohesion & complexity into the build errors (in example, if comp...

What is negative code?

I was reading http://en.wikipedia.org/wiki/Douglas_McIlroy and found a quote that mentions "The real hero of programming is the one who writes negative code." Can any one explain what that means? ...

How can I visualize changes in a large code base quality?

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 base which we are improving. Most of the code is C++ with a C heritage. Some new functions and the GUI are written in C#. To start with, we co...

Open list in Microsoft Excel disabled in Code Metrics VS2008

Why is the 'Open list in Microsoft Excel' button disabled on my Code Metrics Results window and how do I enable it? I have Office 2007 (and Excel 2007) installed in my Windows XP sp3, and I use VSTS 2008 Team Suite. ...

An error ocurred while calculating Code Metrics in VS2008

I have Office 2007 (and Excel 2007) installed in my Windows XP sp3, and I use VSTS 2008 Team Suite. I execute option Code Metrics about a csproj in my solution, and I get the error: An error ocurred while calculating Code Metrics How can I debug it ?? what happened ? ...

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 is at best guess more likely to be. ...

Is there any automated metrics collector for my Java project?

I'm trying to collect software code metrics in my Java project on every cycle of continuous integration. I'm interested mostly in size-related metrics like number of classes, number of methods, function points, lines of code, etc. I would like to get a summary report with these metrics in some XML file. Later I will use it in project rep...