ohconvert integrates ohcount into Jenkins.
sloccount --duplicates --wide --details path ...
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.
You can call the script via:
ohconvert path ...
Output Jenkins SLOCCountPlugin compatible data collected with ohcount.
-h, --helpshow this help message and exit
-o sloccount.sc, --output=sloccount.scOutput filename (instead of stdout)
The source code can be found at: https://github.com/hannosch/ohconvert
UPGRADE NOTE: ohconvert now outputs to stdout by default.