github rubocop/rubocop v0.58.0
RuboCop 0.58

latest releases: v1.63.3, v1.63.4, v1.63.2...
5 years ago

New features

  • #5973: Add new Style/IpAddresses cop. (@dvandersluis)
  • #5843: Add configuration options to Naming/MemoizedInstanceVariableName cop to allow leading underscores. (@leklund)
  • #5843: Add EnforcedStyleForLeadingUnderscores to Naming/MemoizedInstanceVariableName cop to allow leading underscores. (@leklund)
  • Performance/Sample will now register an offense when using shuffle followed by at or slice. (@rrosenblum)

Bug fixes

  • #5987: Suppress errors when using ERB template in Rails/BulkChangeTable. (@wata727)
  • #4878: Fix false positive in Layout/IndentationWidth when multiple modifiers and def are on the same line. (@tatsuyafw)
  • #5966: Fix a false positive for Layout/ClosingHeredocIndentation when heredoc content is outdented compared to the closing. (@koic)
  • Fix auto-correct support check for custom cops on --auto-gen-config. (@r7kamura)
  • Fix exception that occurs when auto-correcting a modifier if statement in Style/UnneededCondition. (@rrosenblum)
  • #6025: Fix an incorrect auto-correct for Lint/UnneededCondition when using if_branch in else branch. (@koic)
  • #6029: Fix a false positive for Lint/ShadowedArgument when reassigning to splat variable. (@koic)
  • #6035: Fix error on autocorrection when Layout/LeadingBlankLines is the first cop to act. (@Vasfed)
  • #6036: Make Rails/BulkChangeTable aware of string table name. (@wata727)
  • #5467: Fix a false negative for Style/MultipleComparison when multiple comparison is not part of a conditional. (@koic)
  • #6042: Fix Lint/RedundantWithObject error on missing parameter to each_with_object. (@Vasfed)
  • #6056: Support string timestamps in Rails/CreateTableWithTimestamps cop. (@drn)
  • #6052: Fix a false positive for Style/SymbolProc when using block with adding a comma after the sole argument. (@koic)
  • #2743: Support << as a kind of assignment operator in Layout/EndAlignment. (@jonas054)
  • #6067: Prevent auto-correct error for Performance/InefficientHashSearch when a method by itself and include? method are method chaining. (@koic)

Changes

  • #6006: Remove rake repl task. (@koic)
  • #5990: Drop support for MRI 2.1. (@drenmi)
  • #3299: Lint/UselessAccessModifier now warns when private_class_method is used without arguments. (@Darhazer)
  • #6026: Exclude refine by default from Metrics/BlockLength cop. (@kddeisz)
  • #4882: Use IndentationWidth of Layout/Tab for other cops. (@AlexWayfer)

Don't miss a new rubocop release

NewReleases is sending notifications on new releases.