github rubocop/rubocop v0.42.0
RuboCop 0.42.0

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

New features

  • #3306: Add autocorrection for Style/EachWithObject. (@owst)
  • Add new Style/TernaryParentheses cop. (@drenmi)
  • #3136: Add config for UselessAccessModifier so it can be made aware of ActiveSupport's concerning and class_methods methods. (@maxjacobson)
  • #3128: Add new Rails/SaveBang cop. (@QuinnHarris)

Bug fixes

  • #3271: Fix bad auto-correct for Style/EachForSimpleLoop cop. (@drenmi)
  • #3288: Fix auto-correct of word and symbol arrays in Style/ParallelAssignment cop. (@jonas054)
  • #3307: Fix exception when inspecting an operator assignment with Style/MethodCallParentheses cop. (@drenmi)
  • #3316: Fix error for blocks without arguments in Style/SingleLineBlockParams cop. (@owst)
  • #3320: Make Style/OpMethod aware of the backtick method. (@drenmi)
  • Do not register an offense in Lint/ShadowedException when rescuing an exception built into Ruby before a custom exception. (@rrosenblum)

Changes

  • #2645: Style/EmptyLiteral no longer generates an offense for String.new when using frozen string literals. (@drenmi)
  • #3308: Make Lint/NextWithoutAccumulator aware of nested enumeration. (@drenmi)
  • Extend Style/MethodMissing cop to check for the conditions in the style guide. (@drenmi)
  • #3325: Drop support for MRI 1.9.3. (@drenmi)
  • Add support for MRI 2.4. (@dvandersluis)
  • #3256: Highlight the closing brace in Style/Multiline...BraceLayout cops. (@jonas054)
  • Always register an offense when rescuing Exception before or along with any other exception in Lint/ShadowedException. (@rrosenblum)

Don't miss a new rubocop release

NewReleases is sending notifications on new releases.