#6 lines of code

closed
nobody
5
2009-06-02
2009-04-07
Anonymous
No

It would be good to have plugin to one of the code metrics generation tool. So that we can also get total lines of code along with code analysis. Could someone guide me how I can integrate SLOCCount tool to Yasca.

Thanks,
Chitra

Discussion

  • Nobody/Anonymous

    The best way to integrate any tool into Yasca is to start with one of the existing plugins. PMD is a good one to use as a template ($YASCA_HOME/plugins/PMD.php). For tools that can operate on an entire directory, the Yasca plugin will simply execute the tool in a separate process and read back the results, parse them, and then create Result objects for each finding. As long as the tool can be called from the command line, it should be straightforward.

    Note that as of v2.0, Yasca has been separated into yasca-core and a set of plugins. This SLOCCount plugin would be another such plugin (probably called yasca-sloccount to keep things consistent). You'd provide the "glue" code as part of the Yasca distribution (if you want to include it), and separately provide the SLOCCount tool in a directory structure that neatly overlays the way that Yasca is organized. This keeps potential license conflicts down, and also means that if you don't care about Java, you don't need the 15 MB distribution of FindBugs and PMD, and if you don't care about SLOCCount, you don't need that distribution, etc.

     
  • Michael Scovetta

    • status: open --> pending
     
  • SourceForge Robot

    • status: pending --> closed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.