AI Slop Code RIsk Monitor

googleworkspace/cli

Google Workspace CLI — one command-line tool for Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and more. Dynamically built from Google Discovery Service. Includes AI agent skills.

4.6 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for googleworkspace/cli, a Rust project with 31,290 GitHub stars. SynthScan examined 42,720 lines of code across 211 source files, recording 116 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 4.6 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

4.6
Adjusted Signal
4.6
Raw Pattern Score
100%
Time Factor
2026-10-06
Last Push
31.3K
Stars
Rust
Language
42.7K
Lines of Code
211
Files
116
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 8.3/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 72 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

Are imports declared and package/API names verified? 5 finding(s).

Agent Over-Engineering Ratio 12.8/100 · LOW

Are wrappers, guards, and repeated structures necessary? 39 finding(s).

PR Review Velocity Impact 20.5/100 · LOW

Which changes need focused human review? 116 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 0MEDIUM 40LOW 76

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 116 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Decorative Section Separators39 hits · 117 pts
SeverityFileLineSnippetContext
MEDIUMcrates/google-workspace/src/validate.rs24// ── Dangerous character detection ─────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace/src/validate.rs63// ── Path validators ───────────────────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace/src/validate.rs273// ── URL encoding ──────────────────────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace/src/validate.rs295// ── Resource / API validators ─────────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/auth_commands.rs2027 // ── is_workspace_admin_scope tests ──────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/auth_commands.rs2104 // ── is_workspace_admin_scope – new patterns ─────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/auth_commands.rs2132 // ── scope_matches_service tests ──────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/auth_commands.rs2239 // ── services filter integration tests ────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/output.rs25// ── Sanitization ──────────────────────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/output.rs45// ── Color ─────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/output.rs65// ── Stderr helpers ────────────────────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/output.rs93 // ── sanitize_for_terminal ─────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/output.rs149 // ── colorize ──────────────────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup_tui.rs463// ── Setup Wizard (unified TUI session) ──────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup_tui.rs885 // ── PickerState unit tests ──────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup_tui.rs931 // ── handle_key / key-sequence tests ─────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup_tui.rs1132 // ── InputState tests ───────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup_tui.rs1225 // ── GoBack key tests ───────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup_tui.rs1251 // ── selected_count tests ───────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup_tui.rs1281 // ── is_fixed item tests ────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup_tui.rs1318 // ── Single-select picker tests ─────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup_tui.rs1415 // ── Template toggling tests ────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup_tui.rs1552 // ── Readonly/superset scope interaction tests ──────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup_tui.rs1629 // ── wrap_text tests ────────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup_tui.rs1674 // ── PickerState::new initial selection tests ───────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup_tui.rs1691 // ── Edge case tests ────────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup.rs429// ── gcloud helpers ──────────────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup.rs743// ── API enabling ────────────────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup.rs853// ── OAuth REST API ──────────────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup.rs915// ── Main setup orchestrator ─────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup.rs1722 // ── Action resolution (test-only) ───────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup.rs1764 // ── Helpers ─────────────────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup.rs1794 // ── API / data tests ────────────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup.rs1848 // ── parse_setup_args tests ──────────────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup.rs1985 // ── Account selection → gcloud action ───────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup.rs2013 // ── Project selection → gcloud action ───────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup.rs2055 // ── API selection → enable action ───────────────────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup.rs2115 // ── Full pipeline: keys → picker → gcloud action ────────────COMMENT
MEDIUMcrates/google-workspace-cli/src/setup.rs2275 // ── enable_apis unit tests ──────────────────────────────────COMMENT
Over-Commented Block70 hits · 70 pts
SeverityFileLineSnippetContext
LOWCargo.toml1# Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace/Cargo.toml1# Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace/src/client.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace/src/error.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace/src/discovery.rs1#![allow(dead_code)]COMMENT
LOWcrates/google-workspace/src/lib.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace/src/services.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace/src/validate.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace/src/validate.rs161COMMENT
LOWcrates/google-workspace-cli/Cargo.toml1# Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/token_storage.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/credential_store.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/generate_skills.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/oauth_config.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/oauth_config.rs21//! "client_id": "...apps.googleusercontent.com",COMMENT
LOWcrates/google-workspace-cli/src/client.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/error.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/discovery.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/fs_util.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/logging.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/logging.rs21//! ## Environment VariablesCOMMENT
LOWcrates/google-workspace-cli/src/auth.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/auth.rs201}COMMENT
LOWcrates/google-workspace-cli/src/formatter.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/formatter.rs21COMMENT
LOWcrates/google-workspace-cli/src/services.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/auth_commands.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/auth_commands.rs841 "slides" => vec!["presentations"],COMMENT
LOWcrates/google-workspace-cli/src/auth_commands.rs1581/// (requires a Chat app or service account).COMMENT
LOWcrates/google-workspace-cli/src/commands.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/schema.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/executor.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/executor.rs381COMMENT
LOWcrates/google-workspace-cli/src/output.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/timezone.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/main.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/text.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/text.rs21/// Max chars for skill body method descriptions (markdown, agents benefit from detail).COMMENT
LOWcrates/google-workspace-cli/src/setup_tui.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/validate.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/setup.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/helpers/docs.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/helpers/sheets.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/helpers/drive.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/helpers/mod.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/helpers/script.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/helpers/workflows.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/helpers/calendar.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/helpers/modelarmor.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/helpers/chat.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/helpers/chat.rs161/// We use `String` here to own the data, as it will be used to constructCOMMENT
LOWcrates/google-workspace-cli/src/helpers/events/mod.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/helpers/gmail/send.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/helpers/gmail/mod.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/helpers/gmail/mod.rs1301/// Read and validate attachments from `--attach` arguments.COMMENT
LOWcrates/google-workspace-cli/src/helpers/gmail/read.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/helpers/gmail/reply.rs1// Copyright 2026 Google LLCCOMMENT
LOW…ates/google-workspace-cli/src/helpers/gmail/forward.rs1// Copyright 2026 Google LLCCOMMENT
LOWcrates/google-workspace-cli/src/helpers/gmail/triage.rs1// Copyright 2026 Google LLCCOMMENT
LOWscripts/show-art.sh1#!/bin/bashCOMMENT
10 more matches not shown…
Fake / Example Data5 hits · 5 pts
SeverityFileLineSnippetContext
LOWcrates/google-workspace-cli/src/setup.rs1937 "user@example.com",CODE
LOWcrates/google-workspace-cli/src/setup.rs1945 assert!(msg.contains("user@example.com"));CODE
LOWcrates/google-workspace-cli/src/helpers/gmail/mod.rs2681 assert!(m.email.contains("foo@bar.com"));CODE
LOWskills/recipe-sync-contacts-to-sheet/SKILL.md273. Append each contact row: `gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Jane Doe", "jane@cCODE
LOWskills/recipe-log-deal-update/SKILL.md273. Append new row: `gws sheets +append --spreadsheet SHEET_ID --range 'Pipeline' --values '["2024-03-15", "Acme Corp", "CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMcrates/google-workspace-cli/src/helpers/README.md46### ✅ Good Flags (control orchestration)COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/coverage.sh18# Check if cargo-llvm-cov is installedCOMMENT