Bump rubocop from 0.57.1 to 0.68.1 by dependabot-preview[bot] · Pull Request #5 · lyuich/sample-rails-ruby
Bumps rubocop from 0.57.1 to 0.68.1.
Release notes
Sourced from rubocop's releases.
RuboCop 0.68.1
Bug fixes
- #6993: Allowing for empty if blocks, preventing
Style/SafeNavigationfrom crashing. (@RicardoTrindade)- #6995: Fix an incorrect auto-correct for
Style/RedundantParentheseswhen enclosed in parentheses atwhile-postoruntil-post. (@koic)- #6996: Fix a false positive for
Style/RedundantFreezewhen freezing the result ofString#*. (@bquorning)- #6998: Fix autocorrect of
Naming/RescuedExceptionsVariableNameto also rename all references to the variable. (@Darhazer)- #6992: Fix unknown default configuration for
Layout/IndentFirstParametercop. (@drenmi)- #6972: Fix a false positive for
Style/MixinUsagewhen using inside block andifcondition is afterinclude. (@koic)- #6738: Prevent auto-correct conflict of
Style/NextandStyle/SafeNavigation. (@hoshinotsuyoshi)- #6847: Fix
Style/BlockDelimitersto properly check if the node is chaned whenbraces_for_chainingis set. (@att14)RuboCop 0.68
New features
- #6973: Add
always_bracestoStyle/BlockDelimiter. ([@iGEL][])- #6841: Node patterns can now match children in any order using
<>. ([@marcandre][])- #6928: Add
--initoption for generate.rubocop.ymlfile in the current directory. (@koic)- Add new
Layout/HeredocArgumentClosingParenthesiscop. ([@maxh][])- #6895: Add support for XDG config home for user-config. ([@Mange][], [@tejasbubane][])
- Add initial autocorrection support to
Metrics/LineLength. ([@maxh][])- Add
Layout/IndentFirstParameter. ([@maxh][])- #6974: Make
Layout/FirstMethodArgumentLineBreakaware of calling usingsuper. (@koic)- Add new
Lint/HeredocMethodCallPositioncop. ([@maxh][])Bug fixes
... (truncated)
- Do not annotate message with cop name in JSON output. ([@elebow][])
- #6914: Fix an error for
Rails/RedundantAllowNilwhen with interpolations. ([@Blue-Pix][])- #6888: Fix an error for
Rails/ActiveRecordOverridewhen noparent_classpresent. ([@diachini][])- #6941: Add missing absence validations to
Rails/Validation. ([@jmanian][])- #6926: Allow nil values to unset config defaults. ([@dduugg][])
- #6946: Allow
Rails/ReflectionClassNameto use string interpolation forclass_name. ([@r7kamura][])- #6778: Fix a false positive in
Style/HashSyntaxcop when a hash key is an interpolated string and EnforcedStyle is ruby19_no_mixed_keys. ([@tatsuyafw][])- #6902: Fix a bug where
Naming/RescuedExceptionsVariableNamewould handle an only first rescue for multiple rescue groups. ([@tatsuyafw][])- #6860: Prevent auto-correct conflict of
Style/InverseMethodsandStyle/Not. (@hoshinotsuyoshi)- #6935:
Layout/AccessModifierIndentationshould ignore access modifiers that apply to specific methods. ([@deivid-rodriguez][])- #6956: Prevent auto-correct confliction of
Lint/LambdaandLint/UnusedBlockArgument. (@koic)- #6915: Fix false positive in
Style/SafeNavigationwhen a modifier if is safe guarding a method call being passed tobreak,fail,next,raise,return,throw, andyield. ([@rrosenblum][])- #6822: Fix Lint/LiteralInInterpolation autocorrection for single quotes. (@hoshinotsuyoshi)
- #6985: Fix an incorrect auto-correct for
Lint/LiteralInInterpolationif contains array percent literal. ([@yakout][])
Changelog
Sourced from rubocop's changelog.
0.68.1 (2019-04-30)
Bug fixes
- #6993: Allowing for empty if blocks, preventing
Style/SafeNavigationfrom crashing. ([@RicardoTrindade][])- #6995: Fix an incorrect auto-correct for
Style/RedundantParentheseswhen enclosed in parentheses atwhile-postoruntil-post. ([@koic][])- #6996: Fix a false positive for
Style/RedundantFreezewhen freezing the result ofString#*. ([@bquorning][])- #6998: Fix autocorrect of
Naming/RescuedExceptionsVariableNameto also rename all references to the variable. ([@Darhazer][])- #6992: Fix unknown default configuration for
Layout/IndentFirstParametercop. ([@drenmi][])- #6972: Fix a false positive for
Style/MixinUsagewhen using inside block andifcondition is afterinclude. ([@koic][])- #6738: Prevent auto-correct conflict of
Style/NextandStyle/SafeNavigation. ([@hoshinotsuyoshi][])- #6847: Fix
Style/BlockDelimitersto properly check if the node is chained whenbraces_for_chainingis set. ([@att14][])0.68.0 (2019-04-29)
New features
- #6973: Add
always_bracestoStyle/BlockDelimiter. ([@iGEL][])- #6841: Node patterns can now match children in any order using
<>. ([@marcandre][])- #6928: Add
--initoption for generate.rubocop.ymlfile in the current directory. ([@koic][])- Add new
Layout/HeredocArgumentClosingParenthesiscop. ([@maxh][])- #6895: Add support for XDG config home for user-config. ([@Mange][], [@tejasbubane][])
- Add initial autocorrection support to
Metrics/LineLength. ([@maxh][])- Add
Layout/IndentFirstParameter. ([@maxh][])- #6974: Make
Layout/FirstMethodArgumentLineBreakaware of calling usingsuper. ([@koic][])- Add new
Lint/HeredocMethodCallPositioncop. ([@maxh][])Bug fixes
- Do not annotate message with cop name in JSON output. ([@elebow][])
- #6914: Fix an error for
Rails/RedundantAllowNilwhen with interpolations. ([@Blue-Pix][])- #6888: Fix an error for
Rails/ActiveRecordOverridewhen noparent_classpresent. ([@diachini][])- #6941: Add missing absence validations to
Rails/Validation. ([@jmanian][])- #6926: Allow nil values to unset config defaults. ([@dduugg][])
- #6946: Allow
Rails/ReflectionClassNameto use string interpolation forclass_name. ([@r7kamura][])- #6778: Fix a false positive in
Style/HashSyntaxcop when a hash key is an interpolated string and EnforcedStyle is ruby19_no_mixed_keys. ([@tatsuyafw][])- #6902: Fix a bug where
Naming/RescuedExceptionsVariableNamewould handle an only first rescue for multiple rescue groups. ([@tatsuyafw][])- #6860: Prevent auto-correct conflict of
Style/InverseMethodsandStyle/Not. ([@hoshinotsuyoshi][])- #6935:
Layout/AccessModifierIndentationshould ignore access modifiers that apply to specific methods. ([@deivid-rodriguez][])- #6956: Prevent auto-correct confliction of
Lint/LambdaandLint/UnusedBlockArgument. ([@koic][])- #6915: Fix false positive in
Style/SafeNavigationwhen a modifier if is safe guarding a method call being passed tobreak,fail,next,raise,return,throw, andyield. ([@rrosenblum][])- #6822: Fix Lint/LiteralInInterpolation autocorrection for single quotes. ([@hoshinotsuyoshi][])
- #6985: Fix an incorrect auto-correct for
Lint/LiteralInInterpolationif contains array percent literal. ([@yakout][])- #7003: Fix an incorrect auto-correct for
Style/InverseMethodswhen usingBasicObject#!. ([@koic][])Changes
... (truncated)
Commits
98b0340Cut 0.68.136673f0[Fix #6738] Prevent auto-correct conflict ofStyle/Nextand `Style/SafeNavi...dea47fbAdd a validation for RuboCop's config/default.yml for supported styles other ...a242d4aRemove pry-byebugfe316c2FixStyle/BlockDelimitersto properly check if the node is chaned when `bra...853de37Handle properly empty if blocks in Style/SafeNavigation (#6993)ce27c89Merge pull request #7000 from koic/fix_false_positive_for_style_mixin_usage5d304d0Fix an incorrect auto-correct forStyle/InverseMethods11b87ca[Fix #6972] Fix a false positive forStyle/MixinUsage666696b[Fix #6992] Fix unknown default configuration for Layout/IndentFirstParameter- Additional commits viewable in compare view
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.
Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.
You can always request more updates by clicking Bump now in your Dependabot dashboard.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill 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 versionwill 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 dependencywill 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 labelswill set the current labels as the default for future PRs for this repo and language@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language@dependabot badge mewill 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:
- 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)