SLOCCount Plugin

Plugin Information

Plugin ID sloccount
Latest Release 1.4
Latest Release Date Feb 10, 2010
Changes via Fisheye In Latest Release
Since Latest Release
Maintainer(s) Nicolas Piguet (id: npiguet)
Issue Tracking Open Issues

This plugin generates the trend report for SLOCCount, an open source program which counts the number of lines of codes in over 25 different languages, including C/C++, Ada, COBOL, Fortran, SQL, Ruby, Python, etc...

Description

The SLOCCount plug-in scans for SLOCCount report files in the build workspace and reports the number of lines found.

The following features are provided by this plug-in:

  • Configuration of the files to scan after a build.
  • Trend reports showing the number of lines of codes per language
  • Overview of the lines of codes per file, folder or language
  • Works with the freestyle build option of Hudson

This plug-in is developed and maintained by Nicolas Piguet. Please use the Hudson mailing lists or issue tracker to ask questions, create feature request or bug reports, since I don't read the comment section on this page regularly.

Usage

  1. Install SLOCCount on the build slave
  2. For each job configuration page
    1. Add a execute shell build step
    2. Enter the following shell command: /usr/bin/sloccount --duplicates --wide --details [source-folder] >[output-folder]/sloccount.sc
    3. Activate the checkbox Publish SLOCCount analysis results

Change Log

Version 1.4 (Feb 10, 2010)

  • Update code for more recent Hudson

Version 1.3 (Jul 7, 2009)

  • Made to work with distributed builds (patch)

Version 1.2

  • Clicking on the SLOCCount icon in the left sidebar will now take you directly to the last build's detailed sloccount report instead of that build's general main page

Version 1.1

  • Added breadcrumbs to help in the navigation of the result report

Version 1.0

  • Initial release

Labels:

plugin-report plugin-report Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.