JS-2020 Fix S3735 false positives on voided member calls#7489
JS-2020 Fix S3735 false positives on voided member calls#7489erwan-leforestier-sonarsource wants to merge 2 commits into
Conversation
Ruling ReportCode no longer flagged (2 issues)S3735eigen/src/palette/organisms/screenStructure/Screen.tsx:74 72 |
73 | useEffect(
> 74 | () => void setOptions({ handleTopSafeArea: header === "none" || header === "floating" }),
75 | [header]
76 | )eigen/src/palette/organisms/screenStructure/Screen.tsx:234 232 | left={0}
233 | right={0}
> 234 | onLayout={(evt) => void setOptions({ bottomViewHeight: evt.nativeEvent.layout.height })}
235 | >
236 | <LinearGradient |
This comment has been minimized.
This comment has been minimized.
Code Review ✅ Approved 1 resolved / 1 findingsBroadens the S3735 no-type-info fallback to correctly handle untyped member calls and optional chaining. Ensure the JSDoc for hasIndeterminateType is updated to accurately reflect the check for unresolved error types. ✅ 1 resolved✅ Quality: JSDoc mentions error type not explicitly handled
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 |
|




Summary
This fixes
S3735false positives on untyped member calls such asvoid this.load(), which currently conflict with@typescript-eslint/no-floating-promiseswhen type information is unavailable.Changes
Functional Validation
Artifact:
JS-2020-fv.zipOnce the file is attached to the PR description, unzip and run:
./run.sh
Expected output: