rubocop-checkstyle_formatter 0.0.6 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,38 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.2
4
3
  - 1.9.3
5
4
  - 2.0.0
6
5
  - 2.1.0
7
6
  - ruby-head
8
7
  - jruby-19mode
9
8
  - rbx-2
9
+ gemfile:
10
+ - gemfiles/rubocop_0.14.1.gemfile
11
+ - gemfiles/rubocop_0.15.0.gemfile
12
+ - gemfiles/rubocop_0.16.0.gemfile
13
+ - gemfiles/rubocop_0.17.0.gemfile
14
+ - gemfiles/rubocop_0.18.1.gemfile
15
+ - gemfiles/rubocop_0.19.1.gemfile
16
+ - gemfiles/rubocop_0.20.1.gemfile
17
+ - gemfiles/rubocop_0.21.0.gemfile
18
+ - gemfiles/rubocop_0.22.0.gemfile
19
+ - gemfiles/rubocop_0.23.0.gemfile
10
20
  matrix:
21
+ exclude:
22
+ - rvm: 2.1.0
23
+ gemfile: gemfiles/rubocop_0.14.1.gemfile
24
+ - rvm: 2.1.0
25
+ gemfile: gemfiles/rubocop_0.15.0.gemfile
26
+ - rvm: 2.1.0
27
+ gemfile: gemfiles/rubocop_0.16.0.gemfile
28
+ - rvm: 2.1.0
29
+ gemfile: gemfiles/rubocop_0.17.0.gemfile
30
+ - rvm: 2.1.0
31
+ gemfile: gemfiles/rubocop_0.18.1.gemfile
32
+ - rvm: 2.1.0
33
+ gemfile: gemfiles/rubocop_0.19.1.gemfile
11
34
  allow_failures:
12
35
  - rvm: ruby-head
13
36
  before_install: gem update --remote bundler
14
37
  script:
15
- - bundle exec rspec
38
+ - bundle exec rake spec
@@ -0,0 +1,16 @@
1
+ [
2
+ '0.14.1',
3
+ '0.15.0',
4
+ '0.16.0',
5
+ '0.17.0',
6
+ '0.18.1',
7
+ '0.19.1',
8
+ '0.20.1',
9
+ '0.21.0',
10
+ '0.22.0',
11
+ '0.23.0'
12
+ ].each do |version|
13
+ appraise "rubocop-#{version}" do
14
+ gem 'rubocop', version
15
+ end
16
+ end
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Rubocop Checkstyle Formatter
1
+ # RuboCop Checkstyle Formatter
2
2
 
3
3
  A formatter for rubocop that outputs in checkstyle format.
4
4
  It requires rubocop version 0.9.0 or above.
@@ -21,12 +21,12 @@ Or install it yourself as:
21
21
 
22
22
  ## Usage
23
23
 
24
- $ rubocop --require rubocop/formatter/checkstyle_formatter --format Rubocop::Formatter::CheckstyleFormatter
24
+ $ rubocop --require rubocop/formatter/checkstyle_formatter --format RuboCop::Formatter::CheckstyleFormatter
25
25
 
26
26
  I use this formatter in Jenkins with [Violations plugin](https://wiki.jenkins-ci.org/display/JENKINS/Violations).
27
27
  As a part of build, I execute rubocop as shell script like:
28
28
 
29
- bundle exec rubocop --require rubocop/formatter/checkstyle_formatter --format Rubocop::Formatter::CheckstyleFormatter --no-color --silent --rails --out tmp/checkstyle.xml
29
+ bundle exec rubocop --require rubocop/formatter/checkstyle_formatter --format RuboCop::Formatter::CheckstyleFormatter --no-color --silent --rails --out tmp/checkstyle.xml
30
30
 
31
31
  Then, after build, I add 'Report Violations' and configure xml filename pattern of checkstyle to "tmp/checkstyle.xml".
32
32
 
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require 'bundler'
4
+ require 'bundler/setup'
4
5
  require 'bundler/gem_tasks'
5
6
  begin
6
7
  Bundler.setup(:default, :development)
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "0.14.1"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,46 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.0.6)
5
+ rubocop (>= 0.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (1.0.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.0.0)
15
+ diff-lcs (1.2.5)
16
+ parser (2.1.9)
17
+ ast (>= 1.1, < 3.0)
18
+ slop (~> 3.4, >= 3.4.5)
19
+ powerpack (0.0.9)
20
+ rainbow (2.0.0)
21
+ rake (10.3.2)
22
+ rspec (2.14.1)
23
+ rspec-core (~> 2.14.0)
24
+ rspec-expectations (~> 2.14.0)
25
+ rspec-mocks (~> 2.14.0)
26
+ rspec-core (2.14.8)
27
+ rspec-expectations (2.14.5)
28
+ diff-lcs (>= 1.1.3, < 2.0)
29
+ rspec-mocks (2.14.6)
30
+ rubocop (0.14.1)
31
+ parser (~> 2.0)
32
+ powerpack (~> 0.0.6)
33
+ rainbow (>= 1.1.4)
34
+ slop (3.5.0)
35
+ thor (0.19.1)
36
+
37
+ PLATFORMS
38
+ ruby
39
+
40
+ DEPENDENCIES
41
+ appraisal (~> 1.0.0)
42
+ bundler (~> 1.3)
43
+ rake (~> 10.1)
44
+ rspec (~> 2.14.0)
45
+ rubocop (= 0.14.1)
46
+ rubocop-checkstyle_formatter!
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "0.15.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,46 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.0.6)
5
+ rubocop (>= 0.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (1.0.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.0.0)
15
+ diff-lcs (1.2.5)
16
+ parser (2.1.9)
17
+ ast (>= 1.1, < 3.0)
18
+ slop (~> 3.4, >= 3.4.5)
19
+ powerpack (0.0.9)
20
+ rainbow (2.0.0)
21
+ rake (10.3.2)
22
+ rspec (2.14.1)
23
+ rspec-core (~> 2.14.0)
24
+ rspec-expectations (~> 2.14.0)
25
+ rspec-mocks (~> 2.14.0)
26
+ rspec-core (2.14.8)
27
+ rspec-expectations (2.14.5)
28
+ diff-lcs (>= 1.1.3, < 2.0)
29
+ rspec-mocks (2.14.6)
30
+ rubocop (0.15.0)
31
+ parser (~> 2.0)
32
+ powerpack (~> 0.0.6)
33
+ rainbow (>= 1.1.4)
34
+ slop (3.5.0)
35
+ thor (0.19.1)
36
+
37
+ PLATFORMS
38
+ ruby
39
+
40
+ DEPENDENCIES
41
+ appraisal (~> 1.0.0)
42
+ bundler (~> 1.3)
43
+ rake (~> 10.1)
44
+ rspec (~> 2.14.0)
45
+ rubocop (= 0.15.0)
46
+ rubocop-checkstyle_formatter!
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "0.16.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,46 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.0.6)
5
+ rubocop (>= 0.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (1.0.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.0.0)
15
+ diff-lcs (1.2.5)
16
+ parser (2.1.9)
17
+ ast (>= 1.1, < 3.0)
18
+ slop (~> 3.4, >= 3.4.5)
19
+ powerpack (0.0.9)
20
+ rainbow (2.0.0)
21
+ rake (10.3.2)
22
+ rspec (2.14.1)
23
+ rspec-core (~> 2.14.0)
24
+ rspec-expectations (~> 2.14.0)
25
+ rspec-mocks (~> 2.14.0)
26
+ rspec-core (2.14.8)
27
+ rspec-expectations (2.14.5)
28
+ diff-lcs (>= 1.1.3, < 2.0)
29
+ rspec-mocks (2.14.6)
30
+ rubocop (0.16.0)
31
+ parser (~> 2.1)
32
+ powerpack (~> 0.0.6)
33
+ rainbow (>= 1.1.4)
34
+ slop (3.5.0)
35
+ thor (0.19.1)
36
+
37
+ PLATFORMS
38
+ ruby
39
+
40
+ DEPENDENCIES
41
+ appraisal (~> 1.0.0)
42
+ bundler (~> 1.3)
43
+ rake (~> 10.1)
44
+ rspec (~> 2.14.0)
45
+ rubocop (= 0.16.0)
46
+ rubocop-checkstyle_formatter!
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "0.17.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,48 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.0.6)
5
+ rubocop (>= 0.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (1.0.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.0.0)
15
+ diff-lcs (1.2.5)
16
+ json (1.8.1)
17
+ parser (2.1.9)
18
+ ast (>= 1.1, < 3.0)
19
+ slop (~> 3.4, >= 3.4.5)
20
+ powerpack (0.0.9)
21
+ rainbow (1.99.2)
22
+ rake (10.3.2)
23
+ rspec (2.14.1)
24
+ rspec-core (~> 2.14.0)
25
+ rspec-expectations (~> 2.14.0)
26
+ rspec-mocks (~> 2.14.0)
27
+ rspec-core (2.14.8)
28
+ rspec-expectations (2.14.5)
29
+ diff-lcs (>= 1.1.3, < 2.0)
30
+ rspec-mocks (2.14.6)
31
+ rubocop (0.17.0)
32
+ json (~> 1.8)
33
+ parser (~> 2.1.3)
34
+ powerpack (~> 0.0.6)
35
+ rainbow (~> 1.99.1)
36
+ slop (3.5.0)
37
+ thor (0.19.1)
38
+
39
+ PLATFORMS
40
+ ruby
41
+
42
+ DEPENDENCIES
43
+ appraisal (~> 1.0.0)
44
+ bundler (~> 1.3)
45
+ rake (~> 10.1)
46
+ rspec (~> 2.14.0)
47
+ rubocop (= 0.17.0)
48
+ rubocop-checkstyle_formatter!
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "0.18.1"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,48 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.0.6)
5
+ rubocop (>= 0.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (1.0.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.0.0)
15
+ diff-lcs (1.2.5)
16
+ json (1.8.1)
17
+ parser (2.1.9)
18
+ ast (>= 1.1, < 3.0)
19
+ slop (~> 3.4, >= 3.4.5)
20
+ powerpack (0.0.9)
21
+ rainbow (2.0.0)
22
+ rake (10.3.2)
23
+ rspec (2.14.1)
24
+ rspec-core (~> 2.14.0)
25
+ rspec-expectations (~> 2.14.0)
26
+ rspec-mocks (~> 2.14.0)
27
+ rspec-core (2.14.8)
28
+ rspec-expectations (2.14.5)
29
+ diff-lcs (>= 1.1.3, < 2.0)
30
+ rspec-mocks (2.14.6)
31
+ rubocop (0.18.1)
32
+ json (>= 1.7.7, < 2)
33
+ parser (~> 2.1.3)
34
+ powerpack (~> 0.0.6)
35
+ rainbow (>= 1.99.1, < 3.0)
36
+ slop (3.5.0)
37
+ thor (0.19.1)
38
+
39
+ PLATFORMS
40
+ ruby
41
+
42
+ DEPENDENCIES
43
+ appraisal (~> 1.0.0)
44
+ bundler (~> 1.3)
45
+ rake (~> 10.1)
46
+ rspec (~> 2.14.0)
47
+ rubocop (= 0.18.1)
48
+ rubocop-checkstyle_formatter!
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "0.19.1"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,50 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.0.6)
5
+ rubocop (>= 0.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (1.0.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.0.0)
15
+ diff-lcs (1.2.5)
16
+ json (1.8.1)
17
+ parser (2.1.9)
18
+ ast (>= 1.1, < 3.0)
19
+ slop (~> 3.4, >= 3.4.5)
20
+ powerpack (0.0.9)
21
+ rainbow (2.0.0)
22
+ rake (10.3.2)
23
+ rspec (2.14.1)
24
+ rspec-core (~> 2.14.0)
25
+ rspec-expectations (~> 2.14.0)
26
+ rspec-mocks (~> 2.14.0)
27
+ rspec-core (2.14.8)
28
+ rspec-expectations (2.14.5)
29
+ diff-lcs (>= 1.1.3, < 2.0)
30
+ rspec-mocks (2.14.6)
31
+ rubocop (0.19.1)
32
+ json (>= 1.7.7, < 2)
33
+ parser (~> 2.1.7)
34
+ powerpack (~> 0.0.6)
35
+ rainbow (>= 1.99.1, < 3.0)
36
+ ruby-progressbar (~> 1.4)
37
+ ruby-progressbar (1.5.1)
38
+ slop (3.5.0)
39
+ thor (0.19.1)
40
+
41
+ PLATFORMS
42
+ ruby
43
+
44
+ DEPENDENCIES
45
+ appraisal (~> 1.0.0)
46
+ bundler (~> 1.3)
47
+ rake (~> 10.1)
48
+ rspec (~> 2.14.0)
49
+ rubocop (= 0.19.1)
50
+ rubocop-checkstyle_formatter!
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "0.20.1"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,50 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.0.6)
5
+ rubocop (>= 0.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (1.0.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.0.0)
15
+ diff-lcs (1.2.5)
16
+ json (1.8.1)
17
+ parser (2.1.9)
18
+ ast (>= 1.1, < 3.0)
19
+ slop (~> 3.4, >= 3.4.5)
20
+ powerpack (0.0.9)
21
+ rainbow (2.0.0)
22
+ rake (10.3.2)
23
+ rspec (2.14.1)
24
+ rspec-core (~> 2.14.0)
25
+ rspec-expectations (~> 2.14.0)
26
+ rspec-mocks (~> 2.14.0)
27
+ rspec-core (2.14.8)
28
+ rspec-expectations (2.14.5)
29
+ diff-lcs (>= 1.1.3, < 2.0)
30
+ rspec-mocks (2.14.6)
31
+ rubocop (0.20.1)
32
+ json (>= 1.7.7, < 2)
33
+ parser (~> 2.1.7)
34
+ powerpack (~> 0.0.6)
35
+ rainbow (>= 1.99.1, < 3.0)
36
+ ruby-progressbar (~> 1.4)
37
+ ruby-progressbar (1.5.1)
38
+ slop (3.5.0)
39
+ thor (0.19.1)
40
+
41
+ PLATFORMS
42
+ ruby
43
+
44
+ DEPENDENCIES
45
+ appraisal (~> 1.0.0)
46
+ bundler (~> 1.3)
47
+ rake (~> 10.1)
48
+ rspec (~> 2.14.0)
49
+ rubocop (= 0.20.1)
50
+ rubocop-checkstyle_formatter!
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "0.21.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,50 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.0.6)
5
+ rubocop (>= 0.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (1.0.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.0.0)
15
+ diff-lcs (1.2.5)
16
+ json (1.8.1)
17
+ parser (2.1.9)
18
+ ast (>= 1.1, < 3.0)
19
+ slop (~> 3.4, >= 3.4.5)
20
+ powerpack (0.0.9)
21
+ rainbow (2.0.0)
22
+ rake (10.3.2)
23
+ rspec (2.14.1)
24
+ rspec-core (~> 2.14.0)
25
+ rspec-expectations (~> 2.14.0)
26
+ rspec-mocks (~> 2.14.0)
27
+ rspec-core (2.14.8)
28
+ rspec-expectations (2.14.5)
29
+ diff-lcs (>= 1.1.3, < 2.0)
30
+ rspec-mocks (2.14.6)
31
+ rubocop (0.21.0)
32
+ json (>= 1.7.7, < 2)
33
+ parser (~> 2.1.9)
34
+ powerpack (~> 0.0.6)
35
+ rainbow (>= 1.99.1, < 3.0)
36
+ ruby-progressbar (~> 1.4)
37
+ ruby-progressbar (1.5.1)
38
+ slop (3.5.0)
39
+ thor (0.19.1)
40
+
41
+ PLATFORMS
42
+ ruby
43
+
44
+ DEPENDENCIES
45
+ appraisal (~> 1.0.0)
46
+ bundler (~> 1.3)
47
+ rake (~> 10.1)
48
+ rspec (~> 2.14.0)
49
+ rubocop (= 0.21.0)
50
+ rubocop-checkstyle_formatter!
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "0.22.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,50 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.0.6)
5
+ rubocop (>= 0.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (1.0.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.0.0)
15
+ diff-lcs (1.2.5)
16
+ json (1.8.1)
17
+ parser (2.1.9)
18
+ ast (>= 1.1, < 3.0)
19
+ slop (~> 3.4, >= 3.4.5)
20
+ powerpack (0.0.9)
21
+ rainbow (2.0.0)
22
+ rake (10.3.2)
23
+ rspec (2.14.1)
24
+ rspec-core (~> 2.14.0)
25
+ rspec-expectations (~> 2.14.0)
26
+ rspec-mocks (~> 2.14.0)
27
+ rspec-core (2.14.8)
28
+ rspec-expectations (2.14.5)
29
+ diff-lcs (>= 1.1.3, < 2.0)
30
+ rspec-mocks (2.14.6)
31
+ rubocop (0.22.0)
32
+ json (>= 1.7.7, < 2)
33
+ parser (~> 2.1.9)
34
+ powerpack (~> 0.0.6)
35
+ rainbow (>= 1.99.1, < 3.0)
36
+ ruby-progressbar (~> 1.4)
37
+ ruby-progressbar (1.5.1)
38
+ slop (3.5.0)
39
+ thor (0.19.1)
40
+
41
+ PLATFORMS
42
+ ruby
43
+
44
+ DEPENDENCIES
45
+ appraisal (~> 1.0.0)
46
+ bundler (~> 1.3)
47
+ rake (~> 10.1)
48
+ rspec (~> 2.14.0)
49
+ rubocop (= 0.22.0)
50
+ rubocop-checkstyle_formatter!
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "0.23.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,50 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.0.6)
5
+ rubocop (>= 0.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (1.0.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.0.0)
15
+ diff-lcs (1.2.5)
16
+ json (1.8.1)
17
+ parser (2.1.9)
18
+ ast (>= 1.1, < 3.0)
19
+ slop (~> 3.4, >= 3.4.5)
20
+ powerpack (0.0.9)
21
+ rainbow (2.0.0)
22
+ rake (10.3.2)
23
+ rspec (2.14.1)
24
+ rspec-core (~> 2.14.0)
25
+ rspec-expectations (~> 2.14.0)
26
+ rspec-mocks (~> 2.14.0)
27
+ rspec-core (2.14.8)
28
+ rspec-expectations (2.14.5)
29
+ diff-lcs (>= 1.1.3, < 2.0)
30
+ rspec-mocks (2.14.6)
31
+ rubocop (0.23.0)
32
+ json (>= 1.7.7, < 2)
33
+ parser (~> 2.1.9)
34
+ powerpack (~> 0.0.6)
35
+ rainbow (>= 1.99.1, < 3.0)
36
+ ruby-progressbar (~> 1.4)
37
+ ruby-progressbar (1.5.1)
38
+ slop (3.5.0)
39
+ thor (0.19.1)
40
+
41
+ PLATFORMS
42
+ ruby
43
+
44
+ DEPENDENCIES
45
+ appraisal (~> 1.0.0)
46
+ bundler (~> 1.3)
47
+ rake (~> 10.1)
48
+ rspec (~> 2.14.0)
49
+ rubocop (= 0.23.0)
50
+ rubocop-checkstyle_formatter!
@@ -1,7 +1,10 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  require 'rexml/document'
3
3
 
4
- module Rubocop
4
+ # XXX: Renamed to RuboCop since 0.23.0
5
+ RuboCop = Rubocop if defined?(Rubocop)
6
+
7
+ module RuboCop
5
8
  module Formatter
6
9
  # = This formatter reports in Checkstyle format.
7
10
  class CheckstyleFormatter < BaseFormatter
@@ -39,7 +42,7 @@ module Rubocop
39
42
 
40
43
  # TODO be able to configure severity mapping
41
44
  def to_checkstyle_severity(rubocop_severity)
42
- case rubocop_severity
45
+ case rubocop_severity.to_s
43
46
  when 'fatal', 'error' then 'error'
44
47
  when 'warning' then 'warning'
45
48
  when 'convention', 'refactor' then 'info'
@@ -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.6'
7
+ gem.version = '0.1.0'
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}
@@ -17,7 +17,8 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ['lib']
19
19
 
20
- gem.add_dependency 'rubocop', '>= 0.9.0'
20
+ gem.add_dependency 'rubocop', '>= 0.14.0'
21
+ gem.add_development_dependency 'appraisal', '~> 1.0.0'
21
22
  gem.add_development_dependency 'bundler', '~> 1.3'
22
23
  gem.add_development_dependency 'rake', '~> 10.1'
23
24
  gem.add_development_dependency 'rspec', '~> 2.14.0'
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  require 'stringio'
4
4
  require 'rexml/document'
5
5
 
6
- module Rubocop
6
+ module RuboCop
7
7
  module Formatter
8
8
  describe CheckstyleFormatter do
9
9
  let(:severities) { [:refactor, :convention, :warning, :error, :fatal] }
@@ -11,7 +11,15 @@ module Rubocop
11
11
  Cop::Cop.new.tap do |c|
12
12
  source_buffer = Parser::Source::Buffer.new('sample.rb', 1).tap { |b| b.source = '' }
13
13
  severities.each_with_index do |severity, index|
14
- c.add_offense(severity, Parser::Source::Range.new(source_buffer, 0, index), severity.to_s, severity.to_s)
14
+ if c.respond_to?(:add_offense)
15
+ c.add_offense(nil, Parser::Source::Range.new(source_buffer, 0, index), severity.to_s, severity)
16
+ else
17
+ begin
18
+ c.add_offence(severity, nil, Parser::Source::Range.new(source_buffer, 0, index), severity.to_s)
19
+ rescue
20
+ c.add_offence(nil, Parser::Source::Range.new(source_buffer, 0, index), severity.to_s, severity)
21
+ end
22
+ end
15
23
  end
16
24
  end
17
25
  end
@@ -21,7 +29,7 @@ module Rubocop
21
29
  before do
22
30
  formatter = described_class.new(output)
23
31
  formatter.started(file)
24
- formatter.file_finished(file, cop.offenses)
32
+ formatter.file_finished(file, cop.respond_to?(:offenses) ? cop.offenses : cop.offences)
25
33
  formatter.finished([file])
26
34
  end
27
35
 
metadata CHANGED
@@ -1,69 +1,94 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-checkstyle_formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.1.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Eito Katagiri
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-05-23 00:00:00.000000000 Z
12
+ date: 2014-06-04 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rubocop
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ">="
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
- version: 0.9.0
21
+ version: 0.14.0
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - ">="
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
- version: 0.9.0
29
+ version: 0.14.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: appraisal
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 1.0.0
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.0.0
27
46
  - !ruby/object:Gem::Dependency
28
47
  name: bundler
29
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
30
50
  requirements:
31
- - - "~>"
51
+ - - ~>
32
52
  - !ruby/object:Gem::Version
33
53
  version: '1.3'
34
54
  type: :development
35
55
  prerelease: false
36
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
37
58
  requirements:
38
- - - "~>"
59
+ - - ~>
39
60
  - !ruby/object:Gem::Version
40
61
  version: '1.3'
41
62
  - !ruby/object:Gem::Dependency
42
63
  name: rake
43
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
44
66
  requirements:
45
- - - "~>"
67
+ - - ~>
46
68
  - !ruby/object:Gem::Version
47
69
  version: '10.1'
48
70
  type: :development
49
71
  prerelease: false
50
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
51
74
  requirements:
52
- - - "~>"
75
+ - - ~>
53
76
  - !ruby/object:Gem::Version
54
77
  version: '10.1'
55
78
  - !ruby/object:Gem::Dependency
56
79
  name: rspec
57
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
58
82
  requirements:
59
- - - "~>"
83
+ - - ~>
60
84
  - !ruby/object:Gem::Version
61
85
  version: 2.14.0
62
86
  type: :development
63
87
  prerelease: false
64
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
65
90
  requirements:
66
- - - "~>"
91
+ - - ~>
67
92
  - !ruby/object:Gem::Version
68
93
  version: 2.14.0
69
94
  description: A formatter for rubocop that outputs in checkstyle format
@@ -73,12 +98,33 @@ executables: []
73
98
  extensions: []
74
99
  extra_rdoc_files: []
75
100
  files:
76
- - ".gitignore"
77
- - ".travis.yml"
101
+ - .gitignore
102
+ - .travis.yml
103
+ - Appraisals
78
104
  - Gemfile
79
105
  - LICENSE.txt
80
106
  - README.md
81
107
  - Rakefile
108
+ - gemfiles/rubocop_0.14.1.gemfile
109
+ - gemfiles/rubocop_0.14.1.gemfile.lock
110
+ - gemfiles/rubocop_0.15.0.gemfile
111
+ - gemfiles/rubocop_0.15.0.gemfile.lock
112
+ - gemfiles/rubocop_0.16.0.gemfile
113
+ - gemfiles/rubocop_0.16.0.gemfile.lock
114
+ - gemfiles/rubocop_0.17.0.gemfile
115
+ - gemfiles/rubocop_0.17.0.gemfile.lock
116
+ - gemfiles/rubocop_0.18.1.gemfile
117
+ - gemfiles/rubocop_0.18.1.gemfile.lock
118
+ - gemfiles/rubocop_0.19.1.gemfile
119
+ - gemfiles/rubocop_0.19.1.gemfile.lock
120
+ - gemfiles/rubocop_0.20.1.gemfile
121
+ - gemfiles/rubocop_0.20.1.gemfile.lock
122
+ - gemfiles/rubocop_0.21.0.gemfile
123
+ - gemfiles/rubocop_0.21.0.gemfile.lock
124
+ - gemfiles/rubocop_0.22.0.gemfile
125
+ - gemfiles/rubocop_0.22.0.gemfile.lock
126
+ - gemfiles/rubocop_0.23.0.gemfile
127
+ - gemfiles/rubocop_0.23.0.gemfile.lock
82
128
  - lib/rubocop/formatter/checkstyle_formatter.rb
83
129
  - rubocop-checkstyle_formatter.gemspec
84
130
  - spec/rubocop/formatter/checkstyle_formatter_spec.rb
@@ -86,26 +132,33 @@ files:
86
132
  homepage: https://github.com/eitoball/rubocop-checkstyle_formatter
87
133
  licenses:
88
134
  - MIT
89
- metadata: {}
90
135
  post_install_message:
91
136
  rdoc_options: []
92
137
  require_paths:
93
138
  - lib
94
139
  required_ruby_version: !ruby/object:Gem::Requirement
140
+ none: false
95
141
  requirements:
96
- - - ">="
142
+ - - ! '>='
97
143
  - !ruby/object:Gem::Version
98
144
  version: '0'
145
+ segments:
146
+ - 0
147
+ hash: -915459672892503363
99
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
+ none: false
100
150
  requirements:
101
- - - ">="
151
+ - - ! '>='
102
152
  - !ruby/object:Gem::Version
103
153
  version: '0'
154
+ segments:
155
+ - 0
156
+ hash: -915459672892503363
104
157
  requirements: []
105
158
  rubyforge_project:
106
- rubygems_version: 2.2.2
159
+ rubygems_version: 1.8.23.2
107
160
  signing_key:
108
- specification_version: 4
161
+ specification_version: 3
109
162
  summary: A formatter for rubocop that outputs in checkstyle format
110
163
  test_files:
111
164
  - spec/rubocop/formatter/checkstyle_formatter_spec.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: f2c89d0692283e2b187a79b9a80f2120faceff09
4
- data.tar.gz: 35b09c262c40909a7dac4bec096ae0017d9da874
5
- SHA512:
6
- metadata.gz: 4fcfe89b753ea1f2c71cbe32e84617520518e96c5f647951bf43aff2c5cfafdd9f8665b1287ab21dbd6c82830d324567b35ca716cb941000caa1f5cdad3bc1ed
7
- data.tar.gz: dcda42ca02dd7d5dd1115a7f8767f1a3f69f0a2cea963366c9990e8657285a5ad0e586d5d82a845258abeb6887e1a0b81ffff5f04cdec876848a1248889048a7