rubyfunctions
rubyfunctions copied to clipboard
Bump rubocop-rails from 2.11.3 to 2.18.0 in /src
Bumps rubocop-rails from 2.11.3 to 2.18.0.
Release notes
Sourced from rubocop-rails's releases.
RuboCop Rails 2.17.4
Bug fixes
- #870: Fix an error for
Rails/RootPathnameMethodswhen usingRails.envargument withinDir.glob. (@koic)- #881: Fix a false positive for
Rails/ActionControllerFlashBeforeRenderwhen usingflashin multilinerescuebranch beforeredirect_to. (@gurix)- #871: Fix a false positive for
Rails/WhereMissingwhenleft_joins(:foo)andwhere(foos: {id: nil})separated byor,and. (@ydah)- #875: Make
Rails/RootPathnameMethodsaware of enforced style ofStyle/StringLiterals. (@koic)- #882: Fix false positive for
Rails/UniqueValidationWithoutIndexwith :conditions option. (@etiennebarrie)- #821: Enhance
Rails/TimeZoneto accept methods with the:intimezone option. (@fatkodima)Changes
- #880: Add Rails/I18nLocaleTexts match for redirect_back. (
@bensheldon)RuboCop Rails 2.17.3
% cat relnotes/v2.17.3.md
Bug fixes
- #843: Fix a false positive for
Rails/ActionControllerFlashBeforeRenderwhen usingflashin multilineifbranch beforeredirect_to. (@koic)- #841: Fix an error for
Rails/ActionOrderwhen using unconventional order of multiple actions. (@koic)- #838: Fix an incorrect autocorrect for
Rails/ActionOrderwhen using unconventional order of actions in conditions. (@koic)- #867: Fix autocorrection bug when
::Hashis used onRails/IndexByandRails/IndexWith. (@r7kamura)- #848: Fix a false positive for
Rails/FreezeTimewhen usingtravel_towith an argument ofTime.new(...).in_time_zone. (@koic)- #869: Fix false-positives that non Rails formats are offended on
Rails/ToSWithArgument. (@r7kamura)- #866: Fix false-positives when constant is used with receiver on
Rails/DurationArithmetic,Rails/IndexBy,Rails/IndexWIth, andRails/RequireDependency. (@r7kamura)- #850: Fix default configuration for
Rails/I18nLazyLookup. (@vlad-pisanov)- #837: Fix incorrect autocorrection of
Rails/ActionOrderabout comments. (@r7kamura)- #855: Fix Rails/RootPathnameMethods autocorrection for Pathname calls without parens. (
@gsamokovarov)- #868: Support
::prefixed constants onRails/ActionControllerFlashBeforeRender,Rails/ActionControllerTestCase,Rails/ApplicationController,Rails/ApplicationJob,Rails/ApplicationMailer,Rails/ApplicationRecord,Rails/DotSeparatedKeys,Rails/DynamicFindBy,Rails/FindEach,Rails/FreezeTime,Rails/HasManyOrHasOneDependent,Rails/HelperInstanceVariable,Rails/MailerName,Rails/MigrationClassName,Rails/Output,Rails/ReversibleMigrationMethodDefinition,Rails/ReversibleMigration,Rails/ShortI18n,Rails/SkipsModelValidations, andRails/TimeZoneAssignment. (@r7kamura)- #865: Support
::Railsand::FileonRails/FilePathcop. (@r7kamura)Changes
- #862: Ignore if number of arguments does not match on
Rails/DynamicFindBy. (@r7kamura)RuboCop Rails 2.17.2
Bug fixes
... (truncated)
Changelog
Sourced from rubocop-rails's changelog.
2.18.0 (2023-02-25)
New features
- #863: Add
Rails/ResponseParsedBodycop. ([@r7kamura][])Bug fixes
- #824: Fix a false negative for
Rails/ActionControllerTestCasewhen the class is namespaced. ([@vlad-pisanov][])- #909: Fix a false positive for
Rails/ActionControllerFlashBeforeRenderwhen usingflashbeforeredirect_toinifbranch. ([@koic][])- #898: Fix a false positive for
Rails/ActiveRecordAliaseswhen arguments ofupdate_attributesis empty. ([@koic][])- #920: Fix an error for
Rails/NegateIncludewhen there is no receiver. ([@fatkodima][])- #931: Fix error in
Rails/Presencewhen ternary operators are used in multiple lines. ([@r7kamura][])- #687: Fix
Rails/HasManyOrHasOneDependentto correctly handle association methods with receiver. ([@fatkodima][])- #929: Prevent
Rails/SquishedSQLHeredocsapplying when single-line comments are present. ([@john-h-k][])- #887: Fix a false positive for
Rails/NotNullColumnwhen adding a:virtualcolumn. ([@fatkodima][])- #918: Fix
Rails/FreezeTimerunning against Rails < 5.2 apps. ([@DRBragg][])- #895: Fix
Rails/UnusedIgnoredColumnsnot recognizing columns added via+=. ([@lucthev][])Changes
- #263: Accept actions defined via
aliasinRails/LexicallyScopedActionFilter. ([@fatkodima][])- #902: Ignore
redirectmethod forStyle/FormatStringTokenby default. ([@javierjulio][])- #935: Make
Style/InverseMethodsaware of Active Support'spresent?,blank?,include?, andexclude?methods. ([@koic][])- #914: Make
Style/InverseMethodsaware ofvalid?andinvalid?methods. ([@koic][])- #826: Mark
Rails/Pluckas unsafe. ([@fatkodima][])- #896: Raise severity of
Rails/ActiveRecordOverride,Rails/DeprecatedActiveModelErrorsMethods,Rails/DuplicateAssociation,Rails/DuplicateScope,Rails/TopLevelHashWithIndifferentAccess, andRails/WhereNotWithMultipleConditionscops to warning. ([@koic][])2.17.4 (2022-12-25)
Bug fixes
- #870: Fix an error for
Rails/RootPathnameMethodswhen usingRails.envargument withinDir.glob. ([@koic][])- #881: Fix a false positive for
Rails/ActionControllerFlashBeforeRenderwhen usingflashin multilinerescuebranch beforeredirect_to. ([@gurix][])- #871: Fix a false positive for
Rails/WhereMissingwhenleft_joins(:foo)andwhere(foos: {id: nil})separated byor,and. ([@ydah][])- #875: Make
Rails/RootPathnameMethodsaware of enforced style ofStyle/StringLiterals. ([@koic][])- #882: Fix false positive for
Rails/UniqueValidationWithoutIndexwith :conditions option. ([@etiennebarrie][])- #821: Enhance
Rails/TimeZoneto accept methods with the:intimezone option. ([@fatkodima][])Changes
- #880: Add
Rails/I18nLocaleTextsmatch for redirect_back. ([@bensheldon][])2.17.3 (2022-11-20)
Bug fixes
- #843: Fix a false positive for
Rails/ActionControllerFlashBeforeRenderwhen usingflashin multilineifbranch beforeredirect_to. ([@koic][])- #841: Fix an error for
Rails/ActionOrderwhen using unconventional order of multiple actions. ([@koic][])- #838: Fix an incorrect autocorrect for
Rails/ActionOrderwhen using unconventional order of actions in conditions. ([@koic][])
... (truncated)
Commits
fa6662fCut 2.18.01a791ecUpdate Changelogc532db1Fix a false negative for Rails/ActionControllerTestCasee179054Merge pull request #936 from koic/make_style_inverse_methods_aware_of_valid_a...9ff0c4dMerge pull request #937 from koic/fix_a_false_positive_for_rails_action_contr...e9bb19fSuppressInternalAffairs/ProcessedSourceBufferName's offensead0fec1[Fix #909] Fix a false positive forRails/ActionControllerFlashBeforeRenderecd9fbe[Fix #914] MakeStyle/InverseMethodsaware ofvalid?andinvalid?methods81b0fdcMerge pull request #935 from koic/make_style_inverse_methods_aware_of_active_...b74740aMakeStyle/InverseMethodsaware of some Active Support methods- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
:warning: We detected 1 security issue in this pull request:
Vulnerable Libraries (1)
| Severity | Details |
|---|---|
| Medium | pkg:gem/[email protected]@2.2.6.2 - no patch available |
More info on how to fix Vulnerable Libraries in Ruby.
👉 Go to the dashboard for detailed results.
📥 Happy? Share your feedback with us.