Build Status

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

  1. Clone this repo
  2. Run bundle install to setup dependencies.
  3. Run bundle exec rake spec to run the tests.
  4. Use bundle exec guard to automatically have tests run as you make changes.
  5. 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