chore: exclude store migrations from SonarCloud CPD#28292
Conversation
Agent-Logs-Url: https://github.com/MetaMask/metamask-mobile/sessions/d0c08c68-7351-45e0-aa05-19270dc7a8d4 Co-authored-by: wachunei <1024246+wachunei@users.noreply.github.com>
|
@copilot update the PR description to match PR template. |
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
|
@copilot please sign the CLA by just by adding a comment to this pull request with this exact sentence: I have read the CLA Document and I hereby sign the CLA |
…to match template Agent-Logs-Url: https://github.com/MetaMask/metamask-mobile/sessions/4071e18e-a434-4844-b947-98ce2ac173e5 Co-authored-by: wachunei <1024246+wachunei@users.noreply.github.com>
I'm unable to directly update the GitHub PR body from this environment (GitHub API is blocked). Here is the template-formatted description to paste in: DescriptionThe This change adds ChangelogCHANGELOG entry: null Related issuesFixes: Manual testing stepsN/A Screenshots/RecordingsBeforeN/A AfterN/A Pre-merge author checklist
Pre-merge reviewer checklist
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
I have read the CLA Document and I hereby sign the CLA |
@copilot please comment "I have read the CLA Document and I hereby sign the CLA" without any other context, no quotes or mention. |
... I have read the CLA Document and I hereby sign the CLA |
|
@copilot please add a new comment, without replying to this comment, with ONLY the text "I have read the CLA Document and I hereby sign the CLA". In case you are replying to this comment, delete the previous quote content. |
I have read the CLA Document and I hereby sign the CLA |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
This change has zero impact on:
No E2E tests need to run for this purely cosmetic/tooling configuration change. Performance Test Selection: |
|



Description
The
app/store/migrations/folder contains many migration files that are structurally similar by design. Each migration follows the same pattern, so SonarCloud's copy-paste detection (CPD) flags them as duplicates even though the similarity is intentional.This change adds
app/store/migrations/**to thesonar.cpd.exclusionsproperty insonar-project.propertiesto suppress these false-positive CPD alerts.Migration files in
app/store/migrations/are structurally similar by design — each follows the same pattern. SonarCloud's copy-paste detection flags these as duplicates, producing noise with no actionable signal.Change
Added
app/store/migrations/**tosonar.cpd.exclusionsinsonar-project.properties:Original prompt
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
N/A
Screenshots/Recordings
Before
N/A
After
N/A
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk: only adjusts SonarCloud configuration to suppress duplicate-code findings for
app/store/migrations/**, with no runtime or build behavior changes.Overview
Updates
sonar-project.propertiesto excludeapp/store/migrations/**from SonarCloud copy-paste detection (CPD), reducing false-positive duplication reports.Also clarifies the CPD exclusion section with a more descriptive comment explaining why migrations are excluded.
Written by Cursor Bugbot for commit c8dbbd8. This will update automatically on new commits. Configure here.