@@ -43,11 +43,17 @@ Layout/SpaceAroundMethodCallOperator:
4343 Description : Checks method call operators to not have spaces around them.
4444 Enabled : true
4545
46+ Layout/SpaceBeforeBrackets :
47+ Enabled : true
48+
4649Layout/SpaceInsideHashLiteralBraces :
4750 Description : Use spaces inside hash literal braces - or don't.
4851 StyleGuide : https://github.com/rubocop-hq/ruby-style-guide#spaces-operators
4952 EnforcedStyle : no_space
5053
54+ Lint/AmbiguousAssignment :
55+ Enabled : true
56+
5157Lint/AmbiguousRegexpLiteral :
5258 Description : Checks for ambiguous regexp literals in the first argument of a method invocation without parentheses.
5359 Exclude :
@@ -66,12 +72,24 @@ Lint/DeprecatedOpenSSLConstant:
6672 Description : Don't use algorithm constants for `OpenSSL::Cipher` and `OpenSSL::Digest`.
6773 Enabled : true
6874
75+ Lint/DuplicateBranch :
76+ Enabled : true
77+
6978Lint/DuplicateElsifCondition :
7079 Enabled : true
7180
81+ Lint/DuplicateRegexpCharacterClassElement :
82+ Enabled : true
83+
7284Lint/DuplicateRescueException :
7385 Enabled : true
7486
87+ Lint/EmptyBlock :
88+ Enabled : true
89+
90+ Lint/EmptyClass :
91+ Enabled : true
92+
7593Lint/EmptyConditionalBody :
7694 Enabled : true
7795
@@ -85,6 +103,9 @@ Lint/MixedRegexpCaptureTypes:
85103 Description : Do not mix named captures and numbered captures in a Regexp literal.
86104 Enabled : true
87105
106+ Lint/NoReturnInBeginEndBlocks :
107+ Enabled : true
108+
88109Lint/OutOfRangeRegexpRef :
89110 Enabled : true
90111
@@ -99,9 +120,18 @@ Lint/StructNewOverride:
99120 Description : Disallow overriding the `Struct` built-in methods via `Struct.new`.
100121 Enabled : true
101122
123+ Lint/ToEnumArguments :
124+ Enabled : true
125+
102126Lint/TopLevelReturnWithArgument :
103127 Enabled : true
104128
129+ Lint/UnexpectedBlockArity :
130+ Enabled : true
131+
132+ Lint/UnmodifiedReduceAccumulator :
133+ Enabled : true
134+
105135Lint/UnreachableLoop :
106136 Enabled : true
107137
@@ -147,6 +177,9 @@ Naming/FileName:
147177Style/AccessorGrouping :
148178 Enabled : true
149179
180+ Style/ArgumentsForwarding :
181+ Enabled : true
182+
150183Style/ArrayCoercion :
151184 Enabled : true
152185
@@ -156,6 +189,9 @@ Style/BisectedAttrAccessor:
156189Style/CaseLikeIf :
157190 Enabled : true
158191
192+ Style/CollectionCompact :
193+ Enabled : true
194+
159195Style/CollectionMethods :
160196 Description : Enforces the use of consistent method names from the Enumerable module.
161197 PreferredMethods :
@@ -173,6 +209,9 @@ Style/DoubleNegation:
173209 StyleGuide : https://github.com/rubocop-hq/ruby-style-guide#no-bang-bang
174210 Enabled : false
175211
212+ Style/DocumentDynamicEvalDefinition :
213+ Enabled : true
214+
176215Style/ExplicitBlockArgument :
177216 # capturing as a proc has a performance hit, so is a case by case choice
178217 Enabled : false
@@ -204,6 +243,9 @@ Style/HashEachMethods:
204243 Description : Use Hash#each_key and Hash#each_value.
205244 Enabled : true
206245
246+ Style/HashExcept :
247+ Enabled : true
248+
207249Style/HashLikeCase :
208250 Enabled : true
209251
@@ -219,9 +261,18 @@ Style/HashSyntax:
219261 Description : Checks hash literal syntax.
220262 EnforcedStyle : ruby19
221263
264+ Style/NegatedIfElseCondition :
265+ Enabled : true
266+
267+ Style/NilLambda :
268+ Enabled : true
269+
222270Style/OptionalBooleanParameter :
223271 Enabled : true
224272
273+ Style/RedundantArgument :
274+ Enabled : true
275+
225276Style/RedundantAssignment :
226277 Enabled : true
227278
@@ -265,6 +316,9 @@ Style/StringLiterals:
265316 Description : Allow double-quoted strings without interpolation.
266317 EnforcedStyle : double_quotes
267318
319+ Style/SwapValues :
320+ Enabled : true
321+
268322Style/TrailingCommaInArrayLiteral :
269323 EnforcedStyleForMultiline : no_comma
270324
0 commit comments