Update dependency rubocop-rails to v2.34.2 #551
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.32.0->2.34.2Release Notes
rubocop/rubocop-rails (rubocop-rails)
v2.34.2Compare Source
Changes
Rails/Presenceallow index access methods. ([@koic][])v2.34.1Compare Source
Bug fixes
Rails/Envwhen assigningRails.env. ([@koic][])Rails/Presencewith comparison and assignment operators. ([@davidenglishmusic][])Rails/RedirectBackOrTowhen additional options as double splat are used. ([@koic][])Rails/RedirectBackOrTowhenfallback_locationargument is a hash and the call has no argument parentheses. ([@koic][])v2.34.0Compare Source
New features
Rails/HttpStatusNameConsistencycop. ([@tuxagon][])Rails/Envcop. ([@cdudas17][])Rails/RedirectBackOrTocop to suggest usingredirect_back_or_toinstead ofredirect_backwithfallback_location. ([@davidenglishmusic][])Bug fixes
Rails/ActionControllerFlashBeforeRenderwhenflashis used inside a block followed by method chaining. ([@koic][])Rails/OutputSafetywhen using non-interpolated multiline heredoc. ([@koic][])Rails/FindByOrAssignmentMemoizationwhen assigning a memoization instance variable atinitializemethod. ([@koic][])Rails/InverseOfcop false positives when using dynamic association options. ([@viralpraxis][])Changes
abortto theRails/Exitcop. ([@adamstegman][])Rails/Presence. ([@vlad-pisanov][])Rails::HelperInstanceVariablenot to detect offenses for instance variables within classes. ([@viralpraxis][])Rails.env.to_syminRails/EnvironmentComparison. ([@lovro-bikic][])v2.33.4Compare Source
Bug fixes
Rails/FindByOrAssignmentMemoizationwhen using endless method definition. ([@koic][])Rails/FindBywhenwheretakes a block. ([@earlopain][])Rails/ActionControllerFlashBeforeRenderwhen flash is called in a block. ([@5hun-s][])v2.33.3Compare Source
Bug fixes
Rails/FindByOrAssignmentMemoization. ([@earlopain][])v2.33.2Compare Source
Bug fixes
Rails/ReadWriteAttributewith a frozen string attribute name. ([@viralpraxis][])v2.33.1Compare Source
Bug fixes
Rails/TransactionExitStatementwhentransactionis part of a method chain. ([@earlopain][])Rails/OrderArgumentscop false positives when using column index argument. ([@viralpraxis][])Rails/WhereExistswhenexists?is given multiple or splat arguments. ([@lovro-bikic][])v2.33.0Compare Source
New features
Rails/FindByOrAssignmentMemoizationcop. ([@r7kamura][])Rails/OrderArguments. ([@lovro-bikic][])Bug fixes
Rails/PluckIdandRails/PluckInWhere. ([@r7kamura][])Rails/EnvLocalwhen having preceding conditions. ([@fatkodima][])Rails/Pluckwhenmapmethod call is used in a block without a receiver. ([@koic][])Rails/Outputwhenpmethod is a DSL. ([@koic][])Rails/TransactionExitStatementwhenbreakis used in loop in transactions. ([@koic][])Rails/IndexWithhas nested offenses. ([@lovro-bikic][])Changes
Lint/UselessMethodDefinition. ([@r7kamura][])Rails/EnumSyntaxinclude the lib directory by default. ([@koic][])Rails/IndexWithas unsafe autocorrect. ([@tejasbubane][])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 was generated by Mend Renovate. View the repository job log.