Issue Type: Bug Bug
Affects Versions: current
Assignee: Unassigned
Attachments: vsCodeMetrics_1.png, vsMetrics_1.png
Components: vs-code-metrics
Created: 18/Feb/14 10:05 AM
Description:

The codemetric displays CyclomaticComplexity/LineOfCodes always 0 if the checked library contains an enumeration with calculated CC/LoC = 0 (there are multiple lines of code in the enumeration), see attached image vsCodeMetrics_1.png.

CodeMetrics calculation result in VS2010 shows the same values for the ExampleEnum, but the CC/LoC at upper levels shows a value != 0, see image vsMetrics_1.png.

Level 1: checked .dll
Level 2: namespace
Level 3: classes/enums

Example Enum:
/// <summary>...</summary>
public enum ExampleEnum

{ A, B }
Environment: VM with Windows 7 (x64), used as Master and Build Jenkins, Visual Studio 2010, Metrics-Version: 10.0
Project: Jenkins
Labels: plugin
Priority: Minor Minor
Reporter: Kris P
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to