This report summarizes scanner evidence for shy3130/tick-stock-panel. SynthScan examined 307,421 lines of code across 1115 source files, recording 6350 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 28.2 (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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 3964 finding(s).
Are imports declared and package/API names verified? 763 finding(s).
Are wrappers, guards, and repeated structures necessary? 5292 finding(s).
Which changes need focused human review? 6350 finding(s).
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.
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.
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.
The scanner identified 6350 distinct pattern matches across 17 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/src/extensions/runtime.tsx | 156 | export async function loadRuntimePageExtensions(opts: LoadRuntimeOptions = {}): Promise<void> { | CODE |
| LOW | frontend/src/extensions/registry.ts | 110 | export function finalizeFrontendExtensions(reservedPaths: ReadonlySet<string>) { | CODE |
| LOW | frontend/src/extensions/registry.ts | 163 | export function getFrontendExtensionRoutes() { | CODE |
| LOW | frontend/src/extensions/registry.ts | 168 | export function getFrontendExtensionNavigation() { | CODE |
| LOW | frontend/src/extensions/registry.ts | 181 | export function getFrontendExtensionLoadErrors() { | CODE |
| LOW | frontend/src/extensions/bootstrap.ts | 8 | export async function initializeFrontendExtensions() { | CODE |
| LOW | frontend/src/components/DimensionMembersDialog.tsx | 22 | export function dimensionKindForSourceField(sourceField: string): DimensionKind | null { | CODE |
| LOW | frontend/src/components/ListColumnCustomizerInner.tsx | 254 | export function ListColumnCustomizerInner({ | CODE |
| LOW | frontend/src/components/StockPreviewDialogContent.tsx | 92 | export function StockPreviewDialogContent({ symbol, name, onClose, triggerInfo, navList: navListSource, onNavigate }: Pr | CODE |
| LOW | frontend/src/components/Layout.realtime.test.tsx | 74 | async function toggleWithCachedPermission(cachedAllowed: boolean, currentAllowed: boolean) { | CODE |
| LOW | …ntend/src/components/DimensionMembersDialogContent.tsx | 70 | export function DimensionMembersDialogContent({ target, onClose, onStockClick }: Omit<Props, 'target'> & { target: Dimen | CODE |
| LOW | frontend/src/components/EChartsCandlestick.tsx | 1174 | function updateCompactPresentation() { | CODE |
| LOW | frontend/src/components/StockMultiDayIntradayChart.tsx | 22 | export function StockMultiDayIntradayChart({ | CODE |
| LOW | frontend/src/components/ExtDimensionAnalysis.tsx | 66 | function pickDefaultDimensionField(config: ExtDataConfig | undefined, fallbackFieldNames: string[]) { | CODE |
| LOW | …rc/components/screener/DefaultStrategyParamsDialog.tsx | 36 | export function DefaultStrategyParamsDialog({ show, onClose }: Props) { | CODE |
| LOW | frontend/src/lib/watchlist-group-colors.ts | 30 | export function resolveWatchlistGroupColor(color?: string | null): WatchlistGroupColorOption { | CODE |
| LOW | frontend/src/lib/kline.ts | 32 | export function klineDailyLatestQueryOptions(symbol: string) { | CODE |
| LOW | frontend/src/lib/kline.ts | 129 | export function klineMinuteRangeQueryOptions(symbol: string, days: number) { | CODE |
| LOW | frontend/src/lib/list-columns.ts | 400 | export function restoreColumnsFromBaseline( | CODE |
| LOW | frontend/src/lib/useFinancials.ts | 23 | export function financialMetricsQueryOptions(symbol?: string) { | CODE |
| LOW | frontend/src/lib/minuteBatchIncremental.ts | 110 | export async function fetchMinuteBatchIncremental( | CODE |
| LOW | frontend/src/lib/stock-external-link.ts | 17 | export function loadStockExternalTemplate(): string { | CODE |
| LOW | frontend/src/lib/stock-external-link.ts | 21 | export function saveStockExternalTemplate(tpl: string): void { | CODE |
| LOW | frontend/src/pages/settings/MenuSettings.tsx | 217 | export function SettingsMenuSettingsPanel() { | CODE |
| LOW | …end/src/pages/factors/GenerateFactorStrategyDialog.tsx | 47 | export function GenerateFactorStrategyDialog({ | CODE |
| LOW | backend/app/secrets_store.py | 132 | def get_custom_webhook_secret() -> str: | CODE |
| LOW | backend/app/secrets_store.py | 137 | def set_custom_webhook_secret(secret: str) -> str: | CODE |
| LOW | backend/app/market_time.py | 40 | def trading_minutes_elapsed_from_dt(dt: datetime) -> float: | CODE |
| LOW | backend/app/market_time.py | 70 | def trading_minutes_elapsed_from_ts(ts_ms: int | float | None) -> float: | CODE |
| LOW | backend/app/enriched_generation.py | 121 | def _exclusive_generation_lock(data_dir: Path, asset_type: str) -> Iterator[None]: | CODE |
| LOW | backend/app/enriched_generation.py | 191 | def _publication_claim_is_running(payload: dict[str, Any]) -> bool: | CODE |
| LOW | backend/app/enriched_generation.py | 210 | def _orphaned_publishing_claim(payload: dict[str, Any]) -> bool: | CODE |
| LOW | backend/app/enriched_generation.py | 277 | def recover_stale_publications( | CODE |
| LOW | backend/app/enriched_generation.py | 310 | def enriched_publication_incomplete( | CODE |
| LOW | backend/app/price_limits.py | 89 | def no_limit_window_margin_days(symbol: str) -> int: | CODE |
| LOW | backend/app/price_limits.py | 160 | def polars_is_risk_warning_name(name: pl.Expr) -> pl.Expr: | CODE |
| LOW | backend/app/price_limits.py | 200 | def write_numpy_price_limit_matrix( | CODE |
| LOW⚡ | backend/app/main.py | 725 | async def capability_denied_handler(request: Request, exc: CapabilityDenied) -> JSONResponse: | CODE |
| LOW⚡ | backend/app/main.py | 733 | async def daily_integrity_error_handler(request: Request, exc: DailyIntegrityError) -> JSONResponse: | CODE |
| LOW⚡ | backend/app/main.py | 738 | async def provider_request_error_handler(request: Request, exc: ProviderRequestError) -> JSONResponse: | CODE |
| LOW | backend/app/main.py | 373 | def _schedule_matrix_cache_prewarm() -> None: | CODE |
| LOW | backend/app/share_capital.py | 27 | def apply_historical_float_shares( | CODE |
| LOW | backend/app/desktop.py | 64 | def _ensure_data_dir_writable() -> None: | CODE |
| LOW⚡ | backend/app/indicators/pipeline.py | 98 | def _custom_prev_fields_today() -> set[str]: | CODE |
| LOW⚡ | backend/app/indicators/pipeline.py | 104 | def invalidate_custom_signals() -> None: | CODE |
| LOW | backend/app/indicators/pipeline.py | 74 | def _get_custom_signal_exprs_today() -> dict[str, pl.Expr]: | CODE |
| LOW | backend/app/indicators/pipeline.py | 629 | def _split_custom_exprs_by_limit_deps( | CODE |
| LOW | backend/app/indicators/pipeline.py | 646 | def _needed_references_limit_prices(needed: set[str]) -> bool: | CODE |
| LOW | backend/app/indicators/pipeline.py | 1357 | def attach_deviation_columns_today( | CODE |
| LOW | backend/app/indicators/pipeline.py | 1450 | def compute_enriched_history_window( | CODE |
| LOW | backend/app/indicators/pipeline.py | 2350 | def _compute_limit_signals_today(df: pl.DataFrame, instruments: pl.DataFrame) -> pl.DataFrame: | CODE |
| LOW | backend/app/factors/py_expr.py | 154 | def compile_python_expression(source: str) -> CompiledPyExpr: | CODE |
| LOW | backend/app/factors/py_expr.py | 211 | def compile_python_expression_cached(source: str) -> CompiledPyExpr: | CODE |
| LOW | backend/app/factors/ext_factors.py | 80 | def numeric_timeseries_ext_columns(data_dir: Path | None = None) -> frozenset[str]: | CODE |
| LOW | backend/app/extensions/registry.py | 42 | def register_notification_formatter( | CODE |
| LOW | backend/app/extensions/registry.py | 67 | def has_notification_formatters(self) -> bool: | CODE |
| LOW | backend/app/extensions/loader.py | 36 | def configure_backend_extensions( | CODE |
| LOW | backend/app/extensions/loader.py | 67 | def _validate_router_conflicts(app: FastAPI, registrar: BackendExtensionRegistrar) -> None: | CODE |
| LOW | backend/app/extensions/loader.py | 106 | def current_extension_context(*, data_dir, repository) -> ExtensionContext: | CODE |
| LOW | backend/app/backtest/worker.py | 139 | def _decode_walkforward_config(payload: dict[str, Any]): | CODE |
| 3592 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packaging/generate_icon_designs.py | 69 | # ── 方案 1: 渐变紫底 + 白色发光主体 (现代 App 风格) ────────────── | COMMENT |
| MEDIUM | packaging/generate_icon_designs.py | 120 | # ── 方案 2: 透明底 + 渐变紫发光主体 (优雅线条) ────────────────── | COMMENT |
| MEDIUM | packaging/generate_icon_designs.py | 160 | # ── 方案 3: 深色底 + 金紫上涨 K 线柱 (金融图表感) ──────────────── | COMMENT |
| MEDIUM | packaging/generate_icon_designs.py | 201 | # ── 方案 4: 渐变底 + K线被方括号"框选" (品牌强调) ──────────────── | COMMENT |
| MEDIUM | frontend/src/components/signals/ConditionEditor.tsx | 126 | // ── 字段选择器: 搜索 + 分组居中对话框 ─────────────────── | COMMENT |
| MEDIUM | frontend/src/components/signals/ConditionEditor.tsx | 245 | // ── 日期偏移控件: "最新" / "前N日" ─────────────────────── | COMMENT |
| MEDIUM | frontend/src/components/signals/ConditionEditor.tsx | 289 | // ── 右操作数: 字段(弹出) / 常量 切换 ───────────────────── | COMMENT |
| MEDIUM | frontend/src/lib/sponsor-discount.test.ts | 54 | // ── 忙闲时定价 ────────────────────────────────────────────── | COMMENT |
| MEDIUM | frontend/src/lib/api.ts | 4575 | // ── 策略守护 (发布后持续复验) ────────────────────────────── | COMMENT |
| MEDIUM | frontend/src/custom/monitor/extension.tsx | 339 | // ── 触发记录列表 ────────────────────────────────────── | COMMENT |
| MEDIUM | frontend/src/custom/monitor/extension.tsx | 706 | // ── 监控规则列表 ────────────────────────────────────── | COMMENT |
| MEDIUM | frontend/src/custom/monitor/extension.tsx | 1038 | // ── 规则编辑对话框 ──────────────────────────────────── | COMMENT |
| MEDIUM | frontend/src/custom/monitor/extension.tsx | 1077 | // ── 确认对话框 ──────────────────────────────────────── | COMMENT |
| MEDIUM | frontend/src/pages/Regime.tsx | 41 | // ── 时间范围 ────────────────────────────────────────────── | COMMENT |
| MEDIUM | frontend/src/pages/Regime.tsx | 79 | // ── EChart hook ─────────────────────────────────────────── | COMMENT |
| MEDIUM | frontend/src/pages/Regime.tsx | 142 | // ── 页内标题 ────────────────────────────────────────────── | COMMENT |
| MEDIUM | frontend/src/pages/Regime.tsx | 154 | // ── 主组件 ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | frontend/src/pages/Regime.tsx | 1171 | // ── 主线过滤设置面板 ────────────────────────────────────── | COMMENT |
| MEDIUM | frontend/src/pages/Regime.tsx | 1301 | // ── 自定义天数输入弹窗 ──────────────────────────────────── | COMMENT |
| MEDIUM | frontend/src/pages/Dev.tsx | 10 | // ── 分钟K探测 (迁移自 MinuteDataProbe) ───────────────── | COMMENT |
| MEDIUM | frontend/src/pages/Dev.tsx | 184 | // ── 演示数据生成 ────────────────────────────────────── | COMMENT |
| MEDIUM | frontend/src/pages/Dev.tsx | 319 | // ── 封单监控模拟触发 ────────────────────────────────── | COMMENT |
| MEDIUM | frontend/src/pages/Dev.tsx | 447 | // ── Dev 主页面 ──────────────────────────────────────── | COMMENT |
| MEDIUM | mcp-server/src/tsp_mcp_server/server.py | 61 | # ── read:market 行情 ────────────────────────────────── | COMMENT |
| MEDIUM | mcp-server/src/tsp_mcp_server/server.py | 86 | # ── read:analysis 策略/环境/告警 ─────────────────────── | COMMENT |
| MEDIUM | mcp-server/src/tsp_mcp_server/server.py | 111 | # ── read:ext / write:ext 扩展数据 ───────────────────── | COMMENT |
| MEDIUM | mcp-server/src/tsp_mcp_server/server.py | 136 | # ── run:backtest 回测 ───────────────────────────────── | COMMENT |
| MEDIUM | backend/app/config.py | 11 | # ── 运行环境检测 ────────────────────────────────────────── | COMMENT |
| MEDIUM | backend/app/definitions.py | 180 | # ── 统一目录与导入冒烟 (P4) ────────────────────────────── | COMMENT |
| MEDIUM | backend/app/price_limits.py | 47 | # ================================================================ | COMMENT |
| MEDIUM | backend/app/price_limits.py | 58 | # ================================================================ | COMMENT |
| MEDIUM | backend/app/main.py | 559 | # ================================================================ | COMMENT |
| MEDIUM | backend/app/main.py | 561 | # ================================================================ | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 129 | # ================================================================ | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 133 | # ================================================================ | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 135 | # ── 存储列 (parquet 持久化) ────────────────────────── | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 150 | # ── 基础指标 ───────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 155 | # ── 均线 MA ────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 161 | # ── 指数均线 EMA ───────────────────────────────────── | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 167 | # ── MACD ───────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 171 | # ── 布林带 BOLL ────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 174 | # ── KDJ ────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 178 | # ── ATR ────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 180 | # ── 量价 ───────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 184 | # ── 极值 ───────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 187 | # ── 动量 ───────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 193 | # ── 异动偏离 (运行时由 repository 附着, 不落盘) ──────── | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 197 | # ── 波动率 ─────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 199 | # ── RSI ────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 316 | # ================================================================ | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 318 | # ================================================================ | COMMENT |
| MEDIUM⚡ | backend/app/indicators/pipeline.py | 320 | # ── compute_indicators 的列依赖关系 (供 needed 裁剪时求闭包) ──────────── | COMMENT |
| MEDIUM | backend/app/indicators/pipeline.py | 49 | # ── 自定义信号缓存 ───────────────────────────────────── | COMMENT |
| MEDIUM | backend/app/indicators/pipeline.py | 1060 | # ================================================================ | COMMENT |
| MEDIUM | backend/app/indicators/pipeline.py | 1062 | # ================================================================ | COMMENT |
| MEDIUM | backend/app/indicators/pipeline.py | 1115 | # ================================================================ | COMMENT |
| MEDIUM | backend/app/indicators/pipeline.py | 1122 | # ================================================================ | COMMENT |
| MEDIUM | backend/app/indicators/pipeline.py | 1391 | # ================================================================ | COMMENT |
| MEDIUM | backend/app/indicators/pipeline.py | 1403 | # ================================================================ | COMMENT |
| MEDIUM | backend/app/indicators/pipeline.py | 2043 | # ================================================================ | COMMENT |
| 645 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packaging/generate_icon_designs.py | 10 | CODE | |
| LOW | packaging/generate_icon_designs.py | 13 | CODE | |
| LOW | mcp-server/smoke_test.py | 5 | CODE | |
| LOW | mcp-server/src/tsp_mcp_server/server.py | 10 | CODE | |
| LOW | backend/app/secrets_store.py | 8 | CODE | |
| LOW | backend/app/db_safe.py | 6 | CODE | |
| LOW | backend/app/config.py | 2 | CODE | |
| LOW | backend/app/definitions.py | 18 | CODE | |
| LOW | backend/app/parquet.py | 2 | CODE | |
| LOW | backend/app/watchdog.py | 14 | CODE | |
| LOW | backend/app/polars_guard.py | 16 | CODE | |
| LOW | backend/app/market_time.py | 7 | CODE | |
| LOW | backend/app/enriched_generation.py | 1 | CODE | |
| LOW | backend/app/price_limits.py | 3 | CODE | |
| LOW | backend/app/main.py | 2 | CODE | |
| LOW | backend/app/share_capital.py | 5 | CODE | |
| LOW | backend/app/desktop.py | 16 | CODE | |
| LOW | backend/app/plugins/tdxquant/provider.py | 30 | CODE | |
| LOW | backend/app/plugins/tdxquant/client.py | 9 | CODE | |
| LOW | backend/app/plugins/tdxquant/probe.py | 16 | CODE | |
| LOW | backend/app/plugins/fuyao/provider.py | 27 | CODE | |
| LOW | backend/app/plugins/fuyao/client.py | 10 | CODE | |
| LOW | backend/app/indicators/pipeline.py | 16 | CODE | |
| LOW | backend/app/indicators/levels.py | 13 | CODE | |
| LOW | backend/app/factors/store.py | 7 | CODE | |
| LOW | backend/app/factors/dsl.py | 15 | CODE | |
| LOW | backend/app/factors/registry.py | 15 | CODE | |
| LOW | backend/app/factors/materialize_cache.py | 20 | CODE | |
| LOW | backend/app/factors/py_expr.py | 18 | CODE | |
| LOW | backend/app/factors/ext_factors.py | 25 | CODE | |
| LOW | backend/app/extensions/registry.py | 2 | CODE | |
| LOW | backend/app/extensions/__init__.py | 1 | CODE | |
| LOW | backend/app/extensions/__init__.py | 1 | CODE | |
| LOW | backend/app/extensions/__init__.py | 1 | CODE | |
| LOW | backend/app/extensions/__init__.py | 1 | CODE | |
| LOW | backend/app/extensions/__init__.py | 7 | CODE | |
| LOW | backend/app/extensions/__init__.py | 7 | CODE | |
| LOW | backend/app/extensions/loader.py | 2 | CODE | |
| LOW | backend/app/extensions/contracts.py | 2 | CODE | |
| LOW | backend/app/backtest/worker.py | 2 | CODE | |
| LOW | backend/app/backtest/matrix.py | 2 | CODE | |
| LOW | backend/app/backtest/stats_v2.py | 13 | CODE | |
| LOW | backend/app/backtest/regime_alignment.py | 1 | CODE | |
| LOW | backend/app/backtest/guards.py | 7 | CODE | |
| LOW | backend/app/backtest/mining.py | 2 | CODE | |
| LOW | backend/app/backtest/fundamentals.py | 17 | CODE | |
| LOW | backend/app/backtest/guardian_runtime.py | 10 | CODE | |
| LOW | backend/app/backtest/position_sizing.py | 20 | CODE | |
| LOW | backend/app/backtest/walkforward.py | 9 | CODE | |
| LOW | backend/app/backtest/strategy.py | 5 | CODE | |
| LOW | backend/app/backtest/numba_runtime.py | 9 | CODE | |
| LOW | backend/app/backtest/mining_runtime.py | 2 | CODE | |
| LOW | backend/app/backtest/position_policies.py | 14 | CODE | |
| LOW | backend/app/backtest/engine.py | 5 | CODE | |
| LOW | backend/app/backtest/guardian.py | 8 | CODE | |
| LOW | backend/app/backtest/minute_replay.py | 12 | CODE | |
| LOW | backend/app/backtest/minute_trigger.py | 6 | CODE | |
| LOW | backend/app/backtest/factor.py | 5 | CODE | |
| LOW | backend/app/backtest/optimizer.py | 9 | CODE | |
| LOW | backend/app/backtest/candidates.py | 3 | CODE | |
| 612 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mcp-server/src/tsp_mcp_server/server.py | 50 | except Exception: # noqa: BLE001 | CODE |
| LOW | backend/app/secrets_store.py | 57 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | backend/app/definitions.py | 81 | except Exception as e: # noqa: BLE001 — 损坏隔离: 单文件失败只跳过告警 | CODE |
| LOW | backend/app/definitions.py | 91 | except Exception as e: # noqa: BLE001 — 同 load_all: 损坏文件返回 None 不抛 | CODE |
| LOW | backend/app/__init__.py | 25 | except Exception as e: | CODE |
| LOW | backend/app/__init__.py | 43 | except Exception: # noqa: BLE001 | CODE |
| LOW | backend/app/logfile.py | 116 | except Exception as e: # noqa: BLE001 | CODE |
| LOW⚡ | backend/app/main.py | 234 | except Exception as e: # noqa: BLE001 | CODE |
| LOW⚡ | backend/app/main.py | 242 | except Exception as e: # noqa: BLE001 | CODE |
| LOW⚡ | backend/app/main.py | 252 | except Exception as e: | CODE |
| LOW⚡ | backend/app/main.py | 280 | except Exception as e: # noqa: BLE001 | CODE |
| LOW⚡ | backend/app/main.py | 290 | except Exception as e: # noqa: BLE001 | CODE |
| LOW⚡ | backend/app/main.py | 299 | except Exception as e: # noqa: BLE001 | CODE |
| LOW⚡ | backend/app/main.py | 444 | except Exception as e: # noqa: BLE001 | CODE |
| LOW⚡ | backend/app/main.py | 451 | except Exception as e: # noqa: BLE001 | CODE |
| LOW⚡ | backend/app/main.py | 460 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | backend/app/main.py | 106 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | backend/app/main.py | 114 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | backend/app/main.py | 130 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | backend/app/main.py | 139 | except Exception as exc: # noqa: BLE001 | CODE |
| LOW | backend/app/main.py | 181 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | backend/app/main.py | 199 | except Exception as e: # noqa: BLE001 — 仅日志, 失败不影响启动 | CODE |
| LOW | backend/app/main.py | 265 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | backend/app/main.py | 334 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | backend/app/main.py | 366 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | backend/app/main.py | 410 | except Exception: # noqa: BLE001 | CODE |
| LOW | backend/app/share_capital.py | 23 | except Exception: | CODE |
| LOW | backend/app/desktop.py | 78 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | backend/app/desktop.py | 223 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | backend/app/desktop.py | 289 | except Exception: | CODE |
| LOW | backend/app/desktop.py | 316 | except Exception: | CODE |
| LOW | backend/app/desktop.py | 454 | except Exception: | CODE |
| LOW | backend/app/plugins/tdxquant/provider.py | 99 | except Exception: # noqa: BLE001 — find_spec 对损坏安装也会抛 | CODE |
| MEDIUM | backend/app/plugins/tdxquant/provider.py | 94 | def _module_available() -> bool: | CODE |
| LOW | backend/app/plugins/tdxquant/client.py | 176 | except Exception: # noqa: BLE001 — 就绪探测, 任何异常都重试 | CODE |
| LOW | backend/app/plugins/tdxquant/client.py | 204 | except Exception as exc: # noqa: BLE001 — 原生 ctypes 层异常类型不可枚举 | CODE |
| LOW | backend/app/plugins/tdxquant/client.py | 222 | except Exception as exc: # noqa: BLE001 — SDK 内部异常类型不可枚举 | CODE |
| LOW | backend/app/plugins/tdxquant/client.py | 246 | except Exception as exc: # noqa: BLE001 — SDK 内部异常类型不可枚举 | CODE |
| LOW | backend/app/plugins/tdxquant/client.py | 289 | except Exception as exc: # SDK 内部异常类型不可枚举 | CODE |
| LOW | backend/app/plugins/tdxquant/client.py | 308 | except Exception: # noqa: BLE001 — 转换失败按结构异常处理 | CODE |
| LOW | backend/app/plugins/tdxquant/probe.py | 58 | except Exception: # noqa: BLE001 | CODE |
| LOW | backend/app/plugins/tdxquant/probe.py | 91 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | backend/app/plugins/tdxquant/probe.py | 115 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | backend/app/plugins/tdxquant/probe.py | 120 | except Exception as exc: # noqa: BLE001 | CODE |
| LOW⚡ | backend/app/plugins/tdxquant/probe.py | 129 | except Exception: # noqa: BLE001 — 进度文件缺失/损坏按未知处理 | CODE |
| LOW | backend/app/plugins/fuyao/provider.py | 396 | except Exception: # 缓存损坏不致命, 换下一个/重拉 | CODE |
| LOW | backend/app/plugins/fuyao/provider.py | 610 | except Exception: | CODE |
| LOW | backend/app/plugins/fuyao/provider.py | 1145 | except Exception as e: # 缓存损坏等不致命: 回退逐标的接口 | CODE |
| LOW⚡ | backend/app/indicators/pipeline.py | 91 | except Exception as e: | CODE |
| LOW | backend/app/indicators/pipeline.py | 68 | except Exception as e: | CODE |
| LOW | backend/app/indicators/pipeline.py | 1219 | except Exception as exc: # noqa: BLE001 | CODE |
| LOW | backend/app/indicators/pipeline.py | 1421 | except Exception: | CODE |
| LOW | backend/app/indicators/pipeline.py | 1669 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | backend/app/indicators/pipeline.py | 1991 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | backend/app/indicators/pipeline.py | 2021 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | backend/app/indicators/levels.py | 590 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | backend/app/factors/store.py | 190 | except Exception as exc: | CODE |
| LOW | backend/app/factors/registry.py | 367 | except Exception: # noqa: BLE001 — 可选扩展同步失败记录 debug, 不影响注册表读取 | CODE |
| LOW | backend/app/factors/materialize_cache.py | 154 | except Exception as e: # noqa: BLE001 — 损坏缓存删除并回退现算 | CODE |
| LOW | backend/app/factors/py_expr.py | 186 | except Exception as e: # noqa: BLE001 — 用户表达式求值失败统一转为编译错误 | CODE |
| 590 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | backend/app/indicators/pipeline.py | 911 | # 无涨跌幅限制日 / 昨收缺失 → null (引用它的信号条件为 null, 下游按未命中处理)。 | COMMENT |
| HIGH | backend/app/indicators/pipeline.py | 2242 | # ---- 动量 3d (异动偏离 deviate_3d 用; 旧 live_agg 未带该状态时跳过, 偏离列自然置 null) ---- | COMMENT |
| HIGH | backend/app/indicators/pipeline.py | 2465 | # 无涨跌幅限制日 / 昨收与权威价均缺失 → null; 引用它的自定义信号 | COMMENT |
| HIGH | backend/app/indicators/pipeline.py | 732 | 无涨跌幅限制日为 null) | STRING |
| HIGH | backend/app/indicators/pipeline.py | 1158 | 无可用指数数据时返回 None (偏离列置 null, 不阻塞主流程)。 | STRING |
| HIGH | backend/app/indicators/pipeline.py | 1367 | 缺失动量的窗口 (如全量回退路径无 momentum_3d) 置 null, 不阻塞主流程。 | STRING |
| HIGH | backend/app/factors/dsl.py | 6 | 窗口纪律 (Polars 嵌套窗口会静默产出全 null, 必须在编译期杜绝): | STRING |
| HIGH | backend/app/factors/dsl.py | 666 | # 阶段二: 提取截面算子的含窗口子树为临时列 (Polars 嵌套窗口会静默全 null) | COMMENT |
| HIGH | backend/app/backtest/fundamentals.py | 6 | (公告多在盘后发布, 保守取 T+1 生效), 此前保持 null; | STRING |
| HIGH | backend/app/backtest/fundamentals.py | 9 | - 无财务数据的标的/日期一律为 null, 绝不填 0 (填 0 会污染截面排名, | STRING |
| HIGH | backend/app/backtest/fundamentals.py | 107 | # 公告当日取到「尚未生效」的新一期并被门控置 null, 打断上一期的前向填充, | COMMENT |
| HIGH | backend/app/backtest/mining_runtime.py | 399 | "mining factor panel requires non-null, unique symbol/date keys " | CODE |
| HIGH | backend/app/backtest/engine.py | 791 | # 按 asset_type 取维表: ETF 回测须用 ETF 维表, 否则名称 JOIN 失败(全 null)、 | COMMENT |
| HIGH | backend/app/data_providers/custom/mapper.py | 34 | # 全量扫描推断: 默认 100 行采样会把稀疏列(前 100 行全 null, 如仅银行股 | COMMENT |
| HIGH | backend/app/tickflow/repository.py | 2453 | if merged.equals(existing) and len(paths) <= 1: | CODE |
| HIGH | backend/app/tickflow/repository.py | 2649 | if not existing.is_empty() and existing.equals(merged): | CODE |
| HIGH | backend/app/api/factors.py | 164 | # 截面值全相同时 pl.corr 返回 NaN (非 null), 与 FactorBacktestService 同口径剔除 | COMMENT |
| HIGH | backend/app/api/watchlist.py | 492 | # 不在 enriched 缓存里的标的 (新股/冷门股/新用户未同步) 指标为 null, 前端渲染为 "—". | COMMENT |
| HIGH | backend/app/api/watchlist.py | 595 | # 旧 schema 迁移补的空串归一为 null, 前端只需判断一种「缺失」 | COMMENT |
| HIGH | backend/app/api/watchlist.py | 623 | # 装饰列失败不得影响自选主表; 两列必须存在 (值可为 null), 否则前端排序/筛选静默失效 | COMMENT |
| HIGH | backend/app/services/instrument_sync.py | 134 | "enriched 换手率/市值将为 null, 依赖它们的策略会筛不出标的" | CODE |
| HIGH | backend/app/services/ext_source_import.py | 48 | const name = String((icon as { displayName?: string } | null)?.displayName ?? '') | CODE |
| HIGH | backend/app/services/ext_source_import.py | 62 | createElement(MemoryRouter, null, createElement(r.component as never))), | CODE |
| HIGH | backend/app/services/regime_builder.py | 586 | concat 前给旧数据补缺失列(null), 让旧 parquet 首次重写时自动迁移到新 schema。 | STRING |
| HIGH | backend/app/services/regime_builder.py | 598 | # schema 对齐: 以 new_rows 的列名+顺序为权威, 旧数据补缺失列(null), | COMMENT |
| HIGH | backend/app/services/regime_builder.py | 600 | # 这样旧 parquet 首次重写时自动迁移到新 schema(新列在旧日期为 null)。 | COMMENT |
| HIGH | backend/app/services/market_phase.py | 12 | - promo 晋级率: 昨日连板池今日继续封板的比例 (池 <10 家记 null) | STRING |
| HIGH | backend/app/services/market_phase.py | 176 | (promo_rate 允许 null)。处理: promo 前向填充 → 各驱动 EMA 平滑 → | STRING |
| HIGH | backend/app/services/quote_service.py | 1077 | # 修复: API 在非交易时段可能返回 open/high/low=0 或 null, | COMMENT |
| HIGH | backend/app/services/quote_service.py | 1136 | # prev_close=0 → inf (非合法 JSON), prev_close=null → null; 用 when 守护 | COMMENT |
| HIGH | backend/app/services/kline_sync.py | 579 | # 除权事件明细列 (可选, 缺省为 null): 等差显示投影 (原始价 - Σ未来每股分红, | COMMENT |
| HIGH | backend/app/services/kline_sync.py | 581 | # 存量 all.parquet 只有规范三列, 合并用 how="diagonal" 自动补 null; | COMMENT |
| HIGH | backend/app/services/kline_sync.py | 825 | # trade_time 等字符串路径: 先解析成 Datetime (失败置 null), 再做时段分类 | COMMENT |
| HIGH | backend/app/services/kline_sync.py | 656 | how="diagonal" 兼容存量三列 schema (旧行明细自动为 null); | STRING |
| HIGH | backend/app/services/kline_sync.py | 661 | (dividend/prev_close 等补 null) 不改变复权价格 → 不计入变化列表, | STRING |
| HIGH | backend/app/services/depth_service.py | 386 | # polars 会按首行推断类型, 后续遇到不一致 (bool vs null) 报 | COMMENT |
| HIGH | backend/app/strategy/intraday_features.py | 9 | - null 语义: 窗口不足、基准为零、缺昨收、开盘未满 30 分钟 → 特征为 null, | STRING |
| HIGH | backend/app/strategy/intraday_features.py | 64 | OHLC 缺失时相关特征降级为 null)。可包含多个交易日, 特征按日分组。 | STRING |
| HIGH | backend/app/strategy/intraday_features.py | 69 | 返回: symbol/datetime + INTRADAY_FEATURES 全部特征列(Float64, 可 null)。 | STRING |
| HIGH | backend/app/strategy/custom_signals.py | 686 | 上升沿: 条件 false→true 的那根 bar 为 true; 首根 bar(前值为 null)不触发; | STRING |
| HIGH | backend/tests/test_minute_partition_merge.py | 73 | assert stored.equals(stored.sort("symbol", "datetime")) | CODE |
| HIGH | backend/tests/test_fundamental_factors.py | 66 | # 无财务数据标的全 null, 绝不填 0 | COMMENT |
| HIGH | backend/tests/test_fundamental_factors.py | 148 | null), 两条路径给出不同的因子值。 | STRING |
| HIGH⚡ | backend/tests/test_assistant_codex.py | 150 | '{"content":null,"tool_calls":[]}', | CODE |
| HIGH⚡ | backend/tests/test_assistant_codex.py | 152 | '{"content":"答复","tool_calls":[null]}', | CODE |
| HIGH | backend/tests/test_adj_factor_event_columns.py | 5 | - 存量 all.parquet 只有规范三列 → diagonal 合并自动补 null, 读取方零改动; | STRING |
| HIGH | backend/tests/test_custom_batch_isolation.py | 47 | # 非法字符串维持 strict=False 宽松行为 (null, 不抛异常) | COMMENT |
| HIGH⚡ | backend/tests/test_factor_py_expr.py | 77 | assert via_t2.equals(reference) | STRING |
| HIGH | backend/tests/test_ui_prefs.py | 65 | """null = 删除该项, 回前端默认 (而不是存一个 null)。""" | STRING |
| HIGH⚡ | backend/tests/test_minute_adjust.py | 97 | assert out_index.equals(df) | CODE |
| HIGH⚡ | backend/tests/test_minute_adjust.py | 100 | assert out_no_factors.equals(df) | CODE |
| HIGH⚡ | backend/tests/test_minute_adjust.py | 104 | assert out_no_events.equals(df) | CODE |
| HIGH⚡ | backend/tests/test_factor_dsl.py | 122 | # A 组: [null, null, 10, 11, 12, 13]; B 组: [null, null, 100, 90, 80, 70] | COMMENT |
| HIGH⚡ | backend/tests/test_factor_dsl.py | 129 | # A 组 2 日窗: [null, 10.5, 11.5, 12.5, 13.5, 14.5] | COMMENT |
| HIGH⚡ | backend/tests/test_factor_dsl.py | 146 | # Polars 嵌套窗口会静默全 null; 编译器必须走两阶段 (临时列 + 截面) | COMMENT |
| HIGH⚡ | backend/tests/test_factor_dsl.py | 190 | # A 组全为负 → null; B 组 100-15=85 → log 正常 | COMMENT |
| HIGH⚡ | backend/tests/test_factor_dsl.py | 197 | # 常数序列或完全单调: 只验证产出为有限值或 null, 无串组异常即可 | COMMENT |
| HIGH | backend/tests/test_intraday_signals.py | 93 | # 上午 8 根: idx5 起 3/3 窗口成立(idx5,6,7 非 null); 下午 4 根全部 null(窗口不足) | COMMENT |
| HIGH⚡ | backend/tests/test_intraday_signals.py | 313 | assert out is df or out.equals(df) | CODE |
| HIGH | backend/tests/test_instrument_sync_share_fields.py | 4 | 股本与交易规则字段。旧实现整表覆盖后 float_shares/total_shares 变 null, | STRING |
| 28 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | backend/app/__init__.py | 43 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/logfile.py | 90 | except OSError: | CODE |
| HIGH | backend/app/desktop.py | 348 | except (urllib.error.URLError, ConnectionError, OSError): | CODE |
| HIGH | backend/app/plugins/tdxquant/client.py | 176 | except Exception: # noqa: BLE001 — 就绪探测, 任何异常都重试 | CODE |
| HIGH | backend/app/plugins/tdxquant/client.py | 308 | except Exception: # noqa: BLE001 — 转换失败按结构异常处理 | CODE |
| HIGH | backend/app/plugins/tdxquant/probe.py | 58 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/plugins/tdxquant/probe.py | 91 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/indicators/pipeline.py | 1446 | except OSError: | CODE |
| HIGH | backend/app/backtest/matrix.py | 1328 | except (OSError, ValueError): | CODE |
| HIGH | backend/app/backtest/matrix.py | 1334 | except (OSError, ValueError): | CODE |
| HIGH | backend/app/backtest/strategy.py | 911 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/backtest/engine.py | 1247 | except Exception: | CODE |
| HIGH | backend/app/backtest/engine.py | 1693 | except Exception: | CODE |
| HIGH | backend/app/backtest/engine.py | 1465 | except (TypeError, ValueError): | CODE |
| HIGH | backend/app/backtest/engine.py | 2246 | except Exception: | CODE |
| HIGH | backend/app/backtest/engine.py | 2672 | except (TypeError, ValueError): | CODE |
| HIGH | backend/app/backtest/engine.py | 3068 | except Exception: | CODE |
| HIGH | backend/app/backtest/factor.py | 1068 | except ValueError: | CODE |
| HIGH | backend/app/data_providers/custom/loader.py | 471 | except (TypeError, ValueError): | CODE |
| HIGH | backend/app/data_providers/custom/loader.py | 476 | except (TypeError, ValueError): | CODE |
| HIGH | backend/app/tickflow/repository.py | 1139 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/tickflow/repository.py | 2134 | except duckdb.CatalogException: | CODE |
| HIGH | backend/app/api/alerts.py | 45 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/api/screener.py | 1028 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/api/screener.py | 1279 | except Exception: | CODE |
| HIGH | backend/app/api/ext_data.py | 1698 | except Exception: | CODE |
| HIGH | backend/app/api/ext_data.py | 1728 | except Exception: | CODE |
| HIGH | backend/app/api/settings.py | 1344 | except Exception: | CODE |
| HIGH | backend/app/api/settings.py | 2230 | except Exception: | CODE |
| HIGH | backend/app/api/kline.py | 1377 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/api/kline.py | 1644 | except Exception: | CODE |
| HIGH | backend/app/api/kline.py | 1458 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/api/monitor_rules.py | 169 | except Exception: | CODE |
| HIGH | backend/app/api/monitor_rules.py | 658 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/api/monitor_rules.py | 711 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/api/monitor_rules.py | 270 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/api/monitor_rules.py | 725 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/api/monitor_rules.py | 732 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/api/data.py | 289 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/api/data.py | 324 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/api/data.py | 363 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/api/data.py | 428 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/api/data.py | 599 | except PermissionError: | CODE |
| HIGH | backend/app/api/data.py | 666 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/api/data.py | 61 | except JobCancelledError: | CODE |
| HIGH | backend/app/api/data.py | 652 | except OSError: | CODE |
| HIGH | backend/app/api/data.py | 577 | except OSError: | CODE |
| HIGH | backend/app/api/data.py | 596 | except OSError: | CODE |
| HIGH | backend/app/api/routes.py | 57 | except OSError: | CODE |
| HIGH | backend/app/jobs/daily_pipeline.py | 1165 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/custom/assistant/tools.py | 1047 | except Exception: | CODE |
| HIGH | backend/app/services/strategy_run_queue.py | 59 | except (FileNotFoundError, ValueError, OSError): | CODE |
| HIGH | backend/app/services/wecom_bot_service.py | 172 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/services/wecom_bot_service.py | 176 | except Exception: # noqa: BLE001 | CODE |
| HIGH | backend/app/services/wecom_bot_service.py | 261 | except asyncio.TimeoutError: | CODE |
| HIGH | backend/app/services/api_gateway.py | 107 | except (IndexError, ValueError): | CODE |
| HIGH | backend/app/services/ai_provider.py | 971 | except OSError: | CODE |
| HIGH | backend/app/services/ai_provider.py | 1183 | except OSError: | CODE |
| HIGH | backend/app/services/ai_provider.py | 1424 | except OSError: | CODE |
| HIGH | backend/app/services/ai_provider.py | 1145 | except OSError: | CODE |
| 33 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/app/enriched_generation.py | 417 | CODE | |
| LOW | backend/app/main.py | 699 | CODE | |
| LOW | backend/app/desktop.py | 325 | CODE | |
| LOW | backend/app/plugins/tdxquant/provider.py | 720 | CODE | |
| LOW | backend/app/plugins/tdxquant/provider.py | 777 | CODE | |
| LOW | backend/app/plugins/tdxquant/provider.py | 886 | CODE | |
| LOW | backend/app/plugins/tdxquant/client.py | 279 | CODE | |
| LOW | backend/app/plugins/tdxquant/probe.py | 41 | CODE | |
| LOW | backend/app/plugins/tdxquant/probe.py | 142 | CODE | |
| LOW | backend/app/plugins/fuyao/provider.py | 493 | CODE | |
| LOW | backend/app/plugins/fuyao/provider.py | 706 | CODE | |
| LOW | backend/app/plugins/fuyao/provider.py | 948 | CODE | |
| LOW | backend/app/plugins/fuyao/provider.py | 983 | CODE | |
| LOW | backend/app/plugins/fuyao/provider.py | 1056 | CODE | |
| LOW | backend/app/plugins/fuyao/provider.py | 1163 | CODE | |
| LOW | backend/app/plugins/fuyao/client.py | 279 | CODE | |
| LOW | backend/app/indicators/pipeline.py | 1152 | CODE | |
| LOW | backend/app/indicators/pipeline.py | 1450 | CODE | |
| LOW | backend/app/indicators/pipeline.py | 1620 | CODE | |
| LOW | backend/app/indicators/levels.py | 408 | CODE | |
| LOW | backend/app/indicators/levels.py | 515 | CODE | |
| LOW | backend/app/factors/store.py | 170 | CODE | |
| LOW | backend/app/factors/dsl.py | 305 | CODE | |
| LOW | backend/app/factors/py_expr.py | 91 | CODE | |
| LOW | backend/app/factors/py_expr.py | 118 | CODE | |
| LOW | backend/app/factors/ext_factors.py | 284 | CODE | |
| LOW | backend/app/extensions/loader.py | 67 | CODE | |
| LOW | backend/app/backtest/worker.py | 155 | CODE | |
| LOW | backend/app/backtest/worker.py | 199 | CODE | |
| LOW | backend/app/backtest/worker.py | 320 | CODE | |
| LOW | backend/app/backtest/matrix.py | 1609 | CODE | |
| LOW | backend/app/backtest/matrix.py | 1840 | CODE | |
| LOW | backend/app/backtest/matrix.py | 2344 | CODE | |
| LOW | backend/app/backtest/matrix.py | 3053 | CODE | |
| LOW | backend/app/backtest/matrix.py | 3196 | CODE | |
| LOW | backend/app/backtest/matrix.py | 3797 | CODE | |
| LOW | backend/app/backtest/mining.py | 624 | CODE | |
| LOW | backend/app/backtest/mining.py | 838 | CODE | |
| LOW | backend/app/backtest/guardian_runtime.py | 516 | CODE | |
| LOW | backend/app/backtest/walkforward.py | 195 | CODE | |
| LOW | backend/app/backtest/strategy.py | 865 | CODE | |
| LOW | backend/app/backtest/strategy.py | 1297 | CODE | |
| LOW | backend/app/backtest/strategy.py | 2643 | CODE | |
| LOW | backend/app/backtest/strategy.py | 2929 | CODE | |
| LOW | backend/app/backtest/strategy.py | 3027 | CODE | |
| LOW | backend/app/backtest/position_policies.py | 67 | CODE | |
| LOW | backend/app/backtest/engine.py | 810 | CODE | |
| LOW | backend/app/backtest/engine.py | 986 | CODE | |
| LOW | backend/app/backtest/engine.py | 1357 | CODE | |
| LOW | backend/app/backtest/engine.py | 1974 | CODE | |
| LOW | backend/app/backtest/engine.py | 2513 | CODE | |
| LOW | backend/app/backtest/engine.py | 1155 | CODE | |
| LOW | backend/app/backtest/engine.py | 1438 | CODE | |
| LOW | backend/app/backtest/engine.py | 2646 | CODE | |
| LOW | backend/app/backtest/engine.py | 2845 | CODE | |
| LOW | backend/app/backtest/engine.py | 2872 | CODE | |
| LOW | backend/app/backtest/minute_replay.py | 125 | CODE | |
| LOW | backend/app/backtest/minute_trigger.py | 22 | CODE | |
| LOW | backend/app/backtest/optimizer.py | 34 | CODE | |
| LOW | backend/app/backtest/optimizer.py | 211 | CODE | |
| 197 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/app/secrets_store.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/definitions.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/watchdog.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/logfile.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/main.py | 77 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/desktop.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/desktop.py | 195 | def _setup_logging() -> None: | CODE |
| LOW | backend/app/plugins/tdxquant/provider.py | 50 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/plugins/tdxquant/provider.py | 941 | __all__ = [ | CODE |
| LOW | backend/app/plugins/tdxquant/client.py | 24 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/plugins/tdxquant/probe.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/plugins/fuyao/provider.py | 48 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/plugins/fuyao/client.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/indicators/pipeline.py | 46 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | backend/app/indicators/levels.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/factors/store.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/factors/materialize_cache.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/factors/py_expr.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/factors/ext_factors.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/extensions/__init__.py | 9 | __all__ = [ | CODE |
| LOW | backend/app/extensions/loader.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/backtest/worker.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/backtest/matrix.py | 61 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/backtest/mining.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/backtest/fundamentals.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/backtest/guardian_runtime.py | 40 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/backtest/position_sizing.py | 29 | __all__ = [ | CODE |
| LOW | backend/app/backtest/walkforward.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/backtest/strategy.py | 69 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/backtest/position_policies.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/backtest/engine.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/backtest/factor.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/backtest/optimizer.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/backtest/robust_optimizer.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/data_providers/tickflow_provider.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/data_providers/__init__.py | 8 | __all__ = ["AssetType", "MarketDataProvider", "ProviderCapabilities", "get_provider"] | CODE |
| LOW | backend/app/data_providers/custom/provider.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/data_providers/custom/__init__.py | 24 | __all__ = [ | CODE |
| LOW | backend/app/data_providers/custom/loader.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/data_providers/custom/managed.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/tickflow/pools.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/tickflow/client.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/tickflow/policy.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/tickflow/repository.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/api/auth.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/api/market_recap.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/api/financials.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/api/screener.py | 24 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/api/screener.py | 415 | def _update_cache_strategy(data_dir, as_of: str, strategy_id: str, safe_data: dict) -> None: | CODE |
| LOW | backend/app/api/paper.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/api/strategy.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | backend/app/api/ext_data.py | 38 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/api/watchlist.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/api/guardian.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/api/pipeline.py | 23 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/api/stock_analysis.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/api/config_backup.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/api/settings.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/api/indices.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/app/api/kline.py | 27 | logger = logging.getLogger(__name__) | CODE |
| 110 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | backend/tests/test_index_minute_history.py | 52 | request.app.state.repo.get_index_daily.assert_not_called() | CODE |
| CRITICAL⚡ | backend/tests/test_index_minute_history.py | 72 | request.app.state.repo.get_index_daily.assert_not_called() | CODE |
| CRITICAL⚡ | backend/tests/test_index_minute_history.py | 90 | request.app.state.repo.get_index_daily.assert_not_called() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …tend/src/components/screener/StrategyBuilderDialog.tsx | 322 | // Step 1: 生成 | COMMENT |
| LOW | …tend/src/components/screener/StrategyBuilderDialog.tsx | 370 | // Step 2: AI 修改 | COMMENT |
| LOW | backend/app/tickflow/repository.py | 736 | # Step 1: 直接读最新日期的分区文件 (仅 14 列) | COMMENT |
| LOW | backend/app/tickflow/repository.py | 753 | # Step 2: 读近 300 天 14 列数据 → compute → filter(latest) → 缓存 | COMMENT |
| LOW | backend/app/api/kline.py | 876 | # Step 1: 本地优先 — 一次 scan 读全部 symbol 当日分钟K (股票 / ETF 分钟数据分开存储) | COMMENT |
| LOW | backend/app/api/kline.py | 959 | # Step 2: 补拉并落盘 (取到即写, upsert 语义; 下一轮命中本地, 请求量骤降)。 | COMMENT |
| LOW⚡ | backend/app/jobs/daily_pipeline.py | 800 | # Step 3: 刷新视图 | COMMENT |
| LOW | backend/app/jobs/daily_pipeline.py | 207 | # Step 0: 先同步个股维表, 再解析标的池 — 确保标的池基于最新 instruments | COMMENT |
| LOW | backend/app/jobs/daily_pipeline.py | 223 | # Step 1: 日 K 同步 | COMMENT |
| LOW | backend/app/jobs/daily_pipeline.py | 447 | # Step 2: 计算 enriched | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …tend/src/components/screener/StrategyBuilderDialog.tsx | 322 | // Step 1: 生成 | COMMENT |
| LOW | …tend/src/components/screener/StrategyBuilderDialog.tsx | 370 | // Step 2: AI 修改 | COMMENT |
| LOW | backend/app/tickflow/repository.py | 736 | # Step 1: 直接读最新日期的分区文件 (仅 14 列) | COMMENT |
| LOW | backend/app/tickflow/repository.py | 753 | # Step 2: 读近 300 天 14 列数据 → compute → filter(latest) → 缓存 | COMMENT |
| LOW | backend/app/api/kline.py | 876 | # Step 1: 本地优先 — 一次 scan 读全部 symbol 当日分钟K (股票 / ETF 分钟数据分开存储) | COMMENT |
| LOW | backend/app/api/kline.py | 959 | # Step 2: 补拉并落盘 (取到即写, upsert 语义; 下一轮命中本地, 请求量骤降)。 | COMMENT |
| LOW⚡ | backend/app/jobs/daily_pipeline.py | 800 | # Step 3: 刷新视图 | COMMENT |
| LOW | backend/app/jobs/daily_pipeline.py | 207 | # Step 0: 先同步个股维表, 再解析标的池 — 确保标的池基于最新 instruments | COMMENT |
| LOW | backend/app/jobs/daily_pipeline.py | 223 | # Step 1: 日 K 同步 | COMMENT |
| LOW | backend/app/jobs/daily_pipeline.py | 447 | # Step 2: 计算 enriched | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | backend/tests/test_strategy_publish.py | 0 | def filter(df: pl.dataframe, params: dict) -> pl.expr: return pl.lit(true) | STRING |
| HIGH | backend/tests/test_strategy_code_save.py | 0 | def filter(df: pl.dataframe, params: dict) -> pl.expr: return pl.lit(true) | STRING |
| HIGH | backend/tests/test_strategy_build_stream.py | 0 | def filter(df: pl.dataframe, params: dict) -> pl.expr: return pl.lit(true) | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dev.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tiers.yaml | 1 | # tickflow-stock-panel —— TickFlow 推荐套餐能力对照表(§5.2) | COMMENT |
| LOW | frontend/src/lib/queryKeys.ts | 41 | watchlistEnriched: (ext?: string) => ['watchlist-enriched', ext ?? ''] as const, | COMMENT |
| LOW | frontend/src/lib/queryKeys.ts | 181 | // 板块切换的指数叠加线 (核心四只, 默认上证) — 分钟取当日, 日K取昨收基准 | COMMENT |
| LOW | frontend/src/lib/minuteBatchIncremental.ts | 1 | import type { QueryClient } from '@tanstack/react-query' | COMMENT |
| LOW | frontend/src/pages/Watchlist.tsx | 941 | COMMENT | |
| LOW | backend/pyproject.toml | 81 | packages = ["app"] | COMMENT |
| LOW | backend/app/price_limits.py | 41 | and trade_date < MAIN_BOARD_ST_LIMIT_CHANGE_DATE | COMMENT |
| LOW | backend/app/services/webhook_adapter.py | 221 | COMMENT | |
| LOW | backend/app/services/ext_data.py | 181 | # (缺口感知: 本地缺多少源补多少; 无本地数据时不带参数=全量, 见 ext_pull)。 | COMMENT |
| LOW | backend/app/services/pipeline_jobs.py | 561 | # 重任务互斥执行槽 — 防「僵尸并发」, 带所有权 token | COMMENT |
| LOW | backend/app/strategy/monitor.py | 341 | self._strategy_signal_state: dict[tuple[str, str, str, str], tuple[str, set[str]]] = {} | COMMENT |
| LOW | .github/workflows/release.yml | 1 | name: 桌面客户端发布 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/app/indicators/pipeline.py | 1276 | CODE | |
| LOW | backend/app/backtest/matrix.py | 680 | CODE | |
| LOW | backend/app/backtest/mining.py | 624 | CODE | |
| LOW | backend/app/api/sector_rotation.py | 15 | CODE | |
| LOW | backend/app/api/ext_data.py | 614 | CODE | |
| LOW | backend/app/api/backtest.py | 561 | CODE | |
| LOW | backend/app/api/backtest.py | 581 | CODE | |
| LOW | backend/app/api/backtest.py | 978 | CODE | |
| LOW | backend/app/api/backtest.py | 1179 | CODE | |
| LOW | backend/app/custom/assistant/chat_service.py | 146 | CODE | |
| LOW | backend/app/services/market_mainline.py | 251 | CODE | |
| LOW | backend/app/services/sector_rotation.py | 340 | CODE | |
| LOW | backend/app/services/minute_adjust.py | 162 | CODE | |
| LOW | backend/app/services/ext_data.py | 119 | CODE | |
| LOW | backend/app/services/kline_sync.py | 1135 | CODE | |
| LOW | backend/app/strategy/intraday_signals.py | 178 | CODE | |
| LOW | backend/tests/test_watchlist_enriched_join.py | 24 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | backend/app/backtest/optimizer.py | 30 | # 持仓天数/交易数) 交易少时可被运气推到极端, 不得作排名主目标 —— 见 docs/robust-optimizer-plan.md。 | COMMENT |
| MEDIUM | backend/app/services/mining_candidates.py | 244 | # 基线分数取稳健分 (v3 起为 score 列), 与守护复验的 robust 分同口径; | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | backend/tests/test_strategy_build_stream.py | 177 | CODE | |
| MEDIUM | backend/tests/test_custom_assistant.py | 259 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | backend/tests/test_resource_bundle.py | 440 | helper = 'import polars as pl\ndef helper(df):\n return df.filter(pl.col("uf_shared") > 0)\n' | STRING |
| LOW | backend/tests/test_resource_bundle.py | 312 | write(env[0] / "strategies/custom/_helper.py", 'import polars as pl\ndef helper(df):\n return df\n') | STRING |
| LOW | backend/tests/test_config_backup.py | 27 | DEP_STRATEGY_HELPER = "def helper(x):\n return x\n" | STRING |