Skip to content

Bump rubocop from 0.76.0 to 1.4.0

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

Bumps rubocop from 0.76.0 to 1.4.0.

Release notes

Sourced from rubocop's releases.

RuboCop 1.4.0

New features

  • #7737: Add new Style/RedundantArgument cop. (@​tejasbubane)
  • #9064: Add EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs and EmptyLineBetweenModuleDefs config options for Layout/EmptyLineBetweenDefs cop. (@​tejasbubane)
  • #9043: Add --stderr to write all output to stderr except for the autocorrected source. (@​knu)

Bug fixes

  • #9067: Fix an incorrect auto-correct for Lint::AmbiguousRegexpLiteral when passing in a regexp to a method with no receiver. (@​amatsuda)
  • #9060: Fix an error for Layout/SpaceAroundMethodCallOperator when using __ENCODING__. (@​koic)
  • #7338: Handle assignment with []= in MultilineMethodCallIndentation. (@​jonas054)
  • #7726: Fix MultilineMethodCallIndentation indentation inside square brackets. (@​jonas054)
  • #8857: Improve how Exclude properties are generated by --auto-gen-config. (@​jonas054)

Changes

  • #8788: Change Style/Documentation to not trigger offense with only macros. (@​tejasbubane)
  • #8993: Allow ExcludedMethods config of Metrics/MethodLength cop to contain regex. (@​tejasbubane)
  • #9073: Enable Layout/LineLength's auto-correct by default. (@​bbatsov)
  • #9079: Improve the gemspec to load only the necessary files without the git utility. (@​piotrmurach)
  • #9059: Update Lint/UnmodifiedReduceAccumulator to accept blocks which return in the form accumulator[element]. (@​dvandersluis)
  • #9072: Lint/MissingSuper: exclude method_missing and respond_to_missing?. (@​marcandre)
  • #9074: Allow specifying a pull request ID when calling rake changelog:*.(@​marcandre)

RuboCop 1.3.1

Bug fixes

  • #9037: Fix required_ruby_version issue when using Gem::Requirement. ([@​cetinajero][])
  • #9039: Fix stack level too deep error if target directory contains **. ([@​unasuke][])
  • #6962: Limit Layout/ClassStructure constant order autocorrect to literal constants. (@​tejasbubane)
  • #9032: Fix an error for Style/DocumentDynamicEvalDefinition when using eval-type method with interpolated string that is not heredoc without comment doc. (@​koic)
  • #9049: Have Lint/ToEnumArguments accept __callee__. (@​marcandre)
  • #9050: Fix a false positive for Style/NegatedIfElseCondition when if with !! condition. (@​koic)
  • #9041: Fix a false positive for Naming/VariableNumber when using integer symbols. (@​koic)

Changes

  • #9045: Have cut_release handle "config/default" and generate cops doc. (@​marcandre)
  • #9036: Allow enums method by default for Lint/ConstantDefinitionInBlock. (@​koic)
... (truncated)
Changelog

Sourced from rubocop's changelog.

1.4.0 (2020-11-23)

New features

  • #7737: Add new Style/RedundantArgument cop. ([@​tejasbubane][])
  • #9064: Add EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs and EmptyLineBetweenModuleDefs config options for Layout/EmptyLineBetweenDefs cop. ([@​tejasbubane][])
  • #9043: Add --stderr to write all output to stderr except for the autocorrected source. ([@​knu][])

Bug fixes

  • #9067: Fix an incorrect auto-correct for Lint::AmbiguousRegexpLiteral when passing in a regexp to a method with no receiver. ([@​amatsuda][])
  • #9060: Fix an error for Layout/SpaceAroundMethodCallOperator when using __ENCODING__. ([@​koic][])
  • #7338: Handle assignment with []= in MultilineMethodCallIndentation. ([@​jonas054][])
  • #7726: Fix MultilineMethodCallIndentation indentation inside square brackets. ([@​jonas054][])
  • #8857: Improve how Exclude properties are generated by --auto-gen-config. ([@​jonas054][])

Changes

  • #8788: Change Style/Documentation to not trigger offense with only macros. ([@​tejasbubane][])
  • #8993: Allow ExcludedMethods config of Metrics/MethodLength cop to contain regex. ([@​tejasbubane][])
  • #9073: Enable Layout/LineLength's auto-correct by default. ([@​bbatsov][])
  • #9079: Improve the gemspec to load only the necessary files without the git utility. ([@​piotrmurach][])
  • #9059: Update Lint/UnmodifiedReduceAccumulator to accept blocks which return in the form accumulator[element]. ([@​dvandersluis][])
  • #9072: Lint/MissingSuper: exclude method_missing and respond_to_missing?. ([@​marcandre][])
  • #9074: Allow specifying a pull request ID when calling rake changelog:*. ([@​marcandre][])

1.3.1 (2020-11-16)

Bug fixes

  • #9037: Fix required_ruby_version issue when using Gem::Requirement. ([@​cetinajero][])
  • #9039: Fix stack level too deep error if target directory contains **. ([@​unasuke][])
  • #6962: Limit Layout/ClassStructure constant order autocorrect to literal constants. ([@​tejasbubane][])
  • #9032: Fix an error for Style/DocumentDynamicEvalDefinition when using eval-type method with interpolated string that is not heredoc without comment doc. ([@​koic][])
  • #9049: Have Lint/ToEnumArguments accept __callee__. ([@​marcandre][])
  • #9050: Fix a false positive for Style/NegatedIfElseCondition when if with !! condition. ([@​koic][])
  • #9041: Fix a false positive for Naming/VariableNumber when using integer symbols. ([@​koic][])

Changes

  • #9045: Have cut_release handle "config/default" and generate cops doc. ([@​marcandre][])
  • #9036: Allow enums method by default for Lint/ConstantDefinitionInBlock. ([@​koic][])
  • #9035: Only complain about SafeYAML if it causes issues. ([@​marcandre][])

1.3.0 (2020-11-12)

New features

  • #8761: Read required_ruby_version from gemspec file if it exists. ([@​HeroProtagonist][])
  • #9001: Add new Lint/EmptyClass cop. ([@​fatkodima][])
... (truncated)
Commits
  • 746c1be Cut 1.4
  • 4a388c0 Update Changelog
  • 2a4f895 [Fix #9064] Add three new config options for Layout/EmptyLineBetweenDefs cop
  • 218409d Improve Style/RedundantArgument
  • 6da531b [Fix #7737] Add new Style/RedundantArguments cop
  • 69d8705 Merge pull request #9081 from jonas054/7726_MultilineMethodCallIndentation_in...
  • 449758e [Fix #7726] Handle method call chains inside square brackets
  • c40141c Improve the gemspec to load only the necessary files without the git utility
  • 12db2b3 [Fix #7338] Handle assignment with []= in MultilineMethodCallIndentation
  • 6b6bfd3 Fix the CI
  • Additional commits viewable in compare view

Merge request reports