Skip to content

Bump rubocop from 0.76.0 to 0.78.0

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

Bumps rubocop from 0.76.0 to 0.78.0.

Release notes

Sourced from rubocop's releases.

RuboCop 0.78

New features

Bug fixes

  • #7530: Typo in Style/TrivialAccessors's AllowedMethods. (@​movermeyer)
  • #7532: Fix an error for Style/TrailingCommaInArguments when using an anonymous function with multiple line arguments with EnforcedStyleForMultiline: consistent_comma. (@​koic)
  • #7534: Fix an incorrect autocorrect for Style/BlockDelimiters cop and Layout/SpaceBeforeBlockBraces cop with EnforcedStyle: no_space when using multiline braces. (@​koic)
  • #7231: Fix the exit code to be 2 rather when 0 when the config file contains an unknown cop. (@​jethroo)
  • #7513: Fix abrupt error on autocorrecting with --disable-uncorrectable. (@​tejasbubane)
  • #7537: Fix a false positive for Layout/SpaceAroundOperators when using a Rational literal with / (e.g. 2/3r). (@​koic)
  • #7029: Make Style/Attr not flag offense for custom attr method. (@​tejasbubane)
  • #7574: Fix a corner case that made Style/GuardClause crash. (@​buehmann)

Changes

  • #7514: Expose correctable status on offense and in formatters. (@​tyler-ball)
  • #7542: (Breaking) Move LineLength cop from Metrics department to Layout department. (@​koic)

RuboCop 0.77

Bug fixes

  • #7493: Fix Style/RedundantReturn to inspect conditional constructs that are preceded by other statements. (@​buehmann)
  • #7509: Fix Layout/SpaceInsideArrayLiteralBrackets to correct empty lines. (@​ayacai115)
  • #7517: Style/SpaceAroundKeyword allows :: after super. (@​ozydingo)
  • #7515: Fix a false negative for Style/RedundantParentheses when calling a method with safe navigation operator. (@​koic)
  • #7477: Fix line length autocorrect for semicolons in string literals. ([@​maxh][])
  • #7522: Fix a false-positive edge case (n % 2 == 2) for Style/EvenOdd. (@​buehmann)

Changes

  • #7077: (Breaking) Further standardisation of cop names. ([@​scottmatthewman][])
  • #7469: (Breaking) Replace usages of the terms Whitelist and Blacklist with better alternatives. (@​koic)
  • #7502: Remove SafeMode module. (@​koic)
... (truncated)
Changelog

Sourced from rubocop's changelog.

0.78.0 (2019-12-18)

New features

Bug fixes

  • #7530: Typo in Style/TrivialAccessors's AllowedMethods. (@​movermeyer)
  • #7532: Fix an error for Style/TrailingCommaInArguments when using an anonymous function with multiple line arguments with EnforcedStyleForMultiline: consistent_comma. (@​koic)
  • #7534: Fix an incorrect autocorrect for Style/BlockDelimiters cop and Layout/SpaceBeforeBlockBraces cop with EnforcedStyle: no_space when using multiline braces. (@​koic)
  • #7231: Fix the exit code to be 2 rather when 0 when the config file contains an unknown cop. (@​jethroo)
  • #7513: Fix abrupt error on autocorrecting with --disable-uncorrectable. (@​tejasbubane)
  • #7537: Fix a false positive for Layout/SpaceAroundOperators when using a Rational literal with / (e.g. 2/3r). (@​koic)
  • #7029: Make Style/Attr not flag offense for custom attr method. (@​tejasbubane)
  • #7574: Fix a corner case that made Style/GuardClause crash. (@​buehmann)

Changes

  • #7514: Expose correctable status on offense and in formatters. (@​tyler-ball)
  • #7542: (Breaking) Move LineLength cop from Metrics department to Layout department. (@​koic)

0.77.0 (2019-11-27)

Bug fixes

  • #7493: Fix Style/RedundantReturn to inspect conditional constructs that are preceded by other statements. (@​buehmann)
  • #7509: Fix Layout/SpaceInsideArrayLiteralBrackets to correct empty lines. (@​ayacai115)
  • #7517: Style/SpaceAroundKeyword allows :: after super. (@​ozydingo)
  • #7515: Fix a false negative for Style/RedundantParentheses when calling a method with safe navigation operator. (@​koic)
  • #7477: Fix line length autocorrect for semicolons in string literals. ([@​maxh][])
  • #7522: Fix a false-positive edge case (n % 2 == 2) for Style/EvenOdd. (@​buehmann)
  • #7506: Make Style/IfUnlessModifier respect all settings in Metrics/LineLength. ([@​jonas054][])

Changes

  • #7077: (Breaking) Further standardisation of cop names. ([@​scottmatthewman][])
  • #7469: (Breaking) Replace usages of the terms Whitelist and Blacklist with better alternatives. (@​koic)
  • #7502: Remove SafeMode module. (@​koic)
Commits
  • 7aa3766 Cut 0.78
  • d2d8c66 Merge pull request #7575 from buehmann/guard-empty-begin/7574
  • acea172 Fix an oversight in specs
  • b88ff75 [Fix #7574] Fix corner case in Style/GuardClause
  • dff7052 Replace "can not" with "cannot"
  • cc7e221 Add new Lint/NonDeterministicRequireOrder cop (#7528)
  • 7276872 Support EnforcedStyleForExponentOperator for SpaceAroundOperators cop
  • d54e15c Add the Style Guide URL for Gemspec/RubyVersionGlobalsUsage
  • e6a51be Tweak a changelog entry
  • affae92 Fix the changelog
  • Additional commits viewable in compare view

Merge request reports