Update dependency rubocop-rails to v2.21.0 #3061
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.20.1
->2.21.0
Release Notes
rubocop/rubocop-rails (rubocop-rails)
v2.21.0
Compare Source
New features
Rails/SelectMap
cop that checks for uses ofselect(:column_name)
withmap(&:column_name)
. ([@koic][])Rails/DangerousColumnNames
cop. ([@r7kamura][])TransactionMethods
config forRails/TransactionExitStatement
to detect custom transaction methods. ([@marocchino][])Rails/UnusedRenderContent
cop. ([@samrjenkins][])Rails/I18nLazyLookup
. ([@sunny][])Bug fixes
Rails/LexicallyScopedActionFilter
when no methods are defined. ([@vlad-pisanov][])Rails/HttpStatus
when using symbolic value that have no numeric value mapping. ([@koic][])Rails/RootPathnameMethods
on Ruby 2.4 or lower. ([@r7kamura][])Rails/RedundantActiveRecordAllMethod
cop. ([@masato-bkn][])Rails/FilePath
when string interpolatedRails.root
is followed by a message starting with.
. ([@koic][])Rails/FilePath
when File.join with Rails.root and path starting with/
. ([@ydah][])Rails/NegateInclude
when usingStyle/InverseMethods
's autocorrection together. ([@koic][])Rails/RakeEnvironment
when rake task accepts arguments. ([@fastjames][])UniqueValidationWithoutIndex
whendb/schema.rb
is empty. ([@fatkodima][])Rails/SchemaComment
when create_table with multi t columns. ([@nipe0324][])Changes
Lint/SafeNavigationChain
allowpresence_in
. ([@koic][])Rails/HttpStatus
aware of string number status. ([@r7kamura][])Rails/TimeZone
aware ofString#to_time
. ([@koic][])Style/InvertibleUnlessCondition
aware of Active Support methods. ([@koic][])Rails/BulkChangeTable
from environment variable. ([@joergschiller][])Include
path forRails/FindBy
andRails/FindEach
. ([@koic][])v2.20.2
Compare Source
Bug fixes
Rails/UniqueValidationWithoutIndex
when thepresence: true
option is used alone for thevalidates
method. ([@koic][])Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.