danger-rubocop 0.7.2 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc7db75b5f4eff3caf643f1c9cc45c5d9014e8361351b8868fb79a2082618507
4
- data.tar.gz: 0bbc72b3cd32ad873d8137717ea82a0ed5fd630dbda61d46433c5cd4b5bf50a6
3
+ metadata.gz: 2f4f324de45d03bd83bdfe10a4047a57a478d897894b78405aff02dcadfe62b1
4
+ data.tar.gz: 40dea7d522d011835462370782a4441e231c1f9ed49374e8a606fedf39ce2e54
5
5
  SHA512:
6
- metadata.gz: 272cbd2cdefced6ef5a1f0de44251ec358bbd37522c73035104294d320a0c0defdd95598bec5ce3973435c006b4583121a01f562e693dc699ed1c427ea5fbd18
7
- data.tar.gz: 78750720159477b7db8d97a6d963f0443b16839785387682597aa4058e75a692132a09674516f02a561c6f228c4d21760498a4eb193dd53137a2eafc820db530
6
+ metadata.gz: 894b86cde281f23c4f49721b5a059d7257bc6c622e60a2999d0bfef5eeeb1c8d90cd20fd713c37e679f4ef2882d6e5b314b70bd8350102c90b0cdd9d0340fce3
7
+ data.tar.gz: 4a03ca834ad41fc8ecabd91268ceea09af5b2cdf6c622a5f0cbe88b2c62d92562a74e107c0964986111386ad54112d733a2b9ec0837ba29c3dccb6511bcb63d2
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- ruby '>= 2.0'
3
+ ruby '>= 2.6.0'
4
4
 
5
5
  gemspec
6
6
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-rubocop (0.7.0)
4
+ danger-rubocop (0.8.0)
5
5
  danger
6
6
  rubocop
7
7
 
@@ -10,7 +10,7 @@ GEM
10
10
  specs:
11
11
  addressable (2.7.0)
12
12
  public_suffix (>= 2.0.2, < 5.0)
13
- ast (2.4.0)
13
+ ast (2.4.1)
14
14
  bacon (1.2.0)
15
15
  claide (1.0.3)
16
16
  claide-plugins (0.9.2)
@@ -21,27 +21,28 @@ GEM
21
21
  colored2 (3.1.2)
22
22
  cork (0.3.0)
23
23
  colored2 (~> 3.1)
24
- danger (6.0.9)
24
+ danger (8.0.1)
25
25
  claide (~> 1.0)
26
26
  claide-plugins (>= 0.9.2)
27
27
  colored2 (~> 3.1)
28
28
  cork (~> 0.1)
29
- faraday (~> 0.9)
29
+ faraday (>= 0.9.0, < 2.0)
30
30
  faraday-http-cache (~> 2.0)
31
- git (~> 1.5)
31
+ git (~> 1.7)
32
32
  kramdown (~> 2.0)
33
33
  kramdown-parser-gfm (~> 1.0)
34
34
  no_proxy_fix
35
35
  octokit (~> 4.7)
36
36
  terminal-table (~> 1)
37
37
  diff-lcs (1.2.5)
38
- faraday (0.15.4)
38
+ faraday (1.0.1)
39
39
  multipart-post (>= 1.2, < 3)
40
- faraday-http-cache (2.0.0)
41
- faraday (~> 0.8)
40
+ faraday-http-cache (2.2.0)
41
+ faraday (>= 0.8)
42
42
  ffi (1.9.10)
43
43
  formatador (0.2.5)
44
- git (1.5.0)
44
+ git (1.7.0)
45
+ rchardet (~> 1.8)
45
46
  guard (2.14.0)
46
47
  formatador (>= 0.2.4)
47
48
  listen (>= 2.7, < 4.0)
@@ -56,8 +57,8 @@ GEM
56
57
  guard (~> 2.1)
57
58
  guard-compat (~> 1.1)
58
59
  rspec (>= 2.99.0, < 4.0)
59
- jaro_winkler (1.5.3)
60
- kramdown (2.1.0)
60
+ kramdown (2.2.1)
61
+ rexml
61
62
  kramdown-parser-gfm (1.1.0)
62
63
  kramdown (~> 2.0)
63
64
  listen (3.0.7)
@@ -77,11 +78,12 @@ GEM
77
78
  notiffany (0.1.0)
78
79
  nenv (~> 0.1)
79
80
  shellany (~> 0.0)
80
- octokit (4.14.0)
81
+ octokit (4.18.0)
82
+ faraday (>= 0.9)
81
83
  sawyer (~> 0.8.0, >= 0.5.3)
82
84
  open4 (1.3.4)
83
- parallel (1.17.0)
84
- parser (2.6.4.1)
85
+ parallel (1.19.1)
86
+ parser (2.7.1.3)
85
87
  ast (~> 2.4.0)
86
88
  prettybacon (0.0.2)
87
89
  bacon (~> 1.2)
@@ -89,12 +91,15 @@ GEM
89
91
  coderay (~> 1.1.0)
90
92
  method_source (~> 0.8.1)
91
93
  slop (~> 3.4)
92
- public_suffix (4.0.1)
94
+ public_suffix (4.0.5)
93
95
  rainbow (3.0.0)
94
96
  rake (13.0.1)
95
97
  rb-fsevent (0.9.7)
96
98
  rb-inotify (0.9.7)
97
99
  ffi (>= 0.5.0)
100
+ rchardet (1.8.0)
101
+ regexp_parser (1.7.1)
102
+ rexml (3.2.4)
98
103
  rspec (3.4.0)
99
104
  rspec-core (~> 3.4.0)
100
105
  rspec-expectations (~> 3.4.0)
@@ -108,13 +113,17 @@ GEM
108
113
  diff-lcs (>= 1.2.0, < 2.0)
109
114
  rspec-support (~> 3.4.0)
110
115
  rspec-support (3.4.1)
111
- rubocop (0.74.0)
112
- jaro_winkler (~> 1.5.1)
116
+ rubocop (0.85.1)
113
117
  parallel (~> 1.10)
114
- parser (>= 2.6)
118
+ parser (>= 2.7.0.1)
115
119
  rainbow (>= 2.2.2, < 4.0)
120
+ regexp_parser (>= 1.7)
121
+ rexml
122
+ rubocop-ast (>= 0.0.3)
116
123
  ruby-progressbar (~> 1.7)
117
- unicode-display_width (>= 1.4.0, < 1.7)
124
+ unicode-display_width (>= 1.4.0, < 2.0)
125
+ rubocop-ast (0.0.3)
126
+ parser (>= 2.7.0.1)
118
127
  ruby-progressbar (1.10.1)
119
128
  sawyer (0.8.2)
120
129
  addressable (>= 2.3.5)
@@ -124,7 +133,7 @@ GEM
124
133
  terminal-table (1.8.0)
125
134
  unicode-display_width (~> 1.1, >= 1.1.1)
126
135
  thor (0.19.1)
127
- unicode-display_width (1.6.0)
136
+ unicode-display_width (1.7.0)
128
137
  yard (0.9.20)
129
138
 
130
139
  PLATFORMS
@@ -146,7 +155,7 @@ DEPENDENCIES
146
155
  yard
147
156
 
148
157
  RUBY VERSION
149
- ruby 2.3.1p112
158
+ ruby 2.6.0p0
150
159
 
151
160
  BUNDLED WITH
152
161
  1.17.3
@@ -53,7 +53,7 @@ module Danger
53
53
  private
54
54
 
55
55
  def rubocop(files_to_lint, force_exclusion, only_report_new_offenses, config_path: nil)
56
- base_command = ['rubocop', '-f', 'json']
56
+ base_command = ['rubocop', '-f', 'json', '--only-recognized-file-types']
57
57
  base_command.concat(['--force-exclusion']) if force_exclusion
58
58
  base_command.concat(['--config', config_path.shellescape]) unless config_path.nil?
59
59
 
@@ -1,3 +1,3 @@
1
1
  module DangerRubocop
2
- VERSION = '0.7.2'.freeze
2
+ VERSION = '0.8.0'.freeze
3
3
  end
@@ -146,7 +146,7 @@ module Danger
146
146
 
147
147
  it 'handles a rubocop report for specified files' do
148
148
  allow(@rubocop).to receive(:`)
149
- .with('bundle exec rubocop -f json --config path/to/rubocop.yml spec/fixtures/ruby_file.rb')
149
+ .with('bundle exec rubocop -f json --only-recognized-file-types --config path/to/rubocop.yml spec/fixtures/ruby_file.rb')
150
150
  .and_return(response_ruby_file)
151
151
 
152
152
  # Do it
@@ -162,7 +162,7 @@ module Danger
162
162
 
163
163
  it 'includes cop names when include_cop_names is set' do
164
164
  allow(@rubocop).to receive(:`)
165
- .with('bundle exec rubocop -f json --config path/to/rubocop.yml spec/fixtures/ruby_file.rb')
165
+ .with('bundle exec rubocop -f json --only-recognized-file-types --config path/to/rubocop.yml spec/fixtures/ruby_file.rb')
166
166
  .and_return(response_ruby_file)
167
167
 
168
168
  # Do it
@@ -178,7 +178,7 @@ module Danger
178
178
 
179
179
  it 'handles a rubocop report for specified files (legacy)' do
180
180
  allow(@rubocop).to receive(:`)
181
- .with('bundle exec rubocop -f json spec/fixtures/ruby_file.rb')
181
+ .with('bundle exec rubocop -f json --only-recognized-file-types spec/fixtures/ruby_file.rb')
182
182
  .and_return(response_ruby_file)
183
183
 
184
184
  # Do it
@@ -194,7 +194,7 @@ module Danger
194
194
 
195
195
  it 'appends --force-exclusion argument when force_exclusion is set' do
196
196
  allow(@rubocop).to receive(:`)
197
- .with('bundle exec rubocop -f json --force-exclusion spec/fixtures/ruby_file.rb')
197
+ .with('bundle exec rubocop -f json --only-recognized-file-types --force-exclusion spec/fixtures/ruby_file.rb')
198
198
  .and_return(response_ruby_file)
199
199
 
200
200
  # Do it
@@ -214,7 +214,7 @@ module Danger
214
214
  .and_return(["spec/fixtures/another_ruby_file.rb"])
215
215
 
216
216
  allow(@rubocop).to receive(:`)
217
- .with('bundle exec rubocop -f json spec/fixtures/another_ruby_file.rb')
217
+ .with('bundle exec rubocop -f json --only-recognized-file-types spec/fixtures/another_ruby_file.rb')
218
218
  .and_return(response_another_ruby_file)
219
219
 
220
220
  @rubocop.lint
@@ -230,7 +230,7 @@ module Danger
230
230
  .and_return(['spec/fixtures/ruby_file.rb'])
231
231
  allow(@rubocop.git).to receive(:added_files).and_return([])
232
232
  allow(@rubocop).to receive(:`)
233
- .with('bundle exec rubocop -f json spec/fixtures/ruby_file.rb')
233
+ .with('bundle exec rubocop -f json --only-recognized-file-types spec/fixtures/ruby_file.rb')
234
234
  .and_return(response_ruby_file)
235
235
 
236
236
  @rubocop.lint
@@ -252,13 +252,13 @@ EOS
252
252
  .and_return(['spec/fixtures/ruby_file.rb'])
253
253
  allow(@rubocop.git).to receive(:added_files).and_return([])
254
254
  allow(@rubocop).to receive(:`)
255
- .with('bundle exec rubocop -f json spec/fixtures/ruby_file.rb')
255
+ .with('bundle exec rubocop -f json --only-recognized-file-types spec/fixtures/ruby_file.rb')
256
256
  .and_return(response_ruby_file)
257
257
 
258
258
  @rubocop.lint(inline_comment: true)
259
259
 
260
260
  expect(@rubocop.violation_report[:warnings].first.to_s)
261
- .to eq("Violation Don't do that! { sticky: false, file: spec/fixtures/ruby_file.rb, line: 13 }")
261
+ .to eq("Violation Don't do that! { sticky: false, file: spec/fixtures/ruby_file.rb, line: 13, type: warning }")
262
262
  end
263
263
  end
264
264
 
@@ -268,13 +268,13 @@ EOS
268
268
  .and_return(['spec/fixtures/ruby_file.rb'])
269
269
  allow(@rubocop.git).to receive(:added_files).and_return([])
270
270
  allow(@rubocop).to receive(:`)
271
- .with('bundle exec rubocop -f json spec/fixtures/ruby_file.rb')
271
+ .with('bundle exec rubocop -f json --only-recognized-file-types spec/fixtures/ruby_file.rb')
272
272
  .and_return(response_ruby_file)
273
273
 
274
274
  @rubocop.lint(fail_on_inline_comment: true, inline_comment: true)
275
275
 
276
276
  expect(@rubocop.violation_report[:errors].first.to_s)
277
- .to eq("Violation Don't do that! { sticky: false, file: spec/fixtures/ruby_file.rb, line: 13 }")
277
+ .to eq("Violation Don't do that! { sticky: false, file: spec/fixtures/ruby_file.rb, line: 13, type: error }")
278
278
  end
279
279
  end
280
280
  end
@@ -301,7 +301,7 @@ EOS
301
301
  .and_return(['spec/fixtures/ruby_file.rb'])
302
302
  allow(@rubocop.git).to receive(:added_files).and_return([])
303
303
  allow(@rubocop).to receive(:`)
304
- .with('bundle exec rubocop -f json spec/fixtures/ruby_file.rb')
304
+ .with('bundle exec rubocop -f json --only-recognized-file-types spec/fixtures/ruby_file.rb')
305
305
  .and_return(response_ruby_file)
306
306
 
307
307
  expect(@rubocop).to receive(:fail).with(fail_msg)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ash Furrow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-16 00:00:00.000000000 Z
11
+ date: 2020-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  - !ruby/object:Gem::Version
193
193
  version: '0'
194
194
  requirements: []
195
- rubygems_version: 3.0.6
195
+ rubygems_version: 3.0.1
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: A Danger plugin for running Ruby files through Rubocop.