René's URL Explorer Experiment


Title: false positive for Lint/UselessAssignment with until loop · Issue #14402 · rubocop/rubocop · GitHub

Open Graph Title: false positive for Lint/UselessAssignment with until loop · Issue #14402 · rubocop/rubocop

X Title: false positive for Lint/UselessAssignment with until loop · Issue #14402 · rubocop/rubocop

Description: I have some text parsing code that passed all lints with rubocop 1.77.0 but has a Lint/UselessAssignment offense as of 1.79.0 I managed to simplify the code to this example: # frozen_string_literal: true list = '3234(234)23'.chars in_par...

Open Graph Description: I have some text parsing code that passed all lints with rubocop 1.77.0 but has a Lint/UselessAssignment offense as of 1.79.0 I managed to simplify the code to this example: # frozen_string_literal...

X Description: I have some text parsing code that passed all lints with rubocop 1.77.0 but has a Lint/UselessAssignment offense as of 1.79.0 I managed to simplify the code to this example: # frozen_string_literal...

Opengraph URL: https://github.com/rubocop/rubocop/issues/14402

X: @github

direct link

Domain: redirect.github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"false positive for Lint/UselessAssignment with until loop","articleBody":"I have some text parsing code that passed all lints with rubocop 1.77.0 but has a Lint/UselessAssignment offense as of 1.79.0\n\nI managed to simplify the code to this example:\n\n```ruby\n# frozen_string_literal: true\n\nlist = '3234(234)23'.chars\nin_parens = false\nuntil list.empty?\n  c = list.shift\n  if in_parens\n    if c == ')'\n      in_parens = false\n    else\n      $stdout.puts c\n    end\n  elsif c == '('\n    in_parens = true\n  end\nend\n```\n\n--------\n\n## Expected behavior\n\nNo offenses\n\n## Actual behavior\n```\n$ rubocop --debug test.rb\nFor /app: configuration from /app/.rubocop.yml\nDefault configuration from /home/docker-user/bundle/ruby/3.3.0/gems/rubocop-1.79.0/config/default.yml\nPlugin configuration from /home/docker-user/bundle/ruby/3.3.0/gems/rubocop-rails-2.32.0/config/default.yml\nUse parallel by default.\nSkipping parallel inspection: only a single file needs inspection\nInspecting 1 file\nScanning /app/test.rb\nW\n\nOffenses:\n\ntest.rb:9:7: W: [Correctable] Lint/UselessAssignment: Useless assignment to variable - in_parens.\n      in_parens = false\n      ^^^^^^^^^\n\n1 file inspected, 1 offense detected, 1 offense autocorrectable\nFinished in 0.26479940899298526 seconds\n```\n\n## Steps to reproduce the problem\n\nSee sample code above\n\n## RuboCop version\n\n```\n1.79.0 (using Parser 3.3.9.0, rubocop-ast 1.46.0, analyzing as Ruby 2.7, running on ruby 3.3.7) [x86_64-linux]\n  - rubocop-rails 2.32.0\n```\n","author":{"url":"https://github.com/seandilda","@type":"Person","name":"seandilda"},"datePublished":"2025-07-29T13:06:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/14402/rubocop/issues/14402"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2426585e-0875-dac1-b804-5a195dc2d509
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDAD4:308D8D:EFCE8A:14043DA:6994F912
html-safe-noncecf6d85e6cd7e14afdb59a2e2d6efef71dce141b9497b1767f30e19c716ad68d0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUQ0OjMwOEQ4RDpFRkNFOEE6MTQwNDNEQTo2OTk0RjkxMiIsInZpc2l0b3JfaWQiOiI4MjU4MzQxOTE3MzI0MDY1NDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac504bea9496312cf7802c4d13baa69230df7d5282bffda46f01d41637401405a1
hovercard-subject-tagissue:3273586356
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/rubocop/rubocop/14402/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fe7af9d71e66a8ea809838287499b5769f11b802f0b73fff9c5becaf846e740c/rubocop/rubocop/issues/14402
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fe7af9d71e66a8ea809838287499b5769f11b802f0b73fff9c5becaf846e740c/rubocop/rubocop/issues/14402
og:image:altI have some text parsing code that passed all lints with rubocop 1.77.0 but has a Lint/UselessAssignment offense as of 1.79.0 I managed to simplify the code to this example: # frozen_string_literal...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameseandilda
hostnamegithub.com
expected-hostnamegithub.com
None4bd759bc5f83244e2a0de29b937365905c0fefd238b6f077c24a49830375b4df
turbo-cache-controlno-preview
go-importgithub.com/rubocop/rubocop git https://github.com/rubocop/rubocop.git
octolytics-dimension-user_id10871348
octolytics-dimension-user_loginrubocop
octolytics-dimension-repository_id4095287
octolytics-dimension-repository_nworubocop/rubocop
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id4095287
octolytics-dimension-repository_network_root_nworubocop/rubocop
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release48c364f96c0b8ac95ea493e8f02d59e2a5af92a3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/rubocop/rubocop/issues/14402#start-of-content
https://redirect.github.com/
Sign in https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frubocop%2Frubocop%2Fissues%2F14402
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frubocop%2Frubocop%2Fissues%2F14402
Sign up https://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=rubocop%2Frubocop
Reloadhttps://redirect.github.com/rubocop/rubocop/issues/14402
Reloadhttps://redirect.github.com/rubocop/rubocop/issues/14402
Reloadhttps://redirect.github.com/rubocop/rubocop/issues/14402
rubocop https://redirect.github.com/rubocop
rubocophttps://redirect.github.com/rubocop/rubocop
Please reload this pagehttps://redirect.github.com/rubocop/rubocop/issues/14402
Notifications https://redirect.github.com/login?return_to=%2Frubocop%2Frubocop
Fork 3.1k https://redirect.github.com/login?return_to=%2Frubocop%2Frubocop
Star 12.8k https://redirect.github.com/login?return_to=%2Frubocop%2Frubocop
Code https://redirect.github.com/rubocop/rubocop
Issues 123 https://redirect.github.com/rubocop/rubocop/issues
Pull requests 31 https://redirect.github.com/rubocop/rubocop/pulls
Discussions https://redirect.github.com/rubocop/rubocop/discussions
Actions https://redirect.github.com/rubocop/rubocop/actions
Security 0 https://redirect.github.com/rubocop/rubocop/security
Insights https://redirect.github.com/rubocop/rubocop/pulse
Code https://redirect.github.com/rubocop/rubocop
Issues https://redirect.github.com/rubocop/rubocop/issues
Pull requests https://redirect.github.com/rubocop/rubocop/pulls
Discussions https://redirect.github.com/rubocop/rubocop/discussions
Actions https://redirect.github.com/rubocop/rubocop/actions
Security https://redirect.github.com/rubocop/rubocop/security
Insights https://redirect.github.com/rubocop/rubocop/pulse
New issuehttps://redirect.github.com/login?return_to=https://github.com/rubocop/rubocop/issues/14402
New issuehttps://redirect.github.com/login?return_to=https://github.com/rubocop/rubocop/issues/14402
#14409https://github.com/rubocop/rubocop/pull/14409
false positive for Lint/UselessAssignment with until loophttps://redirect.github.com/rubocop/rubocop/issues/14402#top
#14409https://github.com/rubocop/rubocop/pull/14409
bughttps://github.com/rubocop/rubocop/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/seandilda
https://github.com/seandilda
seandildahttps://github.com/seandilda
on Jul 29, 2025https://github.com/rubocop/rubocop/issues/14402#issue-3273586356
bughttps://github.com/rubocop/rubocop/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.