Skip to content

Bump rubocop from 0.76.0 to 0.88.0

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

Bumps rubocop from 0.76.0 to 0.88.0.

Release notes

Sourced from rubocop's releases.

RuboCop 0.88

New features

Bug fixes

  • #8232: Fix a false positive for Layout/EmptyLinesAroundAccessModifier when end immediately after access modifier. (@​koic)
  • #7777: Fix crash for Layout/MultilineArrayBraceLayout when comment is present after last element. (@​shekhar-patil)
  • #7776: Fix crash for Layout/MultilineMethodCallBraceLayout when comment is present before closing braces. (@​shekhar-patil)
  • #8282: Fix Style/IfUnlessModifier bad precedence detection. (@​tejasbubane)
  • #8289: Fix Style/AccessorGrouping to not register offense for accessor with comment. (@​tejasbubane)
  • #8310: Handle major version requirements in Gemspec/RequiredRubyVersion. (@​eugeneius)
  • #8315: Fix crash for Style/PercentLiteralDelimiters when the source contains invalid characters. (@​eugeneius)
  • #8239: Don't load .rubocop.yml files at all outside of the current project, unless they are personal configuration files and the project has no configuration. (@​deivid-rodriguez)

Changes

RuboCop 0.87.1

Bug fixes

  • #8252: Fix a command line option name from --safe-autocorrect to --safe-auto-correct, which is compatible with RuboCop 0.86 and lower. (@​koic)
  • #8259: Fix false positives for Style/BisectedAttrAccessor when accessors have different access modifiers. (@​fatkodima)
  • #8253: Fix false positives for Style/AccessorGrouping when accessors have different access modifiers. (@​fatkodima)
  • #8257: Fix an error for Style/BisectedAttrAccessor when using attr_reader and attr_writer with splat arguments. (@​fatkodima)
  • #8239: Don't load .rubocop.yml from personal folders to check for exclusions if given a custom configuration file. (@​deivid-rodriguez)
  • #8256: Fix an error for --auto-gen-config when running a cop who do not support auto-correction. (@​koic)
  • #8262: Fix Lint/DeprecatedOpenSSLConstant auto-correction of OpenSSL::Cipher to use lower case, as some Linux-based systems do not accept upper cased cipher names. ([@​bdewater][])
... (truncated)
Changelog

Sourced from rubocop's changelog.

0.88.0 (2020-07-13)

New features

  • #8279: Recognise require method passed as argument in Lint/NonDeterministicRequireOrder cop. ([@​biinari][])
  • #7333: Add new Style/RedundantFileExtensionInRequire cop. ([@​fatkodima][])
  • #8316: Support autocorrect for Lint/DisjunctiveAssignmentInConstructor cop. ([@​fatkodima][])
  • #8242: Internal profiling available with bin/rubocop-profile and rake tasks. ([@​marcandre][])
  • #8295: Add new Style/ArrayCoercion cop. ([@​fatkodima][])
  • #8293: Add new Lint/DuplicateElsifCondition cop. ([@​fatkodima][])
  • #7736: Add new Style/CaseLikeIf cop. ([@​fatkodima][])
  • #4286: Add new Style/HashAsLastArrayItem cop. ([@​fatkodima][])
  • #8247: Add new Style/HashLikeCase cop. ([@​fatkodima][])
  • #8286: Internal method expect_offense allows abbreviated offense messages. ([@​marcandre][])

Bug fixes

  • #8232: Fix a false positive for Layout/EmptyLinesAroundAccessModifier when end immediately after access modifier. ([@​koic][])
  • #7777: Fix crash for Layout/MultilineArrayBraceLayout when comment is present after last element. ([@​shekhar-patil][])
  • #7776: Fix crash for Layout/MultilineMethodCallBraceLayout when comment is present before closing braces. ([@​shekhar-patil][])
  • #8282: Fix Style/IfUnlessModifier bad precedence detection. ([@​tejasbubane][])
  • #8289: Fix Style/AccessorGrouping to not register offense for accessor with comment. ([@​tejasbubane][])
  • #8310: Handle major version requirements in Gemspec/RequiredRubyVersion. ([@​eugeneius][])
  • #8315: Fix crash for Style/PercentLiteralDelimiters when the source contains invalid characters. ([@​eugeneius][])
  • #8239: Don't load .rubocop.yml files at all outside of the current project, unless they are personal configuration files and the project has no configuration. ([@​deivid-rodriguez][])

Changes

  • #8021: Rewrite Layout/SpaceAroundMethodCallOperator cop to make it faster. ([@​fatkodima][])
  • #8294: Add of to AllowedNames of MethodParameterName cop. ([@​AlexWayfer][])

0.87.1 (2020-07-07)

Bug fixes

  • #8189: Fix an error for Layout/MultilineBlockLayout where spaces for a new line where not considered. ([@​knejad][])
  • #8252: Fix a command line option name from --safe-autocorrect to --safe-auto-correct, which is compatible with RuboCop 0.86 and lower. ([@​koic][])
  • #8259: Fix false positives for Style/BisectedAttrAccessor when accessors have different access modifiers. ([@​fatkodima][])
  • #8253: Fix false positives for Style/AccessorGrouping when accessors have different access modifiers. ([@​fatkodima][])
  • #8257: Fix an error for Style/BisectedAttrAccessor when using attr_reader and attr_writer with splat arguments. ([@​fatkodima][])
  • #8239: Don't load .rubocop.yml from personal folders to check for exclusions if given a custom configuration file. ([@​deivid-rodriguez][])
  • #8256: Fix an error for --auto-gen-config when running a cop who do not support auto-correction. ([@​koic][])
  • #8262: Fix Lint/DeprecatedOpenSSLConstant auto-correction of OpenSSL::Cipher to use lower case, as some Linux-based systems do not accept upper cased cipher names. ([@​bdewater][])

0.87.0 (2020-07-06)

New features

  • #7868: Cop::Base is the new recommended base class for cops. ([@​marcandre][])
  • #3983: Add new Style/AccessorGrouping cop. ([@​fatkodima][])
... (truncated)
Commits
  • acddd73 Cut 0.88
  • 535c544 Add a changelog entry
  • d1822bc Ignore configuration files outside of the project
  • e1a2da0 Only look up to the project's root for exclusions
  • 0563861 Fix traverse_files_upwards to make searching up to the root possible
  • 18e318f Merge pull request #8279 from Fatsoma/feature/require_order_block_pass
  • fe066fc Merge branch 'master' into feature/require_order_block_pass
  • 0c786c0 Fix line number for empty file offense
  • 930b65f Fix expect_offense when annotations missing
  • 34a2dbd Merge pull request #8316 from fatkodima/autocorrect-to-disjunctive_assignment...
  • Additional commits viewable in compare view

Merge request reports