Skip to content

SonarCloud modernization (1/3): src/ app code #442

Description

@don-petry

Split from #421 (×68 modernization epic) — story 1 of 3. Behavior-preserving SonarCloud idiom modernizations across the core src/ app code. No new tests (Phase-2 TDD exception); existing Jest suite + npm run check are the regression guard.

Files & fixes

  • src/gas-utils.jsnode:crypto, String#replaceAll, TypeError, super-linear regex simplification (S8786)
  • src/gmail-to-drive-by-labels/src/index.jsDate.now(), char-class dedupe [\w-], conditional-default ||, toSorted
  • src/calendar-to-briefing-doc/src/index.js — optional chaining / misc idioms
  • src/calendar-to-sheets/src/index.jstoSorted, char-class / misc idioms
  • src/deploy/index.js — idiom fix

Test command

npm test (Jest + coverage) and npm run check (prettier + eslint). .gs files intentionally untouched.

Parent: #421 · Epic: #440

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dev-leadFor dev-lead agent pickupenhancementFeature requests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions