rubocop-airbnb 1.5.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00f80c412d551df779c2943b09ab72b4e8673915
4
- data.tar.gz: a4423d79f8a21eff68c0c6129e8dd183ff2b6a5c
3
+ metadata.gz: 8e5601cd8ff7b14b19b4bf38c802b4e1d687c322
4
+ data.tar.gz: fb2fca2fe9589451f8f7a1f35ba79372b0ee5b9a
5
5
  SHA512:
6
- metadata.gz: b446652ac7289d9b44fa1f2a44858d6afd10f6953182c2587fea8f354e9778ac1b5bc8ea60523440c54709c98c69dbcc6c34233510780bf1ae2fe54417fdc548
7
- data.tar.gz: 137879cbdf964d1daff95ab95edfb6535bd20b90719df754e7b32879707ef255f2f1ecaf8711eb5fe9ce767149da4ebfc0027230ad1f0d96b3ac99e7b7c9a129
6
+ metadata.gz: 2862c58fce4d1f1048df2b58e28978fcb01a943d67339dd93e4175f019cc40757deb378b86e1c2a1c241844652e6d3fff8f75876246e4153bea1da77a1f018cd
7
+ data.tar.gz: 252c1280c4b61671975ff387b2b3ded22e55747b8125860ff3b37728ac6192716eb0c118db22cb34fc9ae046e5aec3d56ea74174339f1ea521f983b4f13cde0b
@@ -1,3 +1,12 @@
1
+ # 2.0.0
2
+ * Upgrade to rubocop-rspec 1.30.0, use ~> to allow for PATCH version flexibility
3
+ * Upgrade to rubocop 0.58.0, use ~> to allow for PATCH version flexibility
4
+ * Enable RSpec/HooksBeforeExamples
5
+ * Enable RSpec/MissingExampleGroupArgument
6
+ * Enable RSpec/ReceiveNever
7
+ * Remove FactoryBot/DynamicAttributeDefinedStatically
8
+ * Remove FactoryBot/StaticAttributeDefinedDynamically
9
+
1
10
  # 1.5.0
2
11
  * Upgrade to rubocop-rspec 1.27.0
3
12
  * Enable RSpec/Be
data/README.md CHANGED
@@ -37,7 +37,7 @@ inherit_from:
37
37
  - .rubocop_todo.yml
38
38
  ```
39
39
 
40
- You need to inherit `.rubocop_airbnb.yml` from another file becuase Rubocop order of operations.
40
+ You need to inherit `.rubocop_airbnb.yml` from another file because of Rubocop order of operations.
41
41
  It runs `inherit_from` before `require` commands. If the configuration is not in a separate file
42
42
  you could potentially experience a bunch of warnings from `.rubocop_todo.yml` for non-existant
43
43
  `Airbnb` rules.
@@ -131,6 +131,10 @@ RSpec/HookArgument:
131
131
  - each
132
132
  - example
133
133
 
134
+ RSpec/HooksBeforeExamples:
135
+ Description: Checks for before/around/after hooks that come after an example.
136
+ Enabled: true
137
+
134
138
  RSpec/ImplicitExpect:
135
139
  Description: Check that a consistent implicit expectation style is used.
136
140
  Enabled: false
@@ -139,6 +143,10 @@ RSpec/ImplicitExpect:
139
143
  - is_expected
140
144
  - should
141
145
 
146
+ RSpec/ImplicitSubject:
147
+ Description: 'Checks for usage of implicit subject (`is_expected` / `should`).'
148
+ Enabled: false
149
+
142
150
  RSpec/InstanceSpy:
143
151
  Description: Checks for `instance_double` used with `have_received`.
144
152
  Enabled: false
@@ -195,6 +203,10 @@ RSpec/MessageSpies:
195
203
  - have_received
196
204
  - receive
197
205
 
206
+ RSpec/MissingExampleGroupArgument:
207
+ Description: Checks that the first argument to an example group is not empty.
208
+ Enabled: true
209
+
198
210
  RSpec/MultipleDescribes:
199
211
  Description: 'Checks for multiple top level describes.'
200
212
  Enabled: true
@@ -217,6 +229,10 @@ RSpec/NestedGroups:
217
229
  Enabled: false
218
230
  Max: 3
219
231
 
232
+ RSpec/ReceiveNever:
233
+ Description: 'Prefer `not_to receive(…)` over `receive(…).never`.'
234
+ Enabled: true
235
+
220
236
  RSpec/NotToNot:
221
237
  Description: 'Enforces the usage of the same method on all negative message expectations.'
222
238
  Enabled: true
@@ -286,6 +302,10 @@ RSpec/SubjectStub:
286
302
  Description: Checks for stubbed test subjects.
287
303
  Enabled: false
288
304
 
305
+ RSpec/UnspecifiedException:
306
+ Description: Checks for a specified error in checking raised errors.
307
+ Enabled: false
308
+
289
309
  RSpec/VerifiedDoubles:
290
310
  Description: 'Prefer using verifying doubles over normal doubles.'
291
311
  Enabled: false
@@ -302,14 +322,10 @@ Capybara/FeatureMethods:
302
322
  Description: Checks for consistent method usage in feature specs.
303
323
  Enabled: false
304
324
 
325
+ FactoryBot/AttributeDefinedStatically:
326
+ Description: Always declare attribute values as blocks.
327
+ Enabled: false
328
+
305
329
  FactoryBot/CreateList:
306
330
  Description: Checks for create_list usage.
307
331
  Enabled: true
308
-
309
- FactoryBot/DynamicAttributeDefinedStatically:
310
- Description: Prefer declaring dynamic attribute values in a block.
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.5.0'.freeze
6
+ VERSION = '2.0.0'.freeze
7
7
  end
8
8
  end
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  'Gemfile',
26
26
  ]
27
27
 
28
- spec.add_dependency('rubocop', '0.57.2')
29
- spec.add_dependency('rubocop-rspec', '1.27.0')
28
+ spec.add_dependency('rubocop', '~> 0.58.0')
29
+ spec.add_dependency('rubocop-rspec', '~> 1.30.0')
30
30
  spec.add_development_dependency('rspec', '~> 3.5')
31
31
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-airbnb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 2.0.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-27 00:00:00.000000000 Z
11
+ date: 2018-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.57.2
19
+ version: 0.58.0
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: 0.57.2
26
+ version: 0.58.0
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: 1.27.0
33
+ version: 1.30.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.27.0
40
+ version: 1.30.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -150,4 +150,3 @@ signing_key:
150
150
  specification_version: 4
151
151
  summary: Custom code style checking for Airbnb.
152
152
  test_files: []
153
- has_rdoc: