Skip to content

Bump rubocop from 0.76.0 to 1.5.2

NipaNipa requested to merge dependabot/bundler/rubocop-1.5.2 into master

Bumps rubocop from 0.76.0 to 1.5.2.

Release notes

Sourced from rubocop's releases.

RuboCop 1.5.2

Bug fixes

  • #9152: Fix an incorrect auto-correct for Style/SoleNestedConditional when nested || operator modifier condition. (@​koic)
  • #9161: Fix a false positive for Layout/HeredocArgumentClosingParenthesis when using subsequence closing parentheses in the same line. (@​koic)
  • #9151: Fix SuggestExtensions to not suggest extensions that are installed but not direct dependencies. (@​dvandersluis)
  • #8985: Fix Style/StringConcatenation autocorrect generating invalid ruby. (@​tejasbubane)
  • #9155: Fix a false positive for Layout/MultilineMethodCallIndentation when multiline method chain has expected indent width and the method is preceded by splat for EnforcedStyle: indented_relative_to_receiver. (@​koic)

Changes

RuboCop 1.5.1

Bug fixes

  • #8684: Fix an error for Lint/InterpolationCheck cop. (@​tejasbubane)
  • #9145: Fix issues with SuggestExtensions when bundler is not available, or when there is no gemfile. (@​dvandersluis)
  • #9140: Fix an error for Layout/EmptyLinesAroundArguments when multiline style argument for method call without selector. (@​koic)
  • #9136: Fix AllowedIdentifiers in Naming/VariableNumber to include variable assignments. (@​PhilCoggins)

RuboCop 1.5.0

New features

  • #9112: Add new cop Lint/UnexpectedBlockArity. (@​dvandersluis)
  • #9010: Metrics/ParameterLists supports MaxOptionalParameters config parameter. ([@​fatkodima][])
  • #9114: Support auto-correction for Style/SoleNestedConditional. (@​koic)
  • #8564: Metrics/AbcSize: Add optional discount for repeated "attributes". (@​marcandre)

Bug fixes

  • #8820: Fixes IfWithSemicolon autocorrection when elsif is present. ([@​adrian-rivera][], @​dvandersluis)
  • #9113: Fix a false positive for Style/MethodCallWithoutArgsParentheses when assigning to a default argument with the same name. (@​koic)
  • #9115: Fix a false positive for Style/FirstArgumentIndentation when argument has expected indent width and the method is preceded by splat for EnforcedStyle: consistent_relative_to_receiver. (@​koic)
  • #9128: Fix an incorrect auto-correct for Style/ClassAndModuleChildren when namespace is defined as a class in the same file. (@​koic)
  • #9105: Fix an incorrect auto-correct for Style/RedundantCondition when using operator method in else. (@​koic)
  • #9096: Fix #9095 use merged_config instead of config for pending new cop check. ([@​ThomasKoppensteiner][])
  • #8053: Fix an incorrect auto-correct for Style/AndOr when or precedes and. (@​koic)
  • #9097: Fix a false positive for Layout/EmptyLinesAroundArguments when blank line is inserted between method with arguments and receiver. (@​koic)
... (truncated)
Changelog

Sourced from rubocop's changelog.

1.5.2 (2020-12-04)

Bug fixes

  • #9152: Fix an incorrect auto-correct for Style/SoleNestedConditional when nested || operator modifier condition. ([@​koic][])
  • #9161: Fix a false positive for Layout/HeredocArgumentClosingParenthesis when using subsequence closing parentheses in the same line. ([@​koic][])
  • #9151: Fix SuggestExtensions to not suggest extensions that are installed but not direct dependencies. ([@​dvandersluis][])
  • #8985: Fix Style/StringConcatenation autocorrect generating invalid ruby. ([@​tejasbubane][])
  • #9155: Fix a false positive for Layout/MultilineMethodCallIndentation when multiline method chain has expected indent width and the method is preceded by splat for EnforcedStyle: indented_relative_to_receiver. ([@​koic][])

Changes

  • #9080: Make Lint/ShadowingOuterVariable aware of Ractor. ([@​tejasbubane][])
  • #9102: Relax regexp_parser requirement. ([@​marcandre][])

1.5.1 (2020-12-02)

Bug fixes

  • #8684: Fix an error for Lint/InterpolationCheck cop. ([@​tejasbubane][])
  • #9145: Fix issues with SuggestExtensions when bundler is not available, or when there is no gemfile. ([@​dvandersluis][])
  • #9140: Fix an error for Layout/EmptyLinesAroundArguments when multiline style argument for method call without selector. ([@​koic][])
  • #9136: Fix AllowedIdentifiers in Naming/VariableNumber to include variable assignments. ([@​PhilCoggins][])

1.5.0 (2020-12-01)

New features

  • #9112: Add new cop Lint/UnexpectedBlockArity. ([@​dvandersluis][])
  • #9010: Metrics/ParameterLists supports MaxOptionalParameters config parameter. ([@​fatkodima][])
  • #9114: Support auto-correction for Style/SoleNestedConditional. ([@​koic][])
  • #8564: Metrics/AbcSize: Add optional discount for repeated "attributes". ([@​marcandre][])

Bug fixes

  • #8820: Fixes IfWithSemicolon autocorrection when elsif is present. ([@​adrian-rivera][], [@​dvandersluis][])
  • #9113: Fix a false positive for Style/MethodCallWithoutArgsParentheses when assigning to a default argument with the same name. ([@​koic][])
  • #9115: Fix a false positive for Style/FirstArgumentIndentation when argument has expected indent width and the method is preceded by splat for EnforcedStyle: consistent_relative_to_receiver. ([@​koic][])
  • #9128: Fix an incorrect auto-correct for Style/ClassAndModuleChildren when namespace is defined as a class in the same file. ([@​koic][])
  • #9105: Fix an incorrect auto-correct for Style/RedundantCondition when using operator method in else. ([@​koic][])
  • #9096: Fix #9095 use merged_config instead of config for pending new cop check. ([@​ThomasKoppensteiner][])
  • #8053: Fix an incorrect auto-correct for Style/AndOr when or precedes and. ([@​koic][])
  • #9097: Fix a false positive for Layout/EmptyLinesAroundArguments when blank line is inserted between method with arguments and receiver. ([@​koic][])

Changes

  • #9122: Added tip message if any gems are loaded that have RuboCop extensions. ([@​dvandersluis][])
  • #9104: Preset some stdlib method names for Naming/VariableNumber. ([@​koic][])
  • #9127: Update Style/SymbolProc to be aware of numblocks. ([@​dvandersluis][])
  • #9102: Upgrade regexp_parser to 2.0. ([@​knu][])
... (truncated)
Commits
  • e5907da Cut 1.5.2
  • 2cc844f Update Changelog
  • a1ee8eb [Fix #9151] Don't suggest extensions that are installed but not direct depend...
  • ede8887 [Fix #9161] Fix a false positive for Layout/HeredocArgumentClosingParenthesis
  • 11b30cb Support regexp_parser 1.8 and 2.x series
  • 1b9df89 [Fix #9152] Fix an incorrect auto-correct for Style/SoleNestedConditional
  • 4336f72 [Fix #9155] Fix a false positive for Layout/MultilineMethodCallIndentation
  • a18ffc1 Tighten the RuboCop AST dependency (#9158)
  • d58d248 [Fix #8985] Fix Style/StringConcatenation autocorrect generating invalid ruby
  • 2472e1c Relax regexp_parser requirement.
  • Additional commits viewable in compare view

Merge request reports