gems rubocop 1.74.0
RuboCop v1.74.0

2 days ago

New features

  • #13936: Adds new cop Style/ComparableBetween. (@lovro-bikic)
  • #13943: Allow writing steep annotation to method definition for Style/CommentedKeyword. (@dak2)

Bug fixes

  • #13969: Fix a false positive for Lint/SharedMutableDefault when capacity keyword argument is used. (@koic)
  • #13945: Fix a false positive for Style/DoubleNegation when calling define_method/define_singleton_method with a numblock. (@earlopain)
  • #13971: Fix false alarm for config obsoletion. (@koic)
  • #13960: Fix a false negative for Lint/ReturnInVoidContext when returning out of a block. (@earlopain)
  • #13947: Fix a false negative for Lint/UselessConstantScoping for constants defined in class << self. (@earlopain)
  • #13949: Fix a false negative for Lint/NonLocalExitFromIterator with numblocks. (@earlopain)
  • #13975: Fix false positives for Style/RedundantCurrentDirectoryInPath when using a complex current directory path in require_relative. (@koic)
  • #13963: Fix wrong autocorrect for Lint/LiteralAsCondition when the literal is followed by return, break, or next. (@earlopain)
  • #13946: Fix some false positives for Style/MethodCallWithArgsParentheses with EnforcedStyle: omit_parentheses style and numblocks. (@earlopain)
  • #13950: Fix sporadic errors about rubocop-rails or rubocop-performance extraction, even if they are already part of the Gemfile. (@earlopain)
  • #13981: Prevent redundant plugin loading when a duplicate plugin is specified in an inherited config. (@koic)
  • #13965: Update Lint/RedundantCopDisableDirective to register an offense when cop names are given with improper casing. (@dvandersluis)
  • #13948: Fix wrong autocorrect for Style/RescueModifier when using parallel assignment and the right-hand-side is not a bracketed array. (@earlopain)

Changes

  • #12851: Add EnforcedStyleForClasses and EnforcedStyleForModules configuration options to Style/ClassAndModuleChildren. (@dvandersluis)
  • #13979: Add Mode: conservative configuration to Style/FormatStringToken to make the cop only register offenses for strings given to printf, sprintf, format, and %. (@dvandersluis)
  • #13977: Allow TLS1_1 and TLS1_2 by default in Naming/VariableNumber to accommodate OpenSSL version parameter names. (@koic)
  • #13967: Make Lint/RedundantTypeConversion aware of redundant to_d. (@koic)

Don't miss a new rubocop release

NewReleases is sending notifications on new releases.