Fix: avoid passing function reference directly to map() in ContributePage#3641
Fix: avoid passing function reference directly to map() in ContributePage#3641arkid15r merged 3 commits intoOWASP:mainfrom
Conversation
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughReplaced Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
arkid15r
left a comment
There was a problem hiding this comment.
Please resolve merge conflicts.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3641 +/- ##
=======================================
Coverage 87.67% 87.67%
=======================================
Files 462 462
Lines 14308 14309 +1
Branches 1910 1910
=======================================
+ Hits 12544 12545 +1
Misses 1346 1346
Partials 418 418
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|



Proposed change
Resolves #3618
This PR fixes a SonarCloud reliability issue (typescript:S7727) in
frontend/src/app/contribute/page.tsx, where the functionrenderContributeCardwas passed directly toArray.map().The code has been updated to use an explicit arrow function:
This makes the iterator arguments explicit, improves readability,
reduces the risk of subtle bugs during future refactors, and resolves
the Sonar warning without changing any existing behavior.