AI Slop Code Risk Monitor

jbiaojerry/ebook-treasure-chest

SlopCodeMonitor badge for jbiaojerry/ebook-treasure-chest Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
2.0 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for jbiaojerry/ebook-treasure-chest. SynthScan examined 38,956 lines of code across 1021 source files, recording 51 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 2.0 (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.

2.0
Adjusted Signal
2.0
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
39.0K
Lines of Code
1.0K
Files
51
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 2.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 4.0/100 · LOW

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

Agent Over-Engineering Ratio 4.3/100 · LOW

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

PR Review Velocity Impact 9.3/100 · LOW

Which changes need focused human review? 51 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 5MEDIUM 0LOW 46

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 51 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.

Cross-Language Confusion4 hits · 25 pts
SeverityFileLineSnippetContext
HIGHscripts/generate_search_demo_gif.py86 print("❌ 请先安装 playwright: pip install playwright && playwright install chromium")CODE
HIGHscripts/generate_search_demo_gif.py118 return window.books && window.books.length > 0;CODE
HIGH⚡scripts/generate_index.py341 if (totalBooksEl && stats.total_books) {{CODE
HIGH⚡scripts/generate_index.py344 if (totalCatsEl && stats.categories_count) {{CODE
Excessive Try-Catch Wrapping21 hits · 22 pts
SeverityFileLineSnippetContext
LOWscripts/generate_search_demo_gif.py78 except Exception as e:CODE
LOWscripts/generate_search_demo_gif.py167 except Exception as e:CODE
LOWscripts/generate_search_demo_gif.py203 except Exception as e:CODE
LOWscripts/generate_index.py22 except Exception as e:CODE
LOWscripts/generate_index.py38 except Exception as e:CODE
LOW⚡scripts/generate_index.py349 except Exception as e:CODE
LOWscripts/parse_md_to_json.py91 except Exception as e:CODE
LOWscripts/sync/sync_all_books.py147 except Exception as e:CODE
LOWscripts/sync/sync_all_books.py168 except Exception as e:CODE
LOWscripts/sync/sync_all_books.py187 except Exception as e:CODE
LOWscripts/sync/backup_md.py55 except Exception as e:CODE
LOWscripts/sync/parse_book_detail_enhanced.py136 except Exception as e:CODE
LOWscripts/sync/parse_book_detail_enhanced.py265 except Exception as e:CODE
LOWscripts/sync/parse_book_detail_enhanced.py385 except Exception as e:CODE
LOWscripts/sync/test_batch_sync.py176 except Exception as e:CODE
LOWscripts/sync/incremental_sync.py77 except Exception as e:CODE
LOWscripts/sync/incremental_sync.py98 except Exception as e:CODE
LOWscripts/sync/incremental_sync.py117 except Exception as e:CODE
LOWscripts/sync/update_readme_hot_categories.py34 except Exception as e:CODE
LOWscripts/sync/find_max_book_id.py82 except Exception as e:CODE
LOWscripts/sync/find_max_book_id.py215 except Exception as e:CODE
Deep Nesting10 hits · 10 pts
SeverityFileLineSnippetContext
LOWscripts/generate_index.py119CODE
LOWscripts/generate_index.py184CODE
LOWscripts/sync/sync_all_books.py21CODE
LOWscripts/sync/parse_book_detail_enhanced.py26CODE
LOWscripts/sync/parse_book_detail_enhanced.py156CODE
LOWscripts/sync/test_batch_sync.py181CODE
LOWscripts/sync/incremental_sync.py24CODE
LOWscripts/sync/update_readme_hot_categories.py17CODE
LOWscripts/sync/find_max_book_id.py34CODE
LOWscripts/sync/find_max_book_id.py159CODE
Hyper-Verbose Identifiers8 hits · 8 pts
SeverityFileLineSnippetContext
LOWscripts/parse_md_to_json.py18def extract_category_from_file(file_path):CODE
LOWscripts/parse_md_to_json.py25def extract_category_from_content(content):CODE
LOWscripts/sync/parse_book_detail_enhanced.py156def parse_book_detail_enhanced(url: str) -> Dict:CODE
LOWscripts/sync/test_batch_sync.py271def generate_hot_categories_index(books_by_tag: Dict[str, List[Dict]], output_dir: Path) -> Path:CODE
LOWscripts/sync/update_readme_hot_categories.py61def generate_hot_categories_section(categories: dict) -> str:CODE
LOWscripts/sync/find_max_book_id.py34def find_max_book_id_from_homepage() -> Optional[int]:CODE
LOWscripts/sync/find_max_book_id.py87def find_max_book_id_by_binary_search(start: int = 1, end: int = 100000) -> Optional[int]:CODE
LOWscripts/sync/find_max_book_id.py159def find_max_book_id_from_latest_books(max_pages: int = 10) -> Optional[int]:CODE
Unused Imports7 hits · 7 pts
SeverityFileLineSnippetContext
LOWscripts/generate_search_demo_gif.py8CODE
LOWscripts/generate_search_demo_gif.py12CODE
LOWscripts/generate_search_demo_gif.py25CODE
LOWscripts/generate_search_demo_gif.py31CODE
LOWscripts/sync/backup_md.py10CODE
LOWscripts/sync/parse_book_detail_enhanced.py13CODE
LOWscripts/sync/update_readme_hot_categories.py10CODE
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHscripts/sync/parse_book_detail_enhanced.py265except Exception as e:CODE