AI Slop Code Risk Monitor

PatchMon/PatchMon

SlopCodeMonitor badge for PatchMon/PatchMon Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Linux Patch Management & Automation Platform

1.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for PatchMon/PatchMon, a Go project with 3,563 GitHub stars. SynthScan examined 283,484 lines of code across 971 source files, recording 306 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 1.7 (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.

1.7
Adjusted Signal
1.7
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
3.6K
Stars
Go
Language
283.5K
Lines of Code
971
Files
306
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 5.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.7/100 · LOW

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

Agent Over-Engineering Ratio 2.0/100 · LOW

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

PR Review Velocity Impact 6.7/100 · LOW

Which changes need focused human review? 306 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 3MEDIUM 36LOW 267

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 306 distinct pattern matches across 13 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.

Over-Commented Block126 hits · 123 pts
SeverityFileLineSnippetContext
LOWdocker/build.sh1#!/usr/bin/env bashCOMMENT
LOWdocker/docker-compose.yml1# =============================================================================COMMENT
LOWfrontend/src/main.jsx1import { QueryClient, QueryClientProvider } from "@tanstack/react-query";COMMENT
LOWfrontend/src/contexts/AuthContext.jsx161 // Detect fresh OIDC/Discord SSO return. Backend sets HttpOnly auth cookies then 302sCOMMENT
LOWfrontend/src/utils/hostStatus.js1// Reporting-state derivation shared by the Hosts table, the Reporting filterCOMMENT
LOWfrontend/src/components/PatchWizard.jsx201 (presetHosts || []).length > 0 &&COMMENT
LOWfrontend/src/components/PatchWizard.jsx221 ).join(",")}|P:${(packageNames || []).join("\n")}`;COMMENT
LOWfrontend/src/components/PatchWizard.jsx601 currentStepId === "timing" ||COMMENT
LOWfrontend/src/components/HostStatusPills.jsx161 ? "WebSocket disconnected, within grace window"COMMENT
LOWfrontend/src/hooks/usePageRefresh.js21// marks exactly the window a refresh is responsible for.COMMENT
LOWfrontend/src/pages/Billing.jsx741 )}COMMENT
LOWfrontend/src/pages/Billing.jsx821 // The commit input appears on ANY annual selection — upgrade, downgrade,COMMENT
LOWfrontend/src/pages/Billing.jsx881 // nav badges (Patching, Docker, Compliance, etc.) reflect the newCOMMENT
LOWfrontend/src/pages/Login.jsx141 };COMMENT
LOW…rce-code/cmd/patchmon-agent/commands/version_update.go901 logger.Debug("Detected systemd, scheduling service restart via helper script")COMMENT
LOW…rce-code/cmd/patchmon-agent/commands/version_update.go1021 // Create a helper script that will restart the service after we exitCOMMENT
LOWagent-source-code/cmd/patchmon-agent/commands/serve.go1621)COMMENT
LOWagent-source-code/cmd/patchmon-agent/commands/serve.go2461// patchStepWaitDelay is how long a step allows for the process to exit and thenCOMMENT
LOWagent-source-code/cmd/patchmon-agent/commands/report.go581 logger.WithFields(logrus.Fields{COMMENT
LOWagent-source-code/cmd/patchmon-agent/commands/report.go601// regardless of the hash compare. Ticks are numbered from 1 and count onlyCOMMENT
LOWagent-source-code/cmd/patchmon-agent/commands/report.go621// computes per-section hashes, pings the server, and on a non-emptyCOMMENT
LOWagent-source-code/internal/config/config.go501 configViper.Set("apk_secdb", map[string]interface{}{COMMENT
LOWagent-source-code/internal/config/transient_windows.go1//go:build windowsCOMMENT
LOWagent-source-code/internal/utils/offset.go1// Package utils provides utility functions for common operationsCOMMENT
LOWagent-source-code/internal/textsan/textsan.go1// Package textsan normalises text collected from the host before the agentCOMMENT
LOWagent-source-code/internal/system/reboot.go301// can never match a running release such as 6.12.4-arch1-1.COMMENT
LOWagent-source-code/internal/packages/pacman.go201 return pkgs, nilCOMMENT
LOW…rce-code/internal/packages/windows_integration_test.go21// customer's machine. These tests are the only thing that executes thoseCOMMENT
LOWagent-source-code/internal/packages/apt.go241 }COMMENT
LOWagent-source-code/internal/packages/apt.go381// Inst linux-generic [6.8.0-136.136] (6.8.0-137.137 Ubuntu:24.04/noble-updates [amd64]) []COMMENT
LOWagent-source-code/internal/packages/apt_test.go101 assert.Equal(t, len(tt.expected), len(result))COMMENT
LOWagent-source-code/internal/winexec/powershell.go1// Package winexec centralises how the agent shells out to Windows PowerShell.COMMENT
LOWagent-source-code/internal/winexec/powershell.go21// writes that preamble to a redirected stream varies by runtime, so theCOMMENT
LOWagent-source-code/internal/pkgversion/version.go1// Package pkgversion provides version information for the agentCOMMENT
LOWagent-source-code/pkg/models/models.go221 // (v2.0.3+). Pre-2.0.3 servers ignore the ping body entirely and answerCOMMENT
LOWdocs/patchmon-operator-guide.md5761```yamlCOMMENT
LOWdocs/patchmon-operator-guide.md5781# equals the agent version once the agent has loaded this file.COMMENT
LOWdocs/patchmon-operator-guide.md5801# Skip SSL certificate verification when connecting to the server.COMMENT
LOWdocs/patchmon-operator-guide.md5821# Integration toggles control optional agent features.COMMENT
LOWdocs/patchmon-operator-guide.md5841 # Can be toggled from the PatchMon UI.COMMENT
LOWdocs/patchmon-operator-guide.md5861COMMENT
LOW.github/workflows/agent-scripts.yml1name: Agent scriptsCOMMENT
LOW.github/workflows/docker.yml281 pull-requests: writeCOMMENT
LOW.github/workflows/docker.yml401 provenance: falseCOMMENT
LOW.github/workflows/docker.yml421 # the GHCR build above and the Harbor build below keep `provenance: false`COMMENT
LOW.github/workflows/docker.yml521 context: .COMMENT
LOW.github/actions/release-context/action.yml81 # Why not just the last tag: an :edge image built from main containsCOMMENT
LOWserver-source-code/cmd/server/startup_checks.go21// 100->150, 200->300.COMMENT
LOWserver-source-code/cmd/server/startup_checks.go81// This gives roughly 1.5 connections per active host, which covers concurrentCOMMENT
LOWserver-source-code/internal/handler/compliance.go1241 }COMMENT
LOWserver-source-code/internal/handler/compliance.go1261// report a re-install on a working host as already complete.COMMENT
LOWserver-source-code/internal/handler/marketing.go61 return nilCOMMENT
LOWserver-source-code/internal/handler/billing.go1// Package handler - billing.go implements the two thin proxy endpoints that backCOMMENT
LOWserver-source-code/internal/handler/billing.go81// currentTenantID returns the context ("tenant") id from the multi-context registry.COMMENT
LOWserver-source-code/internal/handler/billing.go321// PostMyBillingTierChange returns the handler for POST /me/billing/tier-change.COMMENT
LOWserver-source-code/internal/handler/billing.go341// 3. The provisioner's JSON response (including the freshly-projectedCOMMENT
LOWserver-source-code/internal/handler/auth.go1301}COMMENT
LOWserver-source-code/internal/handler/patching_stream.go21}COMMENT
LOWserver-source-code/internal/handler/patching.go221 JSON(w, http.StatusInternalServerError, map[string]string{"error": "Failed to save patch output"})COMMENT
LOW…r-source-code/internal/handler/compliance_hash_test.go81// TestCanonicalComplianceHashFromPayload_CarriesRemediationFields is the directCOMMENT
66 more matches not shown…
Structural Annotation Overuse78 hits · 105 pts
SeverityFileLineSnippetContext
LOWagent-source-code/cmd/patchmon-agent/commands/serve.go939 // Step 1: Detect OSCOMMENT
LOWagent-source-code/cmd/patchmon-agent/commands/serve.go958 // Step 2: Install OpenSCAP packagesCOMMENT
LOWagent-source-code/cmd/patchmon-agent/commands/serve.go997 // Step 3: Verify installation and SSG contentCOMMENT
LOWagent-source-code/cmd/patchmon-agent/commands/serve.go1065 // Step 4: Docker Bench (if docker enabled)COMMENT
LOWagent-source-code/cmd/patchmon-agent/commands/serve.go1105 // Step 5: CompleteCOMMENT
LOWdocs/patchmon-admin-guide.md453### Step 1: Choose OSCOMMENT
LOWdocs/patchmon-admin-guide.md465### Step 2: Host DetailsCOMMENT
LOWdocs/patchmon-admin-guide.md492### Step 3: Copy the Install CommandCOMMENT
LOWdocs/patchmon-admin-guide.md526### Step 4: Waiting for ConnectionCOMMENT
LOWdocs/patchmon-api-integrations-guide.md64### Step 1: Find your callback URLCOMMENT
LOWdocs/patchmon-api-integrations-guide.md74### Step 2: Create a Discord applicationCOMMENT
LOWdocs/patchmon-api-integrations-guide.md91### Step 3: Configure PatchMonCOMMENT
LOWdocs/patchmon-api-integrations-guide.md103### Step 4: TestCOMMENT
LOWdocs/patchmon-api-integrations-guide.md174### Step 1: Create a Discord incoming webhookCOMMENT
LOWdocs/patchmon-api-integrations-guide.md187### Step 2: Add the webhook to PatchMonCOMMENT
LOWdocs/patchmon-api-integrations-guide.md201### Step 3: Route alerts to the destinationCOMMENT
LOWdocs/patchmon-api-integrations-guide.md372#### Step 1: Create a GetHomepage API keyCOMMENT
LOWdocs/patchmon-api-integrations-guide.md383#### Step 2: Copy the credentialsCOMMENT
LOWdocs/patchmon-api-integrations-guide.md394#### Step 3: Configure GetHomepageCOMMENT
LOWdocs/patchmon-api-integrations-guide.md657#### Step 1: Find out your top 3 operating systemsCOMMENT
LOWdocs/patchmon-api-integrations-guide.md678#### Step 2: Add the counts to the widget, using the names as labelsCOMMENT
LOWdocs/patchmon-api-integrations-guide.md692#### Step 3: Restart GetHomepageCOMMENT
LOWdocs/patchmon-api-integrations-guide.md838# Step 1: encodeCOMMENT
LOWdocs/patchmon-api-integrations-guide.md841# Step 2: testCOMMENT
LOWdocs/patchmon-api-integrations-guide.md1455#### Step 1: Create Auto-Enrollment TokenCOMMENT
LOWdocs/patchmon-api-integrations-guide.md1492#### Step 2: Prepare Proxmox HostCOMMENT
LOWdocs/patchmon-api-integrations-guide.md1537#### Step 3: Test with Dry RunCOMMENT
LOWdocs/patchmon-api-integrations-guide.md1557#### Step 4: Run Actual EnrollmentCOMMENT
LOWdocs/patchmon-api-integrations-guide.md1571#### Step 5: Verify in PatchMonCOMMENT
LOWdocs/patchmon-api-integrations-guide.md2794### Step 1: Create an Auto-Enrolment TokenCOMMENT
LOWdocs/patchmon-api-integrations-guide.md2805### Step 2: Prepare the ScriptsCOMMENT
LOWdocs/patchmon-api-integrations-guide.md2819### Step 3: Build the PackageCOMMENT
LOWdocs/patchmon-api-integrations-guide.md2829### Step 4: Create the Win32 AppCOMMENT
LOWdocs/patchmon-api-integrations-guide.md2859### Step 5: Check the RolloutCOMMENT
LOW⚡docs/patchmon-operator-guide.md4913# Step 1: Check service statusCOMMENT
LOW⚡docs/patchmon-operator-guide.md4916# Step 2: Check recent logs for errorsCOMMENT
LOW⚡docs/patchmon-operator-guide.md4921# Step 3: Run diagnostics for full pictureCOMMENT
LOW⚡docs/patchmon-operator-guide.md4924# Step 4: Test connectivity explicitlyCOMMENT
LOW⚡docs/patchmon-operator-guide.md4927# Step 5: If needed, restart with debug logging temporarilyCOMMENT
LOWdocs/patchmon-operator-guide.md1967### Step 1: Create Admin AccountCOMMENT
LOWdocs/patchmon-operator-guide.md2006### Step 2: Multi-Factor AuthenticationCOMMENT
LOWdocs/patchmon-operator-guide.md2036### Step 3: Confirm Server URLCOMMENT
LOWdocs/patchmon-operator-guide.md2064### Step 4: Stay Updated (optional)COMMENT
LOWdocs/patchmon-operator-guide.md2074### Step 5: Get in TouchCOMMENT
LOWdocs/patchmon-operator-guide.md2782### Step 1 - Create an OIDC Application in Your IdPCOMMENT
LOWdocs/patchmon-operator-guide.md2822### Step 2 - Configure PatchMonCOMMENT
LOWdocs/patchmon-operator-guide.md2875### Step 3 - Group-Based Role Mapping (Optional)COMMENT
LOWdocs/patchmon-operator-guide.md2918### Step 4 - Restart PatchMonCOMMENT
LOWdocs/patchmon-operator-guide.md2967### Step 5 - Test the LoginCOMMENT
LOWdocs/patchmon-operator-guide.md3431#### Step 1: Get the Callback URL from PatchMon FirstCOMMENT
LOWdocs/patchmon-operator-guide.md3447#### Step 2: Register an Application in Entra IDCOMMENT
LOWdocs/patchmon-operator-guide.md3466#### Step 3: Create a Client SecretCOMMENT
LOWdocs/patchmon-operator-guide.md3480#### Step 4: Configure Token Claims (Add Groups)COMMENT
LOWdocs/patchmon-operator-guide.md3503#### Step 5: API PermissionsCOMMENT
LOWdocs/patchmon-operator-guide.md3511#### Step 6: Create Security Groups for Role MappingCOMMENT
LOWdocs/patchmon-operator-guide.md3547#### Step 7: Fill in the OAuth2 Configuration SectionCOMMENT
LOWdocs/patchmon-operator-guide.md3569#### Step 8: Configure the TogglesCOMMENT
LOWdocs/patchmon-operator-guide.md3585#### Step 9: Fill in the Role Mapping TableCOMMENT
LOWdocs/patchmon-operator-guide.md3608#### Step 10: Turn On OIDC and TestCOMMENT
LOWdocs/patchmon-operator-guide.md3766#### Step 1: Open the Add Host WizardCOMMENT
18 more matches not shown…
Decorative Section Separators27 hits · 102 pts
SeverityFileLineSnippetContext
MEDIUM⚡docker/docker-compose.dev.yml1# ============================================================================COMMENT
MEDIUM⚡docker/docker-compose.dev.yml3# ============================================================================COMMENT
MEDIUM⚡docker/docker-compose.dev.yml10# ============================================================================COMMENT
MEDIUMdocker/build.sh2# =============================================================================COMMENT
MEDIUMdocker/build.sh19# =============================================================================COMMENT
MEDIUMdocker/docker-compose.yml1# =============================================================================COMMENT
MEDIUMdocker/docker-compose.yml3# =============================================================================COMMENT
MEDIUMdocker/docker-compose.yml16# =============================================================================COMMENT
MEDIUM⚡docs/patchmon-operator-guide.md5765# ─── Server Connection ───────────────────────────────────────────────COMMENT
MEDIUM⚡docs/patchmon-operator-guide.md5774# ─── Host Identity (agent 2.1.4 and later) ───────────────────────────COMMENT
MEDIUM⚡docs/patchmon-operator-guide.md5784# ─── File Paths ──────────────────────────────────────────────────────COMMENT
MEDIUM⚡docs/patchmon-operator-guide.md5794# ─── Logging ─────────────────────────────────────────────────────────COMMENT
MEDIUM⚡docs/patchmon-operator-guide.md5800# ─── SSL / TLS ───────────────────────────────────────────────────────COMMENT
MEDIUM⚡docs/patchmon-operator-guide.md5806# ─── Reporting Schedule ──────────────────────────────────────────────COMMENT
MEDIUMdocs/patchmon-operator-guide.md5820# ─── Integrations ────────────────────────────────────────────────────COMMENT
MEDIUMdocs/patchmon-operator-guide.md5862# ─── Docker Image Update Check ───────────────────────────────────────COMMENT
MEDIUMdocs/patchmon-operator-guide.md5872# ─── Alpine Security Database ────────────────────────────────────────COMMENT
MEDIUM.github/workflows/docker.yml408 # ---------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/docker.yml433 # ---------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/publish-changelog.sh2# =============================================================================COMMENT
MEDIUM.github/scripts/update-vcheck-dns.sh2# =============================================================================COMMENT
MEDIUM⚡…source-code/internal/agents/direct_host_auto_enroll.sh10# =============================================================================COMMENT
MEDIUM⚡…source-code/internal/agents/direct_host_auto_enroll.sh12# =============================================================================COMMENT
MEDIUM…source-code/internal/agents/direct_host_auto_enroll.sh30# =============================================================================COMMENT
MEDIUM⚡…ver-source-code/internal/agents/proxmox_auto_enroll.sh10# =============================================================================COMMENT
MEDIUM⚡…ver-source-code/internal/agents/proxmox_auto_enroll.sh12# =============================================================================COMMENT
MEDIUM⚡…ver-source-code/internal/agents/proxmox_auto_enroll.sh24# =============================================================================COMMENT
Verbosity Indicators17 hits · 33 pts
SeverityFileLineSnippetContext
LOWagent-source-code/cmd/patchmon-agent/commands/serve.go939 // Step 1: Detect OSCOMMENT
LOWagent-source-code/cmd/patchmon-agent/commands/serve.go958 // Step 2: Install OpenSCAP packagesCOMMENT
LOWagent-source-code/cmd/patchmon-agent/commands/serve.go997 // Step 3: Verify installation and SSG contentCOMMENT
LOWagent-source-code/cmd/patchmon-agent/commands/serve.go1065 // Step 4: Docker Bench (if docker enabled)COMMENT
LOWagent-source-code/cmd/patchmon-agent/commands/serve.go1105 // Step 5: CompleteCOMMENT
LOW⚡server-source-code/internal/agents/patchmon_remove.sh74# Step 1: Stop systemd/OpenRC service if it existsCOMMENT
LOW⚡server-source-code/internal/agents/patchmon_remove.sh260# Step 2: Remove crontab entriesCOMMENT
LOW⚡server-source-code/internal/agents/patchmon_remove.sh270# Step 3: Remove agent binaries and scriptsCOMMENT
LOWserver-source-code/internal/agents/patchmon_remove.sh308# Step 4: Remove configuration directory and filesCOMMENT
LOW⚡server-source-code/internal/agents/patchmon_remove.sh328# Step 5: Remove log filesCOMMENT
LOW⚡server-source-code/internal/agents/patchmon_remove.sh338# Step 6: Clean up backup filesCOMMENT
LOWserver-source-code/internal/agents/patchmon_remove.sh436# Step 7: Final verificationCOMMENT
LOW⚡server-source-code/internal/agents/patchmon_install.sh531# Step 1: Handle existing configuration directoryCOMMENT
LOW⚡server-source-code/internal/agents/patchmon_install.sh580# Step 2: Create configuration filesCOMMENT
LOW⚡server-source-code/internal/agents/patchmon_install.sh655# Step 3: Download the PatchMon agent binary using API credentialsCOMMENT
LOW⚡server-source-code/internal/agents/patchmon_install.sh740# Step 4: Test the configurationCOMMENT
LOW⚡server-source-code/internal/agents/patchmon_install.sh748# Step 5: Setup service for WebSocket connectionCOMMENT
Fake / Example Data23 hits · 32 pts
SeverityFileLineSnippetContext
LOWdocs/patchmon-operator-guide.md3198Fixed in 2.1.3. Two separate defects produced the same message. ADFS sends single-valued claims as a JSON array (`"emailCODE
LOWdocs/patchmon-operator-guide.md3291 -c "UPDATE users SET oidc_sub = NULL, oidc_provider = NULL WHERE LOWER(email) = LOWER('admin@example.com');"CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go36 primary: map[string]interface{}{"email": "user@example.com"},CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go37 want: "user@example.com",CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go41 primary: map[string]interface{}{"email": []interface{}{"user@example.com"}},CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go42 want: "user@example.com",CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go47 fallback: map[string]interface{}{"email": []interface{}{"user@example.com"}},CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go48 want: "user@example.com",CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go53 fallback: map[string]interface{}{"email": []interface{}{"user@example.com"}},CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go54 want: "user@example.com",CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go65 fallback: map[string]interface{}{"email": "user@example.com"},CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go66 want: "user@example.com",CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go71 fallback: map[string]interface{}{"email": "user@example.com"},CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go72 want: "user@example.com",CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go77 fallback: map[string]interface{}{"email": "user@example.com"},CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go78 want: "user@example.com",CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go83 fallback: map[string]interface{}{"email": "user@example.com"},CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go84 want: "user@example.com",CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go107 fallback: map[string]interface{}{"email": "user@example.com"},CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go108 want: "user@example.com",CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go112 primary: map[string]interface{}{"email": map[string]interface{}{"value": "user@example.com"}},CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go119 fallback: map[string]interface{}{"email": "user@example.com"},CODE
LOW⚡…er-source-code/internal/auth/oidc/string_claim_test.go120 want: "user@example.com",CODE
Redundant / Tautological Comments19 hits · 32 pts
SeverityFileLineSnippetContext
LOWserver-source-code/internal/agents/patchmon_remove.sh23# Check if backup files should be removed (default: preserve for safety)COMMENT
LOW⚡server-source-code/internal/agents/patchmon_remove.sh66# Check if running as rootCOMMENT
LOW⚡server-source-code/internal/agents/patchmon_remove.sh84 # Check if service is activeCOMMENT
LOWserver-source-code/internal/agents/patchmon_remove.sh105 # Check if service is enabledCOMMENT
LOWserver-source-code/internal/agents/patchmon_remove.sh233 # Check if processes still existCOMMENT
LOW…source-code/internal/agents/direct_host_auto_enroll.sh178# Check if running as rootCOMMENT
LOW⚡server-source-code/internal/agents/patchmon_install.sh534# Check if configuration directory already existsCOMMENT
LOW⚡server-source-code/internal/agents/patchmon_install.sh583# Check if config file already existsCOMMENT
LOW⚡server-source-code/internal/agents/patchmon_install.sh664# Check if agent binary already existsCOMMENT
LOWserver-source-code/internal/agents/patchmon_install.sh38# Check if running as rootCOMMENT
LOWserver-source-code/internal/agents/patchmon_install.sh58 # Check if we can read from stdin (interactive terminal)COMMENT
LOWserver-source-code/internal/agents/patchmon_install.sh209# Check if --force flag is set (for bypassing broken packages)COMMENT
LOWserver-source-code/internal/agents/patchmon_install.sh549# Check if agent is already configured and working (before we overwrite anything)COMMENT
LOWserver-source-code/internal/agents/patchmon_install.sh596# Check if credentials file already existsCOMMENT
LOWserver-source-code/internal/agents/patchmon_install.sh804 # Check if service started successfullyCOMMENT
LOWserver-source-code/internal/agents/patchmon_install.sh866 # Check if service started successfullyCOMMENT
LOW…ver-source-code/internal/agents/proxmox_auto_enroll.sh93# Check if running on ProxmoxCOMMENT
LOW…ver-source-code/internal/agents/proxmox_auto_enroll.sh339 # Check if agent is already installed and working BEFORE enrollmentCOMMENT
LOW…ver-source-code/internal/agents/proxmox_auto_enroll.sh612 # Check if it's a dpkg errorCOMMENT
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHfrontend/src/pages/settings/Integrations.jsx1496 {`echo -n "YOUR_API_KEY:YOUR_API_SECRET" | base64`}CODE
HIGHfrontend/src/pages/settings/Integrations.jsx1499 Replace YOUR_API_KEY and YOUR_API_SECRET with your actualCODE
Excessive Try-Catch Wrapping5 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMdocs/patchmon-api-integrations-guide.md4904 print(f"Error: {response.status_code} - {response.json()}")CODE
MEDIUMdocs/patchmon-api-integrations-guide.md4984 print(f"Error: {response.status_code} - {response.json()}")CODE
MEDIUMdocs/patchmon-api-integrations-guide.md5037 print(f"Error fetching hosts: {response.status_code}")CODE
MEDIUMdocs/patchmon-api-integrations-guide.md5141 print("Error: PATCHMON_API_KEY and PATCHMON_API_SECRET must be set", file=sys.stderr)CODE
MEDIUMdocs/patchmon-api-integrations-guide.md5151 print(f"Error fetching inventory: {e}", file=sys.stderr)CODE
Self-Referential Comments2 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUM⚡docker/docker-compose.dev.yml4# This file contains hardcoded credentials for LOCAL DEVELOPMENT ONLY.COMMENT
MEDIUMserver-source-code/internal/agents/patchmon_install.sh622# Create main config fileCOMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHserver-source-code/internal/handler/rdp.go712 // these fields are intentionally named as requested values rather than theCOMMENT
Example Usage Blocks3 hits · 6 pts
SeverityFileLineSnippetContext
LOWdocker/build.sh13# Usage:COMMENT
LOW⚡…source-code/internal/agents/direct_host_auto_enroll.sh16# Usage:COMMENT
LOW⚡…ver-source-code/internal/agents/proxmox_auto_enroll.sh16# Usage:COMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMfrontend/src/pages/hostdetail/WaitingForConnection.jsx12 // Check multiple fields to be more robust - if any of these are populated, we have a reportCOMMENT
MEDIUM…urce-code/internal/integrations/compliance/openscap.go1791 // Extract Rule elements using a more robust approach:COMMENT
Hyper-Verbose Identifiers1 hit · 0 pts
SeverityFileLineSnippetContext
LOWdocs/patchmon-api-integrations-guide.md5031def generate_ansible_inventory():CODE