rubocop-airbnb 1.3.0 → 1.4.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: 0d2dcf1334e8eeb272ff56471391e73622488e26
4
- data.tar.gz: 941186c8f5c022da98449b9133d19e67a3130293
3
+ metadata.gz: 3f2a3e7e9206ffcd02d01aca2aecd71ddf6c22b4
4
+ data.tar.gz: b4dab1d593f3a4377075377e597d706f267b9f1f
5
5
  SHA512:
6
- metadata.gz: 99a154982784e30d893d4349a46f97b50cffc73d64f32683aa202180dbfd8614954e93aabc508df149588171bf4fe9a37195b55e8ea5941a3e9709c9a13ff51e
7
- data.tar.gz: b58a02873292060626dba0a0f48961250e02ea07d2034d310e291a69857be29757f63d255629a5d27df52ebc195047613b3490a117b3f78f6bac2a6c4f57a07a
6
+ metadata.gz: efea5ba81827671953f65bbf3b40615cf2a767088e60fd1f6caec9f97ead4b9379556a8a64eede448538101c7c3d9d5f8daa4423830d26a5645db5bb10e44c7a
7
+ data.tar.gz: 21e9aa014f67b470b163f63a2d02f831d68c231e8f3ba7c635c7ff035c3e9e3b5050eebca70f843a4b96f13852a749a0c47a9d3baf3b95717bbbd1ef611c5f97
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 1.4.0
2
+ * Upgrade to rubocop 0.57.2
3
+
1
4
  # 1.3.0
2
5
  * Upgrade to rubocop 0.54.0
3
6
  * Add SimpleUnless cop
@@ -73,6 +73,9 @@ Layout/ClassStructure:
73
73
  - protected_methods
74
74
  - private_methods
75
75
 
76
+ Layout/ClosingHeredocIndentation:
77
+ Enabled: false
78
+
76
79
  # Supports --auto-correct
77
80
  Layout/ClosingParenthesisIndentation:
78
81
  Description: Checks the indentation of hanging closing parentheses.
@@ -124,6 +127,9 @@ Layout/EmptyLines:
124
127
  Description: Don't use several empty lines in a row.
125
128
  Enabled: true
126
129
 
130
+ Layout/EmptyLineAfterGuardClause:
131
+ Enabled: false
132
+
127
133
  # Supports --auto-correct
128
134
  Layout/EmptyLinesAroundAccessModifier:
129
135
  Description: Keep blank lines around access modifiers.
@@ -227,10 +233,10 @@ Layout/FirstParameterIndentation:
227
233
  EnforcedStyle: consistent
228
234
  SupportedStyles:
229
235
  - consistent
236
+ - consistent_relative_to_receiver
230
237
  - special_for_inner_method_call
231
238
  - special_for_inner_method_call_in_parentheses
232
239
 
233
-
234
240
  # Supports --auto-correct
235
241
  Layout/IndentArray:
236
242
  Description: Checks the indentation of the first element in an array literal.
@@ -277,6 +283,9 @@ Layout/InitialIndentation:
277
283
  Description: Checks the indentation of the first non-blank non-comment line in a file.
278
284
  Enabled: true
279
285
 
286
+ Layout/LeadingBlankLines:
287
+ Enabled: true
288
+
280
289
  # Supports --auto-correct
281
290
  Layout/LeadingCommentSpace:
282
291
  Description: Comments should start with a space.
@@ -77,6 +77,9 @@ Lint/EnsureReturn:
77
77
  StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-return-ensure
78
78
  Enabled: false
79
79
 
80
+ Lint/ErbNewArguments:
81
+ Enabled: false
82
+
80
83
  Lint/FloatOutOfRange:
81
84
  Description: Catches floating-point literals too large or small for Ruby to represent.
82
85
  Enabled: false
@@ -200,6 +203,9 @@ Lint/ReturnInVoidContext:
200
203
  Lint/SafeNavigationChain:
201
204
  Enabled: false
202
205
 
206
+ Lint/SafeNavigationConsistency:
207
+ Enabled: false
208
+
203
209
  Lint/ScriptPermission:
204
210
  Enabled: false
205
211
 
@@ -293,4 +299,3 @@ Lint/UselessSetterCall:
293
299
  Lint/Void:
294
300
  Description: Possible use of operator/literal/variable in void context.
295
301
  Enabled: false
296
-
@@ -53,6 +53,9 @@ Performance/FlatMap:
53
53
  Enabled: false
54
54
  EnabledForFlattenWithoutParams: false
55
55
 
56
+ Performance/InefficientHashSearch:
57
+ Enabled: false
58
+
56
59
  # Supports --auto-correct
57
60
  Performance/LstripRstrip:
58
61
  Description: Use `strip` instead of `lstrip.rstrip`.
@@ -130,6 +133,9 @@ Performance/TimesMap:
130
133
  Performance/UnfreezeString:
131
134
  Enabled: false
132
135
 
136
+ Performance/UnneededSort:
137
+ Enabled: false
138
+
133
139
  Performance/UriDefaultParser:
134
140
  Enabled: false
135
141
 
@@ -14,6 +14,9 @@ Rails/ApplicationJob:
14
14
  Rails/ApplicationRecord:
15
15
  Enabled: false
16
16
 
17
+ Rails/AssertNot:
18
+ Enabled: false
19
+
17
20
  Rails/Blank:
18
21
  Description: 'Enforce using `blank?` and `present?`.'
19
22
  Enabled: true
@@ -24,6 +27,9 @@ Rails/Blank:
24
27
  # Convert usages of `unless` `present?` to `if` `blank?`
25
28
  UnlessPresent: true
26
29
 
30
+ Rails/BulkChangeTable:
31
+ Enabled: false
32
+
27
33
  Rails/CreateTableWithTimestamps:
28
34
  Description: Checks the migration for which timestamps are not included when creating a new table.
29
35
  Enabled: true
@@ -151,6 +157,9 @@ Rails/RedundantReceiverInWithOptions:
151
157
  Description: 'Checks for redundant receiver in `with_options`.'
152
158
  Enabled: true
153
159
 
160
+ Rails/RefuteMethods:
161
+ Enabled: false
162
+
154
163
  Rails/RelativeDateConstant:
155
164
  Enabled: false
156
165
 
@@ -1,3 +1,5 @@
1
+ Style/AccessModifierDeclarations:
2
+ Enabled: false
1
3
 
2
4
  # Supports --auto-correct
3
5
  Style/Alias:
@@ -437,9 +439,6 @@ Style/LineEndConcatenation:
437
439
  Description: Use \ instead of + or << to concatenate two string literals at line end.
438
440
  Enabled: true
439
441
 
440
- Style/EmptyLineAfterGuardClause:
441
- Enabled: false
442
-
443
442
  Style/MethodCallWithArgsParentheses:
444
443
  Enabled: false
445
444
 
@@ -463,7 +462,11 @@ Style/MethodDefParentheses:
463
462
  SupportedStyles:
464
463
  - require_parentheses
465
464
  - require_no_parentheses
466
- Style/MethodMissing:
465
+
466
+ Style/MethodMissingSuper:
467
+ Enabled: false
468
+
469
+ Style/MissingRespondToMissing:
467
470
  Enabled: false
468
471
 
469
472
  Style/MinMax:
@@ -923,6 +926,9 @@ Style/UnneededCapitalW:
923
926
  Description: Checks for %W when interpolation is not needed.
924
927
  Enabled: false
925
928
 
929
+ Style/UnneededCondition:
930
+ Enabled: false
931
+
926
932
  # Supports --auto-correct
927
933
  Style/UnneededInterpolation:
928
934
  Description: Checks for strings that are just an interpolated expression.
@@ -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.3.0'.freeze
6
+ VERSION = '1.4.0'.freeze
7
7
  end
8
8
  end
@@ -1,4 +1,3 @@
1
-
2
1
  $LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
3
2
  require 'rubocop/airbnb/version'
4
3
 
@@ -26,7 +25,7 @@ Gem::Specification.new do |spec|
26
25
  'Gemfile',
27
26
  ]
28
27
 
29
- spec.add_dependency('rubocop', '0.54.0')
28
+ spec.add_dependency('rubocop', '0.57.2')
30
29
  spec.add_dependency('rubocop-rspec', '1.22.1')
31
30
  spec.add_development_dependency('rspec', '~> 3.5')
32
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-airbnb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airbnb Engineering
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.54.0
19
+ version: 0.57.2
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.54.0
26
+ version: 0.57.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rspec
29
29
  requirement: !ruby/object:Gem::Requirement