Questions tagged [source-monitor]

The freeware program SourceMonitor analyses software source code to find out how much code you have and to identify the relative complexity of your modules. For example, you can use SourceMonitor to identify the code that is most likely to contain defects and thus warrants formal review.

See SourceMonitor website for more information.

8 questions
15
votes
2 answers

How to interpret code metrics (calculated by SourceMonitor)

After reading the answers to the question "Calculate Code Metrics" I installed the tool SourceMonitor and calculated some metrics. But I have no idea how to interpret them. What's a "good" value for the metric "Percent Branch Statements" "Methods…
Thomas Koschel
  • 3,321
  • 9
  • 33
  • 38
5
votes
2 answers

What are the parameters used to calculate complexity in SourceMonitor?

I recently started using SourceMonitor to review my (and others) code. Though I understand other parameters judged by the tool, I don't know how does it calculates the complexity of the code. As in, what all parameters does it considers to read to a…
Manish Basantani
  • 16,931
  • 22
  • 71
  • 103
2
votes
1 answer

SourceMonitor using C and C++ at same project

Using SourceMonitor xml command file, I'm trying to analyze a whole checked out repository from Git that I know for a fact that it has both C and C++ code in the same directory. This a snippet of my XML command file.
Nerminz
  • 27
  • 6
2
votes
1 answer

SourceMonitor xml dump to database

Is there a library or a tool that could parse the xml dump of SourceMonitor and save it in database? SourceMonitor is a great tool, but I'd like to have better visualization and statistics-over-time of our code, which you really can't get with…
Morri
  • 571
  • 5
  • 20
1
vote
1 answer

How to reduce Cyclomatic Complexity of my method

The following code is giving me a Cyclomatic complexity of 35. public void updateGUIInProgress(StatusLabelDTO statusLabelDTO) { Display.getDefault().asyncExec(new Runnable() { @Override public void run() { …
user9838627
1
vote
0 answers

How can I get SourceMonitor to skip equals() and hashcode() methods generated by eclipse?

These automatically generated methods adds complexity which I would like to exclude from the analysis.
1
vote
1 answer

Does SourceMonitor works on all Platforms?

I am sorry if this question is too local or duplicate. I searched in google but not got any idea. I recently heard about SourceMonitor. I have downloaded SourceMonitor3.3 and I am using it in Windows. I have heard SourceMonitor works on only…
user2094311
0
votes
1 answer

Trouble launching sourcemonitor from MSbuild script?

My test folder is set up as follows: I have ran source monitor on its own from the command line and it runs to completion successfully and outputs some .xml files that I need for my CI process. Below is my .proj file that I am trying to run:
IbrarMumtaz
  • 4,235
  • 7
  • 44
  • 63