def violations(registry, xml_parent, data):
 violations = XML.SubElement(xml_parent, 'hudson.plugins.violations.ViolationsPublisher')
 config = XML.SubElement(violations, 'config')
 suppressions = XML.SubElement(config, 'suppressions', {'class': 'tree-set'})
 XML.SubElement(suppressions, 'no-comparator')
 configs = XML.SubElement(config, 'typeConfigs')
 XML.SubElement(configs, 'no-comparator')
 for name in ['checkstyle', 'codenarc', 'cpd', 'cpplint', 'csslint', 'findbugs', 'fxcop', 'gendarme', 'jcreport', 'jslint', 'pep8', 'perlcritic', 'pmd', 'pylint', 'simian', 'stylecop']:
  _violations_add_entry(configs, name, data.get(name, {}))
 XML.SubElement(config, 'limit').text = '100'
 XML.SubElement(config, 'sourcePathPattern')
 XML.SubElement(config, 'fauxProjectPath')
 XML.SubElement(config, 'encoding').text = 'default'

def violations ( registry , xml_parent , data ) : violations = XML . SubElement ( xml_parent , 'hudson.plugins.violations.ViolationsPublisher' ) config = XML . SubElement ( violations , 'config' ) suppressions = XML . SubElement ( config , 'suppressions' , { 'class' : 'tree-set' } ) XML . SubElement ( suppressions , 'no-comparator' ) configs = XML . SubElement ( config , 'typeConfigs' ) XML . SubElement ( configs , 'no-comparator' ) for name in [ 'checkstyle' , 'codenarc' , 'cpd' , 'cpplint' , 'csslint' , 'findbugs' , 'fxcop' , 'gendarme' , 'jcreport' , 'jslint' , 'pep8' , 'perlcritic' , 'pmd' , 'pylint' , 'simian' , 'stylecop' ] : _violations_add_entry ( configs , name , data . get ( name , { } ) ) XML . SubElement ( config , 'limit' ) . text = '100' XML . SubElement ( config , 'sourcePathPattern' ) XML . SubElement ( config , 'fauxProjectPath' ) XML . SubElement ( config , 'encoding' ) . text = 'default'
yaml: violations publish code style violations .