You’re right. I removed any mention of performance degradation in the rule description: Remove performance as a downside of forEach by vdiez · Pull Request #5851 · SonarSource/rspec · GitHub
victor.diez
(Victor Diez)
5
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Use `for…of` instead of `.forEach(…)` typescript:S7728, javascript:S7728 | 2 | 440 | November 13, 2025 | |
| S7728 FP Use "for...of" loops instead of "forEach" method calls | 4 | 1057 | October 9, 2025 | |
| S7728 FP Use “for…of” loops instead of “forEach” method calls when object is not an iterable type | 1 | 91 | October 30, 2025 | |
| typescript:S4138 should not apply to non-arrays | 2 | 925 | April 4, 2022 | |
| FP seeking for-of where Typescript prohibits it | 5 | 879 | September 15, 2022 |