cloudnativedaysjp / broadcast

2 stars 1 forks source link

Update dependency rubocop to v0.93.1 - autoclosed #296

Closed renovate[bot] closed 1 month ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
rubocop (source, changelog) 0.85.1 -> 0.93.1 age adoption passing confidence

Release Notes

rubocop/rubocop (rubocop) ### [`v0.93.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#0931-2020-10-12) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v0.93.0...v0.93.1) ##### Bug fixes - [#​8782](https://togithub.com/rubocop/rubocop/issues/8782): Fix incorrect autocorrection for `Style/TernaryParentheses` with `defined?`. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) - [#​8867](https://togithub.com/rubocop/rubocop/issues/8867): Rework `Lint/RedundantSafeNavigation` to be more safe. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8864](https://togithub.com/rubocop/rubocop/issues/8864): Fix false positive for `Style/RedundantBegin` with a postfix `while` or `until`. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) - [#​8869](https://togithub.com/rubocop/rubocop/issues/8869): Fix a false positive for `Style/RedundantBegin` when using `begin` for or assignment and method call. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8862](https://togithub.com/rubocop/rubocop/issues/8862): Fix an error for `Lint/AmbiguousRegexpLiteral` when using regexp without method calls in nested structure. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8872](https://togithub.com/rubocop/rubocop/issues/8872): Fix an error for `Metrics/ClassLength` when multiple assignments to constants. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8871](https://togithub.com/rubocop/rubocop/issues/8871): Fix a false positive for `Style/RedundantBegin` when using `begin` for method argument or part of conditions. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8875](https://togithub.com/rubocop/rubocop/issues/8875): Fix an incorrect auto-correct for `Style/ClassEqualityComparison` when comparing class name. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8880](https://togithub.com/rubocop/rubocop/issues/8880): Fix an error for `Style/ClassLength` when overlapping constant assignments. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v0.93.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#0930-2020-10-08) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v0.92.0...v0.93.0) ##### New features - [#​8796](https://togithub.com/rubocop/rubocop/pull/8796): Add new `Lint/HashCompareByIdentity` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8833](https://togithub.com/rubocop/rubocop/pull/8833): Add new `Style/ClassEqualityComparison` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8668](https://togithub.com/rubocop/rubocop/pull/8668): Add new `Lint/RedundantSafeNavigation` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8842](https://togithub.com/rubocop/rubocop/issues/8842): Add notification about cache being used to debug mode. (\[[@​hatkyinc2](https://togithub.com/hatkyinc2)]\[]) - [#​8822](https://togithub.com/rubocop/rubocop/pull/8822): Make `Style/RedundantBegin` aware of `begin` without `rescue` or `ensure`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​7940](https://togithub.com/rubocop/rubocop/pull/7940): Add new `Lint/NoReturnInBeginEndBlocks` cop. (\[[@​jcfausto](https://togithub.com/jcfausto)]\[]) ##### Bug fixes - [#​8810](https://togithub.com/rubocop/rubocop/pull/8810): Fix multiple offense detection for `Style/RaiseArgs`. (\[[@​pbernays](https://togithub.com/pbernays)]\[]) - [#​8151](https://togithub.com/rubocop/rubocop/issues/8151): Fix a false positive for `Lint/BooleanSymbol` when used within `%i[...]`. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8809](https://togithub.com/rubocop/rubocop/pull/8809): Fix multiple offense detection for `Style/For`. (\[[@​pbernays](https://togithub.com/pbernays)]\[]) - [#​8801](https://togithub.com/rubocop/rubocop/issues/8801): Fix `Layout/SpaceAroundEqualsInParameterDefault` only registered once in a line. (\[[@​rdunlop](https://togithub.com/rdunlop)]\[]) - [#​8514](https://togithub.com/rubocop/rubocop/issues/8514): Correct multiple `Style/MethodDefParentheses` per file. (\[[@​rdunlop](https://togithub.com/rdunlop)]\[]) - [#​8825](https://togithub.com/rubocop/rubocop/issues/8825): Fix crash in `Style/ExplicitBlockArgument` when code is called outside of a method. (\[[@​ghiculescu](https://togithub.com/ghiculescu)]\[]) - [#​8718](https://togithub.com/rubocop/rubocop/issues/8718): Fix undefined methods of pseudo location. (\[[@​ybiquitous](https://togithub.com/ybiquitous)]\[]) - [#​8354](https://togithub.com/rubocop/rubocop/issues/8354): Detect regexp named captures in `Style/CaseLikeIf` cop. (\[[@​dsavochkin](https://togithub.com/dsavochkin)]\[]) - [#​8821](https://togithub.com/rubocop/rubocop/issues/8821): Fix an incorrect autocorrect for `Style/NestedTernaryOperator` when using a nested ternary operator expression with no parentheses on the outside. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8834](https://togithub.com/rubocop/rubocop/issues/8834): Fix a false positive for `Style/ParenthesesAsGroupedExpression` when method argument parentheses are omitted and hash argument key is enclosed in parentheses. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8830](https://togithub.com/rubocop/rubocop/issues/8830): Fix bad autocorrect of `Style/StringConcatenation` when string includes double quotes. (\[[@​tleish](https://togithub.com/tleish)]\[]) - [#​8807](https://togithub.com/rubocop/rubocop/pull/8807): Fix a false positive for `Style/RedundantCondition` when using assignment by hash key access. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8848](https://togithub.com/rubocop/rubocop/issues/8848): Fix a false positive for `Style/CombinableLoops` when using the same method with different arguments. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) - [#​8843](https://togithub.com/rubocop/rubocop/issues/8843): Fix an incorrect autocorrect for `Lint/AmbiguousRegexpLiteral` when sending method to regexp literal receiver. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8842](https://togithub.com/rubocop/rubocop/issues/8842): Save actual status to cache, except corrected. (\[[@​hatkyinc2](https://togithub.com/hatkyinc2)]\[]) - [#​8835](https://togithub.com/rubocop/rubocop/issues/8835): Fix an incorrect autocorrect for `Style/RedundantInterpolation` when using string interpolation for non-operator methods. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​7495](https://togithub.com/rubocop/rubocop/issues/7495): Example for `Lint/AmbiguousBlockAssociation` cop. (\[[@​AllanSiqueira](https://togithub.com/AllanSiqueira)]\[]) - [#​8855](https://togithub.com/rubocop/rubocop/issues/8855): Fix an error for `Layout/EmptyLinesAroundAccessModifier` and `Style/AccessModifierDeclarations` when using only access modifier. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Changes - [#​8803](https://togithub.com/rubocop/rubocop/pull/8803): **(Breaking)** `RegexpNode#parsed_tree` now processes regexps including interpolation (by blanking the interpolation before parsing, rather than skipping). (\[[@​owst](https://togithub.com/owst)]\[]) - [#​8625](https://togithub.com/rubocop/rubocop/pull/8625): Improve `Style/RedundantRegexpCharacterClass` and `Style/RedundantRegexpEscape` by using `regexp_parser` gem. (\[[@​owst](https://togithub.com/owst)]\[]) - [#​8646](https://togithub.com/rubocop/rubocop/issues/8646): Faster find of all files in `TargetFinder` class which improves initial startup speed. (\[[@​tleish](https://togithub.com/tleish)]\[]) - [#​8102](https://togithub.com/rubocop/rubocop/issues/8102): Consider class length instead of block length for `Struct.new`. (\[[@​tejasbubane](https://togithub.com/tejasbubane)]\[]) - [#​7408](https://togithub.com/rubocop/rubocop/issues/7408): Make `Gemspec/RequiredRubyVersion` cop aware of `Gem::Requirement`. (\[[@​tejasbubane](https://togithub.com/tejasbubane)]\[]) ### [`v0.92.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#0920-2020-09-25) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v0.91.1...v0.92.0) ##### New features - [#​8778](https://togithub.com/rubocop/rubocop/pull/8778): Add command line option `--regenerate-todo`. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) - [#​8790](https://togithub.com/rubocop/rubocop/pull/8790): Add `AllowedMethods` option to `Style/OptionalBooleanParameter` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8738](https://togithub.com/rubocop/rubocop/issues/8738): Add autocorrection to `Style/DateTime`. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) ##### Bug fixes - [#​8774](https://togithub.com/rubocop/rubocop/issues/8774): Fix a false positive for `Layout/ArrayAlignment` with parallel assignment. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) ##### Changes - [#​8785](https://togithub.com/rubocop/rubocop/pull/8785): Update TargetRubyVersion 2.8 to 3.0 (experimental). (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8650](https://togithub.com/rubocop/rubocop/issues/8650): Faster find of hidden files in `TargetFinder` class which improves rubocop initial startup speed. (\[[@​tleish](https://togithub.com/tleish)]\[]) - [#​8783](https://togithub.com/rubocop/rubocop/pull/8783): Disable `Style/ArrayCoercion` cop by default. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v0.91.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#0911-2020-09-23) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v0.91.0...v0.91.1) ##### Bug fixes - [#​8720](https://togithub.com/rubocop/rubocop/issues/8720): Fix an error for `Lint/IdentityComparison` when calling `object_id` method without receiver in LHS or RHS. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8767](https://togithub.com/rubocop/rubocop/issues/8767): Fix a false positive for `Style/RedundantReturn` when a rescue has an else clause. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8710](https://togithub.com/rubocop/rubocop/issues/8710): Fix a false positive for `Layout/RescueEnsureAlignment` when `Layout/BeginEndAlignment` cop is not enabled status. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8726](https://togithub.com/rubocop/rubocop/issues/8726): Fix a false positive for `Naming/VariableNumber` when naming multibyte character variable name. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8730](https://togithub.com/rubocop/rubocop/issues/8730): Fix an error for `Lint/UselessTimes` when there is a blank line in the method definition. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8740](https://togithub.com/rubocop/rubocop/issues/8740): Fix a false positive for `Style/HashAsLastArrayItem` when the hash is in an implicit array. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) - [#​8739](https://togithub.com/rubocop/rubocop/issues/8739): Fix an error for `Lint/UselessTimes` when using empty block argument. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8742](https://togithub.com/rubocop/rubocop/issues/8742): Fix some assignment counts for `Metrics/AbcSize`. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8750](https://togithub.com/rubocop/rubocop/pull/8750): Fix an incorrect auto-correct for `Style/MultilineWhenThen` when line break for multiple candidate values of `when` statement. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8754](https://togithub.com/rubocop/rubocop/pull/8754): Fix an error for `Style/RandomWithOffset` when using a range with non-integer bounds. (\[[@​eugeneius](https://togithub.com/eugeneius)]\[]) - [#​8756](https://togithub.com/rubocop/rubocop/issues/8756): Fix an infinite loop error for `Layout/EmptyLinesAroundAccessModifier` with `Layout/EmptyLinesAroundBlockBody` when using access modifier with block argument. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8372](https://togithub.com/rubocop/rubocop/issues/8372): Fix `Lint/RedundantCopEnableDirective` autocorrection to not leave orphaned empty `# rubocop:enable` comments. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) - [#​8372](https://togithub.com/rubocop/rubocop/issues/8372): Fix `Lint/RedundantCopDisableDirective` autocorrection. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) - [#​8764](https://togithub.com/rubocop/rubocop/issues/8764): Fix `Layout/CaseIndentation` not showing the cop name in output messages. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) - [#​8771](https://togithub.com/rubocop/rubocop/issues/8771): Fix an error for `Style/OneLineConditional` when using `if-then-elsif-then-end`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8576](https://togithub.com/rubocop/rubocop/issues/8576): Fix `Style/IfUnlessModifier` to ignore cop disable comment directives when considering conversion to the modifier form. (\[[@​dsavochkin](https://togithub.com/dsavochkin)]\[]) ##### Changes - [#​8489](https://togithub.com/rubocop/rubocop/issues/8489): Exclude method `respond_to_missing?` from `OptionalBooleanParameter` cop. (\[[@​em-gazelle](https://togithub.com/em-gazelle)]\[]) - [#​7914](https://togithub.com/rubocop/rubocop/issues/7914): `Style/SafeNavigation` marked as having unsafe auto-correction. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8749](https://togithub.com/rubocop/rubocop/issues/8749): Disable `Style/IpAddresses` by default in `Gemfile` and gemspec files. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) ### [`v0.91.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#0910-2020-09-15) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v0.90.0...v0.91.0) ##### New features - New option `--cache-root` and support for the `RUBOCOP_CACHE_ROOT` environment variable. Both can be used to override the `AllCops: CacheRootDirectory` config, especially in a CI setting. (\[[@​sascha-wolf](https://togithub.com/sascha-wolf)]\[]) - [#​8582](https://togithub.com/rubocop/rubocop/issues/8582): Add new `Layout/BeginEndAlignment` cop. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8699](https://togithub.com/rubocop/rubocop/pull/8699): Add new `Lint/IdentityComparison` cop. (\[[@​koic](https://togithub.com/koic)]\[]) - Add new `Lint/UselessTimes` cop. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) - [#​8707](https://togithub.com/rubocop/rubocop/pull/8707): Add new `Lint/ConstantDefinitionInBlock` cop. (\[[@​eugeneius](https://togithub.com/eugeneius)]\[]) ##### Bug fixes - [#​8627](https://togithub.com/rubocop/rubocop/issues/8627): Fix a false positive for `Lint/DuplicateRequire` when same feature argument but different require method. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8674](https://togithub.com/rubocop/rubocop/issues/8674): Fix an error for `Layout/EmptyLineAfterMultilineCondition` when conditional is at the top level. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8658](https://togithub.com/rubocop/rubocop/pull/8658): Fix a false positive for `Style/RedundantSelfAssignment` when calling coercion methods. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8669](https://togithub.com/rubocop/rubocop/issues/8669): Fix an offense creation for `Lint/EmptyFile`. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8607](https://togithub.com/rubocop/rubocop/issues/8607): Fix a false positive for `Lint/UnreachableLoop` when conditional branch includes continue statement preceding break statement. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8572](https://togithub.com/rubocop/rubocop/issues/8572): Fix a false positive for `Style/RedundantParentheses` when parentheses are used like method argument parentheses. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8630](https://togithub.com/rubocop/rubocop/issues/8630): Fix some false positives for `Style/HashTransformKeys` and `Style/HashTransformValues` when the receiver is an array. (\[[@​eugeneius](https://togithub.com/eugeneius)]\[]) - [#​8653](https://togithub.com/rubocop/rubocop/pull/8653): Fix a false positive for `Layout/DefEndAlignment` when using refinements and `private def`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8655](https://togithub.com/rubocop/rubocop/pull/8655): Fix a false positive for `Style/ClassAndModuleChildren` when using cbase class name. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8654](https://togithub.com/rubocop/rubocop/pull/8654): Fix a false positive for `Style/SafeNavigation` when checking `foo&.empty?` in a conditional. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8660](https://togithub.com/rubocop/rubocop/pull/8660): Fix a false positive for `Style/ClassAndModuleChildren` when using cbase module name. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8664](https://togithub.com/rubocop/rubocop/issues/8664): Fix a false positive for `Naming/BinaryOperatorParameterName` when naming multibyte character method name. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8604](https://togithub.com/rubocop/rubocop/issues/8604): Fix a false positive for `Bundler/DuplicatedGem` when gem is duplicated in condition. (\[[@​tejasbubane](https://togithub.com/tejasbubane)]\[]) - [#​8671](https://togithub.com/rubocop/rubocop/issues/8671): Fix an error for `Style/ExplicitBlockArgument` when using safe navigation method call. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8681](https://togithub.com/rubocop/rubocop/pull/8681): Fix an error for `Style/HashAsLastArrayItem` with `no_braces` for empty hash. (\[[@​fsateler](https://togithub.com/fsateler)]\[]) - [#​8682](https://togithub.com/rubocop/rubocop/pull/8682): Fix a positive for `Style/HashTransformKeys` and `Style/HashTransformValues` when the `each_with_object` hash is used in the transformed key or value. (\[[@​eugeneius](https://togithub.com/eugeneius)]\[]) - [#​8688](https://togithub.com/rubocop/rubocop/issues/8688): Mark `Style/GlobalStdStream` as unsafe autocorrection. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8642](https://togithub.com/rubocop/rubocop/issues/8642): Fix a false negative for `Style/SpaceInsideHashLiteralBraces` when a correct empty hash precedes the incorrect hash. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) - [#​8683](https://togithub.com/rubocop/rubocop/issues/8683): Make naming cops work with non-ascii characters. (\[[@​tejasbubane](https://togithub.com/tejasbubane)]\[]) - [#​8626](https://togithub.com/rubocop/rubocop/issues/8626): Fix false negatives for `Lint/UselessMethodDefinition`. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8698](https://togithub.com/rubocop/rubocop/pull/8698): Fix cache to avoid encoding exception. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8704](https://togithub.com/rubocop/rubocop/issues/8704): Fix an error for `Lint/AmbiguousOperator` when using safe navigation operator with a unary operator. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8661](https://togithub.com/rubocop/rubocop/pull/8661): Fix an incorrect auto-correct for `Style/MultilineTernaryOperator` when returning a multiline ternary operator expression. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8526](https://togithub.com/rubocop/rubocop/pull/8526): Fix a false positive for `Style/CaseEquality` cop when the receiver is not a camel cased constant. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8673](https://togithub.com/rubocop/rubocop/issues/8673): Fix the JSON parse error when specifying `--format=json` and `--stdin` options. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Changes - [#​8470](https://togithub.com/rubocop/rubocop/issues/8470): Do not autocorrect `Style/StringConcatenation` when parts of the expression are too complex. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) - [#​8561](https://togithub.com/rubocop/rubocop/issues/8561): Fix `Lint/UselessMethodDefinition` to not register an offense when method definition includes optional arguments. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8617](https://togithub.com/rubocop/rubocop/issues/8617): Fix `Style/HashAsLastArrayItem` to not register an offense when all items in an array are hashes. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) - [#​8500](https://togithub.com/rubocop/rubocop/issues/8500): Add `in?` to AllowedMethods for `Lint/SafeNavigationChain` cop. (\[[@​tejasbubane](https://togithub.com/tejasbubane)]\[]) - [#​8629](https://togithub.com/rubocop/rubocop/pull/8629): Fix the cache being reusable in CI by using crc32 to calculate file hashes rather than `mtime`, which changes each CI build. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) - [#​8663](https://togithub.com/rubocop/rubocop/issues/8663): Fix multiple autocorrection bugs with `Style/ClassMethodsDefinitions`. (\[[@​dvandersluis](https://togithub.com/dvandersluis)]\[]) - [#​8621](https://togithub.com/rubocop/rubocop/issues/8621): Add helpful Infinite Loop error message. (\[[@​iSarCasm](https://togithub.com/iSarCasm)]\[]) ### [`v0.90.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#0900-2020-09-01) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v0.89.1...v0.90.0) ##### New features - [#​8451](https://togithub.com/rubocop/rubocop/issues/8451): Add new `Style/RedundantSelfAssignment` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8384](https://togithub.com/rubocop/rubocop/issues/8384): Add new `Layout/EmptyLineAfterMultilineCondition` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8390](https://togithub.com/rubocop/rubocop/pull/8390): Add new `Style/SoleNestedConditional` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8563](https://togithub.com/rubocop/rubocop/pull/8563): Add new `Style/KeywordParametersOrder` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8486](https://togithub.com/rubocop/rubocop/pull/8486): Add new `Style/CombinableLoops` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8381](https://togithub.com/rubocop/rubocop/pull/8381): Add new `Style/ClassMethodsDefinitions` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8474](https://togithub.com/rubocop/rubocop/pull/8474): Add new `Lint/DuplicateRequire` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8472](https://togithub.com/rubocop/rubocop/issues/8472): Add new `Lint/UselessMethodDefinition` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8531](https://togithub.com/rubocop/rubocop/issues/8531): Add new `Lint/EmptyFile` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - Add new `Lint/TrailingCommaInAttributeDeclaration` cop. (\[[@​drenmi](https://togithub.com/drenmi)]\[]) - [#​8578](https://togithub.com/rubocop/rubocop/pull/8578): Add `:restore_registry` context and `stub_cop_class` helper class. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8579](https://togithub.com/rubocop/rubocop/pull/8579): Add `Cop.documentation_url`. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8510](https://togithub.com/rubocop/rubocop/pull/8510): Add `RegexpNode#each_capture` and `parsed_tree`. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8365](https://togithub.com/rubocop/rubocop/pull/8365): Cops defining `on_send` can be optimized by defining the constant `RESTRICT_ON_SEND` with a list of acceptable method names. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) ##### Bug fixes - [#​8508](https://togithub.com/rubocop/rubocop/pull/8508): Fix a false positive for `Style/CaseLikeIf` when conditional contains comparison with a class. Mark `Style/CaseLikeIf` as not safe. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8618](https://togithub.com/rubocop/rubocop/issues/8618): Fix an infinite loop error for `Layout/EmptyLineBetweenDefs`. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8534](https://togithub.com/rubocop/rubocop/issues/8534): Fix `Lint/BinaryOperatorWithIdenticalOperands` for binary operators used as unary operators. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8537](https://togithub.com/rubocop/rubocop/pull/8537): Allow a trailing comment as a description comment for `Bundler/GemComment`. (\[[@​pocke](https://togithub.com/pocke)]\[]) - [#​8507](https://togithub.com/rubocop/rubocop/issues/8507): Fix `Style/RescueModifier` to handle parentheses around rescue modifiers. (\[[@​dsavochkin](https://togithub.com/dsavochkin)]\[]) - [#​8527](https://togithub.com/rubocop/rubocop/pull/8527): Prevent an incorrect auto-correction for `Style/CaseEquality` cop when comparing with `===` against a regular expression receiver. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8524](https://togithub.com/rubocop/rubocop/issues/8524): Fix `Layout/EmptyLinesAroundClassBody` and `Layout/EmptyLinesAroundModuleBody` to correctly handle an access modifier as a first child. (\[[@​dsavochkin](https://togithub.com/dsavochkin)]\[]) - [#​8518](https://togithub.com/rubocop/rubocop/issues/8518): Fix `Lint/ConstantResolution` cop reporting offense for `module` and `class` definitions. (\[[@​tejasbubane](https://togithub.com/tejasbubane)]\[]) - [#​8158](https://togithub.com/rubocop/rubocop/issues/8158): Fix `Style/MultilineWhenThen` cop to correctly handle cases with multiline body. (\[[@​dsavochkin](https://togithub.com/dsavochkin)]\[]) - [#​7705](https://togithub.com/rubocop/rubocop/issues/7705): Fix `Style/OneLineConditional` cop to handle if/then/elsif/then/else/end cases. Add `AlwaysCorrectToMultiline` config option to this cop to always convert offenses to the multi-line form (false by default). (\[[@​Lykos](https://togithub.com/Lykos)]\[], \[[@​dsavochkin](https://togithub.com/dsavochkin)]\[]) - [#​8590](https://togithub.com/rubocop/rubocop/issues/8590): Fix an error when auto-correcting encoding mismatch file. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8321](https://togithub.com/rubocop/rubocop/issues/8321): Enable auto-correction for `Layout/{Def}EndAlignment`, `Lint/EmptyEnsure`, `Style/ClassAndModuleChildren`. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8583](https://togithub.com/rubocop/rubocop/issues/8583): Fix `Style/RedundantRegexpEscape` false positive for line continuations. (\[[@​owst](https://togithub.com/owst)]\[]) - [#​8593](https://togithub.com/rubocop/rubocop/issues/8593): Fix `Style/RedundantRegexpCharacterClass` false positive for interpolated multi-line expressions. (\[[@​owst](https://togithub.com/owst)]\[]) - [#​8624](https://togithub.com/rubocop/rubocop/pull/8624): Fix an error with the `Style/CaseLikeIf` cop where it does not properly handle overridden equality methods with no arguments. (\[[@​Skipants](https://togithub.com/Skipants)]\[]) ##### Changes - [#​8413](https://togithub.com/rubocop/rubocop/issues/8413): Pending cops warning now contains snippet that can be directly copied into `.rubocop.yml` as well as a notice about `NewCops: enable` config option. (\[[@​colszowka](https://togithub.com/colszowka)]\[]) - [#​8362](https://togithub.com/rubocop/rubocop/issues/8362): Add numbers of correctable offenses to summary. (\[[@​nguyenquangminh0711](https://togithub.com/nguyenquangminh0711)]\[]) - [#​8513](https://togithub.com/rubocop/rubocop/pull/8513): Clarify the ruby warning mentioned in the `Lint/ShadowingOuterLocalVariable` documentation. (\[[@​chocolateboy](https://togithub.com/chocolateboy)]\[]) - [#​8517](https://togithub.com/rubocop/rubocop/pull/8517): Make `Style/HashTransformKeys` and `Style/HashTransformValues` aware of `to_h` with block. (\[[@​eugeneius](https://togithub.com/eugeneius)]\[]) - [#​8529](https://togithub.com/rubocop/rubocop/pull/8529): Mark `Style/FrozenStringLiteralComment` as `Safe`, but with unsafe auto-correction. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8602](https://togithub.com/rubocop/rubocop/pull/8602): Fix usage of `to_enum(:scan, regexp)` to work on TruffleRuby. (\[[@​jaimerave](https://togithub.com/jaimerave)]\[]) ### [`v0.89.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#0891-2020-08-10) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v0.89.0...v0.89.1) ##### Bug fixes - [#​8463](https://togithub.com/rubocop/rubocop/pull/8463): Fix false positives for `Lint/OutOfRangeRegexpRef` when a regexp is defined and matched in separate steps. (\[[@​eugeneius](https://togithub.com/eugeneius)]\[]) - [#​8464](https://togithub.com/rubocop/rubocop/pull/8464): Handle regexps matched with `when`, `grep`, `gsub`, `gsub!`, `sub`, `sub!`, `[]`, `slice`, `slice!`, `scan`, `index`, `rindex`, `partition`, `rpartition`, `start_with?`, and `end_with?` in `Lint/OutOfRangeRegexpRef`. (\[[@​eugeneius](https://togithub.com/eugeneius)]\[]) - [#​8466](https://togithub.com/rubocop/rubocop/issues/8466): Fix a false positive for `Lint/UriRegexp` when using `regexp` method without receiver. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8478](https://togithub.com/rubocop/rubocop/issues/8478): Relax `Lint/BinaryOperatorWithIdenticalOperands` for mathematical operations. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8480](https://togithub.com/rubocop/rubocop/issues/8480): Tweak callback list of `Lint/MissingSuper`. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8481](https://togithub.com/rubocop/rubocop/pull/8481): Fix autocorrect for elements with newlines in `Style/SymbolArray` and `Style/WordArray`. (\[[@​biinari](https://togithub.com/biinari)]\[]) - [#​8475](https://togithub.com/rubocop/rubocop/issues/8475): Fix a false positive for `Style/HashAsLastArrayItem` when there are duplicate hashes in the array. (\[[@​wcmonty](https://togithub.com/wcmonty)]\[]) - [#​8497](https://togithub.com/rubocop/rubocop/issues/8497): Fix `Style/IfUnlessModifier` to add parentheses when converting if-end condition inside a parenthesized method argument list. (\[[@​dsavochkin](https://togithub.com/dsavochkin)]\[]) ##### Changes - [#​8487](https://togithub.com/rubocop/rubocop/pull/8487): Detect `<` and `>` as comparison operators in `Style/ConditionalAssignment` cop. (\[[@​biinari](https://togithub.com/biinari)]\[]) ### [`v0.89.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#0890-2020-08-05) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v0.88.0...v0.89.0) ##### New features - [#​8322](https://togithub.com/rubocop/rubocop/pull/8322): Support autocorrect for `Style/CaseEquality` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​7876](https://togithub.com/rubocop/rubocop/issues/7876): Enhance `Gemspec/RequiredRubyVersion` cop with check that `required_ruby_version` is specified. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8291](https://togithub.com/rubocop/rubocop/pull/8291): Add new `Lint/SelfAssignment` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8389](https://togithub.com/rubocop/rubocop/pull/8389): Add new `Lint/DuplicateRescueException` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8433](https://togithub.com/rubocop/rubocop/pull/8433): Add new `Lint/BinaryOperatorWithIdenticalOperands` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8430](https://togithub.com/rubocop/rubocop/pull/8430): Add new `Lint/UnreachableLoop` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8412](https://togithub.com/rubocop/rubocop/pull/8412): Add new `Style/OptionalBooleanParameter` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8432](https://togithub.com/rubocop/rubocop/pull/8432): Add new `Lint/FloatComparison` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8376](https://togithub.com/rubocop/rubocop/pull/8376): Add new `Lint/MissingSuper` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8415](https://togithub.com/rubocop/rubocop/pull/8415): Add new `Style/ExplicitBlockArgument` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8383](https://togithub.com/rubocop/rubocop/pull/8383): Support autocorrect for `Lint/Loop` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8339](https://togithub.com/rubocop/rubocop/pull/8339): Add `Config#for_badge` as an efficient way to get a cop's config merged with its department's. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​5067](https://togithub.com/rubocop/rubocop/issues/5067): Add new `Style/StringConcatenation` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​7425](https://togithub.com/rubocop/rubocop/pull/7425): Add new `Lint/TopLevelReturnWithArgument` cop. (\[[@​iamravitejag](https://togithub.com/iamravitejag)]\[]) - [#​8417](https://togithub.com/rubocop/rubocop/pull/8417): Add new `Style/GlobalStdStream` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​7949](https://togithub.com/rubocop/rubocop/issues/7949): Add new `Style/SingleArgumentDig` cop. (\[[@​volfgox](https://togithub.com/volfgox)]\[]) - [#​8341](https://togithub.com/rubocop/rubocop/pull/8341): Add new `Lint/EmptyConditionalBody` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​7755](https://togithub.com/rubocop/rubocop/issues/7755): Add new `Lint/OutOfRangeRegexpRef` cop. (\[[@​sonalinavlakhe](https://togithub.com/sonalinavlakhe)]\[]) ##### Bug fixes - [#​8346](https://togithub.com/rubocop/rubocop/pull/8346): Allow parentheses in single-line inheritance with `Style/MethodCallWithArgsParentheses` `EnforcedStyle: omit_parentheses` to fix invalid Ruby auto-correction. (\[[@​gsamokovarov](https://togithub.com/gsamokovarov)]\[]) - [#​8324](https://togithub.com/rubocop/rubocop/issues/8324): Fix crash for `Layout/SpaceAroundMethodCallOperator` when using `Proc#call` shorthand syntax. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8332](https://togithub.com/rubocop/rubocop/pull/8332): Fix auto-correct in `Style/ConditionalAssignment` to preserve constant namespace. (\[[@​biinari](https://togithub.com/biinari)]\[]) - [#​8344](https://togithub.com/rubocop/rubocop/issues/8344): Fix crash for `Style/CaseLikeIf` when checking against `equal?` and `match?` without a receiver. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8323](https://togithub.com/rubocop/rubocop/issues/8323): Fix a false positive for `Style/HashAsLastArrayItem` when hash is not a last array item. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8299](https://togithub.com/rubocop/rubocop/issues/8299): Fix an incorrect auto-correct for `Style/RedundantCondition` when using `raise`, `rescue`, or `and` without argument parentheses in `else`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8335](https://togithub.com/rubocop/rubocop/issues/8335): Fix incorrect character class detection for nested or POSIX bracket character classes in `Style/RedundantRegexpEscape`. (\[[@​owst](https://togithub.com/owst)]\[]) - [#​8347](https://togithub.com/rubocop/rubocop/issues/8347): Fix an incorrect auto-correct for `EnforcedStyle: hash_rockets` of `Style/HashSyntax` with `Layout/HashAlignment`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8375](https://togithub.com/rubocop/rubocop/pull/8375): Fix an infinite loop error for `Style/EmptyMethod`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8385](https://togithub.com/rubocop/rubocop/pull/8385): Remove auto-correction for `Lint/EnsureReturn`. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8391](https://togithub.com/rubocop/rubocop/issues/8391): Mark `Style/ArrayCoercion` as not safe. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8406](https://togithub.com/rubocop/rubocop/issues/8406): Improve `Style/AccessorGrouping`'s auto-correction to remove redundant blank lines. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8330](https://togithub.com/rubocop/rubocop/issues/8330): Fix a false positive for `Style/MissingRespondToMissing` when defined method with inline access modifier. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8422](https://togithub.com/rubocop/rubocop/issues/8422): Fix an error for `Lint/SelfAssignment` when using or-assignment for constant. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8423](https://togithub.com/rubocop/rubocop/issues/8423): Fix an error for `Style/SingleArgumentDig` when without a receiver. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8424](https://togithub.com/rubocop/rubocop/issues/8424): Fix an error for `Lint/IneffectiveAccessModifier` when there is `begin...end` before a method definition. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8006](https://togithub.com/rubocop/rubocop/issues/8006): Fix line length calculation for `Style/IfUnlessModifier` to correctly take into account code before the if condition when considering conversation to a single-line form. (\[[@​dsavochkin](https://togithub.com/dsavochkin)]\[]) - [#​8283](https://togithub.com/rubocop/rubocop/issues/8283): Fix line length calculation for `Style/IfUnlessModifier` to correctly take into account a comment on the first line when considering conversation to a single-line form. (\[[@​dsavochkin](https://togithub.com/dsavochkin)]\[]) - [#​7957](https://togithub.com/rubocop/rubocop/issues/7957): Fix line length calculation for `Style/IfUnlessModifier` to correctly take into account code on the last line after the end keyword when considering conversion to a single-line form. (\[[@​dsavochkin](https://togithub.com/dsavochkin)]\[]) - [#​8226](https://togithub.com/rubocop/rubocop/issues/8226): Fix `Style/IfUnlessModifier` to add parentheses when converting if-end condition inside an array or a hash to a single-line form. (\[[@​dsavochkin](https://togithub.com/dsavochkin)]\[]) - [#​8443](https://togithub.com/rubocop/rubocop/pull/8443): Fix an incorrect auto-correct for `Style/StructInheritance` when there is a comment before class declaration. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8444](https://togithub.com/rubocop/rubocop/issues/8444): Fix an error for `Layout/FirstMethodArgumentLineBreak` when using kwargs in `super`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8448](https://togithub.com/rubocop/rubocop/pull/8448): Fix `Style/NestedParenthesizedCalls` to include line continuations in whitespace for auto-correct. (\[[@​biinari](https://togithub.com/biinari)]\[]) ##### Changes - [#​8376](https://togithub.com/rubocop/rubocop/pull/8376): `Style/MethodMissingSuper` cop is removed in favor of new `Lint/MissingSuper` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8433](https://togithub.com/rubocop/rubocop/pull/8433): `Lint/UselessComparison` cop is removed in favor of new `Lint/BinaryOperatorWithIdenticalOperands` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8350](https://togithub.com/rubocop/rubocop/pull/8350): Set default max line length to 120 for `Style/MultilineMethodSignature`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8338](https://togithub.com/rubocop/rubocop/pull/8338): **potentially breaking**. Config#for_department now returns only the config specified for that department; the 'Enabled' attribute is no longer calculated. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8037](https://togithub.com/rubocop/rubocop/pull/8037): **(Breaking)** Cop `Metrics/AbcSize` now counts ||=, &&=, multiple assignments, for, yield, iterating blocks. `&.` now count as conditions too (unless repeated on the same variable). Default bumped from 15 to 17. Consider using `rubocop -a --disable-uncorrectable` to ease transition. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8276](https://togithub.com/rubocop/rubocop/issues/8276): Cop `Metrics/CyclomaticComplexity` not longer counts `&.` when repeated on the same variable. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8204](https://togithub.com/rubocop/rubocop/pull/8204): **(Breaking)** Cop `Metrics/PerceivedComplexity` now counts `else` in `case` statements, `&.`, `||=`, `&&=` and blocks known to iterate. Default bumped from 7 to 8. Consider using `rubocop -a --disable-uncorrectable` to ease transition. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8416](https://togithub.com/rubocop/rubocop/issues/8416): Cop `Lint/InterpolationCheck` marked as unsafe. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8442](https://togithub.com/rubocop/rubocop/pull/8442): Remove `RuboCop::Cop::ParserDiagnostic` mixin module. (\[[@​koic](https://togithub.com/koic)]\[]) ### [`v0.88.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#0880-2020-07-13) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v0.87.1...v0.88.0) ##### New features - [#​8279](https://togithub.com/rubocop/rubocop/pull/8279): Recognise require method passed as argument in `Lint/NonDeterministicRequireOrder` cop. (\[[@​biinari](https://togithub.com/biinari)]\[]) - [#​7333](https://togithub.com/rubocop/rubocop/issues/7333): Add new `Style/RedundantFileExtensionInRequire` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8316](https://togithub.com/rubocop/rubocop/pull/8316): Support autocorrect for `Lint/DisjunctiveAssignmentInConstructor` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8242](https://togithub.com/rubocop/rubocop/pull/8242): Internal profiling available with `bin/rubocop-profile` and rake tasks. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8295](https://togithub.com/rubocop/rubocop/pull/8295): Add new `Style/ArrayCoercion` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8293](https://togithub.com/rubocop/rubocop/pull/8293): Add new `Lint/DuplicateElsifCondition` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​7736](https://togithub.com/rubocop/rubocop/issues/7736): Add new `Style/CaseLikeIf` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​4286](https://togithub.com/rubocop/rubocop/issues/4286): Add new `Style/HashAsLastArrayItem` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8247](https://togithub.com/rubocop/rubocop/issues/8247): Add new `Style/HashLikeCase` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8286](https://togithub.com/rubocop/rubocop/issues/8286): Internal method `expect_offense` allows abbreviated offense messages. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) ##### Bug fixes - [#​8232](https://togithub.com/rubocop/rubocop/issues/8232): Fix a false positive for `Layout/EmptyLinesAroundAccessModifier` when `end` immediately after access modifier. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​7777](https://togithub.com/rubocop/rubocop/issues/7777): Fix crash for `Layout/MultilineArrayBraceLayout` when comment is present after last element. (\[[@​shekhar-patil](https://togithub.com/shekhar-patil)]\[]) - [#​7776](https://togithub.com/rubocop/rubocop/issues/7776): Fix crash for `Layout/MultilineMethodCallBraceLayout` when comment is present before closing braces. (\[[@​shekhar-patil](https://togithub.com/shekhar-patil)]\[]) - [#​8282](https://togithub.com/rubocop/rubocop/issues/8282): Fix `Style/IfUnlessModifier` bad precedence detection. (\[[@​tejasbubane](https://togithub.com/tejasbubane)]\[]) - [#​8289](https://togithub.com/rubocop/rubocop/issues/8289): Fix `Style/AccessorGrouping` to not register offense for accessor with comment. (\[[@​tejasbubane](https://togithub.com/tejasbubane)]\[]) - [#​8310](https://togithub.com/rubocop/rubocop/pull/8310): Handle major version requirements in `Gemspec/RequiredRubyVersion`. (\[[@​eugeneius](https://togithub.com/eugeneius)]\[]) - [#​8315](https://togithub.com/rubocop/rubocop/pull/8315): Fix crash for `Style/PercentLiteralDelimiters` when the source contains invalid characters. (\[[@​eugeneius](https://togithub.com/eugeneius)]\[]) - [#​8239](https://togithub.com/rubocop/rubocop/pull/8239): Don't load `.rubocop.yml` files at all outside of the current project, unless they are personal configuration files and the project has no configuration. (\[[@​deivid-rodriguez](https://togithub.com/deivid-rodriguez)]\[]) ##### Changes - [#​8021](https://togithub.com/rubocop/rubocop/issues/8021): Rewrite `Layout/SpaceAroundMethodCallOperator` cop to make it faster. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8294](https://togithub.com/rubocop/rubocop/pull/8294): Add `of` to `AllowedNames` of `MethodParameterName` cop. (\[[@​AlexWayfer](https://togithub.com/AlexWayfer)]\[]) ### [`v0.87.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#0871-2020-07-07) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v0.87.0...v0.87.1) ##### Bug fixes - [#​8189](https://togithub.com/rubocop/rubocop/issues/8189): Fix an error for `Layout/MultilineBlockLayout` where spaces for a new line where not considered. (\[[@​knejad](https://togithub.com/knejad)]\[]) - [#​8252](https://togithub.com/rubocop/rubocop/issues/8252): Fix a command line option name from `--safe-autocorrect` to `--safe-auto-correct`, which is compatible with RuboCop 0.86 and lower. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8259](https://togithub.com/rubocop/rubocop/issues/8259): Fix false positives for `Style/BisectedAttrAccessor` when accessors have different access modifiers. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8253](https://togithub.com/rubocop/rubocop/issues/8253): Fix false positives for `Style/AccessorGrouping` when accessors have different access modifiers. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8257](https://togithub.com/rubocop/rubocop/issues/8257): Fix an error for `Style/BisectedAttrAccessor` when using `attr_reader` and `attr_writer` with splat arguments. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8239](https://togithub.com/rubocop/rubocop/pull/8239): Don't load `.rubocop.yml` from personal folders to check for exclusions if given a custom configuration file. (\[[@​deivid-rodriguez](https://togithub.com/deivid-rodriguez)]\[]) - [#​8256](https://togithub.com/rubocop/rubocop/issues/8256): Fix an error for `--auto-gen-config` when running a cop who do not support auto-correction. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8262](https://togithub.com/rubocop/rubocop/pull/8262): Fix `Lint/DeprecatedOpenSSLConstant` auto-correction of `OpenSSL::Cipher` to use lower case, as some Linux-based systems do not accept upper cased cipher names. (\[[@​bdewater](https://togithub.com/bdewater)]\[]) ### [`v0.87.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#0870-2020-07-06) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v0.86.0...v0.87.0) ##### New features - [#​7868](https://togithub.com/rubocop/rubocop/pull/7868): `Cop::Base` is the new recommended base class for cops. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​3983](https://togithub.com/rubocop/rubocop/issues/3983): Add new `Style/AccessorGrouping` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8244](https://togithub.com/rubocop/rubocop/pull/8244): Add new `Style/BisectedAttrAccessor` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​7458](https://togithub.com/rubocop/rubocop/issues/7458): Add new `AsciiConstants` option for `Naming/AsciiIdentifiers`. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​7373](https://togithub.com/rubocop/rubocop/issues/7373): Add new `Style/RedundantAssignment` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8213](https://togithub.com/rubocop/rubocop/pull/8213): Permit to specify TargetRubyVersion 2.8 (experimental). (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8159](https://togithub.com/rubocop/rubocop/pull/8159): Add new `CountAsOne` option for code length related `Metric` cops. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8164](https://togithub.com/rubocop/rubocop/pull/8164): Support auto-correction for `Lint/InterpolationCheck`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8223](https://togithub.com/rubocop/rubocop/pull/8223): Support auto-correction for `Style/IfUnlessModifierOfIfUnless`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8172](https://togithub.com/rubocop/rubocop/pull/8172): Support auto-correction for `Lint/SafeNavigationWithEmpty`. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Bug fixes - [#​8039](https://togithub.com/rubocop/rubocop/pull/8039): Fix false positives for `Lint/ParenthesesAsGroupedExpression` in when using operators or chain functions. (\[[@​CamilleDrapier](https://togithub.com/CamilleDrapier)]\[]) - [#​8196](https://togithub.com/rubocop/rubocop/issues/8196): Fix a false positive for `Style/RedundantFetchBlock` when using with `Rails.cache`. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8195](https://togithub.com/rubocop/rubocop/issues/8195): Fix an error for `Style/RedundantFetchBlock` when using `#fetch` with empty block. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8193](https://togithub.com/rubocop/rubocop/issues/8193): Fix a false positive for `Style/RedundantRegexpCharacterClass` when using `[\b]`. (\[[@​owst](https://togithub.com/owst)]\[]) - [#​8205](https://togithub.com/rubocop/rubocop/issues/8205): Fix a false positive for `Style/RedundantRegexpCharacterClass` when using a leading escaped `]`. (\[[@​owst](https://togithub.com/owst)]\[]) - [#​8208](https://togithub.com/rubocop/rubocop/issues/8208): Fix `Style/RedundantParentheses` with hash literal as first argument to `yield`. (\[[@​karlwithak](https://togithub.com/karlwithak)]\[]) - [#​8176](https://togithub.com/rubocop/rubocop/pull/8176): Don't load `.rubocop.yml` from personal folders to check for exclusions if there's a project configuration. (\[[@​deivid-rodriguez](https://togithub.com/deivid-rodriguez)]\[]) ##### Changes - [#​7868](https://togithub.com/rubocop/rubocop/pull/7868): **(Breaking)** Extensive refactoring of internal classes `Team`, `Commissioner`, `Corrector`. `Cop::Cop#corrections` not completely compatible. See Upgrade Notes. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8156](https://togithub.com/rubocop/rubocop/issues/8156): **(Breaking)** `rubocop -a / --auto-correct` no longer run unsafe corrections; `rubocop -A / --auto-correct-all` run both safe and unsafe corrections. Options `--safe-autocorrect` is deprecated. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8207](https://togithub.com/rubocop/rubocop/pull/8207): **(Breaking)** Order for gems names now disregards underscores and dashes unless `ConsiderPunctuation` setting is set to `true`. (\[[@​marcandre](https://togithub.com/marcandre)]\[]) - [#​8211](https://togithub.com/rubocop/rubocop/pull/8211): `Style/ClassVars` cop now detects `class_variable_set`. (\[[@​biinari](https://togithub.com/biinari)]\[]) - [#​8245](https://togithub.com/rubocop/rubocop/pull/8245): Detect top-level constants like `::Const` in various cops. (\[[@​biinari](https://togithub.com/biinari)]\[]) ### [`v0.86.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#0860-2020-06-22) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v0.85.1...v0.86.0) ##### New features - [#​8147](https://togithub.com/rubocop/rubocop/pull/8147): Add new `Style/RedundantFetchBlock` cop. (\[[@​fatkodima](https://togithub.com/fatkodima)]\[]) - [#​8111](https://togithub.com/rubocop/rubocop/pull/8111): Add auto-correct for `Style/StructInheritance`. (\[[@​tejasbubane](https://togithub.com/tejasbubane)]\[]) - [#​8113](https://togithub.com/rubocop/rubocop/pull/8113): Let `expect_offense` templates add variable-length whitespace with `_{foo}`. (\[[@​eugeneius](https://togithub.com/eugeneius)]\[]) - [#​8148](https://togithub.com/rubocop/rubocop/pull/8148): Support auto-correction for `Style/MultilineTernaryOperator`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8151](https://togithub.com/rubocop/rubocop/pull/8151): Support auto-correction for `Style/NestedTernaryOperator`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8142](https://togithub.com/rubocop/rubocop/pull/8142): Add `Lint/ConstantResolution` cop. (\[[@​robotdana](https://togithub.com/robotdana)]\[]) - [#​8170](https://togithub.com/rubocop/rubocop/pull/8170): Support auto-correction for `Lint/RegexpAsCondition`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8169](https://togithub.com/rubocop/rubocop/pull/8169): Support auto-correction for `Lint/RaiseException`. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Bug fixes - [#​8132](https://togithub.com/rubocop/rubocop/issues/8132): Fix the problem with `Naming/MethodName: EnforcedStyle: camelCase` and `_` or `i` variables. (\[[@​avrusanov](https://togithub.com/avrusanov)]\[]) - [#​8115](https://togithub.com/rubocop/rubocop/issues/8115): Fix false negative for `Lint::FormatParameterMismatch` when argument contains formatting. (\[[@​andrykonchin](https://togithub.com/andrykonchin)]\[]) - [#​8131](https://togithub.com/rubocop/rubocop/pull/8131): Fix false positive for `Style/RedundantRegexpEscape` with escaped delimiters. (\[[@​owst](https://togithub.com/owst)]\[]) - [#​8124](https://togithub.com/rubocop/rubocop/issues/8124): Fix a false positive for `Lint/FormatParameterMismatch` when using named parameters with escaped `%`. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​7979](https://togithub.com/rubocop/rubocop/issues/7979): Fix "uninitialized constant DidYouMean::SpellChecker" exception. (\[[@​bquorning](https://togithub.com/bquorning)]\[]) - [#​8098](https://togithub.com/rubocop/rubocop/issues/8098): Fix a false positive for `Style/RedundantRegexpCharacterClass` when using interpolations. (\[[@​owst](https://togithub.com/owst)]\[]) - [#​8150](https://togithub.com/rubocop/rubocop/pull/8150): Fix a false positive for `Layout/EmptyLinesAroundAttributeAccessor` when using attribute accessors in `if` ... `else` branches. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8179](https://togithub.com/rubocop/rubocop/issues/8179): Fix an infinite correction loop error for `Layout/MultilineBlockLayout` when missing newline before opening parenthesis `(` for block body. (\[[@​koic](https://togithub.com/koic)]\[]) - [#​8185](https://togithub.com/rubocop/rubocop/issues/8185): Fix a false positive for `Style/YodaCondition` when interpolation is used on the left hand side. (\[[@​koic](https://togithub.com/koic)]\[]) ##### Changes - [#​8149](https://togithub.com/rubocop/rubocop/pull/8149): **(Breaking)** Cop `Metrics/CyclomaticComplexity` now counts `&.`, `||=`, `&&=` and blocks known to iterate. Default bumped from 6 to 7. Consider using `rubocop -a --disable-uncorrectable` to ease transition. (

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.