SONARJAVA-6695 Implement new rule S9130 - #5855
Conversation
|
❌ Ruling needs updating. A fix PR has been created: #5858 Please review and merge it into your branch. |
42eae74 to
08931d1
Compare
|
❌ Ruling needs updating. A fix PR has been created: #5858 Please review and merge it into your branch. |
Detect when the return value of InputStream.read() or Reader.read() is cast to byte or char before being checked for -1, which can cause false end-of-stream detection or missed end-of-stream conditions.
08931d1 to
4f2a408
Compare
|
❌ Ruling needs updating. A fix PR has been created: #5858 Please review and merge it into your branch. |
1 similar comment
|
❌ Ruling needs updating. A fix PR has been created: #5858 Please review and merge it into your branch. |
Ruling Diff SummaryDetected changes in 1 rule files: 0 issues removed, 9 issues added. S9130 (
|
|
❌ Ruling needs updating. A fix PR has been created: #5864 Please review and merge it into your branch. |
CI failed: Test failures caused by introducing new rule S9130: a profile registration assertion failed because the total rule count increased from 465 to 466, and ruling integration tests failed due to mismatched snapshot output.OverviewTwo distinct test failures occurred as a direct result of implementing new rule S9130 in PR #5855 across 2 analyzed log files. Both failures are change-related and stem from failing to update test assertions and ruling baseline expectations to account for the newly added rule. FailuresQuality Profile Rule Count Assertion Failure (confidence: high)
Ruling Integration Test Mismatch (confidence: high)
Summary
Code Review ✅ ApprovedImplements new rule S9130 to detect incorrect casting of InputStream.read() or Reader.read() return values before checking for -1. No issues found. Tip Comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
Detect when the return value of InputStream.read() or Reader.read() is cast to byte or char before being checked for -1, which can cause false end-of-stream detection or missed end-of-stream conditions.
Part of