#9037: Fix required_ruby_version issue when using Gem::Requirement. (@cetinajero)
#9039: Fix stack level too deep error if target directory contains **. (@unasuke)
#6962: Limit Layout/ClassStructure constant order autocorrect to literal constants. (@tejasbubane)
#9032: Fix an error for Style/DocumentDynamicEvalDefinition when using eval-type method with interpolated string that is not heredoc without comment doc. (@koic)
#9049: Have Lint/ToEnumArguments accept __callee__. (@marcandre)
#9050: Fix a false positive for Style/NegatedIfElseCondition when if with !! condition. (@koic)
#9041: Fix a false positive for Naming/VariableNumber when using integer symbols. (@koic)
Changes
#9045: Have cut_release handle "config/default" and generate cops doc. (@marcandre)
#9036: Allow enums method by default for Lint/ConstantDefinitionInBlock. (@koic)
#9035: Only complain about SafeYAML if it causes issues. (@marcandre)
RuboCop 1.3
New features
#8761: Read required_ruby_version from gemspec file if it exists. ([@HeroProtagonist][])
#8499: Fix Style/IfUnlessModifier and Style/WhileUntilModifier to prevent an offense if there are both first-line comment and code after end block. ([@dsavochkin][])
#8996: Fix a false positive for Style/MultipleComparison when comparing two sides of the disjunction is unrelated. (@koic)
#8975: Fix an infinite loop when autocorrecting Layout/TrailingWhitespace + Lint/LiteralInInterpolation. ([@fatkodima][])
#8998: Fix an error for Style/NegatedIfElseCondition when using negated condition and if branch body is empty. (@koic)
#9037: Fix required_ruby_version issue when using Gem::Requirement. ([@cetinajero][])
#9039: Fix stack level too deep error if target directory contains **. ([@unasuke][])
#6962: Limit Layout/ClassStructure constant order autocorrect to literal constants. ([@tejasbubane][])
#9032: Fix an error for Style/DocumentDynamicEvalDefinition when using eval-type method with interpolated string that is not heredoc without comment doc. ([@koic][])
#9049: Have Lint/ToEnumArguments accept __callee__. ([@marcandre][])
#9050: Fix a false positive for Style/NegatedIfElseCondition when if with !! condition. ([@koic][])
#9041: Fix a false positive for Naming/VariableNumber when using integer symbols. ([@koic][])
Changes
#9045: Have cut_release handle "config/default" and generate cops doc. ([@marcandre][])
#9036: Allow enums method by default for Lint/ConstantDefinitionInBlock. ([@koic][])
#9035: Only complain about SafeYAML if it causes issues. ([@marcandre][])
1.3.0 (2020-11-12)
New features
#8761: Read required_ruby_version from gemspec file if it exists. ([@HeroProtagonist][])
#8499: Fix Style/IfUnlessModifier and Style/WhileUntilModifier to prevent an offense if there are both first-line comment and code after end block. ([@dsavochkin][])
#8996: Fix a false positive for Style/MultipleComparison when comparing two sides of the disjunction is unrelated. ([@koic][])
#8975: Fix an infinite loop when autocorrecting Layout/TrailingWhitespace + Lint/LiteralInInterpolation. ([@fatkodima][])
#8998: Fix an error for Style/NegatedIfElseCondition when using negated condition and if branch body is empty. ([@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)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps rubocop from 0.87.1 to 1.3.1.
Release notes
Sourced from rubocop's releases.
Changelog
Sourced from rubocop's changelog.
Commits
ad62ad9
Cut 1.3.1eaa49f7
Update Changelog9ed12d5
Move a changelog entrya76a2a4
LimitLayout/ClassStructure
constant order autocorrect to literal constants51fa5bf
Merge pull request #9054 from koic/drop_patch_versions_from_default_ymlc3c7283
Remove redundant patch version from default.ymlee6a72f
Merge pull request #9051 from koic/fix_false_negative_for_negated_if_else_con...06eec86
[Fixes #9049] HaveLint/ToEnumArguments
accept__callee__
c5b9552
[Fix #9050] Fix a false positive forStyle/NegatedIfElseCondition
1905f1b
Havecut_release
handle "config/default" and generate cops doc.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) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)