danger-rubocop 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +12 -12
- data/lib/danger_plugin.rb +1 -1
- data/lib/version.rb +1 -1
- data/spec/danger_plugin_spec.rb +9 -9
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb5d7eb8397ac2e653dbb40f1d36578709c9167d1c58edcf03755317bae9a1d9
|
4
|
+
data.tar.gz: 29663b37df5566b315562381f690738a96fde57537be19a3aaa2c6ac9d227519
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7786b81d1acd3476b3a64c672c9a1164bda1f427c29e1379a84bed948a6d46eb1dfe506d7b1316246d61c4a710508e1c15b5378fbaa51de111fd9aba78b6a0dc
|
7
|
+
data.tar.gz: e7e7aa14b45ad941d1be7a1e39f070a1f01e124c97e3eb2c099cd8934ca113018a834a5e51fa71b765a82807b3cbda1e6a25f4a7111cc50f89138be17df1048e
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
danger-rubocop (0.8.
|
4
|
+
danger-rubocop (0.8.1)
|
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.
|
24
|
+
danger (8.0.4)
|
25
25
|
claide (~> 1.0)
|
26
26
|
claide-plugins (>= 0.9.2)
|
27
27
|
colored2 (~> 3.1)
|
@@ -57,7 +57,7 @@ GEM
|
|
57
57
|
guard (~> 2.1)
|
58
58
|
guard-compat (~> 1.1)
|
59
59
|
rspec (>= 2.99.0, < 4.0)
|
60
|
-
kramdown (2.
|
60
|
+
kramdown (2.3.0)
|
61
61
|
rexml
|
62
62
|
kramdown-parser-gfm (1.1.0)
|
63
63
|
kramdown (~> 2.0)
|
@@ -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.
|
86
|
-
parser (2.7.1.
|
87
|
-
ast (~> 2.4.
|
85
|
+
parallel (1.19.2)
|
86
|
+
parser (2.7.1.4)
|
87
|
+
ast (~> 2.4.1)
|
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.
|
116
|
+
rubocop (0.89.1)
|
117
117
|
parallel (~> 1.10)
|
118
|
-
parser (>= 2.7.
|
118
|
+
parser (>= 2.7.1.1)
|
119
119
|
rainbow (>= 2.2.2, < 4.0)
|
120
120
|
regexp_parser (>= 1.7)
|
121
121
|
rexml
|
122
|
-
rubocop-ast (>= 0.0.
|
122
|
+
rubocop-ast (>= 0.3.0, < 1.0)
|
123
123
|
ruby-progressbar (~> 1.7)
|
124
124
|
unicode-display_width (>= 1.4.0, < 2.0)
|
125
|
-
rubocop-ast (0.0
|
126
|
-
parser (>= 2.7.
|
125
|
+
rubocop-ast (0.3.0)
|
126
|
+
parser (>= 2.7.1.4)
|
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.
|
158
|
+
ruby 2.3.1p112
|
159
159
|
|
160
160
|
BUNDLED WITH
|
161
161
|
1.17.3
|
data/lib/danger_plugin.rb
CHANGED
@@ -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']
|
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
|
|
data/lib/version.rb
CHANGED
data/spec/danger_plugin_spec.rb
CHANGED
@@ -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 --
|
149
|
+
.with('bundle exec rubocop -f json --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 --
|
165
|
+
.with('bundle exec rubocop -f json --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
|
181
|
+
.with('bundle exec rubocop -f json 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 --
|
197
|
+
.with('bundle exec rubocop -f json --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
|
217
|
+
.with('bundle exec rubocop -f json 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
|
233
|
+
.with('bundle exec rubocop -f json 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
|
255
|
+
.with('bundle exec rubocop -f json 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
|
271
|
+
.with('bundle exec rubocop -f json 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
|
304
|
+
.with('bundle exec rubocop -f json 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.8.
|
4
|
+
version: 0.8.1
|
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-
|
11
|
+
date: 2020-08-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.
|
195
|
+
rubygems_version: 3.0.8
|
196
196
|
signing_key:
|
197
197
|
specification_version: 4
|
198
198
|
summary: A Danger plugin for running Ruby files through Rubocop.
|