autocop 0.2.6 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.autocop-rubocop.yml +2 -35
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +11 -15
- data/lib/autocop/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 222f8b72e5bca61960478182b12f1b9fa6c34dc62f1860c85bb3d7bcba1e75a5
|
|
4
|
+
data.tar.gz: b56081269317c1744b12680617e72f038611e340945cae62cb322f664daa11aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: baa39be874b1c8df80e65d63f48544cf263aa1df6a21a81f50da35d93a21d489a3d7139167bffc7935ed888cd8a59e5c8f9ebff19ce05cc1861c64cdf985adfb
|
|
7
|
+
data.tar.gz: d86edb25e549b97a47cba35826f564ae1c7f12b33206d14c67f3026bec1b5dab104714b9b32d635aaa75ca4966dc458ccd457411af30a047da4bb05781e4c078
|
data/.autocop-rubocop.yml
CHANGED
|
@@ -383,7 +383,7 @@ Performance/RedundantMerge:
|
|
|
383
383
|
Enabled: true
|
|
384
384
|
|
|
385
385
|
# Supports --auto-correct
|
|
386
|
-
|
|
386
|
+
Style/RedundantSortBy:
|
|
387
387
|
Description: Use `sort` instead of `sort_by { |x| x }`.
|
|
388
388
|
Enabled: true
|
|
389
389
|
|
|
@@ -394,7 +394,7 @@ Performance/ReverseEach:
|
|
|
394
394
|
Enabled: true
|
|
395
395
|
|
|
396
396
|
# Supports --auto-correct
|
|
397
|
-
|
|
397
|
+
Style/Sample:
|
|
398
398
|
Description: Use `sample` instead of `shuffle.first`, `shuffle.last`, and `shuffle[Fixnum]`.
|
|
399
399
|
Reference: https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code
|
|
400
400
|
Enabled: true
|
|
@@ -983,17 +983,6 @@ Layout/FirstMethodParameterLineBreak:
|
|
|
983
983
|
parameter definition.
|
|
984
984
|
Enabled: false
|
|
985
985
|
|
|
986
|
-
# Supports --auto-correct
|
|
987
|
-
Layout/FirstParameterIndentation:
|
|
988
|
-
Description: Checks the indentation of the first parameter in a method call.
|
|
989
|
-
Enabled: true
|
|
990
|
-
EnforcedStyle: special_for_inner_method_call_in_parentheses
|
|
991
|
-
SupportedStyles:
|
|
992
|
-
- consistent
|
|
993
|
-
- special_for_inner_method_call
|
|
994
|
-
- special_for_inner_method_call_in_parentheses
|
|
995
|
-
IndentationWidth:
|
|
996
|
-
|
|
997
986
|
Lint/FlipFlop:
|
|
998
987
|
Description: Checks for flip flops
|
|
999
988
|
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-flip-flops
|
|
@@ -1074,17 +1063,6 @@ Style/IfWithSemicolon:
|
|
|
1074
1063
|
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs
|
|
1075
1064
|
Enabled: true
|
|
1076
1065
|
|
|
1077
|
-
# Supports --auto-correct
|
|
1078
|
-
Layout/IndentArray:
|
|
1079
|
-
Description: Checks the indentation of the first element in an array literal.
|
|
1080
|
-
Enabled: true
|
|
1081
|
-
EnforcedStyle: special_inside_parentheses
|
|
1082
|
-
SupportedStyles:
|
|
1083
|
-
- special_inside_parentheses
|
|
1084
|
-
- consistent
|
|
1085
|
-
- align_brackets
|
|
1086
|
-
IndentationWidth:
|
|
1087
|
-
|
|
1088
1066
|
# Supports --auto-correct
|
|
1089
1067
|
Layout/IndentAssignment:
|
|
1090
1068
|
Description: Checks the indentation of the first line of the right-hand-side of a
|
|
@@ -1092,17 +1070,6 @@ Layout/IndentAssignment:
|
|
|
1092
1070
|
Enabled: true
|
|
1093
1071
|
IndentationWidth:
|
|
1094
1072
|
|
|
1095
|
-
# Supports --auto-correct
|
|
1096
|
-
Layout/IndentHash:
|
|
1097
|
-
Description: Checks the indentation of the first key in a hash literal.
|
|
1098
|
-
Enabled: true
|
|
1099
|
-
EnforcedStyle: special_inside_parentheses
|
|
1100
|
-
SupportedStyles:
|
|
1101
|
-
- special_inside_parentheses
|
|
1102
|
-
- consistent
|
|
1103
|
-
- align_braces
|
|
1104
|
-
IndentationWidth:
|
|
1105
|
-
|
|
1106
1073
|
# Supports --auto-correct
|
|
1107
1074
|
Layout/IndentationConsistency:
|
|
1108
1075
|
Description: Keep indentation straight.
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
autocop (0.
|
|
4
|
+
autocop (0.3.0)
|
|
5
5
|
rubocop (>= 0.52.1)
|
|
6
6
|
rubocop-rspec (>= 1.22.1)
|
|
7
7
|
|
|
@@ -11,16 +11,14 @@ GEM
|
|
|
11
11
|
ast (2.4.0)
|
|
12
12
|
coderay (1.1.2)
|
|
13
13
|
diff-lcs (1.3)
|
|
14
|
-
jaro_winkler (1.5.
|
|
14
|
+
jaro_winkler (1.5.3)
|
|
15
15
|
method_source (0.9.2)
|
|
16
|
-
parallel (1.
|
|
17
|
-
parser (2.6.
|
|
16
|
+
parallel (1.17.0)
|
|
17
|
+
parser (2.6.3.0)
|
|
18
18
|
ast (~> 2.4.0)
|
|
19
|
-
powerpack (0.1.2)
|
|
20
19
|
pry (0.12.2)
|
|
21
20
|
coderay (~> 1.1.0)
|
|
22
21
|
method_source (~> 0.9.0)
|
|
23
|
-
psych (3.1.0)
|
|
24
22
|
rainbow (3.0.0)
|
|
25
23
|
rake (12.3.2)
|
|
26
24
|
rspec (3.8.0)
|
|
@@ -36,19 +34,17 @@ GEM
|
|
|
36
34
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
37
35
|
rspec-support (~> 3.8.0)
|
|
38
36
|
rspec-support (3.8.0)
|
|
39
|
-
rubocop (0.
|
|
37
|
+
rubocop (0.71.0)
|
|
40
38
|
jaro_winkler (~> 1.5.1)
|
|
41
39
|
parallel (~> 1.10)
|
|
42
|
-
parser (>= 2.
|
|
43
|
-
powerpack (~> 0.1)
|
|
44
|
-
psych (>= 3.1.0)
|
|
40
|
+
parser (>= 2.6)
|
|
45
41
|
rainbow (>= 2.2.2, < 4.0)
|
|
46
42
|
ruby-progressbar (~> 1.7)
|
|
47
|
-
unicode-display_width (
|
|
48
|
-
rubocop-rspec (1.
|
|
43
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
|
44
|
+
rubocop-rspec (1.33.0)
|
|
49
45
|
rubocop (>= 0.60.0)
|
|
50
|
-
ruby-progressbar (1.10.
|
|
51
|
-
unicode-display_width (1.
|
|
46
|
+
ruby-progressbar (1.10.1)
|
|
47
|
+
unicode-display_width (1.6.0)
|
|
52
48
|
|
|
53
49
|
PLATFORMS
|
|
54
50
|
ruby
|
|
@@ -61,4 +57,4 @@ DEPENDENCIES
|
|
|
61
57
|
rspec
|
|
62
58
|
|
|
63
59
|
BUNDLED WITH
|
|
64
|
-
1.16.
|
|
60
|
+
1.16.5
|
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.3.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-06-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|
|
@@ -139,8 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
139
139
|
- !ruby/object:Gem::Version
|
|
140
140
|
version: '0'
|
|
141
141
|
requirements: []
|
|
142
|
-
|
|
143
|
-
rubygems_version: 2.7.6
|
|
142
|
+
rubygems_version: 3.0.3
|
|
144
143
|
signing_key:
|
|
145
144
|
specification_version: 4
|
|
146
145
|
summary: Autolist ruby style guide
|