Sha256: d78c2e6d1e97a7805f98b39485fcaff25f987e65293c78b6c5678e510f926de8
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
# Rubocop Checkstyle Formatter A formatter for rubocop that outputs in checkstyle format. It requires rubocop version 0.9.0 or above. ## Installation Add this line to your application's Gemfile: gem 'rubocop-checkstyle_formatter', require: false And then execute: $ bundle Or install it yourself as: $ gem install rubocop-checkstyle_formatter ## Usage $ rubocop --require rubocop/formatter/checkstyle_formatter --format Rubocop::Formatter::CheckstyleFormatter I use this formatter in Jenkins with [Violations plugin](https://wiki.jenkins-ci.org/display/JENKINS/Violations). As a part of build, I execute rubocop as shell script like: bundle exec rubocop --require rubocop/formatter/checkstyle_formatter --format Rubocop::Formatter::CheckstyleFormatter --no-color --silent --rails --out tmp/checkstyle.xml Then, after build, I add 'Report Violations' and configure xml filename pattern of checkstyle to "xml/checkstyle.xml". ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubocop-checkstyle_formatter-0.0.5 | README.md |
rubocop-checkstyle_formatter-0.0.4 | README.md |
rubocop-checkstyle_formatter-0.0.3 | README.md |