[Security] Bump rubocop from 0.32.1 to 0.65.0
Bumps rubocop from 0.32.1 to 0.65.0. This update includes security fixes.
Vulnerabilities fixed
Sourced from The Ruby Advisory Database.
RuboCop: insecure use of /tmp RuboCop 0.48.1 and earlier does not use /tmp in safe way, allowing local users to exploit this to tamper with cache files belonging to other users.
Patched versions: >= 0.49.0 Unaffected versions: none
Release notes
Sourced from rubocop's releases.
RuboCop 0.65
New features
- #6126: Add an experimental strict mode to
Style/MutableConstantthat will freeze all constants, rather than just literals. (@rrosenblum)Bug fixes
- #6765: Fix false positives in keyword arguments for
Style/MethodCallWithArgsParenthesesomit_parentheses. (@gsamokovarov)- #6763: Fix false positives in range literals for
Style/MethodCallWithArgsParenthesesomit_parentheses. (@gsamokovarov)- #6748: Fix
Style/RaiseArgsauto-correction breaking in contexts that require parentheses. (@drenmi)- #6751: Prevent
Style/OneLineConditionalfrom breaking onretryandbreakkeywords. (@drenmi)- #6755: Prevent
Style/TrailingCommaInArgumentfrom breaking when a safe method call is chained on the offending method. (@drenmi, @hoshinotsuyoshi)Changes
- #6766: Drop support for Ruby 2.2.0 and 2.2.1. (@pocke)
- #6733: Warn duplicated keys in
.rubocop.yml. (@pocke)- #6613: Mark
Style/ModuleFunctionasSafeAutocorrect: falseand disable autocorrect by default. (@dduugg)RuboCop 0.64
New features
- #6704: Add new
Rails/ReflectionClassNamecop. ([@Bhacaz][])- #6643: Support
AllowParenthesesInCamelCaseMethodoption onStyle/MethodCallWithArgsParenthesesomit_parentheses. ([@dazuma][])Bug fixes
- #6254: Fix
Layout/RescueEnsureAlignmentfor non-local assignments. ([@marcotc][])- #6648: Fix auto-correction of
Style/EmptyLiteralwhenHash.newis passed as the first argument tosuper. (@rrosenblum)- #6351: Fix a false positive for
Layout/ClosingParenthesisIndentationwhen first argument is multiline. ([@antonzaytsev][])- #6689: Support more complex argument patterns on
Rails/Validationauto-correction. ([@r7kamura][])- #6668: Fix autocorrection for
Style/UnneededConditionwhen conditional has theunlessform. ([@mvz][])- #6382: Fix
Layout/IndentationWidthwithLayout/EndAlignmentset to start_of_line. ([@dischorde][], [@siegfault][], [@mhelmetag][])- #6710: Fix
Naming/MemoizedInstanceVariableNameon method starts with underscore. (@pocke)- #6722: Fix an error for
Style/OneLineConditionalwhenthenbranch has no body. ([@koic][])- #6702: Fix
TrailingCommaregression where heredoc with commas caused false positives. ([@abrom][])- #6737: Fix an incorrect auto-correct for
Rails/LinkToBlankwhenlink_tomethod arguments are enclosed in parentheses. ([@koic][])- #6720: Fix detection of
:nativeline ending forLayout/EndOfLineon JRuby. ([@enkessler][])Changes
... (truncated)
Changelog
Sourced from rubocop's changelog.
0.65.0 (2019-02-19)
New features
- #6126: Add an experimental strict mode to
Style/MutableConstantthat will freeze all constants, rather than just literals. (@rrosenblum)Bug fixes
- #6765: Fix false positives in keyword arguments for
Style/MethodCallWithArgsParenthesesomit_parentheses. (@gsamokovarov)- #6763: Fix false positives in range literals for
Style/MethodCallWithArgsParenthesesomit_parentheses. (@gsamokovarov)- #6748: Fix
Style/RaiseArgsauto-correction breaking in contexts that require parentheses. (@drenmi)- #6751: Prevent
Style/OneLineConditionalfrom breaking onretryandbreakkeywords. (@drenmi)- #6755: Prevent
Style/TrailingCommaInArgumentfrom breaking when a safe method call is chained on the offending method. (@drenmi, @hoshinotsuyoshi)Changes
- #6766: Drop support for Ruby 2.2.0 and 2.2.1. (@pocke)
- #6733: Warn duplicated keys in
.rubocop.yml. (@pocke)- #6613: Mark
Style/ModuleFunctionasSafeAutocorrect: falseand disable autocorrect by default. (@dduugg)0.64.0 (2019-02-10)
New features
- #6704: Add new
Rails/ReflectionClassNamecop. ([@Bhacaz][])- #6643: Support
AllowParenthesesInCamelCaseMethodoption onStyle/MethodCallWithArgsParenthesesomit_parentheses. ([@dazuma][])Bug fixes
- #6254: Fix
Layout/RescueEnsureAlignmentfor non-local assignments. ([@marcotc][])- #6648: Fix auto-correction of
Style/EmptyLiteralwhenHash.newis passed as the first argument tosuper. (@rrosenblum)- #6351: Fix a false positive for
Layout/ClosingParenthesisIndentationwhen first argument is multiline. ([@antonzaytsev][])- #6689: Support more complex argument patterns on
Rails/Validationauto-correction. ([@r7kamura][])- #6668: Fix autocorrection for
Style/UnneededConditionwhen conditional has theunlessform. ([@mvz][])- #6382: Fix
Layout/IndentationWidthwithLayout/EndAlignmentset to start_of_line. ([@dischorde][], [@siegfault][], [@mhelmetag][])- #6710: Fix
Naming/MemoizedInstanceVariableNameon method starts with underscore. (@pocke)- #6722: Fix an error for
Style/OneLineConditionalwhenthenbranch has no body. ([@koic][])- #6702: Fix
TrailingCommaregression where heredoc with commas caused false positives. ([@abrom][])- #6737: Fix an incorrect auto-correct for
Rails/LinkToBlankwhenlink_tomethod arguments are enclosed in parentheses. ([@koic][])- #6720: Fix detection of
:nativeline ending forLayout/EndOfLineon JRuby. ([@enkessler][])Changes
- #6597:
Style/LineEndConcatenationis now known to be unsafe for auto-correct. ([@jaredbeck][])- #6725: Mark
Style/SymbolProcas unsafe for auto-correct. (@drenmi)- #6708: Make
Style/CommentedKeywordallow the:yields:RDoc comment. ([@bquorning][])- #6749: Make some cops aware of safe navigation operator. (@hoshinotsuyoshi)
0.63.1 (2019-01-22)
... (truncated)
Commits
-
2e52af0Merge pull request #6776 from Drenmi/release/0-65-0 -
a1796a1Cut 0.65.0 -
8fe4946Merge pull request #6757 from Drenmi/bugfix/trailing-comma-in-arguments-cop -
e81e7a2[Fix #6755] Prevent Style/TrailingCommaInArgument from breaking when a safe m... -
1f51e4cMerge pull request #6775 from pocke/fix-changelog-stype -
ff34759Fix invalid links in CHANGELOG -
b10af4fMerge pull request #6773 from koic/add_range_type_predicate_method -
4105b22Addrange_type?which meansirange_type?anderange_type? -
333d650Merge pull request #6756 from Drenmi/bugfix/retry-node -
508b051Merge pull request #6765 from gsamokovarov/omit-parentheses-kwargs - 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.
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 -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot ignore this [patch|minor|major] versionwill close this PR and stop Dependabot creating any more for this minor/major 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)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- 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)
Finally, you can contact us by mentioning @dependabot.