JS-1493 Fix open SonarCloud maintainability issues#6642
JS-1493 Fix open SonarCloud maintainability issues#6642
Conversation
SummaryThis PR fixes ~15 SonarCloud maintainability violations through targeted refactorings: TypeScript: Uses Java: Guards debug/warn log calls with All changes maintain backward compatibility and are validated by the existing test suite and compilation checks. What reviewers should knowWhere to start: The TypeScript and Java sections are independent—reviewers can evaluate them separately. Most changes are mechanical replacements with no behavioral impact. Key points to watch:
Trivial changes: The escaped quote removal in S134 config and the
|
Ruling Report✅ No changes to ruling expected issues in this PR |
SummaryThis PR fixes 8 SonarCloud maintainability issues across the TypeScript and Java codebase. Changes fall into three main categories:
What reviewers should knowKey areas to review:
All TypeScript test files mentioned in the validation section should pass, and the Java changes are straightforward guard additions + string improvements.
|
|




Summary
This PR fixes the currently open SonarCloud maintainability issues for
SonarSource_SonarJSthat are in this codebase slice.Main changes:
String.rawin config/test helper patternsSet.hasString.formatisEmpty()for empty-string checkValidation
npx prettier --checkon touched filesnpx tsx --tsconfig packages/tsconfig.test.json --test ...packages/jsts/src/rules/S1192/unit.test.tspackages/jsts/src/rules/S134/unit.test.tspackages/jsts/src/rules/S3776/unit.test.tspackages/jsts/src/rules/S3782/unit.test.tspackages/jsts/src/rules/S4158/unit.test.tspackages/jsts/src/rules/S6486/cb.test.tspackages/jsts/tests/tools/testers/comment-based/framework.test.tsmvn -pl sonar-plugin/bridge -DskipTests -Dexec.skip=true compilemvn -pl sonar-plugin/sonar-javascript-plugin -DskipTests -Dexec.skip=true compile