development-dependency: bump rubocop-rails from 2.9.1 to 2.10.1
Bumps rubocop-rails from 2.9.1 to 2.10.1.
Release notes
Sourced from rubocop-rails's releases.
RuboCop Rails 2.10.1
Bug fixes
RuboCop Rails 2.10.0
New features
- #457: Add new
Rails/ReversibleMigrationMethodDefinition
cop. (@leonp1991
)- #446: Add new
Rails/RequireDependency
cop. (@tubaxenor
)- #458: Add new
Rails/TimeZoneAssignment
cop. (@olivierbuffon
)- #442: Add new
Rails/EnvironmentVariableAccess
cop. ([@drenmi
][])Bug fixes
- #421: Fix incorrect auto-correct for
Rails/LinkToBlank
when usingtarget: '_blank'
with hash brackets for the option. ([@koic
][])- #436: Fix a false positive for
Rails/ContentTag
when the first argument is a splat argument. ([@koic
][])- #435: Fix a false negative for
Rails/BelongsTo
when usingbelongs_to
lambda block withrequired
option. ([@koic
][])- #451: Fix a false negative for
Rails/RelativeDateConstant
when a method is chained after a relative date method. ([@koic
][])- #450: Fix a crash for
Rails/ContentTag
with nested content tags. ([@tejasbubane
][])- #103: Fix a false positive for
Rails/FindEach
when not inheritingActiveRecord::Base
and usingall.each
. ([@koic
][])- #466: Fix a false positive for
Rails/DynamicFindBy
when not inheritingApplicationRecord
and without no receiver. ([@koic
][])- #147: Fix a false positive for
Rails/HasManyOrHasOneDependent
when specifying defaultdependent: nil
strategy. ([@koic
][])- #137: Make
Rails/HasManyOrHasOneDependent
aware ofreadonly?
istrue
. ([@koic
][])- #474: Fix a false negative for
Rails/SafeNavigation
when usingtry!
without receiver. ([@koic
][])- #126: Fix an incorrect auto-correct for
Rails/SafeNavigation
withStyle/RedndantSelf
. ([@koic
][])- #476: Fix a false positive for
Rails/ReversibleMigration
when usingdrop_table
with symbol proc. ([@koic
][])Changes
- #409: Deconstruct "table.column" in
Rails/WhereNot
. ([@mobilutz
][])- #416: Make
Rails/HasManyOrHasOneDependent
accept combination of association extension andwith_options
. ([@ohbarye
][])- #432: Exclude gemspec file by default for
Rails/TimeZone
cop. ([@koic
][])- #440: This PR makes
Rails/TimeZone
aware of timezone specifier. ([@koic
][])- #381: Update
IgnoredMethods
list forLint/NumberConversion
to allow Rails' duration methods. ([@dvandersluis
][])- #444: Mark
Rails/Blank
as unsafe auto-correction. ([@koic
][])- #451: Make
Rails/RelativeDateConstant
aware ofyesterday
andtomorrow
methods. ([@koic
][])- #454: Mark
Rails/WhereExists
as unsafe auto-correction. ([@koic
][])- #403: Mark
Rails/WhereEquals
as unsafe auto-correction. ([@koic
][])- #379: Mark
Rails/DynamicFindBy
as unsafe. ([@koic
][])- #106: Mark
Rails/ReflectionClassName
as unsafe. ([@koic
][])- #106: Make
Rails/ReflectionClassName
aware of the use of string withto_s
. ([@koic
][])- #456: Drop Ruby 2.4 support. ([
@koic
][])- #462: Require RuboCop 1.7 or higher. ([
@koic
][])
... (truncated)
Changelog
Sourced from rubocop-rails's changelog.
2.10.1 (2021-05-06)
Bug fixes
2.10.0 (2021-05-05)
New features
- #457: Add new
Rails/ReversibleMigrationMethodDefinition
cop. ([@leonp1991
][])- #446: Add new
Rails/RequireDependency
cop. ([@tubaxenor
][])- #458: Add new
Rails/TimeZoneAssignment
cop. ([@olivierbuffon
][])- #442: Add new
Rails/EnvironmentVariableAccess
cop. ([@drenmi
][])Bug fixes
- #421: Fix incorrect auto-correct for
Rails/LinkToBlank
when usingtarget: '_blank'
with hash brackets for the option. ([@koic
][])- #436: Fix a false positive for
Rails/ContentTag
when the first argument is a splat argument. ([@koic
][])- #435: Fix a false negative for
Rails/BelongsTo
when usingbelongs_to
lambda block withrequired
option. ([@koic
][])- #451: Fix a false negative for
Rails/RelativeDateConstant
when a method is chained after a relative date method. ([@koic
][])- #450: Fix a crash for
Rails/ContentTag
with nested content tags. ([@tejasbubane
][])- #103: Fix a false positive for
Rails/FindEach
when not inheritingActiveRecord::Base
and usingall.each
. ([@koic
][])- #466: Fix a false positive for
Rails/DynamicFindBy
when not inheritingApplicationRecord
and without no receiver. ([@koic
][])- #147: Fix a false positive for
Rails/HasManyOrHasOneDependent
when specifying defaultdependent: nil
strategy. ([@koic
][])- #137: Make
Rails/HasManyOrHasOneDependent
aware ofreadonly?
istrue
. ([@koic
][])- #474: Fix a false negative for
Rails/SafeNavigation
when usingtry!
without receiver. ([@koic
][])- #126: Fix an incorrect auto-correct for
Rails/SafeNavigation
withStyle/RedndantSelf
. ([@koic
][])- #476: Fix a false positive for
Rails/ReversibleMigration
when usingdrop_table
with symbol proc. ([@koic
][])Changes
- #409: Deconstruct "table.column" in
Rails/WhereNot
. ([@mobilutz
][])- #416: Make
Rails/HasManyOrHasOneDependent
accept combination of association extension andwith_options
. ([@ohbarye
][])- #432: Exclude gemspec file by default for
Rails/TimeZone
cop. ([@koic
][])- #440: This PR makes
Rails/TimeZone
aware of timezone specifier. ([@koic
][])- #381: Update
IgnoredMethods
list forLint/NumberConversion
to allow Rails' duration methods. ([@dvandersluis
][])- #444: Mark
Rails/Blank
as unsafe auto-correction. ([@koic
][])- #451: Make
Rails/RelativeDateConstant
aware ofyesterday
andtomorrow
methods. ([@koic
][])- #454: Mark
Rails/WhereExists
as unsafe auto-correction. ([@koic
][])- #403: Mark
Rails/WhereEquals
as unsafe auto-correction. ([@koic
][])- #379: Mark
Rails/DynamicFindBy
as unsafe. ([@koic
][])- #106: Mark
Rails/ReflectionClassName
as unsafe. ([@koic
][])- #106: Make
Rails/ReflectionClassName
aware of the use of string withto_s
. ([@koic
][])- #456: Drop Ruby 2.4 support. ([
@koic
][])- #462: Require RuboCop 1.7 or higher. ([
@koic
][])
Commits
-
4ce12da
Cut 2.10.1 -
a506670
Merge pull request #478 from rhymes/patch-1 -
6e913b5
Fix ReversibleMigrationMethodDefinition "Include" -
7035fc3
Switch back docs version to master -
f20e51a
Cut 2.10.0 -
a2334ff
Merge pull request #477 from koic/fix_a_false_positive_for_rails_reversible_m... -
6259a52
[Fix #476] Fix a false positive forRails/ReversibleMigration
-
5c44c5d
Merge pull request #475 from koic/fix_incorrect_autocorrect_for_rails_safe_na... -
fb75399
[Fix #126] Fix an incorrect auto-correct forRails/SafeNavigation
-
f0e8893
Merge pull request #474 from koic/fix_false_negative_for_rails_safe_navigation - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot rebase
will rebase this MR -
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts
Edited by George Koltsov