Quantcast

[JIRA] Created: (JENKINS-10274) Can this plugin support CLOC for even more languages and better Windows support

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] Created: (JENKINS-10274) Can this plugin support CLOC for even more languages and better Windows support

JIRA noreply@jenkins-ci.org
Can this plugin support CLOC for even more languages and better Windows support
-------------------------------------------------------------------------------

                 Key: JENKINS-10274
                 URL: https://issues.jenkins-ci.org/browse/JENKINS-10274
             Project: Jenkins
          Issue Type: New Feature
          Components: sloccount
            Reporter: Pei-Tang Huang
            Assignee: npiguet


Can SLOCCount plugin supports CLOC?
http://cloc.sourceforge.net/

The LOC program is still in maintenance, and supports even more languages!

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10274) Can this plugin support CLOC for even more languages and better Windows support

JIRA noreply@jenkins-ci.org

The tool cloc has an option to create xml output.
This output can transformed via a short XSLT script into the sloccount format.
Therefore, no changes are required within the sloccount source.
Please, reject this change request!

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10274) Can this plugin support CLOC for even more languages and better Windows support

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
sogabe resolved New Feature JENKINS-10274 as Won't Fix
Change By: sogabe (16/Jun/12 11:56 AM)
Status: Open Resolved
Resolution: Won't Fix
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10274) Can this plugin support CLOC for even more languages and better Windows support

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Would you please upload the xslt script here?

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10274) Can this plugin support CLOC for even more languages and better Windows support

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

@andrey: I've attached a example for you.

Change By: Karsten Brandt (04/Jul/12 5:56 PM)
Attachment: sloccount.xsl
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10274) Can this plugin support CLOC for even more languages and better Windows support

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
 
Karsten Brandt edited a comment on New Feature JENKINS-10274

@andrey: I've attached an example for you.

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10274) Can this plugin support CLOC for even more languages and better Windows support

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

It does not work for me, maybe I use wrong options? What I do is:

  • 1: run cloc:
    cloc.pl --by-file --exclude-dir=.svn,build --xml -out=build/cloc.xml mysourcedir
  • 2: run xsltproc using your example XML file:
    xsltproc sloccount.xsl build/cloc.xml
  • Result:
    compilation error: file /home/zoufala/Downloads/sloccount.xsl line 1 element stylesheet
    xsl:version: only 1.0 features are supported
    xmlXPathCompOpEval: function replace not found
    XPath error : Unregistered function
    xmlXPathCompiledEval: 2 objects left on the stack.
    runtime error: file /home/zoufala/Downloads/sloccount.xsl line 5 element variable
    Failed to evaluate the expression of variable 'file_path'.
    This report has been generated by cloc 1.56.
    For more details see: http://cloc.sourceforge.net

Is there an obvious mistake in my usage?

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10274) Can this plugin support CLOC for even more languages and better Windows support

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Thanks Andrey, I will give it a try the next days!

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10274) Can this plugin support CLOC for even more languages and better Windows support

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Yes indeed, it works very well! Thx

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10274) Can this plugin support CLOC for even more languages and better Windows support

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

It doesn't appear this works for the current version. I'm using Cloc 1.58 with plugin version 1.8.

I used the same method as the individuals above, and the output is not properly parsed by the sloccount plugin.

Change By: Adam Westhusing (22/Mar/13 9:44 PM)
Resolution: Won't Fix
Status: Resolved Reopened
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-10274) Can this plugin support CLOC for even more languages and better Windows support

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Adam Westhusing resolved New Feature JENKINS-10274 as Won't Fix

Nevermind, I wasn't following the directions properly. Once I used xsltproc this worked as expected. Sorry!

Change By: Adam Westhusing (25/Mar/13 8:44 PM)
Status: Reopened Resolved
Resolution: Won't Fix
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Loading...