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.28.0 #332

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 9, 2023

This PR contains the following updates:

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

Release Notes

rubocop/rubocop-rails (rubocop-rails)

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][])

v2.21.1

Compare Source

Bug fixes
  • #​1108: Fix an incorrect autocorrect for Rails/TimeZone when using String#to_time. ([@​koic][])
  • #​1109: Fix error for Rails/RedundantActiveRecordAllMethod when all is an argument for AR methods. ([@​masato-bkn][])
  • #​1110: Fix false positive for Rails/RedundantActiveRecordAllMethod when all has any parameters. ([@​masato-bkn][])

v2.21.0

Compare Source

New features
Bug fixes
  • #​1078: Fix a false negative for Rails/LexicallyScopedActionFilter when no methods are defined. ([@​vlad-pisanov][])
  • #​1060: Fix a false positive for Rails/HttpStatus when using symbolic value that have no numeric value mapping. ([@​koic][])
  • #​1004: Fix a false-positive for Rails/RootPathnameMethods on Ruby 2.4 or lower. ([@​r7kamura][])
  • #​1066: Fix an error for Rails/FilePath when string interpolated Rails.root is followed by a message starting with .. ([@​koic][])
  • #​1049: Fix an incorrect autocorrect for Rails/FilePath when File.join with Rails.root and path starting with /. ([@​ydah][])
  • #​1045: Fix an incorrect autocorrect for Rails/NegateInclude when using Style/InverseMethods's autocorrection together. ([@​koic][])
  • #​1062: Fix autocorrection for Rails/RakeEnvironment when rake task accepts arguments. ([@​fastjames][])
  • #​1036: Fix an error for UniqueValidationWithoutIndex when db/schema.rb is empty. ([@​fatkodima][])
  • #​1042: Fix no offences for Rails/SchemaComment when create_table with multi t columns. ([@​nipe0324][])
Changes

v2.20.2

Compare Source

Bug fixes
  • #​1028: Fix an error for Rails/UniqueValidationWithoutIndex when the presence: true option is used alone for the validates method. ([@​koic][])

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Sep 9, 2023
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.21.0 Update dependency rubocop-rails to v2.21.1 Sep 14, 2023
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from cfb67a0 to 266089e Compare September 14, 2023 08:34
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from 266089e to 90b4383 Compare September 30, 2023 07:03
@renovate renovate bot changed the title Update dependency rubocop-rails to v2.21.1 Update dependency rubocop-rails to v2.21.2 Sep 30, 2023
@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 2 times, most recently from 8eef719 to 273ddca Compare October 28, 2023 07:46
@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 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 273ddca to 1f2ab00 Compare November 19, 2023 10:34
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from 1f2ab00 to 88577e7 Compare December 16, 2023 04:25
@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 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 88577e7 to 39edfec Compare December 25, 2023 04:15
@renovate renovate bot force-pushed the renovate/rubocop-rails-2.x-lockfile branch from 39edfec to ba74f00 Compare March 3, 2024 10:06
@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 ba74f00 to afd661d Compare March 25, 2024 05:04
@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 afd661d to 6b8e8d2 Compare May 17, 2024 10: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 6b8e8d2 to d96e7f7 Compare June 29, 2024 16:38
@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 d96e7f7 to 0196230 Compare August 24, 2024 11:17
@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 0196230 to 4ebcd49 Compare September 7, 2024 09:02
@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 4ebcd49 to 02a6849 Compare September 21, 2024 07:11
@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 02a6849 to 058470e Compare October 26, 2024 10:56
@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 058470e to 326599d Compare December 25, 2024 09:59
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants