Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
ohconvert is a small utility to generate sloccount.sc files from ohcount. These files are compatible with Jenkins's sloccount plugin.
Python
tag: 1.0b1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.hgignore
CHANGES.txt
MANIFEST.in
README.txt
setup.py

README.txt

Overview
========

ohconvert integrates ohcount_ into Jenkins_.

This script invokes ohcount, parses its output and converts it into the format
understood by the SLOCCountPlugin_ for Jenkins. This is equivalent to calling
sloccount_ with the options::

    sloccount --duplicates --wide --details path ...

Prerequisites
-------------

You need to have ohcount_ 3.0.0 or later installed and it needs to be directly
executable from the path. You can check by calling ``ohcount --help``. ohcount
can be built manually or is available from some system package management tools.
For example it's available as ``ohcount`` in the latest macports_.

Usage
-----
::
    ohconvert path ...

    Output Jenkins SLOCCountPlugin compatible data collected with ohcount.

    Options:
      -h, --help            show this help message and exit
      -o sloccount.sc, --output=sloccount.sc
                            Output filename (instead of stdout)


Development
-----------

The source code can be found at: http://bitbucket.org/hannosch/ohconvert/


.. _ohcount: http://ohcount.sourceforge.net/
.. _Jenkins: http://jenkins-ci.org/
.. _sloccount: http://www.dwheeler.com/sloccount/
.. _SLOCCountPlugin: http://wiki.jenkins-ci.org/display/JENKINS/SLOCCount+Plugin
.. _macports: http://www.macports.org/
Something went wrong with that request. Please try again.