#8720: Fix an error for Lint/IdentityComparison when calling object_id method without receiver in LHS or RHS. (@koic)
#8767: Fix a false positive for Style/RedundantReturn when a rescue has an else clause. (@fatkodima)
#8710: Fix a false positive for Layout/RescueEnsureAlignment when Layout/BeginEndAlignment cop is not enabled status. (@koic)
#8726: Fix a false positive for Naming/VariableNumber when naming multibyte character variable name. (@koic)
#8730: Fix an error for Lint/UselessTimes when there is a blank line in the method definition. (@koic)
#8740: Fix a false positive for Style/HashAsLastArrayItem when the hash is in an implicit array. (@dvandersluis)
#8739: Fix an error for Lint/UselessTimes when using empty block argument. (@koic)
#8742: Fix some assignment counts for Metrics/AbcSize. (@marcandre)
#8750: Fix an incorrect auto-correct for Style/MultilineWhenThen when line break for multiple condidate values of when statement. (@koic)
#8754: Fix an error for Style/RandomWithOffset when using a range with non-integer bounds. (@eugeneius)
#8756: Fix an infinite loop error for Layout/EmptyLinesAroundAccessModifier with Layout/EmptyLinesAroundBlockBody when using access modifier with block argument. (@koic)
#8372: Fix Lint/RedundantCopEnableDirective autocorrection to not leave orphaned empty # rubocop:enable comments. (@dvandersluis)
#8764: Fix Layout/CaseIndentation not showing the cop name in output messages. (@dvandersluis)
#8771: Fix an error for Style/OneLineConditional when using if-then-elsif-then-end. (@koic)
#8576: Fix Style/IfUnlessModifier to ignore cop disable comment directives when considering conversion to the modifier form. (@dsavochkin)
Changes
#8489: Exclude method respond_to_missing? from OptionalBooleanParameter cop. (@em-gazelle)
#7914: Style/SafeNavigation marked as having unsafe auto-correction. (@marcandre)
#8749: Disable Style/IpAddresses by default in Gemfile and gemspec files. (@dvandersluis)
RuboCop 0.91
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][])
#8582: Add new Layout/BeginEndAlignment cop. (@koic)
#8699: Add new Lint/IdentityComparison cop. (@koic)
#8720: Fix an error for Lint/IdentityComparison when calling object_id method without receiver in LHS or RHS. ([@koic][])
#8767: Fix a false positive for Style/RedundantReturn when a rescue has an else clause. ([@fatkodima][])
#8710: Fix a false positive for Layout/RescueEnsureAlignment when Layout/BeginEndAlignment cop is not enabled status. ([@koic][])
#8726: Fix a false positive for Naming/VariableNumber when naming multibyte character variable name. ([@koic][])
#8730: Fix an error for Lint/UselessTimes when there is a blank line in the method definition. ([@koic][])
#8740: Fix a false positive for Style/HashAsLastArrayItem when the hash is in an implicit array. ([@dvandersluis][])
#8739: Fix an error for Lint/UselessTimes when using empty block argument. ([@koic][])
#8742: Fix some assignment counts for Metrics/AbcSize. ([@marcandre][])
#8750: Fix an incorrect auto-correct for Style/MultilineWhenThen when line break for multiple condidate values of when statement. ([@koic][])
#8754: Fix an error for Style/RandomWithOffset when using a range with non-integer bounds. ([@eugeneius][])
#8756: Fix an infinite loop error for Layout/EmptyLinesAroundAccessModifier with Layout/EmptyLinesAroundBlockBody when using access modifier with block argument. ([@koic][])
#8372: Fix Lint/RedundantCopEnableDirective autocorrection to not leave orphaned empty # rubocop:enable comments. ([@dvandersluis][])
#8764: Fix Layout/CaseIndentation not showing the cop name in output messages. ([@dvandersluis][])
#8771: Fix an error for Style/OneLineConditional when using if-then-elsif-then-end. ([@koic][])
#8576: Fix Style/IfUnlessModifier to ignore cop disable comment directives when considering conversion to the modifier form. ([@dsavochkin][])
Changes
#8489: Exclude method respond_to_missing? from OptionalBooleanParameter cop. ([@em-gazelle][])
#7914: Style/SafeNavigation marked as having unsafe auto-correction. ([@marcandre][])
#8749: Disable Style/IpAddresses by default in Gemfile and gemspec files. ([@dvandersluis][])
0.91.0 (2020-09-15)
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][])
#8582: Add new Layout/BeginEndAlignment cop. ([@koic][])
#8699: Add new Lint/IdentityComparison cop. ([@koic][])
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps rubocop from 0.75.0 to 0.91.1.
Release notes
Sourced from rubocop's releases.
Changelog
Sourced from rubocop's changelog.
Commits
de054ee
Cut 0.91.1c21be8f
[Fix #8372] FixLint/RedundantCopEnableDirective
autocorrection not removin...b59c48a
[Fix #8372] FixLint/RedundantCopDisableDirective
autocorrection removing a...39f0624
Move a changelog entry54c63cf
[Fix #8576] FixStyle/IfUnlessModifier
to ignore cop disable comment direct...3ec3e38
Tweak a couple of changelog entries5cc162e
[Fix #8771] Fix an error forStyle/OneLineConditional
faaa683
Merge pull request #8769 from koic/use_cop_base_api_for_several_style_copsc70badc
Merge pull request #8768 from fatkodima/redundant_return-rescue-elsefd6d273
UseCop::Base
API for someStyle
copsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)