AI Slop Code Risk Monitor

ghostfolio/ghostfolio

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

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

0.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for ghostfolio/ghostfolio, a TypeScript project with 9,626 GitHub stars. SynthScan examined 197,857 lines of code across 1452 source files, recording 81 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 0.8 (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.8
Adjusted Signal
0.8
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
9.6K
Stars
TypeScript
Language
197.9K
Lines of Code
1.5K
Files
81
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 1.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.0/100 · LOW

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

Agent Over-Engineering Ratio 1.3/100 · LOW

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

PR Review Velocity Impact 3.6/100 · LOW

Which changes need focused human review? 81 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 7HIGH 0MEDIUM 1LOW 73

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

Hallucination Indicators7 hits · 70 pts
SeverityFileLineSnippetContext
CRITICAL…t/assistant-list-item/assistant-list-item.component.ts61 internalRoutes.adminControl.subRoutes.marketData.subRoutes.update.routerLink(CODE
CRITICALapps/api/src/app/endpoints/sitemap/sitemap.service.ts160 id: publicRoutes.resources.subRoutes.personalFinanceTools.path.match(CODE
CRITICALapps/api/src/app/endpoints/sitemap/sitemap.service.ts167 id: publicRoutes.resources.subRoutes.personalFinanceTools.subRoutes.product.path.match(CODE
CRITICAL…pp/components/admin-market-data/admin-market-data.html311 internalRoutes.adminControl.subRoutes.marketData.subRoutes.update.routerLink(CODE
CRITICAL…nents/admin-market-data/admin-market-data.component.ts322 internalRoutes.adminControl.subRoutes.marketData.subRoutes.update.routerLink(CODE
CRITICAL…ile-dialog-host/asset-profile-dialog-host.component.ts129 internalRoutes.adminControl.subRoutes.marketData.subRoutes.update.routerLink(CODE
CRITICAL…/transfer-balance/transfer-balance-dialog.component.ts76 this.transferBalanceForm.controls.fromAccount.valueChanges.subscribe(CODE
Hyper-Verbose Identifiers51 hits · 51 pts
SeverityFileLineSnippetContext
LOW.agents/skills/nestjs-best-practices/AGENTS.md1126function testPaymentGatewayContract(CODE
LOW.agents/skills/nestjs-best-practices/AGENTS.md3489function createMockExecutionContext(request: Partial<Request>): ExecutionContext {CODE
LOW…nestjs-best-practices/rules/test-use-testing-module.md142function createMockExecutionContext(request: Partial<Request>): ExecutionContext {CODE
LOW…/nestjs-best-practices/rules/di-liskov-substitution.md181function testPaymentGatewayContract(CODE
LOWlibs/ui/src/lib/chart/chart.color-scheme.ts4export function onPrefersColorSchemeChange(callback: () => void) {CODE
LOWlibs/ui/src/lib/chart/chart.registry.ts22export function registerChartConfiguration() {CODE
LOW…ib/portfolio-filter-form/portfolio-filter-form.util.ts24export function getFiltersFromPortfolioFilterFormValue(CODE
LOW…ib/portfolio-filter-form/portfolio-filter-form.util.ts73export function getPortfolioFilterFormValue(CODE
LOWlibs/common/src/lib/helper.ts246export function canUseCustomAssetProfileSymbol({CODE
LOWlibs/common/src/lib/helper.ts268export function convertValuesToPercentagesOfTotal({CODE
LOWlibs/common/src/lib/helper.ts365export function getAssetProfileIdentifier({CODE
LOWlibs/common/src/lib/helper.ts388export function getCountryCodeFromCurrency(aCurrency = '') {CODE
LOWlibs/common/src/lib/helper.ts464export function getDateWithTimeFormatString(aLocale?: string) {CODE
LOWlibs/common/src/lib/helper.ts535export function getStartOfUtcDateOfTomorrow() {CODE
LOWlibs/common/src/lib/helper.ts539export function getStartOfUtcDateOfYesterday() {CODE
LOWlibs/common/src/lib/helper.ts687export function isFearAndGreedIndexSymbol(aSymbol: string) {CODE
LOWlibs/common/src/lib/helper.ts732export function isUserSettingOfAuthenticatedUser(aKey: string) {CODE
LOWlibs/common/src/lib/helper.ts738export function isValidAccountBalanceDate(aDate: string) {CODE
LOWlibs/common/src/lib/helper.ts755export function isValidCustomAssetProfileSymbol(aSymbol: string) {CODE
LOWlibs/common/src/lib/calculation-helper.ts18export function getAnnualizedPerformancePercent({CODE
LOWlibs/common/src/lib/chart-helper.ts162export function getTooltipPositionerMapTop(CODE
LOWlibs/common/src/lib/chart-helper.ts270export function transformTickToAbbreviation(value: number) {CODE
LOWlibs/common/src/lib/scopes.ts80export function canGrantRestrictedWriteAccess({ type }: { type: AccessType }) {CODE
LOWlibs/common/src/lib/scopes.ts87export function canGrantUnrestrictedReadAccess({ type }: { type: AccessType }) {CODE
LOWlibs/common/src/lib/scopes.ts156export function getScopesOfUnrestrictedImpersonation(): string[] {CODE
LOWapps/api/src/app/app.module.spec.ts223function getRoutesWithoutAuthentication(controller: Type) {CODE
LOWapps/api/src/app/endpoints/mcp/mcp.controller.spec.ts138async function getWithAssetPerformanceInBaseCurrency(CODE
LOWapps/api/src/app/endpoints/ai/ai.helper.ts30export function getMediaTypeOfActivityFile({CODE
LOWapps/api/src/app/portfolio/portfolio.service.spec.ts1237 function createPortfolioCalculator() {CODE
LOW…ortfolio/calculator/portfolio-calculator-test-utils.ts53export async function getPerformanceByDateRange({CODE
LOW…ortfolio/calculator/portfolio-calculator-test-utils.ts84export function loadActivitiesFromExportFile(fileName: string): {CODE
LOW…ps/api/src/middlewares/mcp-authorization.middleware.ts31export function createMcpAuthorizationMiddleware({CODE
LOW…ps/api/src/middlewares/language-redirect.middleware.ts7export function languageRedirectMiddleware(CODE
LOWapps/api/src/helper/redis.helper.ts3export function getRedisConnectionOptions(CODE
LOWapps/api/src/helper/bearer-token.helper.ts29export function getActiveImpersonationOfBearerToken(CODE
LOWapps/api/src/helper/bearer-token.helper.ts57export function hasLimitsOfBasicSubscriptionOfBearerToken(request: unknown) {CODE
LOWapps/api/src/helper/data-source.helper.spec.ts12function createConfigurationService({CODE
LOWapps/api/src/helper/account.helper.ts28export function getWhereAccountBalanceNotInFuture(): Prisma.AccountBalanceWhereInput {CODE
LOWapps/api/src/helper/object.helper.ts5export function hasNotDefinedValuesInObject(aObject: Object): boolean {CODE
LOWapps/api/src/helper/portfolio.helper.ts5export function convertValuesToPercentages({CODE
LOWapps/api/src/helper/redis.helper.spec.ts9function createConfigurationService(overrides: Partial<Environment> = {}) {CODE
LOWapps/api/src/helper/language.helper.ts8export function getLanguageCodeFromHeader(CODE
LOWapps/api/src/helper/data-source.helper.ts51function getUnmaskedGhostfolioDataSource({CODE
LOWapps/api/src/helper/data-source.helper.ts87export function getMaskedGhostfolioDataSource({CODE
LOWapps/api/src/helper/data-source.helper.ts111export function isDataSourceEncodedInResponse(dataSource: DataSource) {CODE
LOWapps/api/src/helper/data-source.helper.ts124export function transformDataSourceInRequest({CODE
LOWapps/api/src/helper/data-source.helper.ts146export function transformDataSourceInResponse({CODE
LOW…rvices/portfolio-table/portfolio-table.service.spec.ts204function createPortfolioTableService({CODE
LOWapps/api/src/services/import/import.service.spec.ts569function getAssetProfileIdentifiers(activities: Activity[]) {CODE
LOW…c/services/data-provider/data-provider.service.spec.ts19function createDataProviderService(dataProviderMapping?: {CODE
LOWapps/api/src/guards/has-permission.guard.spec.ts20 function createMockExecutionContext(permissions: string[]) {CODE
Structural Annotation Overuse8 hits · 18 pts
SeverityFileLineSnippetContext
LOW⚡.agents/skills/nestjs-best-practices/AGENTS.md3739 // Step 1: Add new columnCOMMENT
LOW⚡.agents/skills/nestjs-best-practices/AGENTS.md3744 // Step 2: Copy dataCOMMENT
LOW⚡.agents/skills/nestjs-best-practices/AGENTS.md3749 // Step 3: Add NOT NULL constraintCOMMENT
LOW⚡.agents/skills/nestjs-best-practices/AGENTS.md3754 // Step 4: Drop old column (after verifying app works)COMMENT
LOW⚡…kills/nestjs-best-practices/rules/db-use-migrations.md100 // Step 1: Add new columnCOMMENT
LOW⚡…kills/nestjs-best-practices/rules/db-use-migrations.md105 // Step 2: Copy dataCOMMENT
LOW⚡…kills/nestjs-best-practices/rules/db-use-migrations.md110 // Step 3: Add NOT NULL constraintCOMMENT
LOW⚡…kills/nestjs-best-practices/rules/db-use-migrations.md115 // Step 4: Drop old column (after verifying app works)COMMENT
Fake / Example Data12 hits · 12 pts
SeverityFileLineSnippetContext
LOW.agents/skills/nestjs-best-practices/AGENTS.md3118 .send({ email: 'test@test.com', password: 'password' });CODE
LOW.agents/skills/nestjs-best-practices/AGENTS.md3135 expect(res.body.email).toBe('test@test.com');CODE
LOW.agents/skills/nestjs-best-practices/AGENTS.md3202 const user = await service.create({ email: 'test@test.com' });CODE
LOW.agents/skills/nestjs-best-practices/AGENTS.md3434 repo.findOne.mockResolvedValue({ id: '1', email: 'test@test.com' });CODE
LOW.agents/skills/nestjs-best-practices/AGENTS.md3437 service.create({ name: 'Test', email: 'test@test.com' }),CODE
LOW…nestjs-best-practices/rules/test-use-testing-module.md87 repo.findOne.mockResolvedValue({ id: '1', email: 'test@test.com' });CODE
LOW…nestjs-best-practices/rules/test-use-testing-module.md90 service.create({ name: 'Test', email: 'test@test.com' }),CODE
LOW…js-best-practices/rules/test-mock-external-services.md32 const user = await service.create({ email: 'test@test.com' });CODE
LOW…ills/nestjs-best-practices/rules/test-e2e-supertest.md124 .send({ email: 'test@test.com', password: 'password' });CODE
LOW…ills/nestjs-best-practices/rules/test-e2e-supertest.md141 expect(res.body.email).toBe('test@test.com');CODE
LOWlibs/ui/src/lib/assistant/assistant.html17 [placeholder]="placeholder"CODE
LOW…pp/components/admin-market-data/admin-market-data.html7 [placeholder]="placeholder"CODE
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM.agents/skills/nestjs-best-practices/AGENTS.md28 - 1.5 [Use Event-Driven Architecture for Decoupling](#15-use-event-driven-architecture-for-decoupling)CODE
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWapps/client/src/styles/bootstrap.scss121@import 'bootstrap/scss/type';COMMENT
LOWapps/client/src/styles/bootstrap.scss141// @import 'bootstrap/scss/close';COMMENT