[JIRA] [vs-code-metrics] (JENKINS-21848) CyclomaticComplexity/LineOfCodes always 0 if library contains enumeration

2014-10-16 Thread christian.altme...@kimweb.de (JIRA)














































Christian Altmeier
 commented on  JENKINS-21848


CyclomaticComplexity/LineOfCodes always 0 if library contains enumeration















Hi there!

Same problem here. But: It seems that the powertool summarize the cyclomatic complexity for the whole module. The result is in our case a very high cyclomatic complexity of "11.580" in "26.060" lines of code. Is it possible, that the plugin cannot parse these strings with high metric values to integers? Wether the cyclomatic complexity nor the lines of code and class coupling are displayed in graphs in tables for the views "All classed" and "Code metrics by module".

Here is our modules metrics node from the powertool XML:


  
  
  
  
  


The single members and types are correctly parsed by the plugin an shows correct values in both tables and graph.

I think i can provide the whole XML file, if this helps to improve the plugin.

By the way: Thanks for this convenient plugin wich allows to gather code metrics in Jenkins so easily!



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [vs-code-metrics] (JENKINS-21848) CyclomaticComplexity/LineOfCodes always 0 if library contains enumeration

2014-04-01 Thread yasuyuki.saito.2...@gmail.com (JIRA)














































Yasuyuki Saito
 commented on  JENKINS-21848


CyclomaticComplexity/LineOfCodes always 0 if library contains enumeration















Do you know the cyclomatic complexity of Module and Namespace that contains the enumeration in the file?

if cyclomatic complexity is 0, there is a possibility of failure of Metrics.exe.
Otherwise, it is a bug in the plug-in.



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [vs-code-metrics] (JENKINS-21848) CyclomaticComplexity/LineOfCodes always 0 if library contains enumeration

2014-04-01 Thread kristian.p...@hotmail.de (JIRA)














































Kris P
 commented on  JENKINS-21848


CyclomaticComplexity/LineOfCodes always 0 if library contains enumeration















Here is the content for one of those Enums:


 
  
  
  
  
  
 
 


.pdb file is in the same folder with the dll-file, no warnings or errors while running "Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\Metrics.exe"

Any advices how to produce more possible helpfull logs?



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [vs-code-metrics] (JENKINS-21848) CyclomaticComplexity/LineOfCodes always 0 if library contains enumeration

2014-03-18 Thread yasuyuki.saito.2...@gmail.com (JIRA)














































Yasuyuki Saito
 commented on  JENKINS-21848


CyclomaticComplexity/LineOfCodes always 0 if library contains enumeration















Is it possible to check the value of CyclomaticComplexity of Metrics.xml ?



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [vs-code-metrics] (JENKINS-21848) CyclomaticComplexity/LineOfCodes always 0 if library contains enumeration

2014-02-18 Thread kristian.p...@hotmail.de (JIRA)














































Kris P
 created  JENKINS-21848


CyclomaticComplexity/LineOfCodes always 0 if library contains enumeration















Issue Type:


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:
/// ...
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



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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.