autocop 0.3.2 → 0.4.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: a7bdf3baeafccf76602a77558a8dd84554241cc3e4e6abc8e96e7af520a2b742
4
- data.tar.gz: 6c3996caf3c246f89c6252a665b2d89cdacec6e78706bb9d7f907d38725ec0a1
3
+ metadata.gz: 77c1213914cb1966245b4919bc74a5c3dc624ef37dba0655dd0a43f13d6f523f
4
+ data.tar.gz: 19445f40d8011216e0348371251873c13abc51665e0610cdcfe2adc6a5ae2482
5
5
  SHA512:
6
- metadata.gz: 624ae85876a62c0bf64360a583a7c7d956a7c9b2cd32d471c539d526e27ae3dd1a2c1b525bd7ce87cb256fd5fdd71409395f5c94312a959da4074b495314f648
7
- data.tar.gz: ff8c455e21f10f105b1c2d8e0fcde2dea7ec7ed4d1df099de4c456868460c250628ded9388297525b70992fa4687d720d344ec141792ef467d170441c100ac84
6
+ metadata.gz: 56141fb6adbc5970506860068753da21b3e137b62ba2345ca4558d574a2069607d1608aede4377c90fd06b390c5cedb03d2d2a7ae7422e3c013d6321f7d809f5
7
+ data.tar.gz: 3c1aa8392847cf7afa2225915ab687e26a5a2fc719a2ff856f229a7885ef55cc6cf5f1df20292dc16dc51b3796ea629dc5b919806406e24591a762741574f4f4
@@ -25,9 +25,6 @@ AllCops:
25
25
  Rails:
26
26
  Enabled: true
27
27
 
28
- Documentation:
29
- Enabled: false
30
-
31
28
  Bundler/OrderedGems:
32
29
  TreatCommentsAsGroupSeparators: true
33
30
  Enabled: true
@@ -185,7 +182,7 @@ Lint/UnderscorePrefixedVariableName:
185
182
  Enabled: true
186
183
 
187
184
  # Supports --auto-correct
188
- Lint/UnneededCopDisableDirective:
185
+ Lint/RedundantCopDisableDirective:
189
186
  Description: 'Checks for rubocop:disable comments that can be removed. Note: this
190
187
  cop is not disabled when disabling all cops. It must be explicitly disabled.'
191
188
  Enabled: true
@@ -1812,17 +1809,17 @@ Style/UnlessElse:
1812
1809
  Enabled: true
1813
1810
 
1814
1811
  # Supports --auto-correct
1815
- Style/UnneededCapitalW:
1812
+ Style/RedundantCapitalW:
1816
1813
  Description: Checks for %W when interpolation is not needed.
1817
1814
  Enabled: true
1818
1815
 
1819
1816
  # Supports --auto-correct
1820
- Style/UnneededInterpolation:
1817
+ Style/RedundantInterpolation:
1821
1818
  Description: Checks for strings that are just an interpolated expression.
1822
1819
  Enabled: true
1823
1820
 
1824
1821
  # Supports --auto-correct
1825
- Style/UnneededPercentQ:
1822
+ Style/RedundantPercentQ:
1826
1823
  Description: Checks for %q/%Q when single quotes or double quotes would do.
1827
1824
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q
1828
1825
  Enabled: true
data/.gitignore CHANGED
@@ -7,6 +7,8 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
 
10
+ .idea
11
+
10
12
  # rspec failure tracking
11
13
  .rspec_status
12
14
 
@@ -1 +1 @@
1
- ruby 2.6.2
1
+ ruby 2.6.4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- autocop (0.3.2)
4
+ autocop (0.4.0)
5
5
  rubocop (>= 0.52.1)
6
6
  rubocop-performance (>= 1.4.1)
7
7
  rubocop-rails (>= 2.3.1)
@@ -13,44 +13,44 @@ GEM
13
13
  ast (2.4.0)
14
14
  coderay (1.1.2)
15
15
  diff-lcs (1.3)
16
- jaro_winkler (1.5.3)
16
+ jaro_winkler (1.5.4)
17
17
  method_source (0.9.2)
18
- parallel (1.17.0)
19
- parser (2.6.3.0)
18
+ parallel (1.19.0)
19
+ parser (2.6.5.0)
20
20
  ast (~> 2.4.0)
21
21
  pry (0.12.2)
22
22
  coderay (~> 1.1.0)
23
23
  method_source (~> 0.9.0)
24
24
  rack (2.0.7)
25
25
  rainbow (3.0.0)
26
- rake (12.3.3)
27
- rspec (3.8.0)
28
- rspec-core (~> 3.8.0)
29
- rspec-expectations (~> 3.8.0)
30
- rspec-mocks (~> 3.8.0)
31
- rspec-core (3.8.0)
32
- rspec-support (~> 3.8.0)
33
- rspec-expectations (3.8.1)
26
+ rake (13.0.0)
27
+ rspec (3.9.0)
28
+ rspec-core (~> 3.9.0)
29
+ rspec-expectations (~> 3.9.0)
30
+ rspec-mocks (~> 3.9.0)
31
+ rspec-core (3.9.0)
32
+ rspec-support (~> 3.9.0)
33
+ rspec-expectations (3.9.0)
34
34
  diff-lcs (>= 1.2.0, < 2.0)
35
- rspec-support (~> 3.8.0)
36
- rspec-mocks (3.8.0)
35
+ rspec-support (~> 3.9.0)
36
+ rspec-mocks (3.9.0)
37
37
  diff-lcs (>= 1.2.0, < 2.0)
38
- rspec-support (~> 3.8.0)
39
- rspec-support (3.8.0)
40
- rubocop (0.74.0)
38
+ rspec-support (~> 3.9.0)
39
+ rspec-support (3.9.0)
40
+ rubocop (0.76.0)
41
41
  jaro_winkler (~> 1.5.1)
42
42
  parallel (~> 1.10)
43
43
  parser (>= 2.6)
44
44
  rainbow (>= 2.2.2, < 4.0)
45
45
  ruby-progressbar (~> 1.7)
46
46
  unicode-display_width (>= 1.4.0, < 1.7)
47
- rubocop-performance (1.4.1)
47
+ rubocop-performance (1.5.1)
48
48
  rubocop (>= 0.71.0)
49
- rubocop-rails (2.3.1)
49
+ rubocop-rails (2.3.2)
50
50
  rack (>= 1.1)
51
51
  rubocop (>= 0.72.0)
52
- rubocop-rspec (1.35.0)
53
- rubocop (>= 0.60.0)
52
+ rubocop-rspec (1.36.0)
53
+ rubocop (>= 0.68.1)
54
54
  ruby-progressbar (1.10.1)
55
55
  unicode-display_width (1.6.0)
56
56
 
data/Rakefile CHANGED
@@ -4,7 +4,8 @@ require 'rubygems'
4
4
  require 'bundler'
5
5
  require 'bundler/gem_tasks'
6
6
  require 'rspec/core/rake_task'
7
- require 'rubocop/rake_task'
7
+ require 'rubocop'
8
+ require 'rubocop/cli'
8
9
 
9
10
  Bundler::GemHelper.install_tasks
10
11
 
@@ -14,7 +15,8 @@ task default: :test
14
15
  # Rubocop
15
16
  desc 'Run Rubocop lint checks'
16
17
  task :rubocop do
17
- RuboCop::RakeTask.new
18
+ result = RuboCop::CLI.new.run(%w[-c .autocop-rubocop.yml])
19
+ exit result unless result.zero?
18
20
  end
19
21
 
20
22
  desc 'Run specs'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Autocop
4
- VERSION = '0.3.2'
4
+ VERSION = '0.4.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Autolist Engineering
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-27 00:00:00.000000000 Z
11
+ date: 2019-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop