github rubocop/rubocop v0.59.2
RuboCop 0.59.2

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

Bug fixes

  • #6266: Fix a false positive for Rails/HasManyOrHasOneDependent when using associations of Active Resource. (@tejasbubane, @koic)
  • #6296: Fix an auto-correct error for Style/For when setting EnforcedStyle: each and for dose not have do or semicolon. (@autopp)
  • #6300: Fix a false positive for Layout/EmptyLineAfterGuardClause when guard clause including heredoc. (@koic)
  • #6287: Fix AllowURI option for Metrics/LineLength cop with disabled Layut/Tab cop. (@AlexWayfer)
  • #5338: Move checking of class- and module defining blocks from Metrics/BlockLength into the respective length cops. (@drenmi)
  • #2841: Fix Style/ZeroLengthPredicate false positives when inspecting Tempfile, StringIO, and File::Stat objects. (@drenmi)
  • #6305: Fix infinite loop for Layout/EmptyLinesAroundAccessModifier and Layout/EmptyLinesAroundAccessModifier when specifying a superclass that breaks the line. (@koic)
  • #6007: Fix false positive in Style/IfUnlessModifier when using named capture. (@drenmi)
  • #6311: Prevent Style/Semicolon from breaking on single line if-then-else in assignment. (@drenmi)
  • #6315: Fix an error for Rails/HasManyOrHasOneDependent when an Active Record model does not have any relations. (@koic)
  • #6316: Fix an auto-correct error for Style/For when setting EnforcedStyle: each with range provided to the for loop without a do keyword or semicolon and without enclosing parenthesis. (@lukasz-wojcik)

Changes

  • #6286: Allow exclusion of certain methods for Metrics/MethodLength. (@akanoi)

Don't miss a new rubocop release

NewReleases is sending notifications on new releases.