gems rubocop-rails 2.15.0
RuboCop Rails 2.15.0

latest releases: 2.25.1, 2.25.0, 2.24.1...
2 years ago

New features

  • #325: Add new Rails/DotSeparatedKeys cop. (@fatkodima)
  • #704: Add new Rails/StripHeredoc cop. (@koic)
  • #691: Add new Rails/ToFormattedS cop. (@koic)
  • #588: Add new Rails/RootPublicPath cop. (@leoarnold)
  • #702: Make keys method aware of Rails/DeprecatedActiveModelErrorsMethods cop. (@koic)
  • #688: Support autocorrection for Rails/DeprecatedActiveModelErrorsMethods. (@koic)

Bug fixes

  • #696: Fix a false negative for Rails/TransactionExitStatement when return is used in rescue. (@koic)
  • #700: Fix a false positive for Rails/FilePath when a list of paths separated by colon including Rails.root. (@tk0miya)
  • #680: Fix a false positive for Rails/ReversibleMigrationMethodDefinition when using an inner class. (@koic)
  • #692: Fix an error for Rails/UnusedIgnoredColumns when using no tables db/schema.rb. (@koic)
  • #707: Fix an error when a variable is passed to has_many or has_one with double splat. (@nobuyo)
  • #695: Fixes a false negative where the in_rescue? check would bypass situations where the return was inside a transaction but outside of a rescue. (@dorkrawk)
  • #703: Fix not autocorrected for Rails/DuplicateAssociation. (@ydah)
  • #708: Recover Ruby 2.2 code analysis using TargetRubyVersion: 2.2. (@koic)

Changes

  • #697: (Compatibility) Drop Ruby 2.5 support. (@koic)
  • #705: Add mailers to default filter/action callbacks cops. (@ojab)
  • #710: Rails/TransactionExitStatement - Inspect ActiveRecord::Locking::Pessimistic#with_lock too, as #with_lock opens a transaction. (@FunnyHector)

Don't miss a new rubocop-rails release

NewReleases is sending notifications on new releases.