nucop 0.12.1 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nucop/cli.rb +6 -5
- data/lib/nucop/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85133441c55a8dd1c268d125650c81856e12382c3cae1740a1bae095f741d30a
|
4
|
+
data.tar.gz: 6783efc578fb57bfeaff4271cec5f96f3aa0c49172b428f5515202f2dd83bc0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 578761a6a08a4888684f5c66fb2c2e273ec732e496c6ccd78da9e9dcb302e166474c61a4683fe8f96845b6b4ea80e0d3e9576112841dbc581ebd21e044932990
|
7
|
+
data.tar.gz: 5820e47e0a8d7967ebaa882c9beff47adc85efc8be224fccf9749cba31b9eb494d28cfee58cb76e039d7869f02709dbdfbbc33e27a94070f796f5661d377e763
|
data/lib/nucop/cli.rb
CHANGED
@@ -12,13 +12,12 @@ module Nucop
|
|
12
12
|
private
|
13
13
|
|
14
14
|
def load_custom_options
|
15
|
-
@_load_custom_options ||=
|
15
|
+
@_load_custom_options ||=
|
16
16
|
if File.exist?(CONFIGURATION_FILEPATH)
|
17
17
|
default_configuration.merge(YAML.load_file(CONFIGURATION_FILEPATH))
|
18
18
|
else
|
19
19
|
default_configuration
|
20
20
|
end
|
21
|
-
end
|
22
21
|
end
|
23
22
|
|
24
23
|
def default_configuration
|
@@ -240,6 +239,7 @@ module Nucop
|
|
240
239
|
command = [
|
241
240
|
"bundle exec rubocop",
|
242
241
|
"--parallel",
|
242
|
+
"--no-server",
|
243
243
|
"--format Nucop::Formatters::GitDiffFormatter",
|
244
244
|
"--config #{options[:rubocop_todo_config_file]}",
|
245
245
|
multi_line_to_single_line(diff_files).to_s
|
@@ -265,7 +265,7 @@ module Nucop
|
|
265
265
|
|
266
266
|
files = todo_config.fetch(todo.name, {}).fetch("Exclude", [])
|
267
267
|
|
268
|
-
system("bundle exec rubocop --parallel --config #{options[:rubocop_todo_config_file]} --only #{todo.name} #{files.join(' ')}")
|
268
|
+
system("bundle exec rubocop --no-server --parallel --config #{options[:rubocop_todo_config_file]} --only #{todo.name} #{files.join(' ')}")
|
269
269
|
puts("*" * 100) if options["n"] > 1
|
270
270
|
puts
|
271
271
|
end
|
@@ -335,7 +335,8 @@ module Nucop
|
|
335
335
|
rubocop_options = [
|
336
336
|
"--auto-gen-config",
|
337
337
|
"--config #{options[:rubocop_todo_config_file]}",
|
338
|
-
"--exclude-limit #{options[:"exclude-limit"]}"
|
338
|
+
"--exclude-limit #{options[:"exclude-limit"]}",
|
339
|
+
"--no-server"
|
339
340
|
]
|
340
341
|
|
341
342
|
rubocop_command = "DISABLE_SPRING=1 bundle exec rubocop #{rubocop_options.join(' ')} #{rubocop_gem_requires.join(' ')}"
|
@@ -376,7 +377,7 @@ module Nucop
|
|
376
377
|
|
377
378
|
def enabled_cops
|
378
379
|
@_enabled_cops ||= YAML
|
379
|
-
.safe_load(`bundle exec rubocop --parallel --show-cops`, permitted_classes: [Regexp, Symbol])
|
380
|
+
.safe_load(`bundle exec rubocop --no-server --parallel --show-cops`, permitted_classes: [Regexp, Symbol])
|
380
381
|
.select { |_, config| config["Enabled"] }
|
381
382
|
.map(&:first)
|
382
383
|
end
|
data/lib/nucop/version.rb
CHANGED