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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bc650e535691f0d09ccd90f59e3f3f0eca7a977f1f3cb5c623fd8c05cc80eb3
4
- data.tar.gz: 41a869f59a5703a02b08af096dfa2236932c35dafee36edb19891109afb5f443
3
+ metadata.gz: 85133441c55a8dd1c268d125650c81856e12382c3cae1740a1bae095f741d30a
4
+ data.tar.gz: 6783efc578fb57bfeaff4271cec5f96f3aa0c49172b428f5515202f2dd83bc0e
5
5
  SHA512:
6
- metadata.gz: 165ad594b4a3c4b397fd579a090a611fd4a5f1a2bd1759ac12131096b33a1d4de4ad63f8c90cf89f9080e09f91ebe3ccd683b06f637150f6dbe059e6add961d8
7
- data.tar.gz: e376201db12a2f62a92cd3a3ac1dae6e555cc4ba90828b2a82504e593a3d3223bceadeb9d8f7606e965f6b28b9c1ca2e69cabc89510fd23a055e65e360320bd6
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 ||= begin
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
@@ -1,3 +1,3 @@
1
1
  module Nucop
2
- VERSION = "0.12.1"
2
+ VERSION = "0.12.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nucop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Schweier