aroundhome_cops 4.0.0 → 4.1.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: 8b484d9e0fd53c5e4dfee4a328e6eef3fde6db1093a1250b94952598c57bd4ff
4
- data.tar.gz: c9f5915345577de64e6219fea97f4c5a1812b16563ba59aef4753ba11a55e127
3
+ metadata.gz: 0aa989da6d5148c3fec013805e7cf05eb35e9cc5474e1c8e0b1b9586ff49ad83
4
+ data.tar.gz: 2599d7b62ac3bb217689b1f5e72bc9ee21e53617a7b0318b551a53e5d60471b5
5
5
  SHA512:
6
- metadata.gz: 05be08a5fe3739151a0b6a5b93a138a510b78578825cafea4e922bb42217bd3eb69127ea4c0c4c7c3d32ca82d5077ca901a8f3ec5b0c7fd1f19421dcce598eb0
7
- data.tar.gz: 9ec6ddc38a5519f2bb734bb77f21e31da82c5b091f33f8513490446e091fb5e4da84c9741f81076e5c7f5350a9d990a3834dc047ef7346184c765dfaa08b40c9
6
+ metadata.gz: 77d867c3da27835acc6533928c487f2f7825ed8552ecf7cd167a05b97030345c5cac11abd8e1d3d35cc7f52f8363aa9977b9206251759f9ec66d44e16601b413
7
+ data.tar.gz: 304234f4fd850d263bfcfb8ccd72fdf77aab3a60fb94ff476b8be7d4bed18e8a3b4829ac0dcf49370372dc4df6ec208eaa42f69a2fc7c7c1f32ea379815f0c47
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Version 4.1.0
2
+ * Specify more precise defaults for rspec
3
+ * upgrade rubocop and rubocop-rspec and enable new offenses
4
+
1
5
  ## Version 4.0.0
2
6
  * Opt into all Rubocop offenses up until 1.18
3
7
  * Add rubocop-rspec as a dependency, to enforce better specs
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.required_ruby_version = '>= 2.5.0'
22
22
 
23
- spec.add_dependency 'rubocop', '~> 1.18'
24
- spec.add_dependency 'rubocop-rspec', '~> 2.4'
23
+ spec.add_dependency 'rubocop', '~> 1.22'
24
+ spec.add_dependency 'rubocop-rspec', '~> 2.5'
25
25
  end
data/default.yml CHANGED
@@ -147,10 +147,17 @@ RSpec/ExampleLength:
147
147
  RSpec/MultipleMemoizedHelpers:
148
148
  Max: 10
149
149
 
150
- # Complex tests often generate more readable output with deeper nesting. The
150
+ # We rarely use named subjects in our own projects.
151
+ # While it is a good practice in some cases, we do not want to enforce it
152
+ # through Rubocop.
153
+ # https://www.rubydoc.info/gems/rubocop-rspec/1.6.0/RuboCop/Cop/RSpec/NamedSubject
154
+ RSpec/NamedSubject:
155
+ Enabled: false
156
+
157
+ # Complex tests often generate more readable output with deeper nesting. The
151
158
  # default (3) doesn't provide enough flexibility.
152
159
  RSpec/NestedGroups:
153
- Max: 5
160
+ Max: 7
154
161
 
155
162
  # ----------------- Rubocop-forced enablements --------------
156
163
 
@@ -166,6 +173,10 @@ Layout/SpaceBeforeBrackets: # (new in 1.7)
166
173
  Enabled: true
167
174
  Lint/AmbiguousAssignment: # (new in 1.7)
168
175
  Enabled: true
176
+ Lint/AmbiguousOperatorPrecedence: # (new in 1.21)
177
+ Enabled: true
178
+ Lint/AmbiguousRange: # (new in 1.19)
179
+ Enabled: true
169
180
  Lint/DeprecatedConstants: # (new in 1.8)
170
181
  Enabled: true
171
182
  Lint/DuplicateBranch: # (new in 1.3)
@@ -176,6 +187,8 @@ Lint/EmptyBlock: # (new in 1.1)
176
187
  Enabled: true
177
188
  Lint/EmptyClass: # (new in 1.3)
178
189
  Enabled: true
190
+ Lint/IncompatibleIoSelectWithFiberScheduler: # (new in 1.21)
191
+ Enabled: true
179
192
  Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
180
193
  Enabled: true
181
194
  Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
@@ -186,6 +199,8 @@ Lint/OrAssignmentToConstant: # (new in 1.9)
186
199
  Enabled: true
187
200
  Lint/RedundantDirGlobSort: # (new in 1.8)
188
201
  Enabled: true
202
+ Lint/RequireRelativeSelfPath: # (new in 1.22)
203
+ Enabled: true
189
204
  Lint/SymbolConversion: # (new in 1.9)
190
205
  Enabled: true
191
206
  Lint/ToEnumArguments: # (new in 1.1)
@@ -196,6 +211,8 @@ Lint/UnexpectedBlockArity: # (new in 1.5)
196
211
  Enabled: true
197
212
  Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
198
213
  Enabled: true
214
+ Security/IoMethods: # (new in 1.22)
215
+ Enabled: true
199
216
  Style/ArgumentsForwarding: # (new in 1.1)
200
217
  Enabled: true
201
218
  Style/CollectionCompact: # (new in 1.2)
@@ -214,8 +231,16 @@ Style/NegatedIfElseCondition: # (new in 1.2)
214
231
  Enabled: true
215
232
  Style/NilLambda: # (new in 1.3)
216
233
  Enabled: true
234
+ Style/NumberedParameters: # (new in 1.22)
235
+ Enabled: true
236
+ Style/NumberedParametersLimit: # (new in 1.22)
237
+ Enabled: true
217
238
  Style/RedundantArgument: # (new in 1.4)
218
239
  Enabled: true
240
+ Style/RedundantSelfAssignmentBranch: # (new in 1.19)
241
+ Enabled: true
242
+ Style/SelectByRegexp: # (new in 1.22)
243
+ Enabled: true
219
244
  Style/StringChars: # (new in 1.12)
220
245
  Enabled: true
221
246
  Style/SwapValues: # (new in 1.1)
@@ -234,8 +259,11 @@ Style/QuotedSymbols: # (new in 1.16)
234
259
  Enabled: true
235
260
 
236
261
  # ----------------- Rubocop-Rspec forced enablements --------------
237
-
262
+ RSpec/ExcessiveDocstringSpacing: # (new in 2.5)
263
+ Enabled: true
238
264
  RSpec/IdenticalEqualityAssertion: # (new in 2.4)
239
265
  Enabled: true
240
266
  RSpec/Rails/AvoidSetupHook: # (new in 2.4)
241
- Enabled: true
267
+ Enabled: true
268
+ RSpec/SubjectDeclaration: # (new in 2.5)
269
+ Enabled: true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AroundhomeCops
4
- VERSION = '4.0.0'
4
+ VERSION = '4.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aroundhome_cops
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Sandbrink
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-09 00:00:00.000000000 Z
11
+ date: 2021-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.18'
19
+ version: '1.22'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.18'
26
+ version: '1.22'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.4'
33
+ version: '2.5'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.4'
40
+ version: '2.5'
41
41
  description:
42
42
  email:
43
43
  - jan.sandbrink@aroundhome.de