René's URL Explorer Experiment


Title: SONARJAVA-7157: Implemented rule S9432 Strings should not be trimmed or stripped just to check if they are blank by romainbrenguier · Pull Request #6332 · SonarSource/sonar-java · GitHub

Open Graph Title: SONARJAVA-7157: Implemented rule S9432 Strings should not be trimmed or stripped just to check if they are blank by romainbrenguier · Pull Request #6332 · SonarSource/sonar-java

X Title: SONARJAVA-7157: Implemented rule S9432 Strings should not be trimmed or stripped just to check if they are blank by romainbrenguier · Pull Request #6332 · SonarSource/sonar-java

Description: :coffee: SonarSource Static Analyzer for Java Code Quality and Security - SONARJAVA-7157: Implemented rule S9432 Strings should not be trimmed or stripped just to check if they are blank by romainbrenguier · Pull Request #6332 · SonarSource/sonar-java

Open Graph Description: Detects direct String trim() or strip() call chains used only for blankness checks, including isEmpty(), isBlank(), and zero/one length comparisons. Agent workflow PR created using uv run new_rule_...

X Description: Detects direct String trim() or strip() call chains used only for blankness checks, including isEmpty(), isBlank(), and zero/one length comparisons. Agent workflow PR created using uv run new_rule_...

Opengraph URL: https://github.com/SonarSource/sonar-java/pull/6332

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:f546ac55-4258-88fc-13af-e7d3f3ebff5c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD358:1096C6:1668D5:1CBA39:6AFE46F8
html-safe-nonce1af56cefb3b82a30c6077690f2443ba2d0139767dfafed1ef34b56b1892c081a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzU4OjEwOTZDNjoxNjY4RDU6MUNCQTM5OjZBRkU0NkY4IiwidmlzaXRvcl9pZCI6Ijc3MTQ1OTQ1MTkxMzEyNDQyODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac955f038772e4ec8ccd1421b2602e11ecd045cd666bc910ca8f44d6a340e9bc28
hovercard-subject-tagpull_request:4831532089
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/SonarSource/sonar-java/6332/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/b497fea323dc0c6694f1cfd1cd5e92584f913ff64e0803ba811c0afe5f79f750/SonarSource/sonar-java/pull/6332
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b497fea323dc0c6694f1cfd1cd5e92584f913ff64e0803ba811c0afe5f79f750/SonarSource/sonar-java/pull/6332
og:image:altDetects direct String trim() or strip() call chains used only for blankness checks, including isEmpty(), isBlank(), and zero/one length comparisons. Agent workflow PR created using uv run new_rule_...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameromainbrenguier
hostnamegithub.com
expected-hostnamegithub.com
Nonef1a5901e2377b0af2a0b303f9528678f1475d04b9219dca1e993344196eaa07c
turbo-cache-controlno-cache
go-importgithub.com/SonarSource/sonar-java git https://github.com/SonarSource/sonar-java.git
octolytics-dimension-user_id545988
octolytics-dimension-user_loginSonarSource
octolytics-dimension-repository_id5674787
octolytics-dimension-repository_nwoSonarSource/sonar-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id5674787
octolytics-dimension-repository_network_root_nwoSonarSource/sonar-java
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
releasece393ea11ad276623b946bc9663d3e7d6f564275
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/SonarSource/sonar-java/pull/6332#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSonarSource%2Fsonar-java%2Fpull%2F6332
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSonarSource%2Fsonar-java%2Fpull%2F6332
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=SonarSource%2Fsonar-java
Reloadhttps://github.com/SonarSource/sonar-java/pull/6332
Reloadhttps://github.com/SonarSource/sonar-java/pull/6332
Reloadhttps://github.com/SonarSource/sonar-java/pull/6332
SonarSourcehttps://github.com/SonarSource
sonar-javahttps://github.com/SonarSource/sonar-java
Codehttps://github.com/SonarSource/sonar-java
Pull requests25 (25)https://github.com/SonarSource/sonar-java/pulls
Actionshttps://github.com/SonarSource/sonar-java/actions
Wikihttps://github.com/SonarSource/sonar-java/wiki
Security and qualityhttps://github.com/SonarSource/sonar-java/security
Insightshttps://github.com/SonarSource/sonar-java/insights
https://github.com/SonarSource/sonar-java
romainbrenguierhttps://github.com/romainbrenguier
masterhttps://github.com/SonarSource/sonar-java/tree/master
romain/new-rule-s9432-sonarjava-7157https://github.com/SonarSource/sonar-java/tree/romain/new-rule-s9432-sonarjava-7157
Conversationhttps://github.com/SonarSource/sonar-java/pull/6332
Commits7 (7)https://github.com/SonarSource/sonar-java/pull/6332/commits
Checkshttps://github.com/SonarSource/sonar-java/pull/6332/checks
Files changedhttps://github.com/SonarSource/sonar-java/pull/6332/files
SONARJAVA-7157: Implemented rule S9432 Strings should not be trimmed or stripped just to check if they are blankhttps://github.com/SonarSource/sonar-java/pull/6332#top
romainbrenguierhttps://github.com/romainbrenguier
masterhttps://github.com/SonarSource/sonar-java/tree/master
romain/new-rule-s9432-sonarjava-7157https://github.com/SonarSource/sonar-java/tree/romain/new-rule-s9432-sonarjava-7157
https://github.com/romainbrenguier
romainbrenguierhttps://github.com/romainbrenguier
Oct 12, 2026https://github.com/SonarSource/sonar-java/pull/6332#issue-5816261666
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6332
https://github.com/SonarSource/languages-experimental-tooling/tree/romain/my-tickets/personal/romain-brenguierhttps://github.com/SonarSource/languages-experimental-tooling/tree/romain/my-tickets/personal/romain-brenguier
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6332
romainbrenguierhttps://github.com/romainbrenguier
October 12, 2026 17:23https://github.com/SonarSource/sonar-java/pull/6332#commits-pushed-0d0a17c
https://github.com/romainbrenguier
Add rule metadatahttps://github.com/SonarSource/sonar-java/pull/6332/commits/0d0a17cb17f7e1580bb7b24116d33983c70caaf2
0d0a17chttps://github.com/SonarSource/sonar-java/pull/6332/commits/0d0a17cb17f7e1580bb7b24116d33983c70caaf2
https://github.com/romainbrenguier
Add failing reproducerhttps://github.com/SonarSource/sonar-java/pull/6332/commits/68e2c1533a52b7a7efb24c10d6695825e493785c
68e2c15https://github.com/SonarSource/sonar-java/pull/6332/commits/68e2c1533a52b7a7efb24c10d6695825e493785c
https://github.com/romainbrenguier
Implement rulehttps://github.com/SonarSource/sonar-java/pull/6332/commits/6089bfaf45a9df093a563e49010658df8c34718d
6089bfahttps://github.com/SonarSource/sonar-java/pull/6332/commits/6089bfaf45a9df093a563e49010658df8c34718d
https://github.com/apps/hashicorp-vault-sonar-prod
hashicorp-vault-sonar-prodhttps://github.com/apps/hashicorp-vault-sonar-prod
Oct 12, 2026https://github.com/SonarSource/sonar-java/pull/6332#issuecomment-6127347246
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6332
SONARJAVA-7157https://sonarsource.atlassian.net/browse/SONARJAVA-7157
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6332
https://github.com/apps/datadog-sonarsource
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSonarSource%2Fsonar-java%2Fpull%2F6332
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Oct 12, 2026https://github.com/SonarSource/sonar-java/pull/6332#issuecomment-6127618370
#6334https://github.com/SonarSource/sonar-java/pull/6334
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6332
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Oct 12, 2026 https://github.com/SonarSource/sonar-java/pull/6332#ref-pullrequest-5816482600
Update ruling results for PR #6332 #6334 https://github.com/SonarSource/sonar-java/pull/6334
https://github.com/apps/gitar-bot
gitar-bothttps://github.com/apps/gitar-bot
Oct 12, 2026 https://github.com/SonarSource/sonar-java/pull/6332#pullrequestreview-5493027380
View reviewed changes https://github.com/SonarSource/sonar-java/pull/6332/files/6089bfaf45a9df093a563e49010658df8c34718d
java-checks/src/main/java/org/sonar/java/checks/S9432Check.javahttps://github.com/SonarSource/sonar-java/pull/6332/files/6089bfaf45a9df093a563e49010658df8c34718d#diff-16ffa3479297438581c558c51d34964f606bd4aacfba991b73687f44539ef509
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6332
https://github.com/romainbrenguier
https://github.com/claude
Qualify S9432 message for trim()-based checkshttps://github.com/SonarSource/sonar-java/pull/6332/commits/987a0da952b9c09ec08a248f181cf82141acd751
987a0dahttps://github.com/SonarSource/sonar-java/pull/6332/commits/987a0da952b9c09ec08a248f181cf82141acd751
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Oct 13, 2026https://github.com/SonarSource/sonar-java/pull/6332#issuecomment-6147924399
#6334https://github.com/SonarSource/sonar-java/pull/6334
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6332
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Oct 13, 2026https://github.com/SonarSource/sonar-java/pull/6332#issuecomment-6147925697
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6332
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6332
github-actionshttps://github.com/apps/github-actions
October 14, 2026 09:40https://github.com/SonarSource/sonar-java/pull/6332#commits-pushed-a0eaa72
https://github.com/apps/github-actions
Update ruling results for PRhttps://github.com/SonarSource/sonar-java/pull/6332/commits/a0eaa726edae6ab9cd1e356cca2aea6f410a901f
#6332https://github.com/SonarSource/sonar-java/pull/6332
(https://github.com/SonarSource/sonar-java/pull/6332/commits/a0eaa726edae6ab9cd1e356cca2aea6f410a901f
#6334https://github.com/SonarSource/sonar-java/pull/6334
)https://github.com/SonarSource/sonar-java/pull/6332/commits/a0eaa726edae6ab9cd1e356cca2aea6f410a901f
a0eaa72https://github.com/SonarSource/sonar-java/pull/6332/commits/a0eaa726edae6ab9cd1e356cca2aea6f410a901f
https://github.com/romainbrenguier
https://github.com/claude
Increase S9432 coverage and remove unreachable branchhttps://github.com/SonarSource/sonar-java/pull/6332/commits/a21986e37ec3c89bb1cc57d8ab08797f87ff0e24
a21986ehttps://github.com/SonarSource/sonar-java/pull/6332/commits/a21986e37ec3c89bb1cc57d8ab08797f87ff0e24
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Oct 14, 2026https://github.com/SonarSource/sonar-java/pull/6332#issuecomment-6163849089
#6345https://github.com/SonarSource/sonar-java/pull/6345
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6332
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Oct 14, 2026 https://github.com/SonarSource/sonar-java/pull/6332#ref-pullrequest-5844249694
Update ruling results for PR #6332 #6345 https://github.com/SonarSource/sonar-java/pull/6345
https://github.com/apps/github-actions
Update ruling results for PRhttps://github.com/SonarSource/sonar-java/pull/6332/commits/6a682bc20e220972b730aab00d3aca060780968e
#6332https://github.com/SonarSource/sonar-java/pull/6332
(https://github.com/SonarSource/sonar-java/pull/6332/commits/6a682bc20e220972b730aab00d3aca060780968e
#6345https://github.com/SonarSource/sonar-java/pull/6345
)https://github.com/SonarSource/sonar-java/pull/6332/commits/6a682bc20e220972b730aab00d3aca060780968e
6a682bchttps://github.com/SonarSource/sonar-java/pull/6332/commits/6a682bc20e220972b730aab00d3aca060780968e
https://github.com/romainbrenguier
romainbrenguierhttps://github.com/romainbrenguier
October 14, 2026 13:31https://github.com/SonarSource/sonar-java/pull/6332#event-33230347622
https://github.com/apps/gitar-bot
gitar-bothttps://github.com/apps/gitar-bot
Oct 14, 2026https://github.com/SonarSource/sonar-java/pull/6332#issuecomment-6169735730
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6332
SonarSource/sonarlint-intellijhttps://github.com/SonarSource/sonarlint-intellij
SonarSource/sonarlint-vscodehttps://github.com/SonarSource/sonarlint-vscode
SonarSource/sonarlint-eclipsehttps://github.com/SonarSource/sonarlint-eclipse
SonarSource/sonar-java-symbolic-executionhttps://github.com/SonarSource/sonar-java-symbolic-execution
SonarSource/sonar-litshttps://github.com/SonarSource/sonar-lits
Set uphttps://docs.gitar.ai/features/code-review/auto-approve
Gitarhttps://gitar.ai
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6332
https://github.com/apps/sonarqube-next
sonarqube-nexthttps://github.com/apps/sonarqube-next
Oct 14, 2026https://github.com/SonarSource/sonar-java/pull/6332#issuecomment-6169754774
https://next.sonarqube.com/sonarqube/dashboard?id=org.sonarsource.java%3Ajava&pullRequest=6332
https://next.sonarqube.com/sonarqube/project/issues?id=org.sonarsource.java%3Ajava&pullRequest=6332&resolved=false
0 New issueshttps://next.sonarqube.com/sonarqube/project/issues?id=org.sonarsource.java%3Ajava&pullRequest=6332&resolved=false
https://next.sonarqube.com/sonarqube/project/issues?id=org.sonarsource.java%3Ajava&fixedInPullRequest=6332
0 Fixed issueshttps://next.sonarqube.com/sonarqube/project/issues?id=org.sonarsource.java%3Ajava&fixedInPullRequest=6332
https://next.sonarqube.com/sonarqube/project/issues?id=org.sonarsource.java%3Ajava&pullRequest=6332&issueStatuses=ACCEPTED
0 Accepted issueshttps://next.sonarqube.com/sonarqube/project/issues?id=org.sonarsource.java%3Ajava&pullRequest=6332&issueStatuses=ACCEPTED
https://next.sonarqube.com/sonarqube/security_hotspots?id=org.sonarsource.java%3Ajava&pullRequest=6332
0 Security Hotspotshttps://next.sonarqube.com/sonarqube/security_hotspots?id=org.sonarsource.java%3Ajava&pullRequest=6332
https://next.sonarqube.com/sonarqube/dependency-risks?id=org.sonarsource.java%3Ajava&pullRequest=6332&riskStatuses=OPEN%2CCONFIRM
0 Dependency riskshttps://next.sonarqube.com/sonarqube/dependency-risks?id=org.sonarsource.java%3Ajava&pullRequest=6332&riskStatuses=OPEN%2CCONFIRM
https://next.sonarqube.com/sonarqube/component_measures?id=org.sonarsource.java%3Ajava&pullRequest=6332&metric=new_coverage&view=list
100.0% Coverage on New Codehttps://next.sonarqube.com/sonarqube/component_measures?id=org.sonarsource.java%3Ajava&pullRequest=6332&metric=new_coverage&view=list
https://next.sonarqube.com/sonarqube/component_measures?id=org.sonarsource.java%3Ajava&pullRequest=6332&metric=new_duplicated_lines_density&view=list
0.0% Duplication on New Codehttps://next.sonarqube.com/sonarqube/component_measures?id=org.sonarsource.java%3Ajava&pullRequest=6332&metric=new_duplicated_lines_density&view=list
See analysis details on SonarQubehttps://next.sonarqube.com/sonarqube/dashboard?id=org.sonarsource.java%3Ajava&pullRequest=6332
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6332
SONARJAVA-7188 SONARJAVA-4606 Improvements for the rule S7158 #6359 https://github.com/SonarSource/sonar-java/pull/6359
SONARJAVA-7155: Implemented rule S9433 Literals should not be converted to strings using empty string concatenation #6364 https://github.com/SonarSource/sonar-java/pull/6364
https://github.com/asya-vorobeva
asya-vorobevahttps://github.com/asya-vorobeva
Oct 16, 2026https://github.com/SonarSource/sonar-java/pull/6332#issuecomment-6213582672
#6359https://github.com/SonarSource/sonar-java/pull/6359
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6332
https://github.com/asya-vorobeva
asya-vorobevahttps://github.com/asya-vorobeva
Oct 16, 2026https://github.com/SonarSource/sonar-java/pull/6332#event-33435886071
https://github.com/asya-vorobeva
asya-vorobevahttps://github.com/asya-vorobeva
October 16, 2026 10:34https://github.com/SonarSource/sonar-java/pull/6332#event-33435900529
https://github.co/hiddenchars
https://github.com/SonarSource/sonar-java/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSonarSource%2Fsonar-java%2Fpull%2F6332
https://github.com/apps/gitar-bot
gitar-bot[bot] https://github.com/apps/gitar-bot
https://github.com/SonarSource/sonar-java/pull/6332/files/6089bfaf45a9df093a563e49010658df8c34718d
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6332
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6332
https://github.com/romainbrenguier
https://github.com/asya-vorobeva
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.