Update rubocop requirement to 0.58.2
Updates the requirements on rubocop to permit the latest version.
Release notes
Sourced from rubocop's releases.
RuboCop 0.58.2
Changes
New features
#6105: Support
{a,b}file name globs inExcludeandIncludeconfig. ([mikeyhew][])#6116: Add
ipto allowed names ofNaming/UncommunicativeMethodParamNamecop in default config. ([nijikon][])Bug fixes
- #6103: Fix a false positive for
Layout/IndentationWidthwhen multiple modifiers are used in a block and a method call is made at end of the block. ([koic][])- #6084: Fix
Naming/MemoizedInstanceVariableNamecop to allow methods to have leading underscores. ([kenman345][])- #6098: Fix an error for
Layout/ClassStructurewhen there is a comment in the macro method to be auto-correct. ([koic][])- #6115: Fix a false positive for
Lint/OrderedMagicCommentswhen using{ encoding: Encoding::SJIS }hash object afterfrozen_string_literalmagic comment. ([koic][])[mikeyhew]: https://github.com/mikeyhew [nijikon]: https://github.com/nijikon [koic]: https://github.com/koic [kenman345]: https://github.com/kenman345
Changelog
Sourced from rubocop's changelog.
0.58.2 (2018-07-23)
Changes
New features
#6105: Support
{a,b}file name globs inExcludeandIncludeconfig. ([mikeyhew][])#6116: Add
ipto allowed names ofNaming/UncommunicativeMethodParamNamecop in default config. ([nijikon][])Bug fixes
- #6103: Fix a false positive for
Layout/IndentationWidthwhen multiple modifiers are used in a block and a method call is made at end of the block. ([koic][])- #6084: Fix
Naming/MemoizedInstanceVariableNamecop to allow methods to have leading underscores. ([kenman345][])- #6098: Fix an error for
Layout/ClassStructurewhen there is a comment in the macro method to be auto-correct. ([koic][])- #6115: Fix a false positive for
Lint/OrderedMagicCommentswhen using{ encoding: Encoding::SJIS }hash object afterfrozen_string_literalmagic comment. ([koic][])0.58.1 (2018-07-10)
Bug fixes
- #6071: Fix auto-correct
Style/MethodCallWithArgsParentheseswhen arguments are method calls. ([maxh][])- Fix
Style/RedundantParentheseswith hash literal as first argument tosuper. ([maxh][])- #6086: Fix an error for
Gemspec/OrderedDependencieswhen using method call to gem names in gemspec. ([koic][])- #6089: Make
Rails/BulkChangeTableaware of variable table name. ([wata727][])- #6088: Fix an error for
Layout/MultilineAssignmentLayoutcop when using multi-line block defines on separate lines. ([koic][])- #6092: Don't use the broken parser 2.5.1.1 version. ([bbatsov][])
0.58.0 (2018-07-07)
New features
- #5973: Add new
Style/IpAddressescop. ([dvandersluis][])- #5843: Add configuration options to
Naming/MemoizedInstanceVariableNamecop to allow leading underscores. ([leklund][])- #5843: Add
EnforcedStyleForLeadingUnderscorestoNaming/MemoizedInstanceVariableNamecop to allow leading underscores. ([leklund][])Performance/Samplewill now register an offense when usingshufflefollowed byatorslice. ([rrosenblum][])Bug fixes
... (truncated)
- #5987: Suppress errors when using ERB template in Rails/BulkChangeTable. ([wata727][])
- #4878: Fix false positive in
Layout/IndentationWidthwhen multiple modifiers and def are on the same line. ([tatsuyafw][])- #5966: Fix a false positive for
Layout/ClosingHeredocIndentationwhen heredoc content is outdented compared to the closing. ([koic][])- Fix auto-correct support check for custom cops on --auto-gen-config. ([r7kamura][])
- Fix exception that occurs when auto-correcting a modifier if statement in
Style/UnneededCondition. ([rrosenblum][])- #6025: Fix an incorrect auto-correct for
Lint/UnneededConditionwhen using if_branch inelsebranch. ([koic][])- #6029: Fix a false positive for
Lint/ShadowedArgumentwhen reassigning to splat variable. ([koic][])- #6035: Fix error on autocorrection when
Layout/LeadingBlankLinesis the first cop to act. ([Vasfed][])- #6036: Make
Rails/BulkChangeTableaware of string table name. ([wata727][])- #5467: Fix a false negative for
Style/MultipleComparisonwhen multiple comparison is not part of a conditional. ([koic][])- #6042: Fix
Lint/RedundantWithObjecterror on missing parameter toeach_with_object. ([Vasfed][])
Commits
- See full diff in compare view