def sloccount(registry, xml_parent, data):
 top = XML.SubElement(xml_parent, 'hudson.plugins.sloccount.SloccountPublisher')
 top.set('plugin', 'sloccount')
 mappings = [('report-files', 'pattern', '**/sloccount.sc'), ('charset', 'encoding', 'UTF-8'), ('builds-in-graph', 'numBuildsInGraph', 0), ('comment-is-code', 'commentIsCode', False), ('ignore-build-failure', 'ignoreBuildFailure', False)]
 helpers.convert_mapping_to_xml(top, data, mappings, fail_required=True)

def sloccount ( registry , xml_parent , data ) : top = XML . SubElement ( xml_parent , 'hudson.plugins.sloccount.SloccountPublisher' ) top . set ( 'plugin' , 'sloccount' ) mappings = [ ( 'report-files' , 'pattern' , '**/sloccount.sc' ) , ( 'charset' , 'encoding' , 'UTF-8' ) , ( 'builds-in-graph' , 'numBuildsInGraph' , 0 ) , ( 'comment-is-code' , 'commentIsCode' , False ) , ( 'ignore-build-failure' , 'ignoreBuildFailure' , False ) ] helpers . convert_mapping_to_xml ( top , data , mappings , fail_required = True )
yaml: sloccount generates the trend report for sloccount requires the jenkins :jenkins-wiki:sloccount plugin <sloccount+plugin> .