rubocop-stylecheck 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: a660893931884643cf4ae2aebb2e377dd559131b
4
- data.tar.gz: 7b5e3aaf96fe5b3d5c581fb9f723a8da0a80d75e
3
+ metadata.gz: 968038516430ec2b7d4c74b20a51ccf9e2e2f553
4
+ data.tar.gz: 24b4f04eb27a2a97e177f40e5326fe5004ca0f1e
5
5
  SHA512:
6
- metadata.gz: c8f70943ffdead8492f6f2df8b92f2be3aa9ea3ff3f70f0ff6fa28c7d51f1a9bbfca2defa6fb1ecbb1951a83ee07c2523f1d598e616e7196d48da1cbae6ae13b
7
- data.tar.gz: fdd19e53cef94df422cc179258da8f2af822b6afaf39b52aab2d1d3a546a790d18934f6135ebf383ee0df7f158d58b4166f4a2b69a8ad40555cf4269fd49f6c3
6
+ metadata.gz: 82775af1605c9e436db189c733ef506fdbb7fa899e3935c3d8307efb1393a11b88051b225fa9c7840c1878bff3f69d9c3628b0e4d368aa8278cfef1b23121bcf
7
+ data.tar.gz: bc84e703984623fe55ffa97b39dce10043a9a5aed995d0a2f2c71cb429ce75d6d5bfacec0ddcfa85b79d8b300272ea7bd2a5297f8b51ff64e18578f1b0f8ac8f
@@ -3,7 +3,7 @@ require "rubocop/stylecheck/version"
3
3
  module Rubocop
4
4
  module Stylecheck
5
5
  class << self
6
- attr_accessor :config_path, :direct
6
+ attr_accessor :config_path
7
7
 
8
8
  def project_config_path
9
9
  File.join(Dir.pwd, ".rubocop.yml")
@@ -3,29 +3,6 @@ module Rubocop
3
3
  module Cli
4
4
  class << self
5
5
  def run(options)
6
- if Rubocop::Stylecheck.direct
7
- direct_run(options)
8
- else
9
- run_via_sh(options)
10
- end
11
- end
12
-
13
- def direct_run(options)
14
- require "rubocop"
15
- require "benchmark"
16
-
17
- cli = RuboCop::CLI.new
18
- result = 0
19
-
20
- time = Benchmark.realtime do
21
- result = cli.run(options)
22
- end
23
-
24
- puts "Finished in #{time} seconds" if cli.options[:debug]
25
- exit result
26
- end
27
-
28
- def run_via_sh(options)
29
6
  system "bundle exec rubocop #{options.join(' ')}" do |ok, _res|
30
7
  abort "Fix code style errors" unless ok
31
8
  end
@@ -1,5 +1,5 @@
1
1
  module Rubocop
2
2
  module Stylecheck
3
- VERSION = "0.1.2".freeze
3
+ VERSION = "0.1.3".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-stylecheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Wawer