Skip to content

Bump rubocop from 0.76.0 to 1.2.0

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

Bumps rubocop from 0.76.0 to 1.2.0.

Release notes

Sourced from rubocop's releases.

RuboCop 1.2

New features

Bug fixes

  • #8989: Fix multibyte support in the regexp node handler that led Style/RedundantRegexpEscape to malfunction and corrupt a program in auto-correction. (@​knu)
  • #8912: Fix Layout/ElseAlignment for rescue/else/ensure inside do/end blocks with assignment. (@​miry)
  • #8971: Fix a false alarm for # rubocop:disable Lint/EmptyBlock inline comment with Lint/RedundantCopDisableDirective. (@​koic)
  • #8976: Fix an incorrect auto-correct for Style/KeywordParametersOrder when when kwoptarg is before kwarg and argument parentheses omitted. (@​koic)
  • #8084: Fix a bug in how Layout/SpaceAroundBlockParameters handles block parameters with a trailing comma. (@​bquorning)
  • #8966: Fix Layout/SpaceInsideParens to enforce no spaces in empty parens for all styles. (@​joshuapinter)

Changes

  • #5717: Support defined?-based memoization for Naming/MemoizedInstanceVariableName cop. (@​fatkodima)
  • #8964: Extend Naming/VariableNumber cop to handle method names and symbols. (@​fatkodima)

RuboCop 1.1

New features

  • #8896: Add new Lint/DuplicateRegexpCharacterClassElement cop. ([@​owst][])
  • #8895: Add new Lint/EmptyBlock cop. (@​fatkodima)
  • #8934: Add new Style/SwapValues cop. (@​fatkodima)
  • #7549: Add new Style/ArgumentsForwarding cop. (@​koic)
  • #8859: Add new Lint/UnmodifiedReduceAccumulator cop. ([@​dvandersluis][])
  • #8951: Support auto-correction for Style/MultipleComparison. (@​koic)
  • #8953: Add AllowMethodComparison option for Lint/MultipleComparison. (@​koic)
  • #8960: Add Regexp::Expression#loc and #expression to replace parsed_tree_expr_loc. ([@​marcandre][])
  • #8930: Add rake tasks for alternative way to specify Changelog entries. ([@​marcandre][])
  • #8940: Add new Style/DocumentDynamicEvalDefinition cop. (@​fatkodima)
... (truncated)
Changelog

Sourced from rubocop's changelog.

1.2.0 (2020-11-05)

New features

  • #8983: Support auto-correction for Naming/HeredocDelimiterCase. ([@​koic][])
  • #8004: Add new GitHubActionsFormatter formatter. ([@​lautis][])
  • #8175: Add new AllowedCompactTypes option for Style/RaiseArgs. ([@​pdobb][])
  • #8566: Add new Style/CollectionCompact cop. ([@​fatkodima][])
  • #8925: Add --display-time option for displaying elapsed time of rubocop command. ([@​joshuapinter][])
  • #8967: Add new Style/NegatedIfElseCondition cop. ([@​fatkodima][])
  • #8984: Support auto-correction for Style/DoubleNegation. ([@​koic][])
  • #8992: Support auto-correction for Lint/ElseLayout. ([@​koic][])
  • #8988: Support auto-correction for Lint/UselessSetterCall. ([@​koic][])
  • #8982: Support auto-correction for Naming/BinaryOperatorParameterName. ([@​koic][])

Bug fixes

  • #8989: Fix multibyte support in the regexp node handler that led Style/RedundantRegexpEscape to malfunction and corrupt a program in auto-correction. ([@​knu][])
  • #8912: Fix Layout/ElseAlignment for rescue/else/ensure inside do/end blocks with assignment. ([@​miry][])
  • #8971: Fix a false alarm for # rubocop:disable Lint/EmptyBlock inline comment with Lint/RedundantCopDisableDirective. ([@​koic][])
  • #8976: Fix an incorrect auto-correct for Style/KeywordParametersOrder when when kwoptarg is before kwarg and argument parentheses omitted. ([@​koic][])
  • #8084: Fix a bug in how Layout/SpaceAroundBlockParameters handles block parameters with a trailing comma. ([@​bquorning][])
  • #8966: Fix Layout/SpaceInsideParens to enforce no spaces in empty parens for all styles. ([@​joshuapinter][])

Changes

  • #5717: Support defined?-based memoization for Naming/MemoizedInstanceVariableName cop. ([@​fatkodima][])
  • #8964: Extend Naming/VariableNumber cop to handle method names and symbols. ([@​fatkodima][])

1.1.0 (2020-10-29)

New features

  • #8896: Add new Lint/DuplicateRegexpCharacterClassElement cop. ([@​owst][])
  • #8895: Add new Lint/EmptyBlock cop. ([@​fatkodima][])
  • #8934: Add new Style/SwapValues cop. ([@​fatkodima][])
  • #7549: Add new Style/ArgumentsForwarding cop. ([@​koic][])
  • #8859: Add new Lint/UnmodifiedReduceAccumulator cop. ([@​dvandersluis][])
  • #8951: Support auto-correction for Style/MultipleComparison. ([@​koic][])
  • #8953: Add AllowMethodComparison option for Lint/MultipleComparison. ([@​koic][])
  • #8960: Add Regexp::Expression#loc and #expression to replace parsed_tree_expr_loc. ([@​marcandre][])
  • #8930: Add rake tasks for alternative way to specify Changelog entries. ([@​marcandre][])
  • #8940: Add new Style/DocumentDynamicEvalDefinition cop. ([@​fatkodima][])
  • #7753: Add new Lint/ToEnumArguments cop. ([@​fatkodima][])

Bug fixes

  • #8921: Prevent Lint/LiteralInInterpolation from removing necessary interpolation in %W[] and %I[] literals. ([@​knu][])
  • #8708: Fix bad regexp recognition in Lint/OutOfRangeRegexpRef when there are multiple regexps. ([@​dvandersluis][])
  • #8945: Fix changelog task to build a correct changelog item when Fix [#123](https://github.com/rubocop-hq/rubocop/issues/123) is encountered. ([@​dvandersluis][])
... (truncated)
Commits
  • 0340a51 Cut 1.2.0
  • ea78840 Update Changelog
  • de893b4 Support auto-correction for Lint/ElseLayout
  • e46eeb6 Add AllowedCompactTypes option for Style/RaiseArgs
  • 6e47673 Fix trailing commas in SpaceAroundBlockParameters
  • 9016ac8 Support defined?-based memoization for `Naming/MemoizedInstanceVariableName...
  • 7de9f00 Add new Style/CollectionCompact cop
  • 50c0607 Merge pull request #8991 from fatkodima/fix-incompat-for-configurable_formatting
  • 76d8e36 Fix introduced incompatibility for ConfigurableFormatting#message
  • b8f59b6 Fix multibyte support in the regexp node handler
  • Additional commits viewable in compare view

Merge request reports