Releases: rubocop/rubocop-rails
Releases · rubocop/rubocop-rails
RuboCop Rails 2.13.2
New features
- #614: Add
IgnoreScopes
config option forRails/InverseOf
cop. (@composerinteralia)
Bug fixes
- #620: Fix a false positive for
Rails/RedundantPresenceValidationOnBelongsTo
using presence with a message. (@koic) - #626: Fix a false positive for
Rails/CompactBlank
when using the receiver ofblank?
is not a block variable. (@koic) - #622: Add
month(s)
andyear(s)
toRails/DurationArithmetic
cop. (@agrobbin) - #623: Fix method shadowing check for
Rails/ReadWriteAttribute
cop. (@nvasilevski)
Changes
- #615: Change
Rails/RedundantPresenceValidationOnBelongsTo
toSafeAutoCorrect: false
. (@TonyArra) - #463: Support multiple databases for
ReversibleMigration
andReversibleMigrationMethodDefinition
cops. (@fatkodima)
RuboCop Rails 2.13.1
Bug fixes
- #601: Handle ignored_columns from mixins for
Rails/UnusedIgnoredColumns
cop. (@tachyons) - #603: Fix autocorrection of multiple attributes for
Rails/RedundantPresenceValidationOnBelongsTo
cop. (@pirj) - #608: Fix autocorrection of strict validation for
Rails/RedundantPresenceValidationOnBelongsTo
cop. (@pirj)
Changes
RuboCop Rails 2.13.0
New features
- #586: Add new
Rails/RootJoinChain
cop. (@leoarnold) - #571: Add
Rails/DurationArithmetic
cop. (@pirj) - #594: Add
Rails/RedundantPresenceValidationOnBelongsTo
cop. (@pirj) - #568: Add
Rails/SchemaComment
cop. (@vitormd)
Changes
- #591: Add
change_column
check toRails/ReversibleMigration
. (@mattmccormick) - Add
remove_reference
check toRails/ReversibleMigration
. (@mattmccormick) - #576: Mark
Rails/TimeZone
as unsafe auto-correction from unsafe. (@koic) - #582: Unmark
AutoCorrect: false
fromRails/RelativeDateConstant
. (@koic) - #580: Unmark
AutoCorrect: false
fromRails/UniqBeforePluck
. (@koic)
RuboCop Rails 2.12.4
RuboCop Rails 2.12.3
Bug fixes
- #556: Fix a false positive for
Rails/ContentTag
when using using thetag
method with 3 or more arguments. (@koic) - #551: Fix a false positive for
Rails/FindEach
when usingmodel.errors.where
in Rails 6.1. (@koic) - #543: Fix an error for
Rails/ContentTag
whentag
is not a top-level method. (@koic) - #559: Fix an error for
Rails/RelativeDateConstant
when using multiple assignment. (@koic) - #553: Fix a false positive for
Rails/ReversibleMigration
when usingt.remove
withtype
option in Rails 6.1. (@koic)
Changes
- #546: Exclude
app/models
by default forRails/ContentTag
. (@koic) - #570: Make
Rails/CreateTableWithTimestamps
respectactive_storage_variant_records
table ofdb/migrate/*_create_active_storage_tables.active_storage.rb
auto-generated bybin/rails active_storage:install
even ifcreated_at
is not specified. (@koic)
RuboCop Rails 2.12.2
RuboCop Rails 2.12.1
RuboCop Rails 2.12.0
New features
- #521: Support auto-correction for
Rails/Output
. (@koic) - #520: Support auto-correction for
Rails/ScopeArgs
. (@koic) - #524: Add new
Rails/RedundantTravelBack
cop. (@koic)
Bug fixes
- #528: Fix a false positive for
Rails/HasManyOrHasOneDependent
when specifying:dependent
strategy with double splat. (@koic) - #529: Fix a false positive for
Rails/LexicallyScopedActionFilter
when action method is aliased byalias_method
. (@koic) - #532: Fix a false positive for
Rails/HttpPositionalArguments
when definingget
inRails.application.routes.draw
block. (@koic)
Changes
- #260: Change target of
Rails/ContentTag
fromcontent_tag
method totag
method. (@tabuchi0919)
RuboCop Rails 2.11.3
Bug fixes
- #517: Fix an issue for
Rails/UniqueValidationWithoutIndex
when validating uniqueness with a polymorphic scope. (@theunraveler)