Skip to content

fix(sonar): style and convention — 2 issues - #224

Merged
huandrey merged 4 commits into
mainfrom
fix/sonar-style-20260902115630
Sep 10, 2026
Merged

huandrey merged 4 commits into
mainfrom
fix/sonar-style-20260902115630

Conversation

@huandrey

@huandrey huandrey commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

SonarQube auto-fix — style

Generated by sonar-autofix. Each commit resolves one issue.
All fixes were independently reviewed by a judge-agent before being committed.

Rule File Line Issue
javascript:S7747 react/test-utils.js/index.js 13 Spread an object literal in object literal is unnecessary.
javascript:S7747 react/test-utils.js/index.js 43 Spread an object literal in object literal is unnecessary.

Plus one formatting-only follow-up commit (Prettier reflow triggered by the shorter line).

Skipped in this group: 0 issues

…d in test-utils IntlProvider messages

Replaces {...messages, ...{'country.BRA': 'BRA'}} with {...messages, 'country.BRA': 'BRA'} — spreading a single-key object literal into another object literal is unnecessary; the direct key assignment produces the identical object.

File: react/test-utils.js/index.js:13
Rule: javascript:S7747
…ad in test-utils intl messages

Same pattern as the previous commit, at the renderWithModalState helper's IntlProvider.

File: react/test-utils.js/index.js:43
Rule: javascript:S7747
Prettier reflow only, no functional change — a byproduct of the shorter
spread from the previous commit now fitting the line-length limit.

File: react/test-utils.js/index.js:11
@huandrey
huandrey requested a review from a team as a code owner September 2, 2026 15:04
@vtex-io-ci-cd

vtex-io-ci-cd Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

  • Patch (backwards-compatible bug fixes)

  • Minor (backwards-compatible functionality)

  • Major (incompatible API changes)

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

  • No thanks, I would rather do it manually 😞

@vtex-pr-sentinel

vtex-pr-sentinel Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

🛡️ SDD Check — action required

I couldn't detect an SDD in this PR. Please check one option below (requires write access to the repo):

  • SDD lives in another PR — paste the SDD PR URL here:
  • This PR doesn't need an SDD
  • SDD applies, but I'm not adopting it in this PR

@sonar-workflows

Copy link
Copy Markdown

@huandrey huandrey self-assigned this Sep 2, 2026
@huandrey huandrey added the sonar label Sep 2, 2026
>
<IntlProvider
locale="pt"
messages={{ ...messages, ...{ 'country.BRA': 'BRA' } }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spread heavy user 😅

@huandrey
huandrey merged commit 2ed1e9a into main Sep 10, 2026
15 of 31 checks passed
@huandrey
huandrey deleted the fix/sonar-style-20260902115630 branch September 10, 2026 17:49
@vtex-io-ci-cd

vtex-io-ci-cd Bot commented Sep 10, 2026

Copy link
Copy Markdown

Your PR has been merged! App is being published. 🚀
Version 3.8.5 → 3.8.6

After the publishing process has been completed (check #vtex-io-releases) and doing A/B tests with the new version, you can deploy your release by running:

vtex deploy vtex.pickup-points-modal@3.8.6

After that your app will be updated on all accounts.

For more information on the deployment process check the docs. 📖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants