skip to navigation
skip to content

ohconvert 1.0

ohconvert integrates ohcount into Jenkins.

Downloads ↓

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

You can call the script via:

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: https://github.com/hannosch/ohconvert

Changelog

1.0 - 2011-03-20

  • Fixed reStructuredText and updated code location. [hannosch]

1.0b1 - 2011-03-20

UPGRADE NOTE: ohconvert now outputs to stdout by default.

  • Refer to Jenkins instead of Hudson. [hannosch]
  • A fix for handling empty files turned into a complete refactoring. [lrowe]

1.0a1 - 2010-03-14

  • Initial functional release. [hannosch]
 
File Type Py Version Uploaded on Size # downloads
ohconvert-1.0.zip (md5) Source 2011-03-20 6KB 395