AI Slop Code Risk Monitor

home-assistant/frontend

SlopCodeMonitor badge for home-assistant/frontend Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

:lollipop: Frontend for Home Assistant

0.4 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for home-assistant/frontend, a TypeScript project with 5,773 GitHub stars. SynthScan examined 720,647 lines of code across 3529 source files, recording 254 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 0.4 (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.

0.4
Adjusted Signal
0.4
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
5.8K
Stars
TypeScript
Language
720.6K
Lines of Code
3.5K
Files
254
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 0.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.1/100 · LOW

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

Agent Over-Engineering Ratio 0.6/100 · LOW

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

PR Review Velocity Impact 1.9/100 · LOW

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 0HIGH 0MEDIUM 11LOW 243

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

Fake / Example Data159 hits · 160 pts
SeverityFileLineSnippetContext
LOWdemo/src/ha-demo.ts5import type { MockHomeAssistant } from "../../src/fake_data/provide_hass";CODE
LOWdemo/src/ha-demo.ts6import { provideHass } from "../../src/fake_data/provide_hass";CODE
LOWdemo/src/custom-cards/ha-demo-card.ts10import type { MockHomeAssistant } from "../../../src/fake_data/provide_hass";CODE
LOWdemo/src/custom-cards/ha-demo-next-card.ts12import type { MockHomeAssistant } from "../../../src/fake_data/provide_hass";CODE
LOWdemo/src/configs/demo-configs.ts4import type { MockHomeAssistant } from "../../../src/fake_data/provide_hass";CODE
LOWdemo/src/configs/demo-configs.ts12import type { EntityInput } from "../../../src/fake_data/entities/types";CODE
LOWdemo/src/configs/types.ts5import type { EntityInput } from "../../../src/fake_data/entities/types";CODE
LOWtest/panels/home/ha-panel-home.test.ts2import { provideHass } from "../../../src/fake_data/provide_hass";CODE
LOWtest/panels/marketplace/warning.test.ts4import type { MockHomeAssistant } from "../../../src/fake_data/provide_hass";CODE
LOWtest/panels/marketplace/warning.test.ts5import { provideHass } from "../../../src/fake_data/provide_hass";CODE
LOWtest/panels/marketplace/dialog-host.ts2import { provideHass } from "../../../src/fake_data/provide_hass";CODE
LOWtest/panels/marketplace/discover.test.ts6import { provideHass } from "../../../src/fake_data/provide_hass";CODE
LOWtest/panels/marketplace/my-redirect.test.ts6import { provideHass } from "../../../src/fake_data/provide_hass";CODE
LOWtest/panels/marketplace/dashboard.test.ts3import type { MockHomeAssistant } from "../../../src/fake_data/provide_hass";CODE
LOWtest/panels/marketplace/dashboard.test.ts4import { provideHass } from "../../../src/fake_data/provide_hass";CODE
LOWtest/panels/marketplace/repository-dashboard.test.ts10import { provideHass } from "../../../src/fake_data/provide_hass";CODE
LOWtest/panels/marketplace/custom-repositories.test.ts8import { provideHass } from "../../../src/fake_data/provide_hass";CODE
LOW…st/panels/lovelace/cards/hui-date-card-helpers.test.ts15import { demoConfig } from "../../../../src/fake_data/demo_config";CODE
LOWtest/fake_data/entities/media-player-entity.test.ts3import { MockMediaPlayerEntity } from "../../../src/fake_data/entities/media-player-entity";CODE
LOWtest/common/datetime/format_date.test.ts22import { demoConfig } from "../../../src/fake_data/demo_config";CODE
LOWtest/common/datetime/format_date_time.test.ts17import { demoConfig } from "../../../src/fake_data/demo_config";CODE
LOWtest/common/datetime/format_time.test.ts17import { demoConfig } from "../../../src/fake_data/demo_config";CODE
LOWtest/common/entity/compute_state_display.test.ts18import { demoConfig } from "../../../src/fake_data/demo_config";CODE
LOWtest/common/entity/value_parts.test.ts16import { demoConfig } from "../../../src/fake_data/demo_config";CODE
LOWtest/layouts/hass-tabs-subpage.test.ts3import { provideHass } from "../../src/fake_data/provide_hass";CODE
LOWtest/e2e/onboarding.spec.ts2import { demoConfig } from "../../src/fake_data/demo_config";CODE
LOWtest/e2e/app/src/onboarding.ts2import { demoConfig } from "../../../../src/fake_data/demo_config";CODE
LOWtest/e2e/app/src/onboarding.ts3import { demoPanels } from "../../../../src/fake_data/demo_panels";CODE
LOWtest/e2e/app/src/ha-test.ts4import type { MockHomeAssistant } from "../../../../src/fake_data/provide_hass";CODE
LOWtest/e2e/app/src/ha-test.ts6import { provideHass } from "../../../../src/fake_data/provide_hass";CODE
LOWtest/e2e/app/src/ha-test.ts45import { demoConfig } from "../../../../src/fake_data/demo_config";CODE
LOWtest/e2e/app/src/scenarios/index.ts19import type { MockHomeAssistant } from "../../../../../src/fake_data/provide_hass";CODE
LOWtest/data/demo-water-statistics.test.ts4import type { MockHomeAssistant } from "../../src/fake_data/provide_hass";CODE
LOWcast/src/receiver/demo/cast-demo-entities.ts1import type { EntityInput } from "../../../../src/fake_data/entities/types";CODE
LOWcast/src/receiver/layout/hc-demo.ts6import type { MockHomeAssistant } from "../../../../src/fake_data/provide_hass";CODE
LOWcast/src/receiver/layout/hc-demo.ts7import { provideHass } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/data/text.ts2Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc laoreet velit ut elit volutpat, eget ultrices odio laciniaCODE
LOWgallery/src/data/text.ts2Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc laoreet velit ut elit volutpat, eget ultrices odio laciniaCODE
LOWgallery/src/data/calendar.ts5import type { MockHomeAssistant } from "../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/misc/integration-card.ts11import { provideHass } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/misc/ha-markdown.ts44> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer dictum quis ante eu eleifend. Integer sed [consectetuCODE
LOWgallery/src/pages/misc/ha-markdown.ts44> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer dictum quis ante eu eleifend. Integer sed [consectetuCODE
LOWgallery/src/pages/misc/cloud-account.ts19import type { MockHomeAssistant } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/misc/cloud-account.ts20import { provideHass } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/misc/entity-state.ts15import { provideHass } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/more-info/water-heater.ts7import type { MockHomeAssistant } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/more-info/water-heater.ts8import { provideHass } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/more-info/input-text.ts6import type { MockHomeAssistant } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/more-info/input-text.ts7import { provideHass } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/more-info/climate.ts6import type { MockHomeAssistant } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/more-info/climate.ts7import { provideHass } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/more-info/lock.ts6import type { MockHomeAssistant } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/more-info/lock.ts7import { provideHass } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/more-info/calendar.ts9import type { MockHomeAssistant } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/more-info/calendar.ts10import { provideHass } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/more-info/input-number.ts6import type { MockHomeAssistant } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/more-info/input-number.ts7import { provideHass } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/more-info/media-player.ts6import type { MockHomeAssistant } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/more-info/media-player.ts7import { provideHass } from "../../../../src/fake_data/provide_hass";CODE
LOWgallery/src/pages/more-info/vacuum.ts6import type { MockHomeAssistant } from "../../../../src/fake_data/provide_hass";CODE
99 more matches not shown…
Hyper-Verbose Identifiers54 hits · 56 pts
SeverityFileLineSnippetContext
LOWtest/e2e/app/src/helpers.ts97export async function ensureAppSidebarPanelVisible(page: Page, panel: string) {CODE
LOWtest/e2e/gallery/helpers.ts50async function expectGalleryPageSelector(page: Page, selector: string) {CODE
LOWlanding-page/src/data/supervisor.ts91export async function getSupervisorResolutionInfo(): Promise<HassioResolution> {CODE
LOWbuild-scripts/gulp/download-translations.js50function convertBackendTranslations(data, _file) {CODE
LOW…c/resources/echarts/components/sankey/sankey-layout.ts171function processEdgeForPassThrough(CODE
LOW…c/resources/echarts/components/sankey/sankey-layout.ts513function sectionHasMultipleParents(CODE
LOW…c/resources/echarts/components/sankey/sankey-layout.ts694export function calculateSectionDimensions(CODE
LOW…c/resources/echarts/components/sankey/sankey-layout.ts900function sortEdgesByTargetPosition(CODE
LOW…c/resources/echarts/components/sankey/sankey-layout.ts921function generatePassThroughPoints(CODE
LOWsrc/panels/calendar/recurrence.ts200export function getMonthlyRepeatWeekdayFromRule(CODE
LOWsrc/panels/calendar/recurrence.ts217export function getMonthdayRepeatFromRule(CODE
LOW…nfig/tools/debug/ha-debug-viewport-environment-card.ts90function collectMediaFeatureMatches(): Record<string, boolean> {CODE
LOW…nfig/tools/debug/ha-debug-viewport-environment-card.ts137function collectViewportEnvironmentSnapshot(): ViewportEnvironmentSnapshot {CODE
LOW…tions/integration-panels/matter/matter-network-data.ts170export function createMatterNetworkChartData(CODE
LOW…ntegrations/integration-panels/zha/zha-network-data.ts25export function createZHANetworkChartData(CODE
LOWsrc/panels/config/common/suggest-metadata-ai.ts219export async function processMetadataSuggestion(CODE
LOW…velace/dashboards/pick-available-dashboard-url-path.ts4export function pickAvailableDashboardUrlPath(CODE
LOWsrc/panels/lovelace/strategies/get-strategy.ts380async function readDashboardCreateSuggestions(CODE
LOWsrc/panels/lovelace/strategies/get-strategy.ts392export async function loadDashboardStrategyWithCreateSuggestions(CODE
LOW…anels/lovelace/cards/energy/energy-solar-graph-data.ts56export function generateEnergySolarGraphData(CODE
LOW…elace/cards/energy/energy-devices-detail-graph-data.ts344export function generateEnergyDevicesDetailGraphData(CODE
LOW…nels/lovelace/cards/energy/power-sources-graph-data.ts126export function generatePowerSourcesGraphData(CODE
LOW…/panels/lovelace/cards/energy/energy-gas-graph-data.ts48export function generateEnergyGasGraphData(CODE
LOW…s/lovelace/cards/energy/common/energy-chart-options.ts102function createYAxisLabelFormatter(CODE
LOW…s/lovelace/cards/energy/common/energy-chart-options.ts553export function splitUntrackedConsumption(CODE
LOWsrc/panels/lovelace/common/has-changed.ts53function compareEntityDisplayEntry(CODE
LOWsrc/panels/lovelace/common/has-changed.ts89export function hasConfigOrEntitiesChanged(CODE
LOWsrc/panels/lovelace/common/validate-condition.ts236function checkStateNumericCondition(CODE
LOWsrc/panels/lovelace/common/validate-condition.ts281function checkViewColumnsCondition(CODE
LOWsrc/panels/lovelace/common/validate-condition.ts550export function extractConditionEntityIds(CODE
LOWsrc/panels/lovelace/common/validate-condition.ts639function validateLocationCondition(condition: LocationCondition) {CODE
LOW⚡src/panels/lovelace/common/validate-condition.ts667function validateAndCondition(condition: AndCondition) {CODE
LOW⚡src/panels/lovelace/common/validate-condition.ts675function validateOrCondition(condition: OrCondition) {CODE
LOW⚡src/panels/lovelace/common/validate-condition.ts679function validateViewColumnsCondition(condition: ViewColumnsCondition) {CODE
LOW⚡src/panels/lovelace/common/validate-condition.ts683function validateNumericStateCondition(condition: NumericStateCondition) {CODE
LOW⚡src/panels/lovelace/common/validate-condition.ts691export function validateConditionalConfig(CODE
LOW…ard-features/get-more-info-hint-card-feature-editor.ts3export async function getMoreInfoHintCardFeatureEditor(): Promise<LovelaceCardFeatureEditor> {CODE
LOW…panels/lovelace/views/sections-background-alignment.ts16export function computeSectionsBackgroundAlignment(CODE
LOW…-control/cover/ha-state-control-cover-tilt-position.ts25export function generateTiltSliderTrackBackgroundGradient() {CODE
LOW…/components/chart/state-history-chart-timeline-data.ts106export function downSampleTimelineSegments(CODE
LOW…/components/chart/state-history-chart-timeline-data.ts152export function generateStateHistoryChartTimelineData(CODE
LOWsrc/components/chart/timeline-color.ts23function computeTimelineStateColor(CODE
LOWsrc/components/chart/timeline-color.ts95function computeTimeLineGenericColor(CODE
LOWsrc/components/chart/state-history-chart-line-data.ts48export function generateStateHistoryChartLineData(CODE
LOWsrc/components/chart/axis-label.ts15export function getPeriodicAxisLabelConfig(CODE
LOWsrc/components/chart/statistics-chart-data.ts101export function generateStatisticsChartData(CODE
LOWsrc/components/chart/y-axis-fraction-digits.ts30export function computeYAxisFractionDigits(CODE
LOWsrc/components/chart/y-axis-fraction-digits.ts82export function createYAxisPrecisionBounds(options: {CODE
LOWsrc/common/condition/listeners.ts21function scheduleTimeBoundaryListener(CODE
LOWsrc/entrypoints/service-worker.ts279 function notificationEventCallback(eventType, event) {CODE
LOWsrc/data/valve.ts78export function computeValvePositionStateDisplay(CODE
LOWsrc/data/energy.ts65export function validateEnergyCollectionKey(key: string | undefined) {CODE
LOWsrc/data/fan.ts123export function computeFanSpeedStateDisplay(CODE
LOWsrc/data/cover.ts116export function computeCoverPositionStateDisplay(CODE
Decorative Section Separators11 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUMtest/e2e/helpers.ts6// ── Timeouts ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/e2e/helpers.ts19// ── Error filtering ─────────────────────────────────────────────────────────COMMENT
MEDIUMtest/e2e/app/src/smoke.ts15// ── Config dashboard links ───────────────────────────────────────────────────COMMENT
MEDIUMtest/e2e/app/src/smoke.ts44// ── More-info dialog views ───────────────────────────────────────────────────COMMENT
MEDIUMtest/e2e/app/src/smoke.ts89// ── Route smoke tests ────────────────────────────────────────────────────────COMMENT
MEDIUMtest/e2e/app/src/scenarios/index.ts32// ── Individual scenarios ───────────────────────────────────────────────────COMMENT
MEDIUMtest/e2e/app/src/scenarios/index.ts510// ── Registry ──────────────────────────────────────────────────────────────COMMENT
MEDIUM.github/workflows/e2e.yaml57 # ── Build the demo once and share it across test jobs via artifact ──────────COMMENT
MEDIUM.github/workflows/e2e.yaml88 # ── Build the e2e test app and share it via artifact ────────────────────────COMMENT
MEDIUM.github/workflows/e2e.yaml119 # ── Build the gallery and share it via artifact ─────────────────────────────COMMENT
MEDIUM.github/workflows/e2e.yaml150 # ── Run Playwright tests against Chromium ──────────────────────────────────COMMENT
Over-Commented Block25 hits · 25 pts
SeverityFileLineSnippetContext
LOWdemo/src/configs/teachingbirds/lovelace.ts241 {COMMENT
LOWdemo/src/configs/teachingbirds/lovelace.ts261 // },COMMENT
LOWdemo/src/configs/teachingbirds/lovelace.ts661 },COMMENT
LOWdemo/src/configs/teachingbirds/lovelace.ts741 // },COMMENT
LOWdemo/src/configs/teachingbirds/lovelace.ts761 // entity: "light.living_room_ceiling_light_level",COMMENT
LOWdemo/src/configs/arsaboo/lovelace.ts381 "font-family": "Helvetica",COMMENT
LOWdemo/src/configs/kernehed/lovelace.ts161 {COMMENT
LOWdemo/src/configs/kernehed/lovelace.ts181 // "sensor.fibaro_system_unknown_type0c02_id1003_temperature_2",COMMENT
LOW.github/labeler.yml1# Path rules for .github/workflows/labeler.yaml, which runs actions/labeler onCOMMENT
LOW.github/move.yml1# Configuration for move-issues - https://github.com/dessant/move-issuesCOMMENT
LOWbuild-scripts/gulp/licenses.js21// license files and we must pick the right one for the bundled code).COMMENT
LOWsrc/resources/polyfills/intl-pluralrules.ts1// Install the Intl.PluralRules polyfill together with its locale data.COMMENT
LOWsrc/resources/echarts/axis-proxy-patch.ts1// Patch ECharts AxisProxy to support a "boundaryFilter" filterMode.COMMENT
LOWsrc/panels/lovelace/cards/hui-picture-elements-card.ts21import { PictureElementsEditorPreviewController } from "./picture-elements/editor-preview-controller";COMMENT
LOWsrc/components/ha-code-editor.ts1181 completionFrom = pos;COMMENT
LOWsrc/components/ha-code-editor.ts1201 // PropertyName "light"COMMENT
LOWsrc/components/chart/y-axis-fraction-digits.ts1import { intervalScaleEnsureValidExtent } from "echarts/lib/scale/helper";COMMENT
LOWsrc/common/dom/fire_event.ts1// Polymer legacy event helpers used courtesy of the Polymer project.COMMENT
LOWsrc/common/string/is_timestamp.ts1// https://stackoverflow.com/a/14322189/1947205COMMENT
LOWsrc/common/string/is_hostname.ts1// RFC 1123 hostname label: 1-63 chars, alphanumeric, with hyphens allowedCOMMENT
LOWsrc/common/string/filter/filter.ts1/* eslint-disable no-console */COMMENT
LOWsrc/common/string/filter/char-code.ts1// MIT LicenseCOMMENT
LOWsrc/entrypoints/service-worker.ts21// eslint-disable-next-line @typescript-eslint/naming-conventionCOMMENT
LOWsrc/data/energy.ts1801 // Solar -> Battery_InCOMMENT
LOWsrc/data/scene.ts81 }COMMENT
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWcast/src/launcher/layout/hc-cast.ts169 // We first do a single refresh because we need to check if there is LLCOMMENT
LOWcast/src/receiver/layout/hc-main.ts302 // We first do a single refresh because we need to check if there is LLCOMMENT
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippetContext
LOW.github/ISSUE_TEMPLATE/bug_report.yml90 Provide the full name and don't forget to add the version!CODE
LOW.github/ISSUE_TEMPLATE/bug_report.yml97 Don't forget to add the version!CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…nels/lovelace/cards/energy/power-sources-graph-data.ts36function processData(CODE