rubocop-airbnb 1.4.0 → 1.5.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
  SHA1:
3
- metadata.gz: 3f2a3e7e9206ffcd02d01aca2aecd71ddf6c22b4
4
- data.tar.gz: b4dab1d593f3a4377075377e597d706f267b9f1f
3
+ metadata.gz: 00f80c412d551df779c2943b09ab72b4e8673915
4
+ data.tar.gz: a4423d79f8a21eff68c0c6129e8dd183ff2b6a5c
5
5
  SHA512:
6
- metadata.gz: efea5ba81827671953f65bbf3b40615cf2a767088e60fd1f6caec9f97ead4b9379556a8a64eede448538101c7c3d9d5f8daa4423830d26a5645db5bb10e44c7a
7
- data.tar.gz: 21e9aa014f67b470b163f63a2d02f831d68c231e8f3ba7c635c7ff035c3e9e3b5050eebca70f843a4b96f13852a749a0c47a9d3baf3b95717bbbd1ef611c5f97
6
+ metadata.gz: b446652ac7289d9b44fa1f2a44858d6afd10f6953182c2587fea8f354e9778ac1b5bc8ea60523440c54709c98c69dbcc6c34233510780bf1ae2fe54417fdc548
7
+ data.tar.gz: 137879cbdf964d1daff95ab95edfb6535bd20b90719df754e7b32879707ef255f2f1ecaf8711eb5fe9ce767149da4ebfc0027230ad1f0d96b3ac99e7b7c9a129
@@ -1,3 +1,11 @@
1
+ # 1.5.0
2
+ * Upgrade to rubocop-rspec 1.27.0
3
+ * Enable RSpec/Be
4
+ * Enable RSpec/EmptyLineAfterExampleGroup
5
+ * Enable RSpec/EmptyLineAfterHook
6
+ * Enable RSpec/SharedExamples
7
+ * Enable FactoryBot/CreateList
8
+
1
9
  # 1.4.0
2
10
  * Upgrade to rubocop 0.57.2
3
11
 
@@ -17,6 +17,10 @@ RSpec/AroundBlock:
17
17
  Description: Checks that around blocks actually run the test.
18
18
  Enabled: true
19
19
 
20
+ RSpec/Be:
21
+ Description: Check for expectations where `be` is used without argument.
22
+ Enabled: true
23
+
20
24
  RSpec/BeEql:
21
25
  Description: Check for expectations where `be(...)` can replace `eql(...)`.
22
26
  Enabled: false
@@ -30,6 +34,7 @@ RSpec/BeforeAfterAll:
30
34
  - spec/support/**/*.rb
31
35
 
32
36
  RSpec/ContextWording:
37
+ Description: "`context` block descriptions should start with 'when', or 'with'."
33
38
  Enabled: false
34
39
 
35
40
  RSpec/DescribeClass:
@@ -53,10 +58,18 @@ RSpec/EmptyExampleGroup:
53
58
  Enabled: true
54
59
  CustomIncludeMethods: []
55
60
 
61
+ RSpec/EmptyLineAfterExampleGroup:
62
+ Description: Checks if there is an empty line after example group blocks.
63
+ Enabled: true
64
+
56
65
  RSpec/EmptyLineAfterFinalLet:
57
66
  Description: Checks if there is an empty line after the last let block.
58
67
  Enabled: true
59
68
 
69
+ RSpec/EmptyLineAfterHook:
70
+ Description: Checks if there is an empty line after hook blocks.
71
+ Enabled: true
72
+
60
73
  RSpec/EmptyLineAfterSubject:
61
74
  Description: Checks if there is an empty line after subject block.
62
75
  Enabled: true
@@ -159,6 +172,7 @@ RSpec/LetBeforeExamples:
159
172
  Enabled: true
160
173
 
161
174
  RSpec/LetSetup:
175
+ Description: Checks unreferenced `let!` calls being used for test setup.
162
176
  Enabled: false
163
177
 
164
178
  RSpec/MessageChain:
@@ -215,6 +229,10 @@ RSpec/OverwritingSetup:
215
229
  Enabled: false
216
230
  Description: Checks if there is a let/subject that overwrites an existing one.
217
231
 
232
+ RSpec/Pending:
233
+ Description: Checks for any pending or skipped examples.
234
+ Enabled: false
235
+
218
236
  RSpec/PredicateMatcher:
219
237
  Description: Prefer using predicate matcher over using predicate method directly.
220
238
  Enabled: false
@@ -224,9 +242,13 @@ RSpec/PredicateMatcher:
224
242
  - inflected
225
243
  - explicit
226
244
 
245
+ RSpec/ReceiveCounts:
246
+ Description: Check for `once` and `twice` receive counts matchers usage.
247
+ Enabled: false
248
+
227
249
  RSpec/RepeatedDescription:
228
- Enabled: true
229
250
  Description: Check for repeated description strings in example groups.
251
+ Enabled: true
230
252
 
231
253
  RSpec/RepeatedExample:
232
254
  Enabled: true
@@ -252,6 +274,10 @@ RSpec/SharedContext:
252
274
  Description: Checks for proper shared_context and shared_examples usage.
253
275
  Enabled: false
254
276
 
277
+ RSpec/SharedExamples:
278
+ Description: Enforces use of string to titleize shared examples.
279
+ Enabled: true
280
+
255
281
  RSpec/SingleArgumentMessageChain:
256
282
  Description: Checks that chains of messages contain more than one element.
257
283
  Enabled: true
@@ -276,6 +302,14 @@ Capybara/FeatureMethods:
276
302
  Description: Checks for consistent method usage in feature specs.
277
303
  Enabled: false
278
304
 
305
+ FactoryBot/CreateList:
306
+ Description: Checks for create_list usage.
307
+ Enabled: true
308
+
279
309
  FactoryBot/DynamicAttributeDefinedStatically:
280
310
  Description: Prefer declaring dynamic attribute values in a block.
281
311
  Enabled: true
312
+
313
+ FactoryBot/StaticAttributeDefinedDynamically:
314
+ Description: Prefer declaring static attribute values without a block.
315
+ Enabled: false
@@ -3,6 +3,6 @@
3
3
  module RuboCop
4
4
  module Airbnb
5
5
  # Version information for the the Airbnb RuboCop plugin.
6
- VERSION = '1.4.0'.freeze
6
+ VERSION = '1.5.0'.freeze
7
7
  end
8
8
  end
@@ -26,6 +26,6 @@ Gem::Specification.new do |spec|
26
26
  ]
27
27
 
28
28
  spec.add_dependency('rubocop', '0.57.2')
29
- spec.add_dependency('rubocop-rspec', '1.22.1')
29
+ spec.add_dependency('rubocop-rspec', '1.27.0')
30
30
  spec.add_development_dependency('rspec', '~> 3.5')
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-airbnb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airbnb Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-26 00:00:00.000000000 Z
11
+ date: 2018-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.22.1
33
+ version: 1.27.0
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: 1.22.1
40
+ version: 1.27.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement