Skip to content

Update ruling results for PR #6463 - #6656

Merged
francois-mora-sonarsource merged 1 commit into
fix/JS-1300-fix-fp-on-s2871-default-sort-for-string-arrays-in-logging-and-data-structures-sonnetfrom
fix/update-ruling-for-fix/JS-1300-fix-fp-on-s2871-default-sort-for-string-arrays-in-logging-and-data-structures-sonnet
Mar 20, 2026
Merged

francois-mora-sonarsource merged 1 commit into
fix/JS-1300-fix-fp-on-s2871-default-sort-for-string-arrays-in-logging-and-data-structures-sonnetfrom
fix/update-ruling-for-fix/JS-1300-fix-fp-on-s2871-default-sort-for-string-arrays-in-logging-and-data-structures-sonnet

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Auto-generated ruling update for PR #6463.

🤖 Generated with GitHub Actions

🤖 Generated with GitHub Actions
@ghost

ghost commented Mar 20, 2026 •

Copy link
Copy Markdown

Summary

This PR updates ruling test expectations for rule S2871 after the fix applied in PR #6463. The changes reflect new/updated detections across multiple open-source projects (TypeScript, ace, Ghost, jQuery, qunit, searchkit, etc.), showing where the fixed rule now correctly identifies instances of the pattern. New project baselines are also added for projects where S2871 issues were previously undetected.

What reviewers should know

This is an automated ruling update—it captures the impact of the S2871 rule improvement on real-world code. Review the changes by: (1) checking the PR #6463 to understand what the fix actually corrected, (2) spot-checking a few of the new/modified line numbers in the source projects to confirm they are legitimate detections (not new false positives), and (3) verifying that the number and pattern of detections align with the rule improvement intent. The fact that multiple projects now show detections suggests the rule is catching cases it previously missed.


  • Generate Walkthrough
  • Generate Diagram

🗣️ Give feedback

@francois-mora-sonarsource
francois-mora-sonarsource merged commit 433d8ee into fix/JS-1300-fix-fp-on-s2871-default-sort-for-string-arrays-in-logging-and-data-structures-sonnet Mar 20, 2026
1 check passed
@francois-mora-sonarsource
francois-mora-sonarsource deleted the fix/update-ruling-for-fix/JS-1300-fix-fp-on-s2871-default-sort-for-string-arrays-in-logging-and-data-structures-sonnet branch March 20, 2026 15:07

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Conclusion: This is a clean, auto-generated ruling snapshot update. All changes are expected additions/modifications to S2871 expected results across multiple open-source projects, consistent with the fix in PR #6463. No logic issues, no structural concerns.

🗣️ Give feedback

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant