SonarCloud: JavaScript/TypeScript code quality
56 open SonarCloud finding(s) in petry-projects/google-app-scripts, worst severity MAJOR. Generated by the org SonarCloud Audit.
View in SonarCloud →
Findings
Affected files
deploy/index.html (16)
src/gas-utils.js (7)
src/gmail-to-drive-by-labels/src/index.js (7)
src/calendar-to-briefing-doc/src/index.js (5)
gas-installer/Index.html (4)
src/calendar-to-sheets/src/index.js (4)
gas-installer/src/index.js (3)
scripts/check-coverage.js (3)
test-utils/mocks.js (3)
deploy/tests/ui.spec.js (1)
src/calendar-to-briefing-doc/tests/index.test.js (1)
src/deploy/index.js (1)
test-utils/setup.js (1)
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
56 open SonarCloud finding(s) in
petry-projects/google-app-scripts, worst severity MAJOR. Generated by the org SonarCloud Audit.View in SonarCloud →
Findings
String#replaceAll()overString#replace().Number.parseIntoverparseInt.node:fsoverfs.Date.now()overDate#getTime().for-ofloop instead of aforloop with this simple iteration..includes(), rather than.lastIndexOf(), when checking for existence.new Error()is too unspecific for a type check. Usenew TypeError()instead.Affected files
deploy/index.html(16)src/gas-utils.js(7)src/gmail-to-drive-by-labels/src/index.js(7)src/calendar-to-briefing-doc/src/index.js(5)gas-installer/Index.html(4)src/calendar-to-sheets/src/index.js(4)gas-installer/src/index.js(3)scripts/check-coverage.js(3)test-utils/mocks.js(3)deploy/tests/ui.spec.js(1)src/calendar-to-briefing-doc/tests/index.test.js(1)src/deploy/index.js(1)test-utils/setup.js(1)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.