danger-checkstyle_format
Danger plugin for checkstyle formatted xml file.
Installation
$ gem install danger-checkstyle_format
Usage
Parse an XML file, and let the plugin do your reporting:
checkstyle_format.base_path = Dir.pwd
checkstyle_format.report 'app/build/reports/checkstyle/checkstyle.xml'
Parse some XML text, and let the plugin do your reporting:
checkstyle_format.base_path = Dir.pwd
checkstyle_format.report_by_text '<?xml ...'
Development
- Clone this repo
- Run
bundle install
to setup dependencies. - Run
bundle exec rake spec
to run the tests. - Use
bundle exec guard
to automatically have tests run as you make changes. - Make your changes.
Publishing
How to build a gem:
gem build danger-checkstyle_xml.gemspec
How to publish a gem:
gem push danger-checkstyle_xml-VERSION.gem