SonarCloud: JavaScript/TypeScript code quality
8 open SonarCloud finding(s) in petry-projects/google-app-scripts, worst severity MAJOR. Generated by the org SonarCloud Audit.
View in SonarCloud →
Findings
| Rule |
Count |
Representative message |
| javascript:S7773 |
2 |
Prefer Number.isNaN over isNaN. |
| javascript:S7784 |
2 |
Prefer structuredClone(…) over JSON.parse(JSON.stringify(…)) to create a deep clone. |
| javascript:S3800 |
1 |
Refactor this function to always return the same type. |
| javascript:S6582 |
1 |
Prefer using an optional chain expression instead, as it's more concise and easier to read |
| javascript:S7765 |
1 |
Use .includes(), rather than .indexOf(), when checking for existence. |
| javascript:S7781 |
1 |
Prefer String#replaceAll() over String#replace(). |
Affected files
src/gmail-ai-classifier/src/github-sync.js (8)
Priority
Labeled priority:major — mapped from this bucket's worst SonarCloud severity (MAJOR).
Acceptance
Idempotent issue — updated automatically each audit run; auto-closed when the finding count reaches zero.
SonarCloud: JavaScript/TypeScript code quality
8 open SonarCloud finding(s) in
petry-projects/google-app-scripts, worst severity MAJOR. Generated by the org SonarCloud Audit.View in SonarCloud →
Findings
Number.isNaNoverisNaN.structuredClone(…)overJSON.parse(JSON.stringify(…))to create a deep clone..includes(), rather than.indexOf(), when checking for existence.String#replaceAll()overString#replace().Affected files
src/gmail-ai-classifier/src/github-sync.js(8)Priority
Labeled
priority:major— mapped from this bucket's worst SonarCloud severity (MAJOR).Acceptance
NOSONARunless a confirmed false positive, noted inline)Idempotent issue — updated automatically each audit run; auto-closed when the finding count reaches zero.