Skip to content

Releases: rubocop/rubocop-rails

RuboCop Rails 2.4.1

25 Dec 06:37
Compare
Choose a tag to compare

Bug fixes

  • #170: Make Rails/BulkChangeTable not suggest combining methods with an intervening block. (@mvz)
  • #159: Fix autocorrect for Rails/EnumHash when using % arrays notations. (@ngouy)

Changes

  • #166: Add db/schema.rb and bin/* to the excluded files. (@fidalgo)

RuboCop Rails 2.4.0

27 Nov 04:38
Compare
Choose a tag to compare

New features

  • #123: Add new Rails/ApplicationController and Rails/ApplicationMailer cops. (@eugeneius)
  • #130: Add new Rails/RakeEnvironment cop. (@pocke)
  • #133: Add new Rails/SafeNavigationWithBlank cop. (@gyfis)

Bug fixes

  • #120: Fix message for Rails/SaveBang when the save is in the body of a conditional. (@jas14)
  • #131: Fix an incorrect autocorrect for Rails/Presence when using [] method. (@forresty)
  • #142: Fix an incorrect autocorrect for Rails/EnumHash when using nested constants. (@koic)
  • #136: Fix a false positive for Rails/ReversibleMigration when using change_default with :from and :to options. (@sinsoku)
  • #144: Fix a false positive for Rails/ReversibleMigration when using change_table_comment or change_column_comment with a :from and :to hash. (@DNA)

Changes

  • #156: Make Rails/UnknownEnv cop aware of Rails.env == 'unknown_env'. (@pocke)
  • #141: Change default of EnforcedStyle from arguments to slashes for Rails/FilePath. (@koic)

RuboCop Rails 2.3.2

01 Sep 02:07
Compare
Choose a tag to compare

2.3.2 (2019-09-01)

Bug fixes

  • #118: Fix an incorrect autocorrect for Rails/Validation when attributes are specified with array literal. (@koic)
  • #116: Fix an incorrect autocorrect for Rails/Presence when else branch of ternary operator is not nil. (@koic)

RuboCop Rails 2.3.1

26 Aug 05:25
Compare
Choose a tag to compare

Bug fixes

  • #104: Exclude Rails-independent bin/bundle by default. (@koic)
  • #107: Fix style guide URLs when specifying rubocop --display-style-guide option. (@koic)
  • #111: Fix an incorrect autocorrect for Rails/Presence when method arguments of else branch is not enclosed in parentheses. (@koic)

RuboCop Rails 2.3.0

13 Aug 05:27
Compare
Choose a tag to compare

New features

Bug fixes

  • #53: Fix a false positive for Rails/SaveBang when implicitly return using finder method and creation method connected by ||. (@koic)
  • #97: Fix two false negatives for Rails/EnumUniqueness. 1. When enum name is not a literal. 2. When enum has multiple definitions. (@santib)

Changes

RuboCop Rails 2.2.1

13 Jul 03:59
Compare
Choose a tag to compare

Bug fixes

  • #86: Fix an incorrect auto-correct for Rails/TimeZone when using Time.new. (@koic)

RuboCop Rails 2.2.0

06 Jul 16:05
Compare
Choose a tag to compare

Bug fixes

  • #67: Fix an incorrect auto-correct for Rails/TimeZone when using DateTime. (@koic)

RuboCop Rails 2.1.0

25 Jun 15:58
Compare
Choose a tag to compare

Bug fixes

  • #43: Remove change_column_null method from BulkChangeTable cop offenses. ([@anthony-robin][])
  • #79: Fix RuboCop::Cop::Rails not defined (NameError). (@rmm5t)

Changes

RuboCop Rails 2.0.1

08 Jun 06:38
Compare
Choose a tag to compare

Changes

RuboCop Rails 2.0.0

08 Jun 06:32
Compare
Choose a tag to compare

New features

  • Extract Rails cops from rubocop-hq/rubocop repository. (@koic)
  • #19: Add new Rails/HelperInstanceVariable cop. (@andyw8)