rubocop-checkstyle_formatter 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -19,7 +19,14 @@ Or install it yourself as:
19
19
 
20
20
  ## Usage
21
21
 
22
- rubocop --require rubocop/formatter/checkstyle_formatter --format Rubocop::Formatter::CheckstyleFormatter
22
+ $ rubocop --require rubocop/formatter/checkstyle_formatter --format Rubocop::Formatter::CheckstyleFormatter
23
+
24
+ I use this formatter in Jenkins with [Violations plugin](https://wiki.jenkins-ci.org/display/JENKINS/Violations).
25
+ As a part of build, I execute rubocop as shell script like:
26
+
27
+ bundle exec rubocop --require rubocop/formatter/checkstyle_formatter --format Rubocop::Formatter::CheckstyleFormatter --no-color --silent --rails --out tmp/checkstyle.xml
28
+
29
+ Then, after build, I add 'Report Violations' and configure xml filename pattern of checkstyle to "xml/checkstyle.xml".
23
30
 
24
31
  ## Contributing
25
32
 
@@ -39,7 +39,7 @@ module Rubocop
39
39
 
40
40
  # TODO be able to configure severity mapping
41
41
  def to_checkstyle_severity(rubocop_severity)
42
- case rubocop_serverity
42
+ case rubocop_severity
43
43
  when :fatal, :error; 'high'
44
44
  when :warning; 'medium'
45
45
  when :convention, :refactor; 'low'
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = 'rubocop-checkstyle_formatter'
7
- gem.version = '0.0.2'
7
+ gem.version = '0.0.3'
8
8
  gem.authors = ['Eito Katagiri']
9
9
  gem.email = ['eitoball@gmail.com']
10
10
  gem.description = %q{A formatter for rubocop that outputs in checkstyle format}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-checkstyle_formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-09 00:00:00.000000000 Z
12
+ date: 2013-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop