Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-24602

Native support for cloc tool

    XMLWordPrintable

Details

    • New Feature
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • sloccount-plugin
    • None
    • all

    Description

      Cloc is supported only by explicit XML transformation to SLOCCount file format at the moment. It would be useful to read cloc file format directly in the plugin code.

      Cloc is able to detect more languages than SLOCCount (Scala, Ant, ...) and counts also lines with comments that often contain Javadoc or Doxygen documentation.

      Attachments

        Activity

          mixalturek Michal Turek created issue -

          Code changed in jenkins
          User: Michal Turek
          Path:
          src/main/java/hudson/plugins/sloccount/SloccountPublisher.java
          src/main/java/hudson/plugins/sloccount/SloccountResult.java
          src/main/java/hudson/plugins/sloccount/model/SloccountParser.java
          src/main/java/hudson/plugins/sloccount/model/cloc/ClocFile.java
          src/main/java/hudson/plugins/sloccount/model/cloc/ClocFiles.java
          src/main/java/hudson/plugins/sloccount/model/cloc/ClocHeader.java
          src/main/java/hudson/plugins/sloccount/model/cloc/ClocParameter.java
          src/main/java/hudson/plugins/sloccount/model/cloc/ClocReport.java
          src/main/java/hudson/plugins/sloccount/model/cloc/ClocTotal.java
          src/main/resources/hudson/plugins/sloccount/SloccountPublisher/config.jelly
          src/main/resources/hudson/plugins/sloccount/SloccountPublisher/help-comments.html
          src/main/resources/hudson/plugins/sloccount/SloccountPublisher/help-encoding.html
          src/main/resources/hudson/plugins/sloccount/SloccountPublisher/help-pattern.html
          http://jenkins-ci.org/commit/sloccount-plugin/084b3606dd83a1aea7d0a92e815e92bf974818ac
          Log:
          JENKINS-24602 Native support for cloc tool

          • Parsing of cloc report files (XML variant).
          • Conversion to SLOCCount internal representation that is used in the plugin.
          • Improved help strings in configuration page.
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michal Turek Path: src/main/java/hudson/plugins/sloccount/SloccountPublisher.java src/main/java/hudson/plugins/sloccount/SloccountResult.java src/main/java/hudson/plugins/sloccount/model/SloccountParser.java src/main/java/hudson/plugins/sloccount/model/cloc/ClocFile.java src/main/java/hudson/plugins/sloccount/model/cloc/ClocFiles.java src/main/java/hudson/plugins/sloccount/model/cloc/ClocHeader.java src/main/java/hudson/plugins/sloccount/model/cloc/ClocParameter.java src/main/java/hudson/plugins/sloccount/model/cloc/ClocReport.java src/main/java/hudson/plugins/sloccount/model/cloc/ClocTotal.java src/main/resources/hudson/plugins/sloccount/SloccountPublisher/config.jelly src/main/resources/hudson/plugins/sloccount/SloccountPublisher/help-comments.html src/main/resources/hudson/plugins/sloccount/SloccountPublisher/help-encoding.html src/main/resources/hudson/plugins/sloccount/SloccountPublisher/help-pattern.html http://jenkins-ci.org/commit/sloccount-plugin/084b3606dd83a1aea7d0a92e815e92bf974818ac Log: JENKINS-24602 Native support for cloc tool Parsing of cloc report files (XML variant). Conversion to SLOCCount internal representation that is used in the plugin. Improved help strings in configuration page.

          Code changed in jenkins
          User: Michal Turek
          Path:
          src/main/java/hudson/plugins/sloccount/SloccountPublisher.java
          src/main/java/hudson/plugins/sloccount/SloccountResult.java
          src/main/java/hudson/plugins/sloccount/model/SloccountParser.java
          src/main/java/hudson/plugins/sloccount/model/cloc/ClocFile.java
          src/main/java/hudson/plugins/sloccount/model/cloc/ClocFiles.java
          src/main/java/hudson/plugins/sloccount/model/cloc/ClocHeader.java
          src/main/java/hudson/plugins/sloccount/model/cloc/ClocParameter.java
          src/main/java/hudson/plugins/sloccount/model/cloc/ClocReport.java
          src/main/java/hudson/plugins/sloccount/model/cloc/ClocTotal.java
          src/main/resources/hudson/plugins/sloccount/SloccountPublisher/config.jelly
          src/main/resources/hudson/plugins/sloccount/SloccountPublisher/help-comments.html
          src/main/resources/hudson/plugins/sloccount/SloccountPublisher/help-encoding.html
          src/main/resources/hudson/plugins/sloccount/SloccountPublisher/help-pattern.html
          http://jenkins-ci.org/commit/sloccount-plugin/2ad96a005061559a0e3e6b21d3e635f9f11a9fbe
          Log:
          Merge pull request #45 from mixalturek/master

          JENKINS-24602 Native support for cloc tool

          Compare: https://github.com/jenkinsci/sloccount-plugin/compare/8d04f3daebc6...2ad96a005061

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michal Turek Path: src/main/java/hudson/plugins/sloccount/SloccountPublisher.java src/main/java/hudson/plugins/sloccount/SloccountResult.java src/main/java/hudson/plugins/sloccount/model/SloccountParser.java src/main/java/hudson/plugins/sloccount/model/cloc/ClocFile.java src/main/java/hudson/plugins/sloccount/model/cloc/ClocFiles.java src/main/java/hudson/plugins/sloccount/model/cloc/ClocHeader.java src/main/java/hudson/plugins/sloccount/model/cloc/ClocParameter.java src/main/java/hudson/plugins/sloccount/model/cloc/ClocReport.java src/main/java/hudson/plugins/sloccount/model/cloc/ClocTotal.java src/main/resources/hudson/plugins/sloccount/SloccountPublisher/config.jelly src/main/resources/hudson/plugins/sloccount/SloccountPublisher/help-comments.html src/main/resources/hudson/plugins/sloccount/SloccountPublisher/help-encoding.html src/main/resources/hudson/plugins/sloccount/SloccountPublisher/help-pattern.html http://jenkins-ci.org/commit/sloccount-plugin/2ad96a005061559a0e3e6b21d3e635f9f11a9fbe Log: Merge pull request #45 from mixalturek/master JENKINS-24602 Native support for cloc tool Compare: https://github.com/jenkinsci/sloccount-plugin/compare/8d04f3daebc6...2ad96a005061
          mixalturek Michal Turek made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          mixalturek Michal Turek added a comment -

          Implemented, will be released in version 1.20.

          mixalturek Michal Turek added a comment - Implemented, will be released in version 1.20.
          mixalturek Michal Turek made changes -
          Fix Version/s current [ 10162 ]
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 157628 ] JNJira + In-Review [ 195771 ]

          People

            mixalturek Michal Turek
            mixalturek Michal Turek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: