danger-rubocop 0.8.1 → 0.9.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: bb5d7eb8397ac2e653dbb40f1d36578709c9167d1c58edcf03755317bae9a1d9
4
- data.tar.gz: 29663b37df5566b315562381f690738a96fde57537be19a3aaa2c6ac9d227519
3
+ metadata.gz: a3abbdb817a34c89263a3e43389e0ad1c241eceb220da6ff60d4171dbd82724b
4
+ data.tar.gz: 7790b03ff4cffe993a9e21ada5831169e55af7811bb06b2b6dc800ee0eab72c4
5
5
  SHA512:
6
- metadata.gz: 7786b81d1acd3476b3a64c672c9a1164bda1f427c29e1379a84bed948a6d46eb1dfe506d7b1316246d61c4a710508e1c15b5378fbaa51de111fd9aba78b6a0dc
7
- data.tar.gz: e7e7aa14b45ad941d1be7a1e39f070a1f01e124c97e3eb2c099cd8934ca113018a834a5e51fa71b765a82807b3cbda1e6a25f4a7111cc50f89138be17df1048e
6
+ metadata.gz: a6532f9058d5f6f5db6fd27c1197b84966ef5e786fd9213c24974d618477c5f7eabfadb8f072585a3e6c413f08d2f67aa94610486c599e91fc8fc528e2a2d36e
7
+ data.tar.gz: c678e3db688d226c8d25c43bc895f046519b14751bb0b3b670b124ca8a90f884d9695b2fb936c98cd38ad7899127b4539d8eb3b9e4a39d622a23f758f9e27c34
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.8.1)
4
+ danger-rubocop (0.8.0)
5
5
  danger
6
6
  rubocop
7
7
 
@@ -21,7 +21,7 @@ GEM
21
21
  colored2 (3.1.2)
22
22
  cork (0.3.0)
23
23
  colored2 (~> 3.1)
24
- danger (8.0.4)
24
+ danger (8.0.1)
25
25
  claide (~> 1.0)
26
26
  claide-plugins (>= 0.9.2)
27
27
  colored2 (~> 3.1)
@@ -82,9 +82,9 @@ GEM
82
82
  faraday (>= 0.9)
83
83
  sawyer (~> 0.8.0, >= 0.5.3)
84
84
  open4 (1.3.4)
85
- parallel (1.19.2)
86
- parser (2.7.1.4)
87
- ast (~> 2.4.1)
85
+ parallel (1.19.1)
86
+ parser (2.7.1.3)
87
+ ast (~> 2.4.0)
88
88
  prettybacon (0.0.2)
89
89
  bacon (~> 1.2)
90
90
  pry (0.10.3)
@@ -113,17 +113,17 @@ GEM
113
113
  diff-lcs (>= 1.2.0, < 2.0)
114
114
  rspec-support (~> 3.4.0)
115
115
  rspec-support (3.4.1)
116
- rubocop (0.89.1)
116
+ rubocop (0.85.1)
117
117
  parallel (~> 1.10)
118
- parser (>= 2.7.1.1)
118
+ parser (>= 2.7.0.1)
119
119
  rainbow (>= 2.2.2, < 4.0)
120
120
  regexp_parser (>= 1.7)
121
121
  rexml
122
- rubocop-ast (>= 0.3.0, < 1.0)
122
+ rubocop-ast (>= 0.0.3)
123
123
  ruby-progressbar (~> 1.7)
124
124
  unicode-display_width (>= 1.4.0, < 2.0)
125
- rubocop-ast (0.3.0)
126
- parser (>= 2.7.1.4)
125
+ rubocop-ast (0.0.3)
126
+ parser (>= 2.7.0.1)
127
127
  ruby-progressbar (1.10.1)
128
128
  sawyer (0.8.2)
129
129
  addressable (>= 2.3.5)
@@ -155,7 +155,7 @@ DEPENDENCIES
155
155
  yard
156
156
 
157
157
  RUBY VERSION
158
- ruby 2.3.1p112
158
+ ruby 2.6.0p0
159
159
 
160
160
  BUNDLED WITH
161
161
  1.17.3
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.require_paths = ['lib']
19
19
 
20
20
  spec.add_dependency 'danger'
21
- spec.add_dependency 'rubocop'
21
+ spec.add_dependency 'rubocop', '~> 0.83'
22
22
 
23
23
  # General ruby development
24
24
  spec.add_development_dependency 'bundler', '~> 1.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.8.1'.freeze
2
+ VERSION = '0.9.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,7 +252,7 @@ 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)
@@ -268,7 +268,7 @@ 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)
@@ -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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ash Furrow
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: rubocop
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '0.83'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '0.83'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement