autocop 0.2.6 → 0.3.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: 7270093617674ab4156d949cc705e122f23c9f815823a27b9025b120567003f3
4
- data.tar.gz: 4d77d880a4d280ae5265c32b36299f704c8f06879e4c494be255bd54a4a8cc7d
3
+ metadata.gz: 222f8b72e5bca61960478182b12f1b9fa6c34dc62f1860c85bb3d7bcba1e75a5
4
+ data.tar.gz: b56081269317c1744b12680617e72f038611e340945cae62cb322f664daa11aa
5
5
  SHA512:
6
- metadata.gz: 0d0750b91299852a4919054bd98ad5ab693f1bdd8b98826972f28dded06ce21b2f027e4e44677724609072a3ea07a1d63da10abe2dca64da8219c53d0e764776
7
- data.tar.gz: ddec4b0064cb93e54af3673017102ddb286f1a9d0b91684c9c8f0c402d92ff874e56b184ea7c753d506177e10c962965d086ca4f13e8915843136492ac0263e0
6
+ metadata.gz: baa39be874b1c8df80e65d63f48544cf263aa1df6a21a81f50da35d93a21d489a3d7139167bffc7935ed888cd8a59e5c8f9ebff19ce05cc1861c64cdf985adfb
7
+ data.tar.gz: d86edb25e549b97a47cba35826f564ae1c7f12b33206d14c67f3026bec1b5dab104714b9b32d635aaa75ca4966dc458ccd457411af30a047da4bb05781e4c078
@@ -383,7 +383,7 @@ Performance/RedundantMerge:
383
383
  Enabled: true
384
384
 
385
385
  # Supports --auto-correct
386
- Performance/RedundantSortBy:
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
- Performance/Sample:
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.
@@ -1,3 +1,8 @@
1
+ ## v0.3.0 - 2019-06-18
2
+
3
+ - Remove obsolete rules
4
+ - Change performance cops to style namespace
5
+
1
6
  ## v0.2.6 - 2019-03-05
2
7
 
3
8
  - Remove duplicated rules in .autocop-rubocop.yml
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- autocop (0.2.6)
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.2)
14
+ jaro_winkler (1.5.3)
15
15
  method_source (0.9.2)
16
- parallel (1.14.0)
17
- parser (2.6.0.0)
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.65.0)
37
+ rubocop (0.71.0)
40
38
  jaro_winkler (~> 1.5.1)
41
39
  parallel (~> 1.10)
42
- parser (>= 2.5, != 2.5.1.1)
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 (~> 1.4.0)
48
- rubocop-rspec (1.32.0)
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.0)
51
- unicode-display_width (1.4.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.4
60
+ 1.16.5
@@ -1,3 +1,3 @@
1
1
  module Autocop
2
- VERSION = '0.2.6'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  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.2.6
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-03-05 00:00:00.000000000 Z
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
- rubyforge_project:
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