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 +4 -4
- data/CHANGELOG.md +8 -0
- data/config/rubocop-rspec.yml +35 -1
- data/lib/rubocop/airbnb/version.rb +1 -1
- data/rubocop-airbnb.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00f80c412d551df779c2943b09ab72b4e8673915
|
4
|
+
data.tar.gz: a4423d79f8a21eff68c0c6129e8dd183ff2b6a5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b446652ac7289d9b44fa1f2a44858d6afd10f6953182c2587fea8f354e9778ac1b5bc8ea60523440c54709c98c69dbcc6c34233510780bf1ae2fe54417fdc548
|
7
|
+
data.tar.gz: 137879cbdf964d1daff95ab95edfb6535bd20b90719df754e7b32879707ef255f2f1ecaf8711eb5fe9ce767149da4ebfc0027230ad1f0d96b3ac99e7b7c9a129
|
data/CHANGELOG.md
CHANGED
data/config/rubocop-rspec.yml
CHANGED
@@ -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
|
data/rubocop-airbnb.gemspec
CHANGED
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
|
+
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-
|
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.
|
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.
|
40
|
+
version: 1.27.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|