⛷ A quiet, local-first Markdown writing app for Mac, to help you write great sentences.
This report summarizes scanner evidence for tw93/MiaoYan, a Swift project with 8,719 GitHub stars. SynthScan examined 61,816 lines of code across 268 source files, recording 50 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 1.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.
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? 43 finding(s).
Are imports declared and package/API names verified? 6 finding(s).
Are wrappers, guards, and repeated structures necessary? 19 finding(s).
Which changes need focused human review? 50 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 50 distinct pattern matches across 10 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 | Resources/DownView.bundle/js/common.js | 57 | function getSelectionAndSendMessage() { | CODE |
| LOW | scripts/test_source_gates.py | 56 | def test_the_editor_key_monitor_passes_every_key_on_but_return_from_the_list(self): | CODE |
| LOW | scripts/test_source_gates.py | 75 | def test_the_preview_is_sized_against_the_preview_pane_first(self): | CODE |
| LOW | scripts/test_source_gates.py | 94 | def test_single_mode_is_cleared_before_launch_loads_the_library_and_on_quit(self): | CODE |
| LOW | scripts/test_review_gates.py | 42 | def test_a_complete_row_passes(self): | CODE |
| LOW | scripts/test_review_gates.py | 45 | def test_each_broken_cell_is_named(self): | CODE |
| LOW⚡ | scripts/test_review_gates.py | 62 | def test_a_commit_that_does_not_resolve_fails_in_a_full_clone(self): | CODE |
| LOW⚡ | scripts/test_review_gates.py | 69 | def test_rows_outside_the_incidents_section_are_not_read(self): | CODE |
| LOW⚡ | scripts/test_review_gates.py | 74 | def test_every_catcher_kind_is_found_in_the_code(self): | CODE |
| LOW | scripts/test_review_gates.py | 90 | def test_the_real_ledger_passes(self): | CODE |
| LOW | scripts/test_review_gates.py | 101 | def test_a_change_takes_every_tier_it_reaches_highest_first(self): | CODE |
| LOW | scripts/test_review_gates.py | 107 | def test_the_sensitive_surfaces_are_never_default(self): | CODE |
| LOW | scripts/test_review_gates.py | 123 | def test_docs_tests_and_ui_need_only_the_default_checks(self): | CODE |
| LOW | scripts/test_review_gates.py | 132 | def test_every_tier_pattern_matches_a_tracked_file(self): | CODE |
| LOW⚡ | scripts/test_review_gates.py | 162 | def test_only_rows_reported_in_the_last_seven_days_count(self): | CODE |
| LOW⚡ | scripts/test_review_gates.py | 168 | def test_it_trips_at_five_rows_and_names_the_layers_by_count(self): | CODE |
| LOW⚡ | scripts/test_review_gates.py | 175 | def test_a_missing_ledger_never_trips_it(self): | CODE |
| LOW⚡ | scripts/test_review_gates.py | 178 | def test_it_is_printed_only_beside_a_tier(self): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …ources/DownView.bundle/ppt/plugin/markdown/markdown.js | 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define | CODE |
| CRITICAL | Resources/DownView.bundle/ppt/plugin/notes/notes.js | 1 | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | MiaoYanTests/ClipboardManagerUTF16Tests.swift | 1 | import XCTest | COMMENT |
| LOW | Business/FontConfiguration.swift | 1 | import Cocoa | COMMENT |
| LOW | Business/Note.swift | 601 | /// Use from app/window lifecycle hooks (terminate, will-close, resign-key) | COMMENT |
| LOW | Business/FontCatalog.swift | 1 | import AppKit | COMMENT |
| LOW | Business/FontCatalog.swift | 41 | /// hanzi are enough to separate a CJK face from a Latin-only one without | COMMENT |
| LOW | Business/FontCatalog.swift | 101 | COMMENT | |
| LOW | Packages/MiaoYanCore/Sources/MiaoYanCore/NoteText.swift | 1 | import Foundation | COMMENT |
| LOW | Controllers/MainWindowController.swift | 241 | // | COMMENT |
| LOW | Views/MPreviewView.swift | 21 | /// True between `load()` calling `loadFileURL` and `webView(_:didFinish:)` | COMMENT |
| LOW | Views/NotesTableView.swift | 521 | /// Two highlight flashes in two frames. | COMMENT |
| LOW | Views/EditTextView.swift | 501 | // Snapshot the outgoing note so its last-known-good state is in version | COMMENT |
| LOW | Helpers/PdfExportController.swift | 1 | import AppKit | COMMENT |
| LOW | Helpers/PdfExportController.swift | 181 | // The selectors we probe must match the markers DiagramHandler | COMMENT |
| LOW | Helpers/Theme.swift | 41 | /// Shared layout metrics for the list / sidebar surfaces. Seeded with the | COMMENT |
| LOW | Helpers/Theme.swift | 61 | /// Note-list snap point when dragging toward the closed state. | COMMENT |
| LOW | Helpers/Diagnostics.swift | 1 | import Foundation | COMMENT |
| LOW | Helpers/UIDelay.swift | 1 | import Foundation | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | …rces/DownView.bundle/ppt/plugin/highlight/highlight.js | 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define | CODE |
| MEDIUM⚡ | …rces/DownView.bundle/ppt/plugin/highlight/highlight.js | 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define | CODE |
| MEDIUM⚡ | …rces/DownView.bundle/ppt/plugin/highlight/highlight.js | 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | Controllers/ViewController.swift | 930 | // Gap = 8 (Increased from 6 as requested) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/install.sh | 6 | # Usage: | COMMENT |
| LOW | scripts/add_tests_target.rb | 7 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Resources/DownView.bundle/js/highlight.min.js | 311 | }),ae=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code", | CODE |
| LOW⚡ | …rces/DownView.bundle/ppt/plugin/highlight/highlight.js | 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/test_source_gates.py | 21 | CODE | |
| LOW | scripts/check_incidents.py | 85 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/risk_tier.py | 13 | CODE | |
| LOW | scripts/check_incidents.py | 15 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Controllers/AppDelegate.swift | 203 | print("Error in \(context): \(error)") | CODE |