rubocopital 0.6.1 → 0.7.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: ff4362c9bd91b4872f76018d4042824a45b4914b6f329145d640d5f25f722785
4
- data.tar.gz: 163e540e89678a687949e71ef77b731891a2aae6629d35984ae76e91f70d7401
3
+ metadata.gz: 8be767acbb954ab989a1dac67cfd61535fb49ad0d6aa29137a686938c68082c9
4
+ data.tar.gz: 64c899d86752ccad71e7ca8231edf2dd716588ad5d2fa74f31f67142169cb05c
5
5
  SHA512:
6
- metadata.gz: 53d7a08e5ed0ce83c0ebe7656ed0f1d47e6b370d18aa29acf925b9d942b2a28dfb0c17e7e7c2756de0d3513b035a8b0f12db7bc95221646a94cf19754ae1fd74
7
- data.tar.gz: c12f10c88f01c738450d0853d7a7970b3805061ffe4295ed36c83aadcee0a711b22da43d026676da543c95d4b6e633480dfd20ff9dccb60a1122067a5356bcba
6
+ metadata.gz: 1d021a1ac67651e563860021f75922fb5c898af902b85c51ae33d37c15f5bf222bd2b7a7b2a5ada4ba51a0e996667041821d0777d6747192ff98e03db542d46e
7
+ data.tar.gz: bcf7e8eb2688d6a888346d6acdc09dcc9fe0918f164046806a8884bf759d818eba8511a270e8c1efa70a60aca56c6dd3e58a4cfc590780d4fc9188349836a355
@@ -1,7 +1,40 @@
1
1
  require: rubocop-performance
2
2
 
3
+ Performance/AncestorsInclude:
4
+ Enabled: true
5
+
6
+ Performance/StringInclude:
7
+ Enabled: true
8
+
3
9
  Performance/ChainArrayAllocation:
4
10
  Enabled: true
5
11
 
6
12
  Performance/OpenStruct:
7
13
  Enabled: true
14
+
15
+ Performance/Squeeze:
16
+ Enabled: true
17
+
18
+ Performance/SortReverse:
19
+ Enabled: true
20
+
21
+ Performance/ReverseFirst:
22
+ Enabled: true
23
+
24
+ Performance/RedundantStringChars:
25
+ Enabled: true
26
+
27
+ Performance/RedundantSortBlock:
28
+ Enabled: true
29
+
30
+ Performance/IoReadlines:
31
+ Enabled: true
32
+
33
+ Performance/DeleteSuffix:
34
+ Enabled: true
35
+
36
+ Performance/BindCall:
37
+ Enabled: true
38
+
39
+ Performance/BigDecimalWithNumericArgument:
40
+ Enabled: true
@@ -51,6 +51,57 @@ Rails/SafeNavigationWithBlank:
51
51
  Rails/SkipsModelValidations:
52
52
  Enabled: false
53
53
 
54
+ Rails/UniqueValidationWithoutIndex:
55
+ Enabled: true
56
+
57
+ Rails/RenderPlainText:
58
+ Enabled: true
59
+
60
+ Rails/RenderInline:
61
+ Enabled: true
62
+
63
+ Rails/RedundantForeignKey:
64
+ Enabled: true
65
+
66
+ Rails/PluckInWhere:
67
+ Enabled: true
68
+
69
+ Rails/Pluck:
70
+ Enabled: true
71
+
72
+ Rails/Pick:
73
+ Enabled: true
74
+
75
+ Rails/NegateInclude:
76
+ Enabled: true
77
+
78
+ Rails/MailerName:
79
+ Enabled: true
80
+
81
+ Rails/FindById:
82
+ Enabled: true
83
+
84
+ Rails/ContentTag:
85
+ Enabled: true
86
+
87
+ Rails/MatchRoute:
88
+ Enabled: true
89
+
90
+ Rails/ShortI18n:
91
+ Enabled: true
92
+
93
+ Rails/PluckId:
94
+ Enabled: false
95
+
96
+ Rails/ActiveRecordCallbacksOrder:
97
+ Enabled: true
98
+
99
+ Rails/Inquiry:
100
+ Enabled: true
101
+
102
+ Rails/WhereExists:
103
+ Enabled: true
104
+
54
105
  Rails/UnknownEnv:
55
106
  Environments:
56
107
  - development
@@ -249,3 +249,18 @@ RSpec/VoidExpect:
249
249
 
250
250
  RSpec/Yield:
251
251
  Enabled: true
252
+
253
+ RSpec/RepeatedExampleGroupDescription:
254
+ Enabled: true
255
+
256
+ RSpec/VariableName:
257
+ Enabled: true
258
+
259
+ RSpec/VariableDefinition:
260
+ Enabled: true
261
+
262
+ RSpec/RepeatedExampleGroupBody:
263
+ Enabled: true
264
+
265
+ RSpec/EmptyHook:
266
+ Enabled: true
@@ -4,6 +4,3 @@ require:
4
4
  - rubocop-rspec
5
5
 
6
6
  inherit_from: default.yml
7
-
8
- Style/Documentation:
9
- Enabled: false
@@ -6,6 +6,50 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.7.0] - 10 August 2020
10
+
11
+ - Added Rails/ActiveRecordCallbacksOrder
12
+ - Added Rails/Inquiry
13
+ - Added Rails/WhereExists
14
+
15
+ - Added Lint/RaiseException
16
+ - Added Lint/MixedRegexpCaptureTypes
17
+ - Added Lint/DeprecatedOpenSSLConstant
18
+ - Added Lint/DuplicateElsifCondition
19
+ - Added Lint/MixedRegexpCaptureTypes
20
+
21
+ - Added Performance/AncestorsInclude
22
+ - Added Performance/StringInclude
23
+ - Added Performance/Squeeze
24
+ - Added Performance/SortReverse
25
+ - Added Performance/ReverseFirst
26
+ - Added Performance/RedundantStringChars
27
+ - Added Performance/RedundantSortBlock
28
+ - Added Performance/IoReadlines
29
+ - Added Performance/ReverseFirst
30
+ - Added Performance/DeleteSuffix
31
+ - Added Performance/BindCall
32
+ - Added Performance/BigDecimalWithNumericArgument
33
+ - Added Performance/DeleteSuffix
34
+
35
+ - Added RSpec/RepeatedExampleGroupDescription
36
+ - Added RSpec/VariableName
37
+ - Added RSpec/VariableDefinition
38
+ - Added RSpec/RepeatedExampleGroupBody
39
+ - Added RSpec/EmptyHook
40
+ - Added RSpec/RepeatedExampleGroupBody
41
+
42
+ - Added Style/SlicingWithRange
43
+ - Added Style/RedundantRegexpEscape
44
+ - Added Style/RedundantRegexpCharacterClass
45
+ - Added Style/RedundantFetchBlock
46
+ - Added Style/RedundantAssignment
47
+ - Added Style/HashTransformValues
48
+ - Added Style/HashEachMethods
49
+ - Added Style/ExponentialNotation
50
+ - Added Style/BisectedAttrAccessor
51
+ - Added Style/AccessorGrouping
52
+
9
53
  ## [0.6.1] - 11 March 2020
10
54
 
11
55
  - Bumped rake dependency to a higher version to mitigate CVE-2020-8130
@@ -1,7 +1,7 @@
1
1
  inherit_from: .rubocop-performance.yml
2
2
 
3
3
  AllCops:
4
- TargetRubyVersion: 2.3
4
+ TargetRubyVersion: 2.6
5
5
  Exclude:
6
6
  - db/migrate/*
7
7
  - db/seeds/*
@@ -90,6 +90,12 @@ Style/EachWithObject:
90
90
  Style/UnpackFirst:
91
91
  Enabled: false
92
92
 
93
+ Layout/EmptyLinesAroundAttributeAccessor:
94
+ Enabled: true
95
+
96
+ Layout/SpaceAroundMethodCallOperator:
97
+ Enabled: true
98
+
93
99
  Layout/EndAlignment:
94
100
  EnforcedStyleAlignWith: variable
95
101
 
@@ -100,6 +106,9 @@ Layout/FirstParameterIndentation:
100
106
  Enabled: true
101
107
  EnforcedStyle: consistent
102
108
 
109
+ Layout/LineLength:
110
+ Max: 120
111
+
103
112
  Layout/MultilineMethodCallIndentation:
104
113
  EnforcedStyle: indented
105
114
 
@@ -112,9 +121,6 @@ Style/TrivialAccessors:
112
121
  Metrics/AbcSize:
113
122
  Enabled: false
114
123
 
115
- Metrics/LineLength:
116
- Max: 120
117
-
118
124
  Metrics/BlockLength:
119
125
  CountComments: false # count full line comments?
120
126
  Max: 50
@@ -165,6 +171,54 @@ Style/NegatedUnless:
165
171
  Style/StringLiterals:
166
172
  Enabled: false
167
173
 
174
+ Style/ArrayCoercion:
175
+ Enabled: true
176
+
177
+ Style/CaseLikeIf:
178
+ Enabled: true
179
+
180
+ Style/HashAsLastArrayItem:
181
+ Enabled: true
182
+
183
+ Style/HashLikeCase:
184
+ Enabled: true
185
+
186
+ Style/HashTransformKeys:
187
+ Enabled: true
188
+
189
+ Style/HashTransformValues:
190
+ Enabled: true
191
+
192
+ Style/RedundantAssignment:
193
+ Enabled: true
194
+
195
+ Style/RedundantFetchBlock:
196
+ Enabled: true
197
+
198
+ Style/RedundantFileExtensionInRequire:
199
+ Enabled: true
200
+
201
+ Style/RedundantRegexpCharacterClass:
202
+ Enabled: true
203
+
204
+ Style/RedundantRegexpEscape:
205
+ Enabled: true
206
+
207
+ Style/SlicingWithRange:
208
+ Enabled: true
209
+
210
+ Style/HashEachMethods:
211
+ Enabled: true
212
+
213
+ Style/ExponentialNotation:
214
+ Enabled: true
215
+
216
+ Style/BisectedAttrAccessor:
217
+ Enabled: true
218
+
219
+ Style/AccessorGrouping:
220
+ Enabled: true
221
+
168
222
  Style/StringLiteralsInInterpolation:
169
223
  Enabled: false
170
224
 
@@ -185,3 +239,21 @@ Lint/ToJSON:
185
239
 
186
240
  Gemspec/RubyVersionGlobalsUsage:
187
241
  Enabled: true
242
+
243
+ Lint/NonDeterministicRequireOrder:
244
+ Enabled: false
245
+
246
+ Lint/RaiseException:
247
+ Enabled: true
248
+
249
+ Lint/MixedRegexpCaptureTypes:
250
+ Enabled: true
251
+
252
+ Lint/DeprecatedOpenSSLConstant:
253
+ Enabled: true
254
+
255
+ Lint/StructNewOverride:
256
+ Enabled: true
257
+
258
+ Lint/DuplicateElsifCondition:
259
+ Enabled: true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rubocopital
4
- VERSION = "0.6.1"
4
+ VERSION = "0.7.0"
5
5
  end
@@ -32,12 +32,12 @@ Gem::Specification.new do |spec|
32
32
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
33
  spec.require_paths = ["lib"]
34
34
 
35
- spec.add_runtime_dependency "rubocop", "~> 0.77.0"
36
- spec.add_runtime_dependency "rubocop-performance", "~> 1.5.1"
37
- spec.add_runtime_dependency "rubocop-rails", "2.4.0"
38
- spec.add_runtime_dependency "rubocop-rspec", "1.37.0"
35
+ spec.add_runtime_dependency "rubocop", "~> 0.88.0"
36
+ spec.add_runtime_dependency "rubocop-performance", "~> 1.7.1"
37
+ spec.add_runtime_dependency "rubocop-rails", "2.7.0"
38
+ spec.add_runtime_dependency "rubocop-rspec", "1.42.0"
39
39
 
40
- spec.add_development_dependency "bundler", "~> 1.17", "~> 2.1"
41
- spec.add_development_dependency "rake", "~> 12.3", ">= 12.3.3"
40
+ spec.add_development_dependency "bundler"
41
+ spec.add_development_dependency "rake", ">= 12.3.3"
42
42
  spec.add_development_dependency "rspec", "~> 3.0"
43
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocopital
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcel Eeken
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-03-12 00:00:00.000000000 Z
12
+ date: 2020-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
@@ -17,83 +17,74 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 0.77.0
20
+ version: 0.88.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 0.77.0
27
+ version: 0.88.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rubocop-performance
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 1.5.1
34
+ version: 1.7.1
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 1.5.1
41
+ version: 1.7.1
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rubocop-rails
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 2.4.0
48
+ version: 2.7.0
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 2.4.0
55
+ version: 2.7.0
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rubocop-rspec
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - '='
61
61
  - !ruby/object:Gem::Version
62
- version: 1.37.0
62
+ version: 1.42.0
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - '='
68
68
  - !ruby/object:Gem::Version
69
- version: 1.37.0
69
+ version: 1.42.0
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: bundler
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - "~>"
75
- - !ruby/object:Gem::Version
76
- version: '1.17'
77
- - - "~>"
74
+ - - ">="
78
75
  - !ruby/object:Gem::Version
79
- version: '2.1'
76
+ version: '0'
80
77
  type: :development
81
78
  prerelease: false
82
79
  version_requirements: !ruby/object:Gem::Requirement
83
80
  requirements:
84
- - - "~>"
85
- - !ruby/object:Gem::Version
86
- version: '1.17'
87
- - - "~>"
81
+ - - ">="
88
82
  - !ruby/object:Gem::Version
89
- version: '2.1'
83
+ version: '0'
90
84
  - !ruby/object:Gem::Dependency
91
85
  name: rake
92
86
  requirement: !ruby/object:Gem::Requirement
93
87
  requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '12.3'
97
88
  - - ">="
98
89
  - !ruby/object:Gem::Version
99
90
  version: 12.3.3
@@ -101,9 +92,6 @@ dependencies:
101
92
  prerelease: false
102
93
  version_requirements: !ruby/object:Gem::Requirement
103
94
  requirements:
104
- - - "~>"
105
- - !ruby/object:Gem::Version
106
- version: '12.3'
107
95
  - - ">="
108
96
  - !ruby/object:Gem::Version
109
97
  version: 12.3.3