@@ -79,7 +79,7 @@ Style/CaseIndentation:
7979 Description : Indentation of when in a case/when/[else/]end.
8080 StyleGuide : https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
8181 Enabled : true
82- IndentWhenRelativeTo : case
82+ EnforcedStyle : case
8383 SupportedStyles :
8484 - case
8585 - end
@@ -157,10 +157,6 @@ Style/Encoding:
157157 Description : Use UTF-8 as the source file encoding.
158158 StyleGuide : https://github.com/bbatsov/ruby-style-guide#utf-8
159159 Enabled : false
160- EnforcedStyle : always
161- SupportedStyles :
162- - when_needed
163- - always
164160Style/FileName :
165161 Description : Use snake_case for source file names.
166162 StyleGuide : https://github.com/bbatsov/ruby-style-guide#snake-case-files
@@ -169,7 +165,7 @@ Style/FileName:
169165Style/FirstParameterIndentation :
170166 Description : Checks the indentation of the first parameter in a method call.
171167 Enabled : true
172- EnforcedStyle : special_for_inner_method_call_in_parentheses
168+ EnforcedStyle : consistent
173169 SupportedStyles :
174170 - consistent
175171 - special_for_inner_method_call
@@ -210,11 +206,11 @@ Style/HashSyntax:
210206 SupportedStyles :
211207 - ruby19
212208 - hash_rockets
213- Style/IfUnlessModifier :
209+ Metrics/LineLength :
214210 Description : Favor modifier if/unless usage when you have a single-line body.
215211 StyleGuide : https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
216212 Enabled : false
217- MaxLineLength : 80
213+ Max : 80
218214Style/IndentationWidth :
219215 Description : Use 2 spaces for indentation.
220216 StyleGuide : https://github.com/bbatsov/ruby-style-guide#spaces-indentation
@@ -311,7 +307,7 @@ Style/PredicateName:
311307 - is_
312308 - has_
313309 - have_
314- NamePrefixBlacklist :
310+ ForbiddenPrefixes :
315311 - is_
316312Style/RaiseArgs :
317313 Description : Checks the arguments passed to raise/fail.
@@ -435,7 +431,15 @@ Style/TrailingBlankLines:
435431 SupportedStyles :
436432 - final_newline
437433 - final_blank_line
438- Style/TrailingCommaInLiteral :
434+ Style/TrailingCommaInArrayLiteral :
435+ Description : Checks for trailing comma in parameter lists and literals.
436+ StyleGuide : https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
437+ Enabled : false
438+ EnforcedStyleForMultiline : no_comma
439+ SupportedStyles :
440+ - comma
441+ - no_comma
442+ Style/TrailingCommaInHashLiteral :
439443 Description : Checks for trailing comma in parameter lists and literals.
440444 StyleGuide : https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
441445 Enabled : false
@@ -450,7 +454,7 @@ Style/TrivialAccessors:
450454 ExactNameMatch : false
451455 AllowPredicates : false
452456 AllowDSLWriters : false
453- Whitelist :
457+ AllowedMethods :
454458 - to_ary
455459 - to_a
456460 - to_c
@@ -476,11 +480,6 @@ Style/VariableName:
476480 SupportedStyles :
477481 - snake_case
478482 - camelCase
479- Style/WhileUntilModifier :
480- Description : Favor modifier while/until usage when you have a single-line body.
481- StyleGuide : https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier
482- Enabled : false
483- MaxLineLength : 80
484483Style/WordArray :
485484 Description : Use %w or %W for arrays of words.
486485 StyleGuide : https://github.com/bbatsov/ruby-style-guide#percent-w
@@ -508,10 +507,10 @@ Metrics/CyclomaticComplexity:
508507 Enabled : false
509508 Max : 6
510509Metrics/LineLength :
511- Description : Limit lines to 80 characters.
512- StyleGuide : https://github.com/bbatsov/ruby-style-guide#80 -character-limits
510+ Description : Limit lines to 120 characters.
511+ StyleGuide : https://github.com/bbatsov/ruby-style-guide#120 -character-limits
513512 Enabled : true
514- Max : 80
513+ Max : 120
515514 AllowURI : true
516515 URISchemes :
517516 - http
@@ -541,14 +540,14 @@ Lint/AssignmentInCondition:
541540Lint/EndAlignment :
542541 Description : Align ends correctly.
543542 Enabled : true
544- AlignWith : keyword
543+ EnforcedStyleAlignWith : keyword
545544 SupportedStyles :
546545 - keyword
547546 - variable
548547Lint/DefEndAlignment :
549548 Description : Align ends corresponding to defs correctly.
550549 Enabled : true
551- AlignWith : start_of_line
550+ EnforcedStyleAlignWith : start_of_line
552551 SupportedStyles :
553552 - start_of_line
554553 - def
@@ -752,7 +751,7 @@ Style/LineEndConcatenation:
752751 Description : Use \ instead of + or << to concatenate two string literals at line
753752 end.
754753 Enabled : false
755- Style/MethodCallParentheses :
754+ Style/MethodCallWithoutArgsParentheses :
756755 Description : Do not use parentheses for method calls with no arguments.
757756 StyleGuide : https://github.com/bbatsov/ruby-style-guide#no-args-no-parens
758757 Enabled : true
@@ -799,7 +798,7 @@ Style/OneLineConditional:
799798 Description : Favor the ternary operator(?:) over if/then/else/end constructs.
800799 StyleGuide : https://github.com/bbatsov/ruby-style-guide#ternary-operator
801800 Enabled : false
802- Style/OpMethod :
801+ Naming/BinaryOperatorParameterName :
803802 Description : When defining binary operators, name the argument other.
804803 StyleGuide : https://github.com/bbatsov/ruby-style-guide#other-arg
805804 Enabled : false
@@ -905,10 +904,10 @@ Style/UnlessElse:
905904 Description : Do not use unless with else. Rewrite these with the positive case first.
906905 StyleGuide : https://github.com/bbatsov/ruby-style-guide#no-else-with-unless
907906 Enabled : true
908- Style/UnneededCapitalW :
907+ Style/RedundantCapitalW :
909908 Description : Checks for %W when interpolation is not needed.
910909 Enabled : true
911- Style/UnneededPercentQ :
910+ Style/RedundantPercentQ :
912911 Description : Checks for %q/%Q when single quotes or double quotes would do.
913912 StyleGuide : https://github.com/bbatsov/ruby-style-guide#percent-q
914913 Enabled : true
@@ -974,14 +973,10 @@ Lint/EnsureReturn:
974973Lint/Eval :
975974 Description : The use of eval represents a serious security risk.
976975 Enabled : true
977- Lint/HandleExceptions :
976+ Lint/SuppressedException :
978977 Description : Don't suppress exception.
979978 StyleGuide : https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
980979 Enabled : false
981- Lint/InvalidCharacterLiteral :
982- Description : Checks for invalid character literals with a non-escaped whitespace
983- character.
984- Enabled : false
985980Lint/LiteralInCondition :
986981 Description : Checks of literals used in conditions.
987982 Enabled : false
@@ -1012,7 +1007,7 @@ Lint/SpaceBeforeFirstArg:
10121007 Description : Put a space between a method name and the first argument in a method
10131008 call without parentheses.
10141009 Enabled : true
1015- Lint/StringConversionInInterpolation :
1010+ Lint/RedundantStringCoercion :
10161011 Description : Checks for Object#to_s usage in string interpolation.
10171012 StyleGuide : https://github.com/bbatsov/ruby-style-guide#no-to-s
10181013 Enabled : true
@@ -1037,7 +1032,7 @@ Lint/UselessAssignment:
10371032 Description : Checks for useless assignment to a local variable.
10381033 StyleGuide : https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
10391034 Enabled : true
1040- Lint/UselessComparison :
1035+ Lint/BinaryOperatorWithIdenticalOperands :
10411036 Description : Checks for comparison of something with itself.
10421037 Enabled : true
10431038Lint/UselessElseWithoutRescue :
0 commit comments