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 +4 -4
- data/.autocop-rubocop.yml +4 -7
- data/.gitignore +2 -0
- data/.tool-versions +1 -1
- data/Gemfile.lock +21 -21
- data/Rakefile +4 -2
- data/lib/autocop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77c1213914cb1966245b4919bc74a5c3dc624ef37dba0655dd0a43f13d6f523f
|
4
|
+
data.tar.gz: 19445f40d8011216e0348371251873c13abc51665e0610cdcfe2adc6a5ae2482
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56141fb6adbc5970506860068753da21b3e137b62ba2345ca4558d574a2069607d1608aede4377c90fd06b390c5cedb03d2d2a7ae7422e3c013d6321f7d809f5
|
7
|
+
data.tar.gz: 3c1aa8392847cf7afa2225915ab687e26a5a2fc719a2ff856f229a7885ef55cc6cf5f1df20292dc16dc51b3796ea629dc5b919806406e24591a762741574f4f4
|
data/.autocop-rubocop.yml
CHANGED
@@ -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/
|
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/
|
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/
|
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/
|
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
data/.tool-versions
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby 2.6.
|
1
|
+
ruby 2.6.4
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
autocop (0.
|
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.
|
16
|
+
jaro_winkler (1.5.4)
|
17
17
|
method_source (0.9.2)
|
18
|
-
parallel (1.
|
19
|
-
parser (2.6.
|
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 (
|
27
|
-
rspec (3.
|
28
|
-
rspec-core (~> 3.
|
29
|
-
rspec-expectations (~> 3.
|
30
|
-
rspec-mocks (~> 3.
|
31
|
-
rspec-core (3.
|
32
|
-
rspec-support (~> 3.
|
33
|
-
rspec-expectations (3.
|
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.
|
36
|
-
rspec-mocks (3.
|
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.
|
39
|
-
rspec-support (3.
|
40
|
-
rubocop (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.
|
47
|
+
rubocop-performance (1.5.1)
|
48
48
|
rubocop (>= 0.71.0)
|
49
|
-
rubocop-rails (2.3.
|
49
|
+
rubocop-rails (2.3.2)
|
50
50
|
rack (>= 1.1)
|
51
51
|
rubocop (>= 0.72.0)
|
52
|
-
rubocop-rspec (1.
|
53
|
-
rubocop (>= 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
|
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::
|
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'
|
data/lib/autocop/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|