Typora Plugin. Feature Enhancement Tool | Typora 插件,功能增强工具
This report summarizes scanner evidence for obgnail/typora_plugin, a JavaScript project with 4,706 GitHub stars. SynthScan examined 81,197 lines of code across 286 source files, recording 85 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 2.2 (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? 62 finding(s).
Are imports declared and package/API names verified? 17 finding(s).
Are wrappers, guards, and repeated structures necessary? 8 finding(s).
Which changes need focused human review? 85 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 85 distinct pattern matches across 9 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 |
|---|---|---|---|---|
| CRITICAL | develop/test/updater.test.js | 269 | const copiedPaths = updater.fs.copy.mock.calls.map(c => c.arguments[0]) | CODE |
| CRITICAL | develop/test/updater.test.js | 282 | const copiedPaths = updater.fs.copy.mock.calls.map(c => c.arguments[0]) | CODE |
| CRITICAL | develop/test/updater.test.js | 293 | const copiedPaths = updater.fs.copy.mock.calls.map(c => c.arguments[0]) | CODE |
| CRITICAL | develop/test/updater.test.js | 304 | const copiedPaths = updater.fs.copy.mock.calls.map(c => c.arguments[0]) | CODE |
| CRITICAL | develop/test/updater.test.js | 329 | const copiedPaths = updater.fs.copy.mock.calls.map(c => c.arguments[0]) | CODE |
| CRITICAL | plugin/markdownlint/markdownlint.min.js | 11 | `};(0,Ce.addErrorContext)(e,t,i.trim(),void 0,void 0,void 0,o)}var Wr={names:["MD031","blanks-around-fences"],descriptio | CODE |
| CRITICAL | plugin/html_editor/index.js | 751 | count: this.entities.source.value.length.toLocaleString(), | CODE |
| CRITICAL | plugin/global/core/lib/micromark.js | 3 | `)}function z(){let x=o[o.length-1],E=x[x.length-1],j=E?E.charCodeAt(E.length-1):null;j===10||j===13||j===null||v()}func | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | plugin/bin/install.c | 1 | #include <stdio.h> | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 1 | # --------------------------------------------------------------------- | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 61 | COMMENT | |
| LOW | plugin/global/settings/settings.default.toml | 101 | # end : Rightmost of the tab bar | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 141 | COMMENT | |
| LOW | plugin/global/settings/settings.default.toml | 241 | HOTKEY = "" | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 261 | # Predefined command list | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 381 | # detailAll : Show details for all errors | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 401 | COMMENT | |
| LOW | plugin/global/settings/settings.default.toml | 561 | # strong : Bold | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 721 | FIX_SKIPPED_LEVEL_HEADERS = true | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 801 | zoom = true, | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 961 | # Subscript rendering font | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 1001 | # Example: image = "Figure {i:cjk}" -> Figure 一, Figure 二 | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 1021 | # lg : Lower Greek (α, β, γ...) | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 1261 | HINT_DURATION = 1000 | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 1281 | # Alt-Left : goLineStart | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 1461 | # =========== [ UI & Toolbar ] =========== | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 1521 | # Extra thumbnail preload count | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 1541 | # location : Open image path | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 1561 | # decVSkew : Decrease vertical skew | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 1741 | [text_stylize] | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 1761 | # blur : Blur | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 1781 | # Default Format Brush defined via CSS expressions (e.g., "color:#FF0000; text-decoration:line-through;") | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 1921 | BUTTON_BOX_SHADOW_ON_HOVER = "0 2px 10px 3px rgba(0, 0, 0, .15)" | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 1961 | COMMENT | |
| LOW | plugin/global/settings/settings.default.toml | 1981 | # x1 | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 2021 | # adaptive: Prioritizes 8-way recognition, but automatically falls back to 4-way for complex trajectories to improve a | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 2061 | # Regex defining the trigger text (Must implement the named capture group 'kw') | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 2081 | # earliest_hit : Earliest match sorting | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 2241 | # Add a ⌘ icon to action options to visually distinguish them | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 2501 | [templater] | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 2521 | # {{ randomInt(min, max) }} Random integer within range | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 2901 | HOTKEY = "" | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 3041 | # png: (Requires Canvas renderer) | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 3061 | DEFAULT_FENCE_HEIGHT = "300px" | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 3081 | // @resize false | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 3141 | DEFAULT_FENCE_BACKGROUND_COLOR = "transparent" | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 3301 | # right | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 3361 | # Default Fence Background Color | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 3421 | # =========== [ Template ] =========== | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 3481 | // ==BlockCodeConfig== | COMMENT |
| LOW | plugin/global/settings/settings.default.toml | 3501 | COMMENT | |
| LOW | plugin/global/settings/settings.default.toml | 3581 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | develop/test/search_multi_qualifiers.test.js | 239 | // ─── VALIDATORS (via qualifier.validate) ───────────────────────────────────── | COMMENT |
| MEDIUM | develop/test/search_multi_qualifiers.test.js | 428 | // ─── CASTERS (via qualifier.cast) ──────────────────────────────────────────── | COMMENT |
| MEDIUM | develop/test/search_multi_qualifiers.test.js | 606 | // ─── MATCHERS (via qualifier.match) ────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | plugin/global/settings/settings.default.toml | 1 | # --------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | plugin/global/settings/settings.default.toml | 3 | # --------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | plugin/global/settings/settings.default.toml | 8 | # --------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | develop/test/fast-form.test.js | 1591 | // Step 1: Modify the data when box is active | COMMENT |
| LOW⚡ | develop/test/fast-form.test.js | 1596 | // Step 2: Toggle the dependency to hide the box | COMMENT |
| LOW⚡ | develop/test/fast-form.test.js | 1603 | // Step 3: Toggle the dependency back to show the box | COMMENT |
| LOW | plugin/global/core/components/fast-form/watchers.js | 342 | // Step 1: Build the dependency graph. | COMMENT |
| LOW⚡ | plugin/global/core/components/fast-form/watchers.js | 359 | // Step 2: Initialize a queue with all nodes that have an in-degree of 0 (no dependencies). | COMMENT |
| LOW⚡ | plugin/global/core/components/fast-form/watchers.js | 363 | // Step 3: Process the queue using Kahn's algorithm. | COMMENT |
| LOW | plugin/global/core/components/fast-form/watchers.js | 375 | // Step 4: Execute watchers. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | develop/test/fast-form.test.js | 1591 | // Step 1: Modify the data when box is active | COMMENT |
| LOW⚡ | develop/test/fast-form.test.js | 1596 | // Step 2: Toggle the dependency to hide the box | COMMENT |
| LOW⚡ | develop/test/fast-form.test.js | 1603 | // Step 3: Toggle the dependency back to show the box | COMMENT |
| LOW | plugin/global/core/components/fast-form/watchers.js | 342 | // Step 1: Build the dependency graph. | COMMENT |
| LOW⚡ | plugin/global/core/components/fast-form/watchers.js | 359 | // Step 2: Initialize a queue with all nodes that have an in-degree of 0 (no dependencies). | COMMENT |
| LOW⚡ | plugin/global/core/components/fast-form/watchers.js | 363 | // Step 3: Process the queue using Kahn's algorithm. | COMMENT |
| LOW | plugin/global/core/components/fast-form/watchers.js | 375 | // Step 4: Execute watchers. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | develop/test/schemas.test.js | 97 | handleKey(field.placeholder, ctx("placeholder")) | CODE |
| LOW | develop/test/schemas.test.js | 501 | if (["title", "label", "explain", "placeholder", "tooltip", "hintHeader", "hintDetail", "divider", "unit", "op | CODE |
| LOW | develop/test/fast-form.test.js | 1254 | assert.strictEqual(ff.getData("fullName"), "John Doe") | CODE |
| LOW | develop/test/fast-form.test.js | 1260 | assert.strictEqual(ff.getData("fullName"), "Jane Doe", "Computed value should reflect changes") | CODE |
| LOW | plugin/calendar/toastui-calendar.min.js | 4 | In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A=Object.hasOwnProperty,s=Objec | CODE |
| LOW | plugin/datatables/resource/js/dataTables.min.js | 57 | b.sFilterInput+'"/>',h=d.sSearch;h=h.match(/_INPUT_/)?h.replace("_INPUT_",g):h+g;b=k("<div/>",{id:f.f?null:c+"_filter"," | CODE |
| LOW | plugin/global/core/components/fast-dropdown/index.js | 31 | return ["value", "placeholder", "no-label", "icon"] | CODE |
| LOW | plugin/global/core/components/fast-dropdown/index.js | 40 | } else if (name === "placeholder") { | CODE |
| LOW | plugin/markmap/resource/markmap.min.js | 141 | `,1;if(Ka>1e5&&Ka>V.index*3)throw new Error("potential infinite loop, way more iterations than matches");return he+=Q,Q. | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | plugin/global/settings/settings.default.toml | 4 | # This file contains the default settings for Typora-Plugin | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | develop/package-lock.json | 5006 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | plugin/global/core/components/fast-form/controls.js | 54 | function registerNumericalDefaultRules({ field, form }) { | CODE |
| LOW | plugin/global/core/components/fast-form/controls.js | 70 | function registerItemLengthLimitRule({ field, form }) { | CODE |