Skip to content

SonarCloud: cognitive complexity (S3776) #427

Description

@don-petry

SonarCloud: cognitive complexity (S3776)

4 open SonarCloud finding(s) in petry-projects/google-app-scripts, worst severity CRITICAL. Generated by the org SonarCloud Audit.

View in SonarCloud →

Findings

Rule Count Representative message
javascript:S3776 4 Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.

Affected files

  • src/gmail-to-drive-by-labels/src/index.js (2)
  • deploy/index.html (1)
  • src/calendar-to-sheets/src/index.js (1)

Priority

Labeled priority:critical — mapped from this bucket's worst SonarCloud severity (CRITICAL).

Acceptance

  • All findings in this workstream resolved to zero in SonarCloud
  • No behavior change; CI green
  • Real fixes (no blanket NOSONAR unless a confirmed false positive, noted inline)

Idempotent issue — updated automatically each audit run; auto-closed when the finding count reaches zero.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dev-leadFor dev-lead agent pickuppriority:criticalSonarCloud CRITICAL severitysonarcloud-auditSonarCloud audit finding (idempotent marker)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions