Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency rubocop-rails to v2.30.1 #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 2, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
rubocop-rails (source, changelog) 2.21.1 -> 2.30.1 age adoption passing confidence

Release Notes

rubocop/rubocop-rails (rubocop-rails)

v2.30.1

Compare Source

Bug fixes
  • #​1442: Fix an incorrect behavior when using AllCops: TargetRailsVersion. ([@​koic][])
  • #​1444: Fix an incorrect behavior when using AllCops: MigratedSchemaVersion. ([@​koic][])

v2.30.0

Compare Source

New features
Bug fixes
  • #​1071: Fix Rails/FilePath cop to correctly handle File.join with variables and ignore leading and multiple slashes in string literal arguments for Rails.root.join and File.join. ([@​ydakuka][])
  • #​912: Enhance Rails/Delegate by adding delegation detection for self.class, constants, class variables, global variables, and instance variables. ([@​ydakuka][])

v2.29.1

Compare Source

Bug fixes
  • #​1423: Fix an error for Rails/StrongParametersExpect when using permit with no arguments. ([@​koic][])
  • #​1417: Fix an incorrect autocorrect for Rails/StrongParametersExpect when using a leading dot multiline call to require with permit. ([@​koic][])
  • #​1356: Enhance Rails/DuplicateAssociation to handle alias. ([@​ydakuka][])
  • #​1389: Handle TypeError caused by passing array literals as arguments to File methods in Rails/FilePath cop. ([@​ydakuka][])
  • #​1389: Handle TypeError caused by passing array literals as arguments to File methods in Rails/RootPathnameMethods cop. ([@​ydakuka][])
  • #​1228: Enhance Rails/SaveBang to properly handle instance variables. ([@​ydakuka][])

v2.29.0

Compare Source

New features
Bug fixes
Changes
  • #​1410: Make registered cops aware of AllCops: MigratedSchemaVersion. ([@​koic][])

v2.28.0

Compare Source

New features
Bug fixes
  • #​1390: Fix an incorrect autocorrect for Rails/SelectMap when select has no receiver and method chains are used. ([@​masato-bkn][])
  • #​1382: Fix false negatives for Rails/RedundantActiveRecordAllMethod when using all method in block. ([@​masato-bkn][])
  • #​1397: Fix Rails/FilePath cop error on join method with implicit receiver. ([@​viralpraxis][])
  • #​1398: Fix Rails/FilePath cop error in case of extra operations in Rails.root interpolation. ([@​viralpraxis][])
  • #​1392: Fix Rails/FilePath cop error with rescued Rails.root. ([@​viralpraxis][])
Changes
  • #​1388: Modify Rails/Pluck to ignore map/collect when used inside blocks to prevent potential N+1 queries. ([@​masato-bkn][])

v2.27.0

Compare Source

Bug fixes
  • #​1377: Fix an error for Rails/EnumSyntax when positional arguments are used and options are not passed as keyword arguments. ([@​koic][])
  • #​1367: Fix Rails/TimeZone should not report offense on String#to_time with timezone specifier. ([@​armandmgt][])
Changes

v2.26.2

Compare Source

Bug fixes
  • #​1362: Fix false positives for Rails/EnumSyntax when using Ruby 2.7. ([@​koic][])
  • #​1269: Fix false positives for Rails/ActionControllerFlashBeforeRender in combination with implicit returns. ([@​earlopain][])
  • #​1326: Fix wrong autocorrect for Rails/FilePath when passing an array to File.join. ([@​earlopain][])
Changes

v2.26.1

Compare Source

Bug fixes
  • #​1343: Fix false negatives for Rails/EnumSyntax for non-literal mappings. ([@​earlopain][])
  • #​1340: Fix a false positive for Rails/WhereEquals, Rails/WhereNot, and Rails/WhereRange when qualifying the database name. ([@​earlopain][])
Changes

v2.26.0

Compare Source

New features
Bug fixes
  • #​1335: Fix an error for Rails/BulkChangeTable when the block for change_table is empty. ([@​earlopain][])
  • #​1325: Fix an error for Rails/RenderPlainText when the content type is passed as a constant. ([@​earlopain][])
  • #​1337: Fix an error for Rails/Validation when passing no arguments. ([@​earlopain][])
  • #​1330: Fix an error for Rails/WhereNot when using placeholder without second argument. ([@​earlopain][])
  • #​1311: Fix false negatives for Rails/ActionControllerFlashBeforeRender when using implicit render or rescue blocks. ([@​tldn0718][])
  • #​1313: Fix false positives for Rails/CompactBlank when using collection.reject!. ([@​koic][])
  • #​1319: Fix a false positive for Rails/RedundantPresenceValidationOnBelongsTo when removing presence would leave other non-validation options like allow_blank without validations. ([@​earlopain][])
  • #​1306: Make Rails/PluralizationGrammar aware of byte methods. ([@​earlopain][])
  • #​1302: Allow params receiver by default for Style/CollectionMethods. ([@​koic][])
  • #​1321: Fix an error for Rails/WhereEquals when the second argument is not yet typed (where("foo = ?", )). ([@​earlopain][])
Changes

v2.25.1

Compare Source

Bug fixes
Changes

v2.25.0

Compare Source

New features
Bug fixes
  • #​1270: Fix an incorrect autocorrect for Rails/Validation when using validates_size_of. ([@​koic][])
  • #​1278: Fix a false positive for Rails/SkipsModelValidations when using insert or insert! with a safe navigator. ([@​tldn0718][])
  • #​1260: Fix a performance regression caused by Rails/UnknownEnv when using Rails 7.1. ([@​lukasfroehlich1][])
Changes

v2.24.1

Compare Source

Bug fixes
  • #​1244: Fix a false positive for Rails/ActionControllerFlashBeforeRender when returning redirect_to. ([@​earlopain][])
  • #​1255: Fix an error for Rails/UniqBeforePluck with EnforcedStyle: aggressive when no receiver. ([@​earlopain][])
  • #​1247: Fix an error for Rails/UnusedIgnoredColumns when without tables in db/schema.rb. ([@​koic][])
  • #​1253: Fix an error for Rails/WhereMissing with leading where without receiver. ([@​earlopain][])
  • #​1254: Fix an error for Rails/ExpandedDateRange when passing an argument only to the first method call for weeks. ([@​earlopain][])
  • #​1256: Fix an error for Rails/ActiveSupportOnLoad when calling without arguments. ([@​earlopain][])
  • #​1230: Fix a false positive for Rails/SaveBang if persisted? is checked on parenthesised expression. ([@​earlopain][])
  • #​1200: Make Rails/TimeZone aware of safe navigation. ([@​earlopain][])
Changes
  • #​1257: Add Rails 7.1 load hooks and active_record_sqlite3adapter to Rails/ActiveSupportOnLoad. ([@​earlopain][])

v2.24.0

Compare Source

New features
Bug fixes
  • #​1234: Fix an incorrect autocorrect for Rails/FindBy when using multi-line leading dot method calls. ([@​ymap][])
  • #​1241: Fix an error for Rails/WhereExists with EnforcedStyle: where and implicit receivers. ([@​earlopain][])
Changes

v2.23.1

Compare Source

Bug fixes
  • #​1221: Fix an exception in Rails/WhereNot when calling .where on an implicit receiver (e.g. inside model code). ([@​bquorning][])

v2.23.0

Compare Source

New features
Bug fixes
  • #​1206: Fix an error for Rails/WhereMissing where join method is called without arguments. ([@​fatkodima][])
  • #​1189: Fix false negatives for Rails/Pluck when using safe navigation method calls. ([@​koic][])
  • #​1204: Make Rails/ActiveSupportAliases, Rails/FindBy, Rails/FindById, Rails/Inquiry, Rails/Pick Rails/PluckId, Rails/PluckInWhere, Rails/WhereEquals, Rails/WhereExists, and Rails/WhereNot cops aware of safe navigation operator. ([@​koic][])
Changes

v2.22.2

Compare Source

Bug fixes
  • #​1172: Fix an error for Rails/UnknownEnv when using Rails 7.1. ([@​koic][])
  • #​1173: Fix an error for Rails/RedundantActiveRecordAllMethod cop when used with RuboCop 1.51 or lower. ([@​koic][])
Changes
  • #​1171: Change Rails/RedundantActiveRecordAllMethod to ignore delete_all and destroy_all when receiver is an association. ([@​masato-bkn][])
  • #​1178: Require RuboCop AST 1.30.0+. ([@​koic][])

v2.22.1

Compare Source

Bug fixes
  • #​1145: Fix a false positive for Rails/DuplicateAssociation when using duplicate belongs_to associations of same class without other arguments. ([@​koic][])

v2.22.0

Compare Source

New features
Bug fixes
  • #​952: Fix a false positive for Rails/NotNullColumn when using null: false for MySQL's TEXT type. ([@​koic][])
  • #​1041: Fix a false positive for Rails/Output when output method is called with block argument. ([@​koic][])
  • #​1143: Fix an error for Rails/RedundantActiveRecordAllMethod when using RuboCop 1.51 or lower. ([@​koic][])
  • #​1105: Fix false positives for Rails/RedundantPresenceValidationOnBelongsTo when using validates with :if or :unless options. ([@​koic][])
  • #​1158: Rails/HasManyOrHasOneDependent does not add offence when has_many or has_one is called on an explicit receiver. ([@​samrjenkins][])
  • #​1160: Fix Rails/SaveBang to ignore parenthesis. ([@​fatkodima][])
Changes
  • #​1152: Add more dangerous column names to Rails/DangerousColumnNames. ([@​r7kamura][])
  • #​1039: Deprecate Rails/ActionFilter cop; it will be disabled by default. ([@​koic][])
  • #​893: Support local as an environment for Rails/UnknownEnv from Rails 7.1 onward. ([@​ghiculescu][])

v2.21.2

Compare Source

Bug fixes
  • #​1126: Fix a false positive for Rails/RedundantActiveRecordAllMethod when using some Enumerable's methods with block argument. ([@​koic][])
  • #​1121: Fix an error for Rails/SelectMap when using select(:column_name).map(&:column_name) without receiver model. ([@​koic][])
  • #​1119: Fix an incorrect autocorrect for Rails/RedundantActiveRecordAllMethod when all has parentheses. ([@​masato-bkn][])
  • #​1130: Fix crash for Rails/UniqueValidationWithoutIndex with bare validate. ([@​jamiemccarthy][])
  • #​1124: Fix false positives for Rails/RedundantActiveRecordAllMethod when receiver is not an Active Record model. ([@​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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@stackblitz
Copy link

stackblitz bot commented Oct 2, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@changeset-bot
Copy link

changeset-bot bot commented Oct 2, 2023

⚠️ No Changeset found

Latest commit: fad76bc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@renovate renovate bot changed the title Update dependency rubocop-rails to v2.21.2 Update dependency rubocop-rails to v2.22.0 Oct 27, 2023
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from 2719370 to 53a140c Compare October 27, 2023 06:10
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.22.0 Update dependency rubocop-rails to v2.22.1 Oct 28, 2023
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from 53a140c to 82e1604 Compare October 28, 2023 07:48
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.22.1 Update dependency rubocop-rails to v2.22.2 Nov 19, 2023
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from 82e1604 to 263dff0 Compare November 19, 2023 09:39
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.22.2 Update dependency rubocop-rails to v2.23.0 Dec 16, 2023
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from 263dff0 to 41244c2 Compare December 16, 2023 04:37
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.23.0 Update dependency rubocop-rails to v2.23.1 Dec 25, 2023
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from 41244c2 to 5a4aefe Compare December 25, 2023 04:33
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.23.1 Update dependency rubocop-rails to v2.24.0 Mar 3, 2024
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from 5a4aefe to 06e3721 Compare March 3, 2024 09:38
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from 06e3721 to 36ddf2e Compare March 25, 2024 04:53
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.24.0 Update dependency rubocop-rails to v2.24.1 Mar 25, 2024
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from 36ddf2e to ec630bd Compare May 17, 2024 08:13
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.24.1 Update dependency rubocop-rails to v2.25.0 May 17, 2024
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from ec630bd to 1ec952d Compare June 29, 2024 15:45
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.25.0 Update dependency rubocop-rails to v2.25.1 Jun 29, 2024
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from 1ec952d to aacd2c2 Compare August 24, 2024 09:59
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.25.1 Update dependency rubocop-rails to v2.26.0 Aug 24, 2024
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from aacd2c2 to 67df332 Compare September 7, 2024 09:09
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.26.0 Update dependency rubocop-rails to v2.26.1 Sep 7, 2024
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from 67df332 to f873650 Compare September 21, 2024 05:12
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.26.1 Update dependency rubocop-rails to v2.26.2 Sep 21, 2024
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from f873650 to 3935f77 Compare October 26, 2024 09:15
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.26.2 Update dependency rubocop-rails to v2.27.0 Oct 26, 2024
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from 3935f77 to 0f314b5 Compare December 25, 2024 10:27
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.27.0 Update dependency rubocop-rails to v2.28.0 Dec 25, 2024
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from 0f314b5 to f8988ca Compare January 18, 2025 10:08
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.28.0 Update dependency rubocop-rails to v2.29.0 Jan 18, 2025
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from f8988ca to f8a4247 Compare January 25, 2025 06:16
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.29.0 Update dependency rubocop-rails to v2.29.1 Jan 25, 2025
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from f8a4247 to 62ad064 Compare February 15, 2025 21:06
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.29.1 Update dependency rubocop-rails to v2.30.0 Feb 15, 2025
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from 62ad064 to fad76bc Compare February 17, 2025 09:24
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.30.0 Update dependency rubocop-rails to v2.30.1 Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants