rubocop-checkstyle_formatter 0.5.0 → 0.6.1

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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build.yml +5 -4
  3. data/Appraisals +12 -6
  4. data/README.md +1 -1
  5. data/gemfiles/rubocop_1.19.1.gemfile.lock +3 -2
  6. data/gemfiles/{rubocop_1.14.0.gemfile → rubocop_1.20.0.gemfile} +1 -1
  7. data/gemfiles/{rubocop_1.16.1.gemfile.lock → rubocop_1.20.0.gemfile.lock} +16 -16
  8. data/gemfiles/{rubocop_1.16.1.gemfile → rubocop_1.21.0.gemfile} +1 -1
  9. data/gemfiles/{rubocop_1.14.0.gemfile.lock → rubocop_1.21.0.gemfile.lock} +16 -16
  10. data/gemfiles/{rubocop_1.15.0.gemfile → rubocop_1.22.3.gemfile} +1 -1
  11. data/gemfiles/{rubocop_1.17.0.gemfile.lock → rubocop_1.22.3.gemfile.lock} +16 -16
  12. data/gemfiles/{rubocop_1.17.0.gemfile → rubocop_1.23.0.gemfile} +1 -1
  13. data/gemfiles/{rubocop_1.15.0.gemfile.lock → rubocop_1.23.0.gemfile.lock} +16 -16
  14. data/gemfiles/rubocop_1.24.1.gemfile +7 -0
  15. data/gemfiles/rubocop_1.24.1.gemfile.lock +64 -0
  16. data/gemfiles/rubocop_1.25.1.gemfile +7 -0
  17. data/gemfiles/rubocop_1.25.1.gemfile.lock +64 -0
  18. data/gemfiles/rubocop_1.26.1.gemfile +7 -0
  19. data/gemfiles/rubocop_1.26.1.gemfile.lock +64 -0
  20. data/gemfiles/rubocop_1.27.0.gemfile +7 -0
  21. data/gemfiles/rubocop_1.27.0.gemfile.lock +64 -0
  22. data/gemfiles/rubocop_1.28.2.gemfile +7 -0
  23. data/gemfiles/rubocop_1.28.2.gemfile.lock +64 -0
  24. data/gemfiles/rubocop_1.29.1.gemfile +7 -0
  25. data/gemfiles/rubocop_1.29.1.gemfile.lock +64 -0
  26. data/gemfiles/rubocop_1.30.1.gemfile +7 -0
  27. data/gemfiles/rubocop_1.30.1.gemfile.lock +65 -0
  28. data/rubocop-checkstyle_formatter.gemspec +2 -2
  29. metadata +26 -18
  30. data/gemfiles/rubocop_1.18.4.gemfile +0 -7
  31. data/gemfiles/rubocop_1.18.4.gemfile.lock +0 -64
  32. data/spec/rubocop/formatter/checkstyle_formatter_spec.rb +0 -68
  33. data/spec/spec_helper.rb +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34290eb428548f9e40dfa84c788d3fe0d656669760e10e9e0dcaff2346c8c86b
4
- data.tar.gz: 293eec882f0223dea25a2b322ebf271547e4f8d79d03fb962954f487694728e2
3
+ metadata.gz: 15fd148d5deef613d0eb8741b473fc511646037417c2d989937e339cdf1240db
4
+ data.tar.gz: 532860a16b4e8e2c2f7382792546e1387497564d21d151a053afa8e7eae7bb08
5
5
  SHA512:
6
- metadata.gz: d528710683dd58a3db3882e3f81572ac854fcff735bdd32066e321ab955c4ebaae1f3503eb9f028f59eb298404a47ee43162f8efa651040a8240e9e9aa07c7b9
7
- data.tar.gz: b02c1f60149578c2008dc218a5eaf005ae9c038d92d5f0a3ab34b5cb74413d53abf1c347ec0047118acb61360b4935ea805d44abb0bb1eca28e3fce4942fd9bd
6
+ metadata.gz: 62aca9b772476e718a315223472537bea2532afd25ad6fc1e4c861ac305e84400618e443c5d00fc17caacf918cb6b0d6577fff9f74194c1482c8557d8e807ec0
7
+ data.tar.gz: 32919d8fbca2a1a8db84ef628193bf2f8e5f5ba766c2f2d19b5a62b78418aee9d55f03c482fbefd8e37ee4066e4b7b33d2b552c87f0a426cfe098ca1835f7d5a
@@ -5,16 +5,17 @@ jobs:
5
5
  strategy:
6
6
  fail-fast: false
7
7
  matrix:
8
- ruby: ['2.5', '2.6', '2.7', '3.0', 'head', 'jruby-9.2.10.0']
9
- gemfile: ['1.14.0', '1.15.0', '1.16.1', '1.17.0', '1.18.4', '1.19.1']
8
+ ruby: ['2.6', '2.7', '3.0', '3.1', 'head', 'jruby-9.3.7.0']
9
+ gemfile: ['1.20.0', '1.21.0', '1.22.3', '1.23.0', '1.24.1', '1.25.1', '1.26.1', '1.27.0', '1.28.2', '1.29.1', '1.30.1']
10
10
  runs-on: ubuntu-latest
11
11
  continue-on-error: ${{ matrix.ruby == 'head' }}
12
12
  env:
13
13
  BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rubocop_${{ matrix.gemfile }}.gemfile
14
14
  steps:
15
- - uses: actions/checkout@v2
15
+ - uses: actions/checkout@v3
16
16
  - uses: ruby/setup-ruby@v1
17
17
  with:
18
- ruby-version: ${{ matrix.ruby }}
19
18
  bundler-cache: true
19
+ ruby-version: ${{ matrix.ruby }}
20
+ rubygems: latest
20
21
  - run: bundle exec rspec spec
data/Appraisals CHANGED
@@ -1,10 +1,16 @@
1
1
  [
2
- '1.14.0',
3
- '1.15.0',
4
- '1.16.1',
5
- '1.17.0',
6
- '1.18.4',
7
- '1.19.1'
2
+ '1.19.1',
3
+ '1.20.0',
4
+ '1.21.0',
5
+ '1.22.3',
6
+ '1.23.0',
7
+ '1.24.1',
8
+ '1.25.1',
9
+ '1.26.1',
10
+ '1.27.0',
11
+ '1.28.2',
12
+ '1.29.1',
13
+ '1.30.1'
8
14
  ].each do |version|
9
15
  appraise "rubocop-#{version}" do
10
16
  gem 'rubocop', version
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # RuboCop Checkstyle Formatter
2
2
 
3
3
  A formatter for [RuboCop](https://github.com/rubocop/rubocop) that outputs in checkstyle format.
4
- It requires RuboCop version 1.14.0 or above.
4
+ It requires RuboCop version 1.20.0 or above.
5
5
 
6
6
  ![Build Status](https://github.com/eitoball/rubocop-checkstyle_formatter/actions/workflows/build.yml/badge.svg?branch=master)
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- rubocop-checkstyle_formatter (0.5.0)
4
+ rubocop-checkstyle_formatter (0.6.0)
5
5
  rubocop (>= 1.14.0)
6
6
 
7
7
  GEM
@@ -51,6 +51,7 @@ GEM
51
51
  PLATFORMS
52
52
  java
53
53
  ruby
54
+ universal-java-11
54
55
 
55
56
  DEPENDENCIES
56
57
  appraisal (~> 2.4.1)
@@ -61,4 +62,4 @@ DEPENDENCIES
61
62
  rubocop-checkstyle_formatter!
62
63
 
63
64
  BUNDLED WITH
64
- 2.2.25
65
+ 2.3.22
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rubocop", "1.14.0"
5
+ gem "rubocop", "1.20.0"
6
6
 
7
7
  gemspec path: "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- rubocop-checkstyle_formatter (0.5.0)
4
+ rubocop-checkstyle_formatter (0.6.0)
5
5
  rubocop (>= 1.14.0)
6
6
 
7
7
  GEM
@@ -12,13 +12,13 @@ GEM
12
12
  rake
13
13
  thor (>= 0.14.0)
14
14
  ast (2.4.2)
15
- diff-lcs (1.4.4)
16
- parallel (1.20.1)
17
- parser (3.0.2.0)
15
+ diff-lcs (1.5.0)
16
+ parallel (1.22.1)
17
+ parser (3.1.2.1)
18
18
  ast (~> 2.4.1)
19
- rainbow (3.0.0)
19
+ rainbow (3.1.1)
20
20
  rake (13.0.6)
21
- regexp_parser (2.1.1)
21
+ regexp_parser (2.5.0)
22
22
  rexml (3.2.5)
23
23
  rspec (3.5.0)
24
24
  rspec-core (~> 3.5.0)
@@ -33,32 +33,32 @@ GEM
33
33
  diff-lcs (>= 1.2.0, < 2.0)
34
34
  rspec-support (~> 3.5.0)
35
35
  rspec-support (3.5.0)
36
- rubocop (1.16.1)
36
+ rubocop (1.20.0)
37
37
  parallel (~> 1.10)
38
38
  parser (>= 3.0.0.0)
39
39
  rainbow (>= 2.2.2, < 4.0)
40
40
  regexp_parser (>= 1.8, < 3.0)
41
41
  rexml
42
- rubocop-ast (>= 1.7.0, < 2.0)
42
+ rubocop-ast (>= 1.9.1, < 2.0)
43
43
  ruby-progressbar (~> 1.7)
44
44
  unicode-display_width (>= 1.4.0, < 3.0)
45
- rubocop-ast (1.10.0)
46
- parser (>= 3.0.1.1)
45
+ rubocop-ast (1.21.0)
46
+ parser (>= 3.1.1.0)
47
47
  ruby-progressbar (1.11.0)
48
- thor (1.1.0)
49
- unicode-display_width (2.0.0)
48
+ thor (1.2.1)
49
+ unicode-display_width (2.2.0)
50
50
 
51
51
  PLATFORMS
52
- java
53
- ruby
52
+ universal-java-11
53
+ x86_64-linux
54
54
 
55
55
  DEPENDENCIES
56
56
  appraisal (~> 2.4.1)
57
57
  bundler (>= 2.2.10)
58
58
  rake (>= 12.3.3)
59
59
  rspec (~> 3.5.0)
60
- rubocop (= 1.16.1)
60
+ rubocop (= 1.20.0)
61
61
  rubocop-checkstyle_formatter!
62
62
 
63
63
  BUNDLED WITH
64
- 2.2.25
64
+ 2.3.22
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rubocop", "1.16.1"
5
+ gem "rubocop", "1.21.0"
6
6
 
7
7
  gemspec path: "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- rubocop-checkstyle_formatter (0.5.0)
4
+ rubocop-checkstyle_formatter (0.6.0)
5
5
  rubocop (>= 1.14.0)
6
6
 
7
7
  GEM
@@ -12,13 +12,13 @@ GEM
12
12
  rake
13
13
  thor (>= 0.14.0)
14
14
  ast (2.4.2)
15
- diff-lcs (1.4.4)
16
- parallel (1.20.1)
17
- parser (3.0.2.0)
15
+ diff-lcs (1.5.0)
16
+ parallel (1.22.1)
17
+ parser (3.1.2.1)
18
18
  ast (~> 2.4.1)
19
- rainbow (3.0.0)
19
+ rainbow (3.1.1)
20
20
  rake (13.0.6)
21
- regexp_parser (2.1.1)
21
+ regexp_parser (2.5.0)
22
22
  rexml (3.2.5)
23
23
  rspec (3.5.0)
24
24
  rspec-core (~> 3.5.0)
@@ -33,32 +33,32 @@ GEM
33
33
  diff-lcs (>= 1.2.0, < 2.0)
34
34
  rspec-support (~> 3.5.0)
35
35
  rspec-support (3.5.0)
36
- rubocop (1.14.0)
36
+ rubocop (1.21.0)
37
37
  parallel (~> 1.10)
38
38
  parser (>= 3.0.0.0)
39
39
  rainbow (>= 2.2.2, < 4.0)
40
40
  regexp_parser (>= 1.8, < 3.0)
41
41
  rexml
42
- rubocop-ast (>= 1.5.0, < 2.0)
42
+ rubocop-ast (>= 1.9.1, < 2.0)
43
43
  ruby-progressbar (~> 1.7)
44
44
  unicode-display_width (>= 1.4.0, < 3.0)
45
- rubocop-ast (1.10.0)
46
- parser (>= 3.0.1.1)
45
+ rubocop-ast (1.21.0)
46
+ parser (>= 3.1.1.0)
47
47
  ruby-progressbar (1.11.0)
48
- thor (1.1.0)
49
- unicode-display_width (2.0.0)
48
+ thor (1.2.1)
49
+ unicode-display_width (2.2.0)
50
50
 
51
51
  PLATFORMS
52
- java
53
- ruby
52
+ universal-java-11
53
+ x86_64-linux
54
54
 
55
55
  DEPENDENCIES
56
56
  appraisal (~> 2.4.1)
57
57
  bundler (>= 2.2.10)
58
58
  rake (>= 12.3.3)
59
59
  rspec (~> 3.5.0)
60
- rubocop (= 1.14.0)
60
+ rubocop (= 1.21.0)
61
61
  rubocop-checkstyle_formatter!
62
62
 
63
63
  BUNDLED WITH
64
- 2.2.25
64
+ 2.3.22
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rubocop", "1.15.0"
5
+ gem "rubocop", "1.22.3"
6
6
 
7
7
  gemspec path: "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- rubocop-checkstyle_formatter (0.5.0)
4
+ rubocop-checkstyle_formatter (0.6.0)
5
5
  rubocop (>= 1.14.0)
6
6
 
7
7
  GEM
@@ -12,13 +12,13 @@ GEM
12
12
  rake
13
13
  thor (>= 0.14.0)
14
14
  ast (2.4.2)
15
- diff-lcs (1.4.4)
16
- parallel (1.20.1)
17
- parser (3.0.2.0)
15
+ diff-lcs (1.5.0)
16
+ parallel (1.22.1)
17
+ parser (3.1.2.1)
18
18
  ast (~> 2.4.1)
19
- rainbow (3.0.0)
19
+ rainbow (3.1.1)
20
20
  rake (13.0.6)
21
- regexp_parser (2.1.1)
21
+ regexp_parser (2.5.0)
22
22
  rexml (3.2.5)
23
23
  rspec (3.5.0)
24
24
  rspec-core (~> 3.5.0)
@@ -33,32 +33,32 @@ GEM
33
33
  diff-lcs (>= 1.2.0, < 2.0)
34
34
  rspec-support (~> 3.5.0)
35
35
  rspec-support (3.5.0)
36
- rubocop (1.17.0)
36
+ rubocop (1.22.3)
37
37
  parallel (~> 1.10)
38
38
  parser (>= 3.0.0.0)
39
39
  rainbow (>= 2.2.2, < 4.0)
40
40
  regexp_parser (>= 1.8, < 3.0)
41
41
  rexml
42
- rubocop-ast (>= 1.7.0, < 2.0)
42
+ rubocop-ast (>= 1.12.0, < 2.0)
43
43
  ruby-progressbar (~> 1.7)
44
44
  unicode-display_width (>= 1.4.0, < 3.0)
45
- rubocop-ast (1.10.0)
46
- parser (>= 3.0.1.1)
45
+ rubocop-ast (1.21.0)
46
+ parser (>= 3.1.1.0)
47
47
  ruby-progressbar (1.11.0)
48
- thor (1.1.0)
49
- unicode-display_width (2.0.0)
48
+ thor (1.2.1)
49
+ unicode-display_width (2.2.0)
50
50
 
51
51
  PLATFORMS
52
- java
53
- ruby
52
+ universal-java-11
53
+ x86_64-linux
54
54
 
55
55
  DEPENDENCIES
56
56
  appraisal (~> 2.4.1)
57
57
  bundler (>= 2.2.10)
58
58
  rake (>= 12.3.3)
59
59
  rspec (~> 3.5.0)
60
- rubocop (= 1.17.0)
60
+ rubocop (= 1.22.3)
61
61
  rubocop-checkstyle_formatter!
62
62
 
63
63
  BUNDLED WITH
64
- 2.2.25
64
+ 2.3.22
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rubocop", "1.17.0"
5
+ gem "rubocop", "1.23.0"
6
6
 
7
7
  gemspec path: "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- rubocop-checkstyle_formatter (0.5.0)
4
+ rubocop-checkstyle_formatter (0.6.0)
5
5
  rubocop (>= 1.14.0)
6
6
 
7
7
  GEM
@@ -12,13 +12,13 @@ GEM
12
12
  rake
13
13
  thor (>= 0.14.0)
14
14
  ast (2.4.2)
15
- diff-lcs (1.4.4)
16
- parallel (1.20.1)
17
- parser (3.0.2.0)
15
+ diff-lcs (1.5.0)
16
+ parallel (1.22.1)
17
+ parser (3.1.2.1)
18
18
  ast (~> 2.4.1)
19
- rainbow (3.0.0)
19
+ rainbow (3.1.1)
20
20
  rake (13.0.6)
21
- regexp_parser (2.1.1)
21
+ regexp_parser (2.5.0)
22
22
  rexml (3.2.5)
23
23
  rspec (3.5.0)
24
24
  rspec-core (~> 3.5.0)
@@ -33,32 +33,32 @@ GEM
33
33
  diff-lcs (>= 1.2.0, < 2.0)
34
34
  rspec-support (~> 3.5.0)
35
35
  rspec-support (3.5.0)
36
- rubocop (1.15.0)
36
+ rubocop (1.23.0)
37
37
  parallel (~> 1.10)
38
38
  parser (>= 3.0.0.0)
39
39
  rainbow (>= 2.2.2, < 4.0)
40
40
  regexp_parser (>= 1.8, < 3.0)
41
41
  rexml
42
- rubocop-ast (>= 1.5.0, < 2.0)
42
+ rubocop-ast (>= 1.12.0, < 2.0)
43
43
  ruby-progressbar (~> 1.7)
44
44
  unicode-display_width (>= 1.4.0, < 3.0)
45
- rubocop-ast (1.10.0)
46
- parser (>= 3.0.1.1)
45
+ rubocop-ast (1.21.0)
46
+ parser (>= 3.1.1.0)
47
47
  ruby-progressbar (1.11.0)
48
- thor (1.1.0)
49
- unicode-display_width (2.0.0)
48
+ thor (1.2.1)
49
+ unicode-display_width (2.2.0)
50
50
 
51
51
  PLATFORMS
52
- java
53
- ruby
52
+ universal-java-11
53
+ x86_64-linux
54
54
 
55
55
  DEPENDENCIES
56
56
  appraisal (~> 2.4.1)
57
57
  bundler (>= 2.2.10)
58
58
  rake (>= 12.3.3)
59
59
  rspec (~> 3.5.0)
60
- rubocop (= 1.15.0)
60
+ rubocop (= 1.23.0)
61
61
  rubocop-checkstyle_formatter!
62
62
 
63
63
  BUNDLED WITH
64
- 2.2.25
64
+ 2.3.22
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "1.24.1"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,64 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.6.0)
5
+ rubocop (>= 1.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (2.4.1)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.4.2)
15
+ diff-lcs (1.5.0)
16
+ parallel (1.22.1)
17
+ parser (3.1.2.1)
18
+ ast (~> 2.4.1)
19
+ rainbow (3.1.1)
20
+ rake (13.0.6)
21
+ regexp_parser (2.5.0)
22
+ rexml (3.2.5)
23
+ rspec (3.5.0)
24
+ rspec-core (~> 3.5.0)
25
+ rspec-expectations (~> 3.5.0)
26
+ rspec-mocks (~> 3.5.0)
27
+ rspec-core (3.5.4)
28
+ rspec-support (~> 3.5.0)
29
+ rspec-expectations (3.5.0)
30
+ diff-lcs (>= 1.2.0, < 2.0)
31
+ rspec-support (~> 3.5.0)
32
+ rspec-mocks (3.5.0)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.5.0)
35
+ rspec-support (3.5.0)
36
+ rubocop (1.24.1)
37
+ parallel (~> 1.10)
38
+ parser (>= 3.0.0.0)
39
+ rainbow (>= 2.2.2, < 4.0)
40
+ regexp_parser (>= 1.8, < 3.0)
41
+ rexml
42
+ rubocop-ast (>= 1.15.1, < 2.0)
43
+ ruby-progressbar (~> 1.7)
44
+ unicode-display_width (>= 1.4.0, < 3.0)
45
+ rubocop-ast (1.21.0)
46
+ parser (>= 3.1.1.0)
47
+ ruby-progressbar (1.11.0)
48
+ thor (1.2.1)
49
+ unicode-display_width (2.2.0)
50
+
51
+ PLATFORMS
52
+ universal-java-11
53
+ x86_64-linux
54
+
55
+ DEPENDENCIES
56
+ appraisal (~> 2.4.1)
57
+ bundler (>= 2.2.10)
58
+ rake (>= 12.3.3)
59
+ rspec (~> 3.5.0)
60
+ rubocop (= 1.24.1)
61
+ rubocop-checkstyle_formatter!
62
+
63
+ BUNDLED WITH
64
+ 2.3.22
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "1.25.1"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,64 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.6.0)
5
+ rubocop (>= 1.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (2.4.1)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.4.2)
15
+ diff-lcs (1.5.0)
16
+ parallel (1.22.1)
17
+ parser (3.1.2.1)
18
+ ast (~> 2.4.1)
19
+ rainbow (3.1.1)
20
+ rake (13.0.6)
21
+ regexp_parser (2.5.0)
22
+ rexml (3.2.5)
23
+ rspec (3.5.0)
24
+ rspec-core (~> 3.5.0)
25
+ rspec-expectations (~> 3.5.0)
26
+ rspec-mocks (~> 3.5.0)
27
+ rspec-core (3.5.4)
28
+ rspec-support (~> 3.5.0)
29
+ rspec-expectations (3.5.0)
30
+ diff-lcs (>= 1.2.0, < 2.0)
31
+ rspec-support (~> 3.5.0)
32
+ rspec-mocks (3.5.0)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.5.0)
35
+ rspec-support (3.5.0)
36
+ rubocop (1.25.1)
37
+ parallel (~> 1.10)
38
+ parser (>= 3.1.0.0)
39
+ rainbow (>= 2.2.2, < 4.0)
40
+ regexp_parser (>= 1.8, < 3.0)
41
+ rexml
42
+ rubocop-ast (>= 1.15.1, < 2.0)
43
+ ruby-progressbar (~> 1.7)
44
+ unicode-display_width (>= 1.4.0, < 3.0)
45
+ rubocop-ast (1.21.0)
46
+ parser (>= 3.1.1.0)
47
+ ruby-progressbar (1.11.0)
48
+ thor (1.2.1)
49
+ unicode-display_width (2.2.0)
50
+
51
+ PLATFORMS
52
+ universal-java-11
53
+ x86_64-linux
54
+
55
+ DEPENDENCIES
56
+ appraisal (~> 2.4.1)
57
+ bundler (>= 2.2.10)
58
+ rake (>= 12.3.3)
59
+ rspec (~> 3.5.0)
60
+ rubocop (= 1.25.1)
61
+ rubocop-checkstyle_formatter!
62
+
63
+ BUNDLED WITH
64
+ 2.3.22
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "1.26.1"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,64 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.6.0)
5
+ rubocop (>= 1.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (2.4.1)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.4.2)
15
+ diff-lcs (1.5.0)
16
+ parallel (1.22.1)
17
+ parser (3.1.2.1)
18
+ ast (~> 2.4.1)
19
+ rainbow (3.1.1)
20
+ rake (13.0.6)
21
+ regexp_parser (2.5.0)
22
+ rexml (3.2.5)
23
+ rspec (3.5.0)
24
+ rspec-core (~> 3.5.0)
25
+ rspec-expectations (~> 3.5.0)
26
+ rspec-mocks (~> 3.5.0)
27
+ rspec-core (3.5.4)
28
+ rspec-support (~> 3.5.0)
29
+ rspec-expectations (3.5.0)
30
+ diff-lcs (>= 1.2.0, < 2.0)
31
+ rspec-support (~> 3.5.0)
32
+ rspec-mocks (3.5.0)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.5.0)
35
+ rspec-support (3.5.0)
36
+ rubocop (1.26.1)
37
+ parallel (~> 1.10)
38
+ parser (>= 3.1.0.0)
39
+ rainbow (>= 2.2.2, < 4.0)
40
+ regexp_parser (>= 1.8, < 3.0)
41
+ rexml
42
+ rubocop-ast (>= 1.16.0, < 2.0)
43
+ ruby-progressbar (~> 1.7)
44
+ unicode-display_width (>= 1.4.0, < 3.0)
45
+ rubocop-ast (1.21.0)
46
+ parser (>= 3.1.1.0)
47
+ ruby-progressbar (1.11.0)
48
+ thor (1.2.1)
49
+ unicode-display_width (2.2.0)
50
+
51
+ PLATFORMS
52
+ universal-java-11
53
+ x86_64-linux
54
+
55
+ DEPENDENCIES
56
+ appraisal (~> 2.4.1)
57
+ bundler (>= 2.2.10)
58
+ rake (>= 12.3.3)
59
+ rspec (~> 3.5.0)
60
+ rubocop (= 1.26.1)
61
+ rubocop-checkstyle_formatter!
62
+
63
+ BUNDLED WITH
64
+ 2.3.22
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "1.27.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,64 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.6.0)
5
+ rubocop (>= 1.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (2.4.1)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.4.2)
15
+ diff-lcs (1.5.0)
16
+ parallel (1.22.1)
17
+ parser (3.1.2.1)
18
+ ast (~> 2.4.1)
19
+ rainbow (3.1.1)
20
+ rake (13.0.6)
21
+ regexp_parser (2.5.0)
22
+ rexml (3.2.5)
23
+ rspec (3.5.0)
24
+ rspec-core (~> 3.5.0)
25
+ rspec-expectations (~> 3.5.0)
26
+ rspec-mocks (~> 3.5.0)
27
+ rspec-core (3.5.4)
28
+ rspec-support (~> 3.5.0)
29
+ rspec-expectations (3.5.0)
30
+ diff-lcs (>= 1.2.0, < 2.0)
31
+ rspec-support (~> 3.5.0)
32
+ rspec-mocks (3.5.0)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.5.0)
35
+ rspec-support (3.5.0)
36
+ rubocop (1.27.0)
37
+ parallel (~> 1.10)
38
+ parser (>= 3.1.0.0)
39
+ rainbow (>= 2.2.2, < 4.0)
40
+ regexp_parser (>= 1.8, < 3.0)
41
+ rexml
42
+ rubocop-ast (>= 1.16.0, < 2.0)
43
+ ruby-progressbar (~> 1.7)
44
+ unicode-display_width (>= 1.4.0, < 3.0)
45
+ rubocop-ast (1.21.0)
46
+ parser (>= 3.1.1.0)
47
+ ruby-progressbar (1.11.0)
48
+ thor (1.2.1)
49
+ unicode-display_width (2.2.0)
50
+
51
+ PLATFORMS
52
+ universal-java-11
53
+ x86_64-linux
54
+
55
+ DEPENDENCIES
56
+ appraisal (~> 2.4.1)
57
+ bundler (>= 2.2.10)
58
+ rake (>= 12.3.3)
59
+ rspec (~> 3.5.0)
60
+ rubocop (= 1.27.0)
61
+ rubocop-checkstyle_formatter!
62
+
63
+ BUNDLED WITH
64
+ 2.3.22
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "1.28.2"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,64 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.6.0)
5
+ rubocop (>= 1.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (2.4.1)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.4.2)
15
+ diff-lcs (1.5.0)
16
+ parallel (1.22.1)
17
+ parser (3.1.2.1)
18
+ ast (~> 2.4.1)
19
+ rainbow (3.1.1)
20
+ rake (13.0.6)
21
+ regexp_parser (2.5.0)
22
+ rexml (3.2.5)
23
+ rspec (3.5.0)
24
+ rspec-core (~> 3.5.0)
25
+ rspec-expectations (~> 3.5.0)
26
+ rspec-mocks (~> 3.5.0)
27
+ rspec-core (3.5.4)
28
+ rspec-support (~> 3.5.0)
29
+ rspec-expectations (3.5.0)
30
+ diff-lcs (>= 1.2.0, < 2.0)
31
+ rspec-support (~> 3.5.0)
32
+ rspec-mocks (3.5.0)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.5.0)
35
+ rspec-support (3.5.0)
36
+ rubocop (1.28.2)
37
+ parallel (~> 1.10)
38
+ parser (>= 3.1.0.0)
39
+ rainbow (>= 2.2.2, < 4.0)
40
+ regexp_parser (>= 1.8, < 3.0)
41
+ rexml
42
+ rubocop-ast (>= 1.17.0, < 2.0)
43
+ ruby-progressbar (~> 1.7)
44
+ unicode-display_width (>= 1.4.0, < 3.0)
45
+ rubocop-ast (1.21.0)
46
+ parser (>= 3.1.1.0)
47
+ ruby-progressbar (1.11.0)
48
+ thor (1.2.1)
49
+ unicode-display_width (2.2.0)
50
+
51
+ PLATFORMS
52
+ universal-java-11
53
+ x86_64-linux
54
+
55
+ DEPENDENCIES
56
+ appraisal (~> 2.4.1)
57
+ bundler (>= 2.2.10)
58
+ rake (>= 12.3.3)
59
+ rspec (~> 3.5.0)
60
+ rubocop (= 1.28.2)
61
+ rubocop-checkstyle_formatter!
62
+
63
+ BUNDLED WITH
64
+ 2.3.22
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "1.29.1"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,64 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.6.0)
5
+ rubocop (>= 1.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (2.4.1)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.4.2)
15
+ diff-lcs (1.5.0)
16
+ parallel (1.22.1)
17
+ parser (3.1.2.1)
18
+ ast (~> 2.4.1)
19
+ rainbow (3.1.1)
20
+ rake (13.0.6)
21
+ regexp_parser (2.5.0)
22
+ rexml (3.2.5)
23
+ rspec (3.5.0)
24
+ rspec-core (~> 3.5.0)
25
+ rspec-expectations (~> 3.5.0)
26
+ rspec-mocks (~> 3.5.0)
27
+ rspec-core (3.5.4)
28
+ rspec-support (~> 3.5.0)
29
+ rspec-expectations (3.5.0)
30
+ diff-lcs (>= 1.2.0, < 2.0)
31
+ rspec-support (~> 3.5.0)
32
+ rspec-mocks (3.5.0)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.5.0)
35
+ rspec-support (3.5.0)
36
+ rubocop (1.29.1)
37
+ parallel (~> 1.10)
38
+ parser (>= 3.1.0.0)
39
+ rainbow (>= 2.2.2, < 4.0)
40
+ regexp_parser (>= 1.8, < 3.0)
41
+ rexml (>= 3.2.5, < 4.0)
42
+ rubocop-ast (>= 1.17.0, < 2.0)
43
+ ruby-progressbar (~> 1.7)
44
+ unicode-display_width (>= 1.4.0, < 3.0)
45
+ rubocop-ast (1.21.0)
46
+ parser (>= 3.1.1.0)
47
+ ruby-progressbar (1.11.0)
48
+ thor (1.2.1)
49
+ unicode-display_width (2.2.0)
50
+
51
+ PLATFORMS
52
+ universal-java-11
53
+ x86_64-linux
54
+
55
+ DEPENDENCIES
56
+ appraisal (~> 2.4.1)
57
+ bundler (>= 2.2.10)
58
+ rake (>= 12.3.3)
59
+ rspec (~> 3.5.0)
60
+ rubocop (= 1.29.1)
61
+ rubocop-checkstyle_formatter!
62
+
63
+ BUNDLED WITH
64
+ 2.3.22
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rubocop", "1.30.1"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,65 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ rubocop-checkstyle_formatter (0.6.1)
5
+ rubocop (>= 1.14.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (2.4.1)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.4.2)
15
+ diff-lcs (1.5.0)
16
+ parallel (1.22.1)
17
+ parser (3.1.2.1)
18
+ ast (~> 2.4.1)
19
+ rainbow (3.1.1)
20
+ rake (13.0.6)
21
+ regexp_parser (2.5.0)
22
+ rexml (3.2.5)
23
+ rspec (3.5.0)
24
+ rspec-core (~> 3.5.0)
25
+ rspec-expectations (~> 3.5.0)
26
+ rspec-mocks (~> 3.5.0)
27
+ rspec-core (3.5.4)
28
+ rspec-support (~> 3.5.0)
29
+ rspec-expectations (3.5.0)
30
+ diff-lcs (>= 1.2.0, < 2.0)
31
+ rspec-support (~> 3.5.0)
32
+ rspec-mocks (3.5.0)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.5.0)
35
+ rspec-support (3.5.0)
36
+ rubocop (1.30.1)
37
+ parallel (~> 1.10)
38
+ parser (>= 3.1.0.0)
39
+ rainbow (>= 2.2.2, < 4.0)
40
+ regexp_parser (>= 1.8, < 3.0)
41
+ rexml (>= 3.2.5, < 4.0)
42
+ rubocop-ast (>= 1.18.0, < 2.0)
43
+ ruby-progressbar (~> 1.7)
44
+ unicode-display_width (>= 1.4.0, < 3.0)
45
+ rubocop-ast (1.21.0)
46
+ parser (>= 3.1.1.0)
47
+ ruby-progressbar (1.11.0)
48
+ thor (1.2.1)
49
+ unicode-display_width (2.2.0)
50
+
51
+ PLATFORMS
52
+ universal-java-11
53
+ x86_64-darwin-25
54
+ x86_64-linux
55
+
56
+ DEPENDENCIES
57
+ appraisal (~> 2.4.1)
58
+ bundler (>= 2.2.10)
59
+ rake (>= 12.3.3)
60
+ rspec (~> 3.5.0)
61
+ rubocop (= 1.30.1)
62
+ rubocop-checkstyle_formatter!
63
+
64
+ BUNDLED WITH
65
+ 2.5.5
@@ -6,7 +6,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |gem|
8
8
  gem.name = 'rubocop-checkstyle_formatter'
9
- gem.version = '0.5.0'
9
+ gem.version = '0.6.1'
10
10
  gem.authors = ['Eito Katagiri']
11
11
  gem.email = ['eitoball@gmail.com']
12
12
  gem.description = 'A formatter for rubocop that outputs in checkstyle format'
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
14
14
  gem.homepage = 'https://github.com/eitoball/rubocop-checkstyle_formatter'
15
15
  gem.license = 'MIT'
16
16
 
17
- gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
17
+ gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR).grep_v(%r{^spec/})
18
18
  gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
19
19
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
20
20
  gem.require_paths = ['lib']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-checkstyle_formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eito Katagiri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-19 00:00:00.000000000 Z
11
+ date: 2026-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -96,22 +96,32 @@ files:
96
96
  - LICENSE.txt
97
97
  - README.md
98
98
  - Rakefile
99
- - gemfiles/rubocop_1.14.0.gemfile
100
- - gemfiles/rubocop_1.14.0.gemfile.lock
101
- - gemfiles/rubocop_1.15.0.gemfile
102
- - gemfiles/rubocop_1.15.0.gemfile.lock
103
- - gemfiles/rubocop_1.16.1.gemfile
104
- - gemfiles/rubocop_1.16.1.gemfile.lock
105
- - gemfiles/rubocop_1.17.0.gemfile
106
- - gemfiles/rubocop_1.17.0.gemfile.lock
107
- - gemfiles/rubocop_1.18.4.gemfile
108
- - gemfiles/rubocop_1.18.4.gemfile.lock
109
99
  - gemfiles/rubocop_1.19.1.gemfile
110
100
  - gemfiles/rubocop_1.19.1.gemfile.lock
101
+ - gemfiles/rubocop_1.20.0.gemfile
102
+ - gemfiles/rubocop_1.20.0.gemfile.lock
103
+ - gemfiles/rubocop_1.21.0.gemfile
104
+ - gemfiles/rubocop_1.21.0.gemfile.lock
105
+ - gemfiles/rubocop_1.22.3.gemfile
106
+ - gemfiles/rubocop_1.22.3.gemfile.lock
107
+ - gemfiles/rubocop_1.23.0.gemfile
108
+ - gemfiles/rubocop_1.23.0.gemfile.lock
109
+ - gemfiles/rubocop_1.24.1.gemfile
110
+ - gemfiles/rubocop_1.24.1.gemfile.lock
111
+ - gemfiles/rubocop_1.25.1.gemfile
112
+ - gemfiles/rubocop_1.25.1.gemfile.lock
113
+ - gemfiles/rubocop_1.26.1.gemfile
114
+ - gemfiles/rubocop_1.26.1.gemfile.lock
115
+ - gemfiles/rubocop_1.27.0.gemfile
116
+ - gemfiles/rubocop_1.27.0.gemfile.lock
117
+ - gemfiles/rubocop_1.28.2.gemfile
118
+ - gemfiles/rubocop_1.28.2.gemfile.lock
119
+ - gemfiles/rubocop_1.29.1.gemfile
120
+ - gemfiles/rubocop_1.29.1.gemfile.lock
121
+ - gemfiles/rubocop_1.30.1.gemfile
122
+ - gemfiles/rubocop_1.30.1.gemfile.lock
111
123
  - lib/rubocop/formatter/checkstyle_formatter.rb
112
124
  - rubocop-checkstyle_formatter.gemspec
113
- - spec/rubocop/formatter/checkstyle_formatter_spec.rb
114
- - spec/spec_helper.rb
115
125
  homepage: https://github.com/eitoball/rubocop-checkstyle_formatter
116
126
  licenses:
117
127
  - MIT
@@ -131,10 +141,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
141
  - !ruby/object:Gem::Version
132
142
  version: '0'
133
143
  requirements: []
134
- rubygems_version: 3.2.9
144
+ rubygems_version: 3.0.3.1
135
145
  signing_key:
136
146
  specification_version: 4
137
147
  summary: A formatter for rubocop that outputs in checkstyle format
138
- test_files:
139
- - spec/rubocop/formatter/checkstyle_formatter_spec.rb
140
- - spec/spec_helper.rb
148
+ test_files: []
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rubocop", "1.18.4"
6
-
7
- gemspec path: "../"
@@ -1,64 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- rubocop-checkstyle_formatter (0.5.0)
5
- rubocop (>= 1.14.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- appraisal (2.4.1)
11
- bundler
12
- rake
13
- thor (>= 0.14.0)
14
- ast (2.4.2)
15
- diff-lcs (1.4.4)
16
- parallel (1.20.1)
17
- parser (3.0.2.0)
18
- ast (~> 2.4.1)
19
- rainbow (3.0.0)
20
- rake (13.0.6)
21
- regexp_parser (2.1.1)
22
- rexml (3.2.5)
23
- rspec (3.5.0)
24
- rspec-core (~> 3.5.0)
25
- rspec-expectations (~> 3.5.0)
26
- rspec-mocks (~> 3.5.0)
27
- rspec-core (3.5.4)
28
- rspec-support (~> 3.5.0)
29
- rspec-expectations (3.5.0)
30
- diff-lcs (>= 1.2.0, < 2.0)
31
- rspec-support (~> 3.5.0)
32
- rspec-mocks (3.5.0)
33
- diff-lcs (>= 1.2.0, < 2.0)
34
- rspec-support (~> 3.5.0)
35
- rspec-support (3.5.0)
36
- rubocop (1.18.4)
37
- parallel (~> 1.10)
38
- parser (>= 3.0.0.0)
39
- rainbow (>= 2.2.2, < 4.0)
40
- regexp_parser (>= 1.8, < 3.0)
41
- rexml
42
- rubocop-ast (>= 1.8.0, < 2.0)
43
- ruby-progressbar (~> 1.7)
44
- unicode-display_width (>= 1.4.0, < 3.0)
45
- rubocop-ast (1.10.0)
46
- parser (>= 3.0.1.1)
47
- ruby-progressbar (1.11.0)
48
- thor (1.1.0)
49
- unicode-display_width (2.0.0)
50
-
51
- PLATFORMS
52
- java
53
- ruby
54
-
55
- DEPENDENCIES
56
- appraisal (~> 2.4.1)
57
- bundler (>= 2.2.10)
58
- rake (>= 12.3.3)
59
- rspec (~> 3.5.0)
60
- rubocop (= 1.18.4)
61
- rubocop-checkstyle_formatter!
62
-
63
- BUNDLED WITH
64
- 2.2.25
@@ -1,68 +0,0 @@
1
- # encoding: utf-8
2
-
3
- require 'spec_helper'
4
- require 'stringio'
5
- require 'rexml/document'
6
-
7
- module RuboCop
8
- module Formatter
9
- describe CheckstyleFormatter do
10
- let(:severities) { %i[refactor convention warning error fatal] }
11
- let(:cop) do
12
- Cop::Cop.new.tap do |c|
13
- c.send(:begin_investigation, RuboCop::ProcessedSource.new(file, 2.7, 'sample.rb'))
14
- source_buffer = Parser::Source::Buffer.new('sample.rb', 1).tap { |b| b.source = '' }
15
- severities.each_with_index do |severity, index|
16
- c.add_offense(nil, location: Parser::Source::Range.new(source_buffer, 0, index), message: severity.to_s)
17
- end
18
- end
19
- end
20
- let(:output) { StringIO.new }
21
- let(:file) { File.join(Dir.pwd, 'sample.rb') }
22
-
23
- before do
24
- formatter = described_class.new(output)
25
- formatter.started(file)
26
- formatter.file_finished(file, cop.respond_to?(:offenses) ? cop.offenses : cop.offences)
27
- formatter.finished([file])
28
- end
29
-
30
- it 'should convert rubocop severity to checkstyle severity' do
31
- doc = REXML::Document.new(output.string)
32
- REXML::XPath.match(doc, '/checkstyle/file').each do |file|
33
- if defined?(PathUtil)
34
- expect(file.attribute('name').value).to eq('sample.rb')
35
- end
36
- REXML::XPath.match(file, '/error').each do |error|
37
- message = error.attribute('message').value
38
- severity = error.attribute('severity').value
39
- case message
40
- when 'refactor', 'convention' then expect(severity).to eq('info')
41
- when 'warning' then expect(severity).to eq('warning')
42
- when 'error', 'fatal' then expect(severity).to eq('error')
43
- end
44
- end
45
- end
46
- end
47
-
48
- context 'RUBOCOP_CHECKSTYLE_FORMATTER_ABSOLUTE_PATH is defined' do
49
- around do |example|
50
- ENV['RUBOCOP_CHECKSTYLE_FORMATTER_ABSOLUTE_PATH'] = 'true'
51
- example.run
52
- ENV.delete('RUBOCOP_CHECKSTYLE_FORMATTER_ABSOLUTE_PATH')
53
- end
54
-
55
- it 'should use absolute path in name attribute of file tag' do
56
- output = StringIO.new
57
- formatter = described_class.new(output)
58
- formatter.started(file)
59
- formatter.file_finished(file, cop.respond_to?(:offenses) ? cop.offenses : cop.offences)
60
- formatter.finished([file])
61
- doc = REXML::Document.new(output.string)
62
- file = REXML::XPath.first(doc, '/checkstyle/file')
63
- expect(Pathname.new(file.attributes['name'])).to be_absolute
64
- end
65
- end
66
- end
67
- end
68
- end
data/spec/spec_helper.rb DELETED
@@ -1,6 +0,0 @@
1
- # encoding: utf-8
2
-
3
- $LOAD_PATH.unshift(File.absolute_path('../../lib', __FILE__))
4
- require 'rspec'
5
- require 'rubocop'
6
- require 'rubocop/formatter/checkstyle_formatter'