Merge "Update violations to make use of convert_mapping_to_xml()"

This commit is contained in:
Jenkins 2017-07-10 05:16:03 +00:00 committed by Gerrit Code Review
commit df48cbac4a
1 changed files with 7 additions and 5 deletions

View File

@ -1516,11 +1516,13 @@ def violations(registry, xml_parent, data):
'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'
mapping = [
('', 'limit', '100'),
('', 'sourcePathPattern', ''),
('', 'fauxProjectPath', ''),
('', 'encoding', 'default'),
]
helpers.convert_mapping_to_xml(config, data, mapping, fail_required=True)
def findbugs(registry, xml_parent, data):