Skip to content

RuboCop Rails v2.36.0

Latest

Choose a tag to compare

@github-actions github-actions released this 11 Jul 10:08

Bug fixes

  • #1647: Fix a false negative for Rails/EagerEvaluationLogMessage when the interpolated string is passed to Rails.logger.debug as the sole body of an enclosing block such as each or tap. (@conwayje)
  • #1646: Fix a false negative for Rails/ReversibleMigration when using remove_index without a column inside a change_table block. (@ilianah)
  • #1642: Fix a false negative for Rails/SafeNavigation when using try/try! with a symbol to proc such as foo.try(&:bar). (@koic)
  • #1599: Fix an incorrect autocorrect for Rails/LinkToBlank when Style/TrailingCommaInArguments with EnforcedStyleForMultiline: consistent_comma adds a trailing comma, which produced a duplicate comma. (@koic)
  • #1619: Fix MigratedSchemaVersion setting so it works for all cops. (@lovro-bikic)

Changes

  • #1641: Fix false negatives in Rails/SafeNavigation when using try/try! with operator methods such as [], []=, and ==. (@koic)