Public report — office-ai-agent, published 8 Aug 2026. Concrete security findings (CVE IDs, secret matches, dependency versions) are hidden in this version; ask the repo owner for the full report.
Watchdog 08-08-2026 @ 00:13 UTC Public
Code Health Audit

It235/office-Ai-Agent

34% Weak
CriticalWeakAdequateStrongExemplary
middle

— · 4 projects · weakest lens: Readiness (13%)

Grounded in facts. Every number here is computed, not narrated — reproducible, tool-backed, and traceable to a line of code. How to trust this ▸

40/42dimensions tool-verifieddeterministic · confidence 1.0 · 2 LLM-assisted, advisory
876findings with an exact file:lineof 884 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
42/101dimensions across the health lenses · 4 projects — wide & deep

Executive summary

Read through the Production lens — the standard calibration. *Green* means good enough to run in production. The score is absolute and comparable across repos.

it235/office-ai-agent carries serious gaps (34%). Several issues below can materially affect correctness, security, or the cost of changing it — and propagate to everything that depends on it.

It is strongest in Security (100%) — its security and compliance posture is in good shape. Architecture (92%) is solid too.

The area that most needs attention is Readiness (13%) — releases are harder to depend on — versioning, release notes and dependency hygiene are thin, so consumers can't easily tell what changed or trust an upgrade. Code Health (30%) is the next concern — changes there are slower and more error-prone.

Leadership focus, highest impact first: CI workflow that builds and runs the test suite on every push/PR (CI/CD gates); tests that import the unreached modules (directly or through… (Test Coverage); missing tooling (eslint (Tooling).

For scale: — (~0 production lines); rebuilding it from scratch would take roughly — (—). Approximate, ±~30%.

It builds on a genuinely strong Security foundation (100%); the priorities above are the highest-leverage way to bring the rest up to that level.

How the score is built — each lens's share of the headline Width is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
Readiness 13% · 47% weightCode Health 30% · 26% weightMaturity 57% · 14% weightArchitecture 92% · 8% weightSecurity 100% · 4% weight

Raise Readiness 13 → 70 (the Healthy floor) ⇒ headline 34 → ~50.

Code composition — where the lines go
Generated 100%
New since the last scan (100+)

124 finding(s) are new versus the previous scan (2026-07-29) — surfaced by this scheduled scan itself, no pull request required. Showing the first 100; the full set is in the report.

  • D2 · showContextHints (cognitive 94) ShareRibbon/Resources/js/message-sender.js
  • D2 · showAgentExecutionExplanation (cognitive 60) ShareRibbon/Resources/js/agent-card.js
  • D2 · showMappingPreview (cognitive 46) ShareRibbon/Resources/js/reformat-template.js
  • D2 · sendChatMessage (cognitive 38) ShareRibbon/Resources/js/message-sender.js
  • D2 · handleSmartInputKeydown (cognitive 30) ShareRibbon/Resources/js/autocomplete.js
  • D2 · _createTemplateCard (cognitive 28) ShareRibbon/Resources/js/markdown-renderer.js
  • D2 · showComparison (cognitive 27) ShareRibbon/Resources/js/revision-manager.js
  • D2 · code (cognitive 27) ShareRibbon/Resources/js/core.js
  • D2 · setChatMessages (cognitive 24) ShareRibbon/Resources/js/chat-manager.js
  • D2 · (anonymous) (cognitive 22) ShareRibbon/Resources/js/message-sender.js
  • D2 · executeCode (cognitive 22) ShareRibbon/Resources/js/code-handler.js
  • D2 · previewTemplate (cognitive 21) ShareRibbon/Resources/js/reformat-template.js
  • D2 · (anonymous) (cognitive 21) ShareRibbon/Resources/js/reformat-template.js
  • D2 · executeCodeAutoMode (cognitive 21) ShareRibbon/Resources/js/code-handler.js
  • D2 · parseJsonToPlan (cognitive 21) ShareRibbon/Resources/js/code-handler.js
  • D2 · createChatSection (cognitive 18) ShareRibbon/Resources/js/chat-manager.js
  • D3 · FileTooLong: js/agent-card.js ShareRibbon/Resources/js/agent-card.js
  • D4 · Duplicated block (183 lines × 2) ShareRibbon/Controls/BaseDataCapturePane.vb
  • D4 · Duplicated block (76 lines × 2) ShareRibbon/Config/ReformatTemplateManager.vb
  • D4 · Duplicated block (69 lines × 5) ShareRibbon/Config/ReformatTemplateManager.vb
  • D4 · Duplicated block (49 lines × 2) ShareRibbon/Controls/BaseDataCapturePane.vb
  • D4 · Duplicated block (37 lines × 2) ShareRibbon/Config/ReformatTemplateEditorForm.vb
  • D4 · Duplicated block (31 lines × 2) ShareRibbon/Storage/OfficeAiDatabase.vb
  • D4 · Duplicated block (29 lines × 2) ShareRibbon/Storage/OfficeAiDatabase.vb
  • D4 · Duplicated block (28 lines × 2) ExcelAi/EnhancedPreviewAndConfirm.vb
  • D4 · Duplicated block (24 lines × 2) WordAi/ChatControl.vb
  • D4 · Duplicated block (22 lines × 3) ShareRibbon/Controls/BaseChat.vb
  • D4 · Duplicated block (22 lines × 2) ShareRibbon/Services/Reformat/DocumentAnalyzer.vb
  • D4 · Duplicated block (21 lines × 4) WordAi/ChatControl.vb
  • D4 · Duplicated block (20 lines × 2) ShareRibbon/Controls/BaseChat.vb
  • D4 · Duplicated block (20 lines × 2) WordAi/WordCompletionManager.vb
  • D4 · Duplicated block (20 lines × 2) WordAi/WordCompletionManager.vb
  • D4 · Duplicated block (19 lines × 2) ShareRibbon/Controls/Services/IntentRecognitionService.vb
  • D4 · Duplicated block (19 lines × 2) WordAi/ChatControl.vb
  • D4 · Duplicated block (19 lines × 2) WordAi/ChatControl.vb
  • D4 · Duplicated block (18 lines × 2) ShareRibbon/Config/ReformatTemplateEditorForm.vb
  • D4 · Duplicated block (17 lines × 3) WordAi/WordJsonCommandSchema.vb
  • D4 · Duplicated block (17 lines × 2) ShareRibbon/Controls/BaseChatControl.vb
  • D4 · Duplicated block (16 lines × 2) ShareRibbon/Services/Reformat/SemanticPromptBuilder.vb
  • D4 · Duplicated block (16 lines × 2) WordAi/ChatControl.vb
  • D4 · Duplicated block (15 lines × 2) ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb
  • D4 · Duplicated block (15 lines × 2) ShareRibbon/Services/SkillScriptExecutor.vb
  • D4 · Duplicated block (15 lines × 2) WordAi/Ribbon1.vb
  • D4 · Duplicated block (14 lines × 15) ShareRibbon/Config/PresetProviders.vb
  • D4 · Duplicated block (14 lines × 3) ShareRibbon/Services/Reformat/FormattingStandardData.vb
  • D4 · Duplicated block (14 lines × 3) WordAi/ThisAddIn.vb
  • D4 · Duplicated block (14 lines × 2) ShareRibbon/Services/Reformat/FormattingStandardData.vb
  • D4 · Duplicated block (14 lines × 2) ShareRibbon/Services/Reformat/SemanticPromptBuilder.vb
  • D4 · Duplicated block (14 lines × 2) ShareRibbon/Services/Reformat/StyleGuideConverter.vb
  • D4 · Duplicated block (14 lines × 2) ShareRibbon/Services/Proofread/ProofreadPromptBuilder.vb
  • D4 · Duplicated block (13 lines × 3) ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb
  • D4 · Duplicated block (13 lines × 2) ShareRibbon/Config/PresetProviders.vb
  • D4 · Duplicated block (13 lines × 2) ShareRibbon/Services/Reformat/StyleGuideConverter.vb
  • D4 · Duplicated block (13 lines × 2) ShareRibbon/Mcp/StdioConfigForm.vb
  • D4 · Duplicated block (12 lines × 3) ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb
  • D4 · Duplicated block (12 lines × 3) ExcelAi/ExcelJsonCommandSchema.vb
  • D4 · Duplicated block (12 lines × 2) ShareRibbon/Services/Reformat/OpenXmlReformatEngine.vb
  • D4 · Duplicated block (12 lines × 2) ShareRibbon/Controls/BaseChatControl.vb
  • D4 · Duplicated block (12 lines × 2) WordAi/Ribbon1.vb
  • D4 · Duplicated block (12 lines × 2) WordAi/OpenXmlWordTranslator.vb
  • D4 · Duplicated block (12 lines × 2) PowerPointAi/Runtime/PowerPointObjectResolver.vb
  • D4 · Duplicated block (11 lines × 2) ShareRibbon/Services/Reformat/FormattingStandardData.vb
  • D4 · Duplicated block (11 lines × 2) ShareRibbon/Services/Reformat/FormattingStandardData.vb
  • D4 · Duplicated block (11 lines × 2) ShareRibbon/Services/Reformat/FormattingStandardData.vb
  • D4 · Duplicated block (11 lines × 2) ShareRibbon/Services/SkillsService.vb
  • D4 · Duplicated block (11 lines × 2) WordAi/Services/FormattingIntentCompiler.vb
  • D4 · Duplicated block (11 lines × 2) PowerPointAi/ChatControl.vb
  • D4 · Duplicated block (11 lines × 2) ExcelAi/ChatControl.vb
  • D4 · Duplicated block (10 lines × 5) ShareRibbon/Services/Reformat/FormattingStandardData.vb
  • D4 · Duplicated block (10 lines × 4) ShareRibbon/Services/Reformat/LegacyTemplateConverter.vb
  • D4 · Duplicated block (10 lines × 2) ShareRibbon/Config/ConfigApiForm.vb
  • D4 · Duplicated block (10 lines × 2) ShareRibbon/Storage/AgentMemoryRepository.vb
  • D4 · Duplicated block (10 lines × 2) ShareRibbon/Translate/TranslateGlobalSettingsForm.vb
  • D4 · Duplicated block (10 lines × 2) ShareRibbon/Agent/PromptManager.vb
  • D4 · Duplicated block (10 lines × 2) ShareRibbon/Controls/Services/HttpStreamService.vb
  • D4 · Duplicated block (10 lines × 2) ShareRibbon/Controls/Services/McpService.vb
  • D4 · Duplicated block (10 lines × 2) PowerPointAi/ChatControl.vb
  • D4 · Duplicated block (10 lines × 2) ExcelAi/ExcelDirectOperationService.vb
  • D4 · Duplicated block (9 lines × 3) ShareRibbon/Config/ConfigApiForm.vb
  • D4 · Duplicated block (9 lines × 3) WordAi/ChatControl.vb
  • D4 · Duplicated block (9 lines × 2) ShareRibbon/Config/ConfigApiForm.vb
  • D4 · Duplicated block (9 lines × 2) ShareRibbon/Config/PresetProviders.vb
  • D4 · Duplicated block (9 lines × 2) ShareRibbon/Services/Reformat/SmartFormattingOrchestrator.vb
  • D4 · Duplicated block (9 lines × 2) ShareRibbon/Agent/PromptManager.vb
  • D4 · Duplicated block (9 lines × 2) ShareRibbon/Mcp/StreamJsonRpcMCPClient.vb
  • D4 · Duplicated block (9 lines × 2) ShareRibbon/Services/SkillsService.vb
  • D4 · Duplicated block (8 lines × 2) ShareRibbon/Services/Reformat/FormattingStandardData.vb
  • D4 · Duplicated block (8 lines × 2) PowerPointAi/Design/SlideComponentLibrary.Patterns.vb
  • D4 · Duplicated block (8 lines × 2) ExcelAi/ChatControl.vb
  • D4 · Duplicated block (8 lines × 2) ExcelAi/ExcelDirectOperationService.vb
  • D4 · Duplicated block (7 lines × 4) ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb
  • D4 · Duplicated block (7 lines × 2) ShareRibbon/Controls/BaseDataCapturePane.vb
  • D15 · Hotspot: ShareRibbon/Resources/js/code-handler.js ShareRibbon/Resources/js/code-handler.js
  • D15 · Hotspot: ShareRibbon/Resources/js/agent-card.js ShareRibbon/Resources/js/agent-card.js
  • D15 · Hotspot: ShareRibbon/Resources/js/reformat-template.js ShareRibbon/Resources/js/reformat-template.js
  • D15 · Hotspot: ShareRibbon/Resources/js/autocomplete.js ShareRibbon/Resources/js/autocomplete.js
  • D15 · Hotspot: ShareRibbon/Resources/js/chat-manager.js ShareRibbon/Resources/js/chat-manager.js
  • D17 · XxxComment ShareRibbon/Controls/Services/HttpStreamService.vb
  • D19 · LLM evaluation failed
  • D35 · Boundary-crossing change coupling: ThisAddIn.vb ↔ ThisAddIn.vb PowerPointAi/ThisAddIn.vb

A full-fidelity diff against the previous run's complete recorded findings — line-move tolerant: a finding that only shifted line counts as unchanged, only genuinely new titles/files surface here.

Top priorities

The highest-leverage moves; the full ranked list is in the Roadmap below.

1
Resolve the 1 No automated tests finding(s) in Code Coverage.
+15.8 pts · Low effort · Code Coverage
2
Resolve the 1 No tests found finding(s) in Test Distribution.
+15.8 pts · Low effort · Test Distribution
3
Add a CI workflow that builds and runs the test suite on every push/PR.
+20.6 pts · Medium effort · CI/CD gates

Diagnosis — what's actually going on

Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Add a CI workflow that builds and runs the test suite on every push/PR. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Add a CI workflow that builds and runs the test suite on every push/PR.

At a glance — Code Health · 30% · Weak · gated by D1, D2, D18, R1, R2, R3

At a glance — Architecture · 92% · Exemplary

At a glance — Maturity · 57% · Adequate · gated by M2

At a glance — Readiness · 13% · Critical · gated by D8, D9, R4, R6, P1, P3, P6

At a glance — Security · 100% · Exemplary

Roadmap

First, establish a continuous integration workflow that builds the code and runs the test suite on every push or pull request. Next, expand test coverage by adding tests for all production modules to ensure comprehensive validation. Then, configure essential tooling such as eslint, tsc, and typechecking within the package.json scripts and integrate them into the CI process. Finally, maintain a current changelog with versioned entries for each release to preserve project history.

Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.

Do thisHelpsEffortDimension
Resolve the 1 No automated tests finding(s) in Code Coverage.+15.8 ptsLowCode Coverage
Resolve the 1 No tests found finding(s) in Test Distribution.+15.8 ptsLowTest Distribution
Add a CI workflow that builds and runs the test suite on every push/PR.+20.6 ptsMediumCI/CD gates
Add tests that import the unreached modules (directly or through their public entry).+20.6 ptsMediumTest Coverage
Add the missing tooling (eslint, tsc) as package.json scripts and run them in CI.+20.6 ptsMediumTooling
Keep the changelog current — add a versioned entry (Keep-a-Changelog ## [x.y.z]) for each release so the history isn't a stub.+18.7 ptsMediumRelease Hygiene
Migrate the remaining .js/.jsx files to TypeScript.+12.7 ptsMediumType Safety
Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.+12.7 ptsMediumCyclomatic Complexity

File quality

Per-file score 0–10 — a quality signature. Of 160 files carrying findings, judged against the Production bar: 17% slop · 64% mixed · 19% near-clean.

FileScoreBandWorst signal
ShareRibbon/Controls/Services/HttpStreamService.vb1.0SlopExplicit Debt: EmptyCatchBlock
ExcelAi/ChatControl.vb1.0SlopExplicit Debt: EmptyCatchBlock
ShareRibbon/Controls/BaseChatControl.vb1.4SlopExplicit Debt: EmptyCatchBlock
WordAi/ChatControl.vb2.2SlopExplicit Debt: EmptyCatchBlock
PowerPointAi/ChatControl.vb2.2SlopExplicit Debt: EmptyCatchBlock
ShareRibbon/Services/Reformat/SemanticRenderingEngine.vb2.2SlopExplicit Debt: EmptyCatchBlock
WordAi/OpenXmlWordTranslator.vb2.2SlopExplicit Debt: EmptyCatchBlock
ShareRibbon/Services/Reformat/ReformatCoordinator.vb2.3SlopExplicit Debt: EmptyCatchBlock
PowerPointAi/PowerPointDocumentTranslateService.vb2.3SlopExplicit Debt: EmptyCatchBlock
ExcelAi/ExcelDirectOperationService.vb2.4SlopExplicit Debt: EmptyCatchBlock
ShareRibbon/Config/ReformatTemplateManager.vb2.6SlopExplicit Debt: EmptyCatchBlock
ShareRibbon/Config/ConfigApiForm.vb2.8SlopExplicit Debt: EmptyCatchBlock
PowerPointAi/Runtime/PowerPointOperationExecutor.vb2.8SlopExplicit Debt: EmptyCatchBlock
ShareRibbon/Agent/LoopEngine.Planning.vb2.8SlopExplicit Debt: EmptyCatchBlock
PowerPointAi/Runtime/PowerPointOperationObserver.vb2.9SlopExplicit Debt: EmptyCatchBlock
PowerPointAi/Runtime/PowerPointApiCatalogProvider.vb2.9SlopExplicit Debt: EmptyCatchBlock
ExcelAi/EnhancedPreviewAndConfirm.vb2.9SlopExplicit Debt: EmptyCatchBlock
ShareRibbon/Controls/Services/CodeExecutionService.vb3.0SlopExplicit Debt: EmptyCatchBlock
ExcelAi/Context/ExcelContextProvider.vb3.0SlopExplicit Debt: EmptyCatchBlock
PowerPointAi/Ribbon1.vb3.1SlopExplicit Debt: EmptyCatchBlock

Methodology & how to trust this report

Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 40 of 42 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 2 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.6 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.

Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.

What we checked — 42 dimensions across the health lenses
D1D2D3D4D5D6D8D9D12D13D15D16D17D18D21D26D28D29D34D35AX5AX6GD1M1M2M3M4P1P3P6R1R10R2R3R4R6R7R8R9X1X3X4

Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.

How to trust any code-health report — three questions
  1. Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 876 of 884 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
  2. Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
  3. Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.

This report answers yes to all three. That's the bar to hold any assessment to.

Tools & methods

The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0✓ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0✓ deterministic
jscpdCode duplication✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.301✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.301✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivy · checkovSecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3✓ deterministic
LLM (sampled · advisory)Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurementLocal LLM◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 019fdeb7-70c3-717a-9ad6-89a6e6693e63.

The exact command behind every deep-scan dimension — tool, version, invocation and retained raw output — is in Appendix B — Reproduction & audit trail.

Run transparency — what happened this run

What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.

  • D19 Documentation Quality — LLM provider failed — The model provider returned an unusable result, so this LLM-assisted dimension fell back to a measurement gap (confidence 0) rather than a penalty. Re-run with a reachable provider to score it.
  • D30 Dependency Vulnerabilities — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
  • D31 IaC & Container Security — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
  • D32 Data Compliance (PII/GDPR) — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
  • D33 JS/npm Dependency Vulnerabilities — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
  • D36 Supply-chain Provenance & Signing — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
  • D37 Vulnerability-disclosure Policy — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
  • D38 OSV Dependency Vulnerabilities — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.

Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.

Limitations & what we did not check

Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.

Per-dimension blind spots

For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity (jscpd) — it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (EF migration scaffolds, *.Designer.cs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only; the generated footprint is reported separately under Solution Shape.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D8 Code Coverage: Coverage is measured by building and running the suite (`dotnet test --collect`) inside Watchdog's isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
  • D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
  • D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (EF migrations, designer files, snapshots) is excluded — it is never the team's dead code to delete.
  • D18 Solution Shape: Build integrity reflects whether the solution compiled in this environment — a build that needs a private feed, a specific SDK, or a generated file absent from the repo can read as broken when it is merely unreproducible here.
  • D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
  • D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

The LLM boundary

LLM-set scores this run (2): D21, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score (documentation, ADR quality, naming, comment value, onboarding) — D25 sets the ADR-conformance fraction over sampled code, D22 judges API accuracy over a sample. These are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.

Dimensions

D1 · Cyclomatic Complexity3.6 / 10Weak✓ Tool-verified

What it measures: How tangled the control flow is — methods with many branches are hard to test and change.

Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 3.6 / 10 · rule-coverage 100% · ceiling Prevented

163 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was MemoryRepository.GetRelevantMemories at 118.

MemoryRepository.GetRelevantMemories (cyclomatic 118)ShareRibbon/Storage/MemoryRepository.vb:205
showContextHints (cyclomatic 69)ShareRibbon/Resources/js/message-sender.js:619
ProfessionalDeckExecutor.ValidateSceneSpec (cyclomatic 65)PowerPointAi/Design/ProfessionalDeckExecutor.vb:259
showAgentExecutionExplanation (cyclomatic 61)ShareRibbon/Resources/js/agent-card.js:306
MemoryRepository.ListAtomicMemories (cyclomatic 49)ShareRibbon/Storage/MemoryRepository.vb:125

+ 158 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 1 MemoryRepository.GetRelevantMemories (cyclomatic 118) finding(s) in Cyclomatic Complexity — start with MemoryRepository.vb. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 showContextHints (cyclomatic 69) finding(s) in Cyclomatic Complexity — start with message-sender.js. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 ProfessionalDeckExecutor.ValidateSceneSpec (cyclomatic 65) finding(s) in Cyclomatic Complexity — start with ProfessionalDeckExecutor.vb. — One of this dimension's main actionable groups (1 warning-level).
  4. Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.

D2 · Cognitive Complexity2.0 / 10Critical✓ Tool-verified

What it measures: How hard the code is for a person to follow, beyond raw branching.

Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 2.0 / 10 · rule-coverage 100% · ceiling Prevented

264 method(s) exceeded the cognitive complexity threshold of 15; the worst was MemoryRepository.GetRelevantMemories at 154.

MemoryRepository.GetRelevantMemories (cognitive 154)ShareRibbon/Storage/MemoryRepository.vb:205
ChatContextBuilder.BuildMessages (cognitive 115)ShareRibbon/Controls/Services/ChatContextBuilder.vb:34
ChatControl.AppendCurrentSelectedContent (cognitive 110)PowerPointAi/ChatControl.vb:573
LoopEngine.RunAsync (cognitive 99)ShareRibbon/Agent/LoopEngine.vb:45
showContextHints (cognitive 94)ShareRibbon/Resources/js/message-sender.js:619

+ 259 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 1 MemoryRepository.GetRelevantMemories (cognitive 154) finding(s) in Cognitive Complexity — start with MemoryRepository.vb. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 ChatContextBuilder.BuildMessages (cognitive 115) finding(s) in Cognitive Complexity — start with ChatContextBuilder.vb. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 ChatControl.AppendCurrentSelectedContent (cognitive 110) finding(s) in Cognitive Complexity — start with ChatControl.vb. — One of this dimension's main actionable groups (1 warning-level).
  4. Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.

D3 · God Classes7.5 / 10Strong✓ Tool-verified

What it measures: Over-large classes that try to do too much ("god classes").

Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 7.5 / 10 · rule-coverage 100% · ceiling Prevented

40 god class(es) detected.

FileTooLong: ExcelAi/ChatControl.vb · ×31ExcelAi/ChatControl.vb:0
ClassTooLong: PowerPointVisualVerifier · ×18PowerPointAi/Design/PowerPointVisualVerifier.Rendered.vb:0
TooManyMethods: ChatControl · ×16ExcelAi/ChatControl.vb:0

What to do

  1. Resolve the 31 FileTooLong finding(s) in God Classes — start with ChatControl.vb (3), AgentMemoryRepository.vb, BaseChatControl.vb. — One of this dimension's main actionable groups (31 warning-level).
  2. Resolve the 18 ClassTooLong finding(s) in God Classes — start with ChatFormatterAgent.vb, DocumentAnalyzer.vb, HttpStreamService.vb. — One of this dimension's main actionable groups (18 warning-level).
  3. Resolve the 16 TooManyMethods finding(s) in God Classes — start with ChatControl.vb (3), AgentMemoryRepository.vb, BaseChatControl.vb. — One of this dimension's main actionable groups (16 warning-level).
  4. Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.

D4 · Code Duplication9.2 / 10Exemplary✓ Tool-verified

What it measures: Copy-pasted code that should be shared instead.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 9.2 / 10 · rule-coverage 100% · ceiling Verified

135 duplicated block group(s) detected.

Duplicated block (12 lines × 2) · ×12ShareRibbon/Services/Reformat/OpenXmlReformatEngine.vb:83
Duplicated block (9 lines × 2) · ×12ShareRibbon/Config/ConfigApiForm.vb:1354
Duplicated block (11 lines × 2) · ×11ShareRibbon/Services/Reformat/FormattingStandardData.vb:63
Duplicated block (10 lines × 2) · ×11ShareRibbon/Config/ConfigApiForm.vb:930
Duplicated block (14 lines × 2) · ×8ShareRibbon/Services/Reformat/FormattingStandardData.vb:153

+ 35 more group(s) — more in Appendix A; the complete list is findings.md.

✓ On the Gold path — maintain.

Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.

D5 · Coupling8.0 / 10Strong✓ Tool-verified

What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.

Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.

Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.

Maturity: DocumentedVerifiedPrevented · effective 8.0 / 10 · rule-coverage 100% · ceiling Prevented

4 projects, 0 dependency cycle(s), 0 unstable depended-on project(s).

Off the main sequence: ShareRibbon

What to do

  1. Resolve the 1 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
  2. Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d5_recommendation.md · top locations in Appendix A, every location in findings.md.

D6 · Cohesion (LCOM4)9.8 / 10Exemplary✓ Tool-verified

What it measures: Whether a class's methods are focused on a single responsibility.

Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.

Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.

Maturity: DocumentedVerifiedPrevented · effective 9.8 / 10 · rule-coverage 100% · ceiling Verified

2 of 108 classes have LCOM4 above 3.

Low cohesion: AboutForm (LCOM4 4) · ×2ShareRibbon/Config/AboutForm.vb:8

✓ On the Gold path — maintain.

Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.

D8 · Code Coverage0.0 / 10Critical✓ Tool-verified

What it measures: How much of the code is actually exercised by tests.

Method: Coverage from coverlet runs or committed reports (Cobertura/OpenCover/lcov), computed per-file with structured exclusions for generated, trivial, and glue code. When the suite can't be built/run in-image AND no report is committed, coverage is reported NOT-MEASURED (excluded from the score) with the precondition to make it measurable — never a LoC-ratio proxy folded in as if measured. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Verified

No automated tests — the solution has no test code.

No automated tests

What to do

  1. Resolve the 1 No automated tests finding(s) in Code Coverage. — One of this dimension's main actionable groups (1 issue-level).
  2. Enforce Code Coverage in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

Detailed fixes: d8_recommendation.md · top locations in Appendix A, every location in findings.md.

D9 · Test Distribution0.0 / 10Critical✓ Tool-verified

What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.

Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

No test projects found.

No tests found

What to do

  1. Resolve the 1 No tests found finding(s) in Test Distribution. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d9_recommendation.md · top locations in Appendix A, every location in findings.md.

D12 · Dependency Hygiene10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether dependencies are current, secure, and not bloated.

Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (saturating for vulnerabilities, capped-linear for deprecation/outdated) per KLoC. Exhaustive, deterministic.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 outdated, 0 vulnerable, 0 deprecated packages.

✓ On the Gold path — maintain.

Detailed fixes: d12_recommendation.md.

D13 · Secret Scanning10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.

Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D15 · Churn × Complexity Hotspots9.9 / 10Exemplary✓ Tool-verified

What it measures: Files that change often and are also complex — the riskiest hotspots.

Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.

Maturity: DocumentedVerifiedPrevented · effective 9.9 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: ShareRibbon/Resources/js/message-sender.js (7×69=483); ShareRibbon/Resources/js/code-handler.js (10×25=250); ShareRibbon/Resources/js/agent-card.js (4×61=244)

Hotspot: ShareRibbon/Resources/js/message-sender.js · ×6ShareRibbon/Resources/js/message-sender.js

✓ On the Gold path — maintain.

Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.

D16 · Bus Factor10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether knowledge is concentrated in too few people (the "bus factor").

Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No source file's living knowledge is concentrated in a single author.

✓ On the Gold path — maintain.

Detailed fixes: d16_recommendation.md.

D17 · Explicit Debt4.4 / 10Weak✓ Tool-verified

What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.

Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.

Maturity: DocumentedVerifiedPrevented · effective 4.4 / 10 · rule-coverage 100% · ceiling Prevented

227 deducted debt markers + 0 dead symbols across 78115 LoC (2.8/KLoC) → score 4.4.

EmptyCatchBlock · ×226ExcelAi/ChatControl.vb:175
XxxCommentShareRibbon/Controls/Services/HttpStreamService.vb:704

What to do

  1. Resolve the 226 EmptyCatchBlock finding(s) in Explicit Debt — start with ChatControl.vb (44), SemanticRenderingEngine.vb (24), ReformatCoordinator.vb (20). — One of this dimension's main actionable groups (226 issue-level).
  2. Resolve the 1 XxxComment finding(s) in Explicit Debt — start with HttpStreamService.vb. — One of this dimension's main actionable groups (1 warning-level).
  3. Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.

D18 · Solution Shape2.0 / 10Critical✓ Tool-verified

What it measures: Whether the solution is laid out in a sensible, conventional structure.

Method: Solution structure: project count, decomposition, shell-project detection, build success (confirmed failures cap the score); traced to actual .sln files and binaries. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 2.0 / 10 · rule-coverage 100% · ceiling Documented

4 projects, 0 .cs files, 78115 hand-written lines of code (78115 production / 0 test), plus 2535 generated (EF migrations / designer / snapshots, excluded from quality), 3 inter-project edges (build failed).

Shell project: ShareRibbon · ×4ShareRibbon/ShareRibbon.vbproj
Build did not complete in the analyzer

What to do

  1. Resolve the 4 Shell project finding(s) in Solution Shape — start with ExcelAi.vbproj, PowerPointAi.vbproj, ShareRibbon.vbproj. — One of this dimension's main actionable groups (4 recommendation-level).

Detailed fixes: d18_recommendation.md · top locations in Appendix A, every location in findings.md.

D21 · Naming Consistency / 10Exemplary◐ Sampled · advisory

What it measures: Whether names — types, methods, variables — are clear and consistent.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.

Maturity: DocumentedVerifiedPrevented · effective Exemplary / 10 · rule-coverage 100% · ceiling Verified

0 naming inconsistencies across 0 sampled symbols.

✓ On the Gold path — maintain.

Detailed fixes: d21_recommendation.md.

D26 · Project Cohesion5.0 / 10Adequate✓ Tool-verified

What it measures: Whether each project is a focused, coherent unit rather than an oversized grab-bag.

Method: Project size overshoot penalties (LoC / public-type count / namespace count, 2-of-3 flag) weighted by log magnitude. Exhaustive across projects, deterministic, LLM-independent.

Maturity: DocumentedVerifiedPrevented · effective 5.0 / 10 · rule-coverage 100% · ceiling Documented

1 of 4 projects flagged as possibly oversized/incoherent.

Split ShareRibbon

What to do

  1. Resolve the 1 Split ShareRibbon finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.

D28 · Secrets (history)10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.

Method: Git-history secret scan via gitleaks detect over full history in an isolated checkout; each match flagged High. Exhaustive; degrades cleanly when tool absent.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

gitleaks scanned the full history AND the current working tree and found no secrets.

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)10.0 / 10Exemplary○ Nothing flagged

What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.

Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.

Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

semgrep found no security issues.

✓ On the Gold path — maintain.

Detailed fixes: d29_recommendation.md.

D34 · Knowledge Freshness10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.

Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

Every significant source file has living knowledge — recently and meaningfully worked.

✓ On the Gold path — maintain.

Detailed fixes: d34_recommendation.md.

D35 · Change Coupling8.3 / 10Strong✓ Tool-verified

What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.

Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.

Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling; coupling through a build step, config, or non-source file isn't seen.

Maturity: DocumentedVerifiedPrevented · effective 8.3 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: ThisAddIn.vb↔ThisAddIn.vb 79%; ConfigSettings.vb↔BaseChatControl.vb 69%; BaseChatControl.vb↔message-sender.js 65%

Boundary-crossing change coupling: ThisAddIn.vb ↔ ThisAddIn.vb · ×10PowerPointAi/ThisAddIn.vb

What to do

  1. Resolve the 10 Boundary-crossing change coupling finding(s) in Change Coupling — start with Ribbon1.vb (5), ThisAddIn.vb (3), BaseChatControl.vb. — One of this dimension's main actionable groups (10 issue-level).

Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.

Frontend & cross-cutting dimensions

R = React/JS · M = Maturity · P = Readiness.

AX5 · Architecture & structure10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.

Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.

AX6 · Interface segregation9.7 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').

Method: Roslyn scan: public interface member counts; fat-interface threshold (over 15 members) flagged per type. Deterministic, type-level.

  • `IChatRoutingHost` declares 16 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — ChatRoutingOrchestrator.vb:13

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
GD1 · Unfinished & placeholder code10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Unreviewed-generation residue: shipped members still throwing NotImplementedException, and placeholder string literals left in non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.

Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.

M1 · Documentation (README)6.0 / 10Adequate✓ Tool-verified

Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.

Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.

What to do

  • Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
  • Add a 'Testing' section to the root README — how to run the test suite.
  • Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
  • Add a README to the 4 of 4 project(s) that lack one — worth up to 2 pts.
M2 · Architecture documentation2.0 / 10Critical✓ Tool-verified

Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.

Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.

  • No Architecture Decision Records found — decisions aren't captured for future maintainers.

What to do

  • Start an ADR log (docs/adr/) recording significant decisions and their rationale.
M3 · Folder & project structure6.0 / 10Adequate✓ Tool-verified

Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.

Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.

  • Projects aren't grouped under a src/ folder — production and tooling code are mixed at the root.
  • Only 1/4 projects share a common root namespace — the code's module identity is inconsistent.

What to do

  • Group production code under src/ (or split deliberately, e.g. backend/ + frontend/) so production and tooling code aren't mixed at the root.
  • Adopt a consistent root-namespace convention (a shared prefix, e.g. Acme.*); short project-file/directory names are fine as long as the RootNamespace is uniform.
M4 · Documentation accuracy10.0 / 10Exemplary◐ Sampled · advisory

Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).

Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.

P1 · CI/CD gates0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether an automated pipeline builds and tests every change.

Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.

  • No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.

What to do

  • Add a CI workflow that builds and runs the test suite on every push/PR.
P3 · Security & performance tooling0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).

Method: Filesystem/Roslyn scan: CodeQL, Dependabot, secret-scanning, and BenchmarkDotNet presence in pipelines and projects. Exhaustive, deterministic.

  • No static application security testing (CodeQL / security analyzers / codehealth) detected.

What to do

  • Add a SAST step (e.g. CodeQL) or a security analyzer package.
  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P6 · Release Hygiene3.0 / 10Weak✓ Tool-verified

Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.

Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.

  • A changelog exists but has few versioned entries — keep it current with each release.

What to do

  • Keep the changelog current — add a versioned entry (Keep-a-Changelog ## [x.y.z]) for each release so the history isn't a stub.
  • Stamp a version (csproj <Version>, a VERSION file, or GitVersion) or tag releases with semver so builds and releases are traceable.
R1 · Type Safety0.0 / 10Critical✓ Tool-verified

React / JS · Code Health — How much of the frontend is typed TypeScript vs untyped JavaScript.

Method: Frontend file inventory: the share of typed TypeScript vs untyped JavaScript across the source tree. Deterministic, exhaustive over frontend files.

  • 0 typed · 18 plain JS

What to do

  • Migrate the remaining .js/.jsx files to TypeScript.
R10 · Code Duplication7.8 / 10Strong✓ Tool-verified

React / JS · Code Health — Copy-pasted token-identical blocks across the frontend (the D4 clone algorithm over JS/TS tokens, D-386).

Method: Copy-pasted token-identical blocks across the frontend (the D4 clone algorithm run over JS/TS tokens). Deterministic.

  • ShareRibbon/Resources/js/code-handler.js:472 · ShareRibbon/Resources/js/code-handler.js:1089 — code-handler.js:472
  • ShareRibbon/Resources/js/proofread-ui.js:311 · ShareRibbon/Resources/js/reformat-chat.js:15 — proofread-ui.js:311
  • ShareRibbon/Resources/js/proofread-ui.js:640 · ShareRibbon/Resources/js/reformat-chat.js:330 — proofread-ui.js:640
  • ShareRibbon/Resources/js/code-handler.js:872 · ShareRibbon/Resources/js/code-handler.js:918 — code-handler.js:872
  • ShareRibbon/Resources/js/reformat-template.js:356 · ShareRibbon/Resources/js/reformat-template.js:806 — reformat-template.js:356
  • ShareRibbon/Resources/js/reformat-template.js:626 · ShareRibbon/Resources/js/reformat-template.js:1102 — reformat-template.js:626
  • ShareRibbon/Resources/js/code-handler.js:507 · ShareRibbon/Resources/js/code-handler.js:1122 — code-handler.js:507
  • ShareRibbon/Resources/js/code-handler.js:631 · ShareRibbon/Resources/js/reformat-template.js:545 — code-handler.js:631

What to do

  • Extract the duplicated blocks into shared functions/components.
R2 · Cyclomatic Complexity2.0 / 10Critical✓ Tool-verified

React / JS · Code Health — Per-function cyclomatic/cognitive complexity from the token-level function scanner (D-386) — real branching, not a regex heuristic.

Method: Per-function cyclomatic/cognitive complexity from a token-level function scanner (real branching, not a regex heuristic), computed over every frontend function. Deterministic.

  • Branch-heavy code is where defects cluster — extract decisions into smaller functions. (×8) — message-sender.js:619, agent-card.js:306, reformat-template.js:1307, …

What to do

  • Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files0.0 / 10Critical✓ Tool-verified

React / JS · Code Health — How many components/modules exceed the large-file threshold.

Method: Components/modules exceeding the large-file threshold, counted exhaustively across the frontend source tree. Deterministic.

  • 8 file(s) over 400 lines

What to do

  • Split the oversized components into smaller, focused ones.
R4 · Test Coverage0.0 / 10Critical✓ Tool-verified

React / JS · Readiness — Static test reachability (D-386): the share of production files reachable from any test via the import graph — measured without running anything.

Method: Static test reachability: the share of production files reachable from any test via the import graph — measured without running anything. Deterministic.

  • No test imports this module directly or transitively — its behavior is unverified. (×8) — code-handler.js, reformat-template.js, message-sender.js, …

What to do

  • Add tests that import the unreached modules (directly or through their public entry).
R6 · Tooling0.0 / 10Critical✓ Tool-verified

React / JS · Readiness — Whether the project wires up test, lint and typecheck — detected from each package.json script's COMMAND (eslint / tsc / vitest / jest / playwright), not just its name, and corroborated against CI-workflow invocations so a tool run only in CI still counts.

Method: package.json scanned for test/lint/typecheck script wiring. Deterministic presence check.

  • test ✗ · lint ✗ · typecheck ✗

What to do

  • Add the missing tooling (eslint, tsc) as package.json scripts and run them in CI.
R7 · Dead Code10.0 / 10Exemplary✓ Tool-verified

React / JS · Code Health — Files unreachable from every application/tooling/test entry point, and exports nothing imports (module-graph reachability, D-386).

Method: Dead code: files unreachable from every application/tooling/test entry point plus exports nothing imports, via module-graph reachability. Deterministic, exhaustive over the import graph.

  • 18 file(s) (~8574 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an index.html script) so reachability can see this package.
R8 · Dependency Hygiene10.0 / 10Exemplary✓ Tool-verified

React / JS · Readiness — npm dependency truthfulness (D-386): unused dependencies, imports not declared anywhere, and type-/test-only packages shipped as production deps.

Method: npm dependency truthfulness: unused dependencies, imports declared nowhere, and type-/test-only packages shipped as production deps — from the manifest + import graph. Deterministic.

R9 · Circular Imports10.0 / 10Exemplary✓ Tool-verified

React / JS · Architecture — Import cycles in the module graph (D-386) — files that can only be understood and changed together.

Method: Import cycles in the module graph, detected exhaustively over JS/TS imports (the same cycle detection as the .NET coupling dimension). Deterministic.

X1 · Async correctness10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.

Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.

X3 · Exception handling10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.

Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.

X4 · Structured logging10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.

Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. Deterministic.

Reference — by lens

The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.

LensScoreRatingImpact
Code Health30%Weak — gated by D1, D2, D18, R1, R2, R3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture92%ExemplarySolid.
Maturity57%Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness13%Critical — gated by D8, D9, R4, R6, P1, P3, P6Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security100%ExemplaryStrongest area.
Not included — 60 check(s) not relevant to this codebase

These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.

  • AC1 Text alternatives — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC2 Forms & labels — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC3 Page structure — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC4 Keyboard semantics — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC5 ARIA correctness — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC6 Visual & motion safety — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC7 A11y enforcement — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AX1 Captive dependencies — no DI registrations detected
  • AX10 Code composition — no source files detected — code composition not applicable
  • AX2 Stateful singletons — no singleton implementations detected
  • AX3 Project dependency cycles — no csproj graph available
  • AX4 Dependency direction — no csproj graph available
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX8 Test isolation — no test/production split to check
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • C1 Data Protection — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C2 Access Controls — No access-control surface detected in the analyzed source — no web/app surface to authorize (no HTTP API or web-UI project) and no authorization code at all (no [Authorize]/policies, no imperative guard methods). Access control is therefore N/A here — this is a library/CLI, which is authorized by its CALLER, not by itself. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
  • C3 Audit Trail — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C4 Data Retention — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C5 Data-Subject Rights — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • D10 Test Quality — No tests in the analyzed solution to assess for quality.
  • D11 Test Reliability — Test reliability not included
  • D14 License Compliance — license scan produced no result — the tool ran but its JSON output could not be parsed; the offline NuGet fallback resolved nothing
  • D19 Documentation Quality — LLM evaluation failed
  • D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
  • D22 Internal API Consistency — No exposed public API
  • D23 Boundary Type-Coupling — At only 78k LoC the codebase is small despite four projects and no boundaries declared, so explicit bounded-context boundaries are not warranted.
  • D24 Comment Value — No inline comments to assess — comment value is not applicable here.
  • D25 ADR Conformance — no ADRs to check
  • D27 Navigability — symbol resolution incomplete — navigability not assessed
  • D30 Dependency Vulnerabilities — the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan for NuGet CVEs — excluded rather than scored; re-run on an SDK that can restore this solution
  • D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.
  • D32 Data Compliance (PII/GDPR) — No PII/GDPR ruleset is bundled (the public p/gdpr semgrep pack was retired) — data compliance is not assessed in this scan.
  • D33 JS/npm Dependency Vulnerabilities — No JS/npm manifest or lockfile found outside bin/obj (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan.
  • D36 Supply-chain Provenance & Signing — No CI/build pipeline found (.github/workflows, .gitlab-ci.yml, azure-pipelines.yml, Jenkinsfile, .circleci); there is no build to attest provenance for.
  • D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md, .github/SECURITY.md, docs/SECURITY.md, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • D38 OSV Dependency Vulnerabilities — No JS/npm lockfile found outside bin/obj (package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); nothing for OSV to scan.
  • D39 IL Efficiency — The target did not build, so no IL was available to measure.
  • D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
  • DM1 Domain Modelling — not run — 0/3 markers found
  • ED1 Event-Driven — not run — 0/3 markers found
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not run — only 1/3 markers (an append-only event-store seam (IEventStore/Append-of-events))
  • IC1 Incompleteness & stubs — no C# methods found
  • P12 CI test-gate honesty — no CI workflow found
  • P2 Observability — This repo is a library, not a deployed service — it has no process to operate, so production observability (structured logging, tracing/metrics, health checks) is N/A. A library may log via an injected ILogger, but the absence of operational telemetry is not a defect here. If it grows a host (web API, worker), the dimension reactivates.
  • P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
  • P7 Outbound HTTP resilience — not applicable — this isn't a service/API/worker
  • P8 Schema migrations — no EF Core usage detected
  • P9 Domain vs controller coverage — no coverage report found on disk — run tests with `--collect:"XPlat Code Coverage"` (or in CI) to enable this cross-layer check
  • PF1 Benchmark discipline — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
  • PF2 Allocation hygiene — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
  • PF3 Async & latency hygiene — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
  • R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
  • R5 Dependency Freshness — no package-lock.json — dependency freshness not measured (would require an npm lockfile); JS/npm CVEs are scored in D33 (JS/npm Dependency Vulnerabilities)
  • S1 Web-Security Posture — No web surface detected in the analyzed source — no HTTP API or web-UI project (no controllers/minimal-API endpoints, no Razor/Blazor views) and no web middleware (HTTPS redirection, HSTS, security headers, cookies). Transport security, security headers, secure cookies, CSRF/input-validation and middleware-order controls are therefore N/A here — this is a library/CLI/worker, not a web app. Crypto hygiene was still checked and found nothing to flag. If this codebase becomes web-facing, the dimension reactivates automatically.
  • SC1 Supply-chain hygiene — no data
  • X2 Cancellation propagation — no async methods found
  • X5 Nullable reference types — no NRT-eligible projects

Appendix A — Findings (grouped)

The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.

Issue — 237 finding(s)
D17 · Explicit Debt · EmptyCatchBlock · ×226
  • EmptyCatchBlock ExcelAi/ChatControl.vb:175 — empty catch block
  • EmptyCatchBlock ExcelAi/ChatControl.vb:368 — empty catch block
  • EmptyCatchBlock ExcelAi/ChatControl.vb:1076 — empty catch block
  • EmptyCatchBlock ExcelAi/ChatControl.vb:1112 — empty catch block
  • EmptyCatchBlock ExcelAi/ChatControl.vb:1206 — empty catch block
  • EmptyCatchBlock ExcelAi/ChatControl.vb:1252 — empty catch block
  • EmptyCatchBlock ExcelAi/ChatControl.vb:1398 — empty catch block
  • EmptyCatchBlock ExcelAi/Context/ExcelContextProvider.vb:23 — empty catch block
  • EmptyCatchBlock ExcelAi/Context/ExcelContextProvider.vb:148 — empty catch block
  • EmptyCatchBlock ExcelAi/Context/ExcelContextProvider.vb:180 — empty catch block
  • EmptyCatchBlock ExcelAi/Context/ExcelContextProvider.vb:197 — empty catch block
  • EmptyCatchBlock ExcelAi/Context/ExcelContextProvider.vb:219 — empty catch block
  • EmptyCatchBlock ExcelAi/Context/ExcelContextProvider.vb:292 — empty catch block
  • EmptyCatchBlock ExcelAi/DeepseekControl.vb:170 — empty catch block
  • EmptyCatchBlock ExcelAi/EnhancedPreviewAndConfirm.vb:116 — empty catch block
  • EmptyCatchBlock ExcelAi/EnhancedPreviewAndConfirm.vb:124 — empty catch block
  • EmptyCatchBlock ExcelAi/EnhancedPreviewAndConfirm.vb:138 — empty catch block
  • EmptyCatchBlock ExcelAi/EnhancedPreviewAndConfirm.vb:437 — empty catch block
  • EmptyCatchBlock ExcelAi/ExcelDirectOperationService.vb:469 — empty catch block
  • EmptyCatchBlock ExcelAi/ExcelDirectOperationService.vb:518 — empty catch block
  • EmptyCatchBlock ExcelAi/ExcelDirectOperationService.vb:1616 — empty catch block
  • EmptyCatchBlock ExcelAi/ExcelDirectOperationService.vb:1709 — empty catch block
  • EmptyCatchBlock ExcelAi/ExcelDirectOperationService.vb:1964 — empty catch block
  • EmptyCatchBlock ExcelAi/Spotlight.vb:173 — empty catch block
  • EmptyCatchBlock PowerPointAi/ChatControl.vb:165 — empty catch block
  • + 201 more in this group — see findings.md.
D35 · Change Coupling · Boundary-crossing change coupling · ×10
  • Boundary-crossing change coupling: ThisAddIn.vb ↔ ThisAddIn.vb PowerPointAi/ThisAddIn.vb — `PowerPointAi/ThisAddIn.vb` (context PowerPointAi) and `WordAi/ThisAddIn.vb` (context WordAi) live in DIFFERENT modules yet change together 79% of the time (15 shared commits) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: Ribbon1.vb ↔ Ribbon1.vb PowerPointAi/Ribbon1.vb — `PowerPointAi/Ribbon1.vb` (context PowerPointAi) and `WordAi/Ribbon1.vb` (context WordAi) live in DIFFERENT modules yet change together 64% of the time (16 shared commits) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: ChatControl.vb ↔ BaseChatControl.vb ExcelAi/ChatControl.vb — `ExcelAi/ChatControl.vb` (context ExcelAi) and `ShareRibbon/Controls/BaseChatControl.vb` (context ShareRibbon) live in DIFFERENT modules yet change together 64% of the time (14 shared commits) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: ThisAddIn.vb ↔ ThisAddIn.vb ExcelAi/ThisAddIn.vb — `ExcelAi/ThisAddIn.vb` (context ExcelAi) and `PowerPointAi/ThisAddIn.vb` (context PowerPointAi) live in DIFFERENT modules yet change together 63% of the time (12 shared commits) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: BaseChatControl.vb ↔ ChatControl.vb ShareRibbon/Controls/BaseChatControl.vb — `ShareRibbon/Controls/BaseChatControl.vb` (context ShareRibbon) and `WordAi/ChatControl.vb` (context WordAi) live in DIFFERENT modules yet change together 59% of the time (22 shared commits) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: ThisAddIn.vb ↔ ThisAddIn.vb ExcelAi/ThisAddIn.vb — `ExcelAi/ThisAddIn.vb` (context ExcelAi) and `WordAi/ThisAddIn.vb` (context WordAi) live in DIFFERENT modules yet change together 57% of the time (12 shared commits) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: Ribbon1.vb ↔ Ribbon1.vb ExcelAi/Ribbon1.vb — `ExcelAi/Ribbon1.vb` (context ExcelAi) and `PowerPointAi/Ribbon1.vb` (context PowerPointAi) live in DIFFERENT modules yet change together 56% of the time (14 shared commits) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: Ribbon1.vb ↔ BaseOfficeRibbon.vb ExcelAi/Ribbon1.vb — `ExcelAi/Ribbon1.vb` (context ExcelAi) and `ShareRibbon/Ribbon/BaseOfficeRibbon.vb` (context ShareRibbon) live in DIFFERENT modules yet change together 56% of the time (14 shared commits) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: Ribbon1.vb ↔ Ribbon1.vb ExcelAi/Ribbon1.vb — `ExcelAi/Ribbon1.vb` (context ExcelAi) and `WordAi/Ribbon1.vb` (context WordAi) live in DIFFERENT modules yet change together 54% of the time (14 shared commits) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: Ribbon1.vb ↔ BaseOfficeRibbon.vb PowerPointAi/Ribbon1.vb — `PowerPointAi/Ribbon1.vb` (context PowerPointAi) and `ShareRibbon/Ribbon/BaseOfficeRibbon.vb` (context ShareRibbon) live in DIFFERENT modules yet change together 52% of the time (13 shared commits) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
D8 · Code Coverage · No automated tests · ×1
  • No automated tests — No automated tests — the solution has no test code. Untested code is the largest single risk to changing it safely.
Warning — 638 finding(s)
D3 · God Classes · FileTooLong · ×31
  • FileTooLong: ExcelAi/ChatControl.vb ExcelAi/ChatControl.vb:0 — FileTooLong — 1026 lines.
  • FileTooLong: ExcelAi/ExcelDirectOperationService.vb ExcelAi/ExcelDirectOperationService.vb:0 — FileTooLong — 1479 lines.
  • FileTooLong: ExcelAi/ExcelJsonCommandSchema.vb ExcelAi/ExcelJsonCommandSchema.vb:0 — FileTooLong — 599 lines.
  • FileTooLong: PowerPointAi/ChatControl.vb PowerPointAi/ChatControl.vb:0 — FileTooLong — 2062 lines.
  • FileTooLong: Design/SlideComponentLibrary.vb PowerPointAi/Design/SlideComponentLibrary.vb:0 — FileTooLong — 523 lines.
  • FileTooLong: Agent/LoopEngine.Planning.vb ShareRibbon/Agent/LoopEngine.Planning.vb:0 — FileTooLong — 585 lines.
  • FileTooLong: Agent/ToolRegistry.vb ShareRibbon/Agent/ToolRegistry.vb:0 — FileTooLong — 872 lines.
  • FileTooLong: Config/ConfigApiForm.vb ShareRibbon/Config/ConfigApiForm.vb:0 — FileTooLong — 1686 lines.
  • FileTooLong: Config/ConfigPromptForm.vb ShareRibbon/Config/ConfigPromptForm.vb:0 — FileTooLong — 728 lines.
  • FileTooLong: Config/ReformatTemplateEditorForm.vb ShareRibbon/Config/ReformatTemplateEditorForm.vb:0 — FileTooLong — 634 lines.
  • FileTooLong: Config/ReformatTemplateManager.vb ShareRibbon/Config/ReformatTemplateManager.vb:0 — FileTooLong — 725 lines.
  • FileTooLong: Controls/BaseChatControl.vb ShareRibbon/Controls/BaseChatControl.vb:0 — FileTooLong — 2124 lines.
  • FileTooLong: Controls/BaseDataCapturePane.vb ShareRibbon/Controls/BaseDataCapturePane.vb:0 — FileTooLong — 802 lines.
  • FileTooLong: Controls/ReformatTemplateEditorControl.vb ShareRibbon/Controls/ReformatTemplateEditorControl.vb:0 — FileTooLong — 867 lines.
  • FileTooLong: Services/HttpStreamService.vb ShareRibbon/Controls/Services/HttpStreamService.vb:0 — FileTooLong — 1036 lines.
  • FileTooLong: Services/IntentRecognitionService.vb ShareRibbon/Controls/Services/IntentRecognitionService.vb:0 — FileTooLong — 753 lines.
  • FileTooLong: Mcp/MCPConfigForm.vb ShareRibbon/Mcp/MCPConfigForm.vb:0 — FileTooLong — 1131 lines.
  • FileTooLong: Mcp/StreamJsonRpcMCPClient.vb ShareRibbon/Mcp/StreamJsonRpcMCPClient.vb:0 — FileTooLong — 544 lines.
  • FileTooLong: Reformat/DocumentAnalyzer.vb ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:0 — FileTooLong — 709 lines.
  • FileTooLong: Reformat/SmartFormattingOrchestrator.vb ShareRibbon/Services/Reformat/SmartFormattingOrchestrator.vb:0 — FileTooLong — 907 lines.
  • FileTooLong: Services/SkillsDirectoryService.vb ShareRibbon/Services/SkillsDirectoryService.vb:0 — FileTooLong — 515 lines.
  • FileTooLong: Storage/AgentMemoryRepository.vb ShareRibbon/Storage/AgentMemoryRepository.vb:0 — FileTooLong — 651 lines.
  • FileTooLong: Storage/MemoryRepository.vb ShareRibbon/Storage/MemoryRepository.vb:0 — FileTooLong — 672 lines.
  • FileTooLong: Storage/OfficeAiDatabase.vb ShareRibbon/Storage/OfficeAiDatabase.vb:0 — FileTooLong — 755 lines.
  • FileTooLong: WordAi/ChatControl.vb WordAi/ChatControl.vb:0 — FileTooLong — 4057 lines.
  • + 6 more in this group — see findings.md.
D3 · God Classes · ClassTooLong · ×18
  • ClassTooLong: PowerPointVisualVerifier PowerPointAi/Design/PowerPointVisualVerifier.Rendered.vb:0 — ClassTooLong — 727 lines, 30 methods.
  • ClassTooLong: ProfessionalDeckExecutor PowerPointAi/Design/ProfessionalDeckExecutor.Operations.vb:0 — ClassTooLong — 804 lines, 24 methods.
  • ClassTooLong: PowerPointApiCatalogProvider PowerPointAi/Runtime/PowerPointApiCatalogProvider.vb:0 — ClassTooLong — 419 lines, 23 methods.
  • ClassTooLong: PowerPointOperationExecutor PowerPointAi/Runtime/PowerPointOperationExecutor.vb:0 — ClassTooLong — 435 lines, 16 methods.
  • ClassTooLong: LoopEngine ShareRibbon/Agent/LoopEngine.Planning.vb:0 — ClassTooLong — 871 lines, 26 methods.
  • ClassTooLong: ReformatTemplateEditorForm ShareRibbon/Config/ReformatTemplateEditorForm.vb:0 — ClassTooLong — 630 lines, 25 methods.
  • ClassTooLong: ReformatTemplateManager ShareRibbon/Config/ReformatTemplateManager.vb:0 — ClassTooLong — 723 lines, 22 methods.
  • ClassTooLong: ChatFormatterAgent ShareRibbon/Controls/Services/ChatFormatterAgent.vb:0 — ClassTooLong — 423 lines, 19 methods.
  • ClassTooLong: HttpStreamService ShareRibbon/Controls/Services/HttpStreamService.vb:0 — ClassTooLong — 1024 lines, 23 methods.
  • ClassTooLong: ReformatService ShareRibbon/Controls/Services/ReformatService.vb:0 — ClassTooLong — 444 lines, 24 methods.
  • ClassTooLong: StreamJsonRpcMCPClient ShareRibbon/Mcp/StreamJsonRpcMCPClient.vb:0 — ClassTooLong — 531 lines, 18 methods.
  • ClassTooLong: DocumentAnalyzer ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:0 — ClassTooLong — 640 lines, 17 methods.
  • ClassTooLong: SemanticRenderingEngine ShareRibbon/Services/Reformat/SemanticRenderingEngine.vb:0 — ClassTooLong — 436 lines, 16 methods.
  • ClassTooLong: SkillsDirectoryService ShareRibbon/Services/SkillsDirectoryService.vb:0 — ClassTooLong — 453 lines, 23 methods.
  • ClassTooLong: MemoryRepository ShareRibbon/Storage/MemoryRepository.vb:0 — ClassTooLong — 619 lines, 24 methods.
  • ClassTooLong: OfficeAiDatabase ShareRibbon/Storage/OfficeAiDatabase.vb:0 — ClassTooLong — 751 lines, 26 methods.
  • ClassTooLong: TranslateActionForm ShareRibbon/Translate/TranslateActionForm.vb:0 — ClassTooLong — 405 lines, 12 methods.
  • ClassTooLong: WebDataCapturePane WordAi/WebDataCapturePane.vb:0 — ClassTooLong — 552 lines, 14 methods.
D3 · God Classes · TooManyMethods · ×16
  • TooManyMethods: ChatControl ExcelAi/ChatControl.vb:0 — TooManyMethods — 1002 lines, 43 methods.
  • TooManyMethods: ExcelDirectOperationService ExcelAi/ExcelDirectOperationService.vb:0 — TooManyMethods — 1475 lines, 42 methods.
  • TooManyMethods: ExcelJsonCommandSchema ExcelAi/ExcelJsonCommandSchema.vb:0 — TooManyMethods — 596 lines, 34 methods.
  • TooManyMethods: ChatControl PowerPointAi/ChatControl.vb:0 — TooManyMethods — 2039 lines, 72 methods.
  • TooManyMethods: SlideComponentLibrary PowerPointAi/Design/SlideComponentLibrary.Patterns.vb:0 — TooManyMethods — 918 lines, 42 methods.
  • TooManyMethods: ToolRegistry ShareRibbon/Agent/ToolRegistry.vb:0 — TooManyMethods — 737 lines, 32 methods.
  • TooManyMethods: ConfigApiForm ShareRibbon/Config/ConfigApiForm.vb:0 — TooManyMethods — 1669 lines, 58 methods.
  • TooManyMethods: ConfigPromptForm ShareRibbon/Config/ConfigPromptForm.vb:0 — TooManyMethods — 723 lines, 34 methods.
  • TooManyMethods: BaseChatControl ShareRibbon/Controls/BaseChatControl.vb:0 — TooManyMethods — 2105 lines, 149 methods.
  • TooManyMethods: BaseDataCapturePane ShareRibbon/Controls/BaseDataCapturePane.vb:0 — TooManyMethods — 775 lines, 43 methods.
  • TooManyMethods: ReformatTemplateEditorControl ShareRibbon/Controls/ReformatTemplateEditorControl.vb:0 — TooManyMethods — 863 lines, 38 methods.
  • TooManyMethods: IntentRecognitionService ShareRibbon/Controls/Services/IntentRecognitionService.vb:0 — TooManyMethods — 698 lines, 32 methods.
  • TooManyMethods: MCPConfigForm ShareRibbon/Mcp/MCPConfigForm.vb:0 — TooManyMethods — 1124 lines, 35 methods.
  • TooManyMethods: SmartFormattingOrchestrator ShareRibbon/Services/Reformat/SmartFormattingOrchestrator.vb:0 — TooManyMethods — 802 lines, 36 methods.
  • TooManyMethods: AgentMemoryRepository ShareRibbon/Storage/AgentMemoryRepository.vb:0 — TooManyMethods — 649 lines, 35 methods.
  • TooManyMethods: ChatControl WordAi/ChatControl.vb:0 — TooManyMethods — 4029 lines, 157 methods.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×12
  • Duplicated block (12 lines × 2) ShareRibbon/Services/Reformat/OpenXmlReformatEngine.vb:83 — ShareRibbon/Services/Reformat/OpenXmlReformatEngine.vb:83-94 | ShareRibbon/Services/Reformat/OpenXmlReformatEngine.vb:213-223
  • Duplicated block (12 lines × 2) ShareRibbon/Controls/BaseChatControl.vb:2964 — ShareRibbon/Controls/BaseChatControl.vb:2964-2975 | ShareRibbon/Controls/BaseChatControl.vb:2999-3010
  • Duplicated block (12 lines × 2) ShareRibbon/Services/SkillScriptExecutor.vb:291 — ShareRibbon/Services/SkillScriptExecutor.vb:291-302 | ShareRibbon/Services/SkillScriptExecutor.vb:346-357
  • Duplicated block (12 lines × 2) WordAi/ChatControl.vb:818 — WordAi/ChatControl.vb:818-829 | WordAi/ChatControl.vb:874-882
  • Duplicated block (12 lines × 2) WordAi/ChatControl.vb:2700 — WordAi/ChatControl.vb:2700-2711 | PowerPointAi/ChatControl.vb:2428-2439
  • Duplicated block (12 lines × 2) WordAi/Ribbon1.vb:243 — WordAi/Ribbon1.vb:243-254 | PowerPointAi/Ribbon1.vb:221-232
  • Duplicated block (12 lines × 2) WordAi/ThisAddIn.vb:152 — WordAi/ThisAddIn.vb:152-163 | PowerPointAi/ThisAddIn.vb:73-84
  • Duplicated block (12 lines × 2) WordAi/OpenXmlWordTranslator.vb:213 — WordAi/OpenXmlWordTranslator.vb:213-223 | WordAi/OpenXmlWordTranslator.vb:365-376
  • Duplicated block (12 lines × 2) WordAi/WordDocumentTranslateService.vb:151 — WordAi/WordDocumentTranslateService.vb:151-162 | PowerPointAi/PowerPointDocumentTranslateService.vb:502-513
  • Duplicated block (12 lines × 2) WordAi/WordJsonCommandSchema.vb:294 — WordAi/WordJsonCommandSchema.vb:294-305 | PowerPointAi/PowerPointJsonCommandSchema.vb:344-355
  • Duplicated block (12 lines × 2) PowerPointAi/Runtime/PowerPointObjectResolver.vb:127 — PowerPointAi/Runtime/PowerPointObjectResolver.vb:127-138 | PowerPointAi/Runtime/PowerPointObjectResolver.vb:143-154
  • Duplicated block (12 lines × 2) ExcelAi/ExcelDirectOperationService.vb:803 — ExcelAi/ExcelDirectOperationService.vb:803-814 | ExcelAi/ExcelDirectOperationService.vb:845-856
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×12
  • Duplicated block (9 lines × 2) ShareRibbon/Config/ConfigApiForm.vb:1354 — ShareRibbon/Config/ConfigApiForm.vb:1354-1362 | ShareRibbon/Config/ConfigApiForm.vb:1663-1670
  • Duplicated block (9 lines × 2) ShareRibbon/Config/PresetProviders.vb:151 — ShareRibbon/Config/PresetProviders.vb:151-159 | ShareRibbon/Config/PresetProviders.vb:294-302
  • Duplicated block (9 lines × 2) ShareRibbon/Services/Reformat/SmartFormattingOrchestrator.vb:819 — ShareRibbon/Services/Reformat/SmartFormattingOrchestrator.vb:819-827 | ShareRibbon/Services/Reformat/SmartFormattingOrchestrator.vb:858-864
  • Duplicated block (9 lines × 2) ShareRibbon/Services/Reformat/LegacyTemplateConverter.vb:132 — ShareRibbon/Services/Reformat/LegacyTemplateConverter.vb:132-140 | WordAi/Services/Reformat/WordTemplateParser.vb:516-524
  • Duplicated block (9 lines × 2) ShareRibbon/Agent/PromptManager.vb:54 — ShareRibbon/Agent/PromptManager.vb:54-62 | ShareRibbon/Agent/PromptManager.vb:79-87
  • Duplicated block (9 lines × 2) ShareRibbon/Mcp/StreamJsonRpcMCPClient.vb:225 — ShareRibbon/Mcp/StreamJsonRpcMCPClient.vb:225-232 | ShareRibbon/Mcp/StreamJsonRpcMCPClient.vb:486-494
  • Duplicated block (9 lines × 2) ShareRibbon/Services/SkillsService.vb:477 — ShareRibbon/Services/SkillsService.vb:477-485 | ShareRibbon/Services/SkillsService.vb:505-513
  • Duplicated block (9 lines × 2) WordAi/ChatControl.vb:2521 — WordAi/ChatControl.vb:2521-2529 | WordAi/ChatControl.vb:2538-2545
  • Duplicated block (9 lines × 2) WordAi/ChatControl.vb:4669 — WordAi/ChatControl.vb:4669-4677 | PowerPointAi/ChatControl.vb:1776-1784
  • Duplicated block (9 lines × 2) WordAi/WordContinuationService.vb:98 — WordAi/WordContinuationService.vb:98-106 | WordAi/WordContinuationService.vb:112-120
  • Duplicated block (9 lines × 2) PowerPointAi/ChatControl.vb:2332 — PowerPointAi/ChatControl.vb:2332-2340 | PowerPointAi/ChatControl.vb:2381-2389
  • Duplicated block (9 lines × 2) ExcelAi/ExcelDirectOperationService.vb:1422 — ExcelAi/ExcelDirectOperationService.vb:1422-1430 | ExcelAi/ExcelDirectOperationService.vb:1456-1464
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×11
  • Duplicated block (11 lines × 2) ShareRibbon/Services/Reformat/FormattingStandardData.vb:63 — ShareRibbon/Services/Reformat/FormattingStandardData.vb:63-73 | ShareRibbon/Services/Reformat/FormattingStandardData.vb:119-129
  • Duplicated block (11 lines × 2) ShareRibbon/Services/Reformat/FormattingStandardData.vb:76 — ShareRibbon/Services/Reformat/FormattingStandardData.vb:76-86 | ShareRibbon/Services/Reformat/FormattingStandardData.vb:113-123
  • Duplicated block (11 lines × 2) ShareRibbon/Services/Reformat/FormattingStandardData.vb:100 — ShareRibbon/Services/Reformat/FormattingStandardData.vb:100-110 | ShareRibbon/Services/Reformat/FormattingStandardData.vb:137-147
  • Duplicated block (11 lines × 2) ShareRibbon/Services/Reformat/SemanticRenderingEngine.vb:316 — ShareRibbon/Services/Reformat/SemanticRenderingEngine.vb:316-326 | ShareRibbon/Services/Reformat/ReformatCoordinator.vb:223-233
  • Duplicated block (11 lines × 2) ShareRibbon/Services/SkillsService.vb:489 — ShareRibbon/Services/SkillsService.vb:489-499 | ShareRibbon/Services/SkillsService.vb:501-511
  • Duplicated block (11 lines × 2) WordAi/ChatControl.vb:1156 — WordAi/ChatControl.vb:1156-1166 | WordAi/ChatControl.vb:1513-1523
  • Duplicated block (11 lines × 2) WordAi/ChatControl.vb:2120 — WordAi/ChatControl.vb:2120-2130 | PowerPointAi/ChatControl.vb:420-430
  • Duplicated block (11 lines × 2) WordAi/ChatControl.vb:4338 — WordAi/ChatControl.vb:4338-4348 | WordAi/ChatControl.vb:4370-4378
  • Duplicated block (11 lines × 2) WordAi/Services/FormattingIntentCompiler.vb:124 — WordAi/Services/FormattingIntentCompiler.vb:124-134 | WordAi/Services/WordFormattingAgent.vb:460-470
  • Duplicated block (11 lines × 2) PowerPointAi/ChatControl.vb:919 — PowerPointAi/ChatControl.vb:919-929 | PowerPointAi/DeepseekControl.vb:38-45
  • Duplicated block (11 lines × 2) ExcelAi/ChatControl.vb:1003 — ExcelAi/ChatControl.vb:1003-1013 | ExcelAi/DeepseekControl.vb:44-51
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×11
  • Duplicated block (10 lines × 2) ShareRibbon/Config/ConfigApiForm.vb:930 — ShareRibbon/Config/ConfigApiForm.vb:930-939 | ShareRibbon/Config/SkillsConfigForm.vb:305-314
  • Duplicated block (10 lines × 2) ShareRibbon/Storage/OfficeAiDatabase.vb:868 — ShareRibbon/Storage/OfficeAiDatabase.vb:868-877 | ShareRibbon/Storage/MemoryRepository.vb:483-492
  • Duplicated block (10 lines × 2) ShareRibbon/Storage/AgentMemoryRepository.vb:176 — ShareRibbon/Storage/AgentMemoryRepository.vb:176-184 | ShareRibbon/Storage/AgentMemoryRepository.vb:289-298
  • Duplicated block (10 lines × 2) ShareRibbon/Services/Reformat/SemanticRenderingEngine.vb:300 — ShareRibbon/Services/Reformat/SemanticRenderingEngine.vb:300-309 | ShareRibbon/Services/Reformat/ReformatCoordinator.vb:208-217
  • Duplicated block (10 lines × 2) ShareRibbon/Translate/DocumentTranslateService.vb:401 — ShareRibbon/Translate/DocumentTranslateService.vb:401-410 | ExcelAi/ExcelDocumentTranslateService.vb:322-331
  • Duplicated block (10 lines × 2) ShareRibbon/Translate/TranslateGlobalSettingsForm.vb:202 — ShareRibbon/Translate/TranslateGlobalSettingsForm.vb:202-211 | ShareRibbon/Translate/TranslateGlobalSettingsForm.vb:222-231
  • Duplicated block (10 lines × 2) ShareRibbon/Agent/PromptManager.vb:234 — ShareRibbon/Agent/PromptManager.vb:234-243 | ShareRibbon/Agent/PromptManager.vb:244-253
  • Duplicated block (10 lines × 2) ShareRibbon/Controls/Services/HttpStreamService.vb:840 — ShareRibbon/Controls/Services/HttpStreamService.vb:840-849 | ShareRibbon/Controls/Services/HttpStreamService.vb:851-859
  • Duplicated block (10 lines × 2) ShareRibbon/Controls/Services/McpService.vb:29 — ShareRibbon/Controls/Services/McpService.vb:29-37 | ShareRibbon/Controls/Services/McpService.vb:80-89
  • Duplicated block (10 lines × 2) PowerPointAi/ChatControl.vb:783 — PowerPointAi/ChatControl.vb:783-791 | PowerPointAi/ChatControl.vb:847-856
  • Duplicated block (10 lines × 2) ExcelAi/ExcelDirectOperationService.vb:985 — ExcelAi/ExcelDirectOperationService.vb:985-994 | ExcelAi/ExcelDirectOperationService.vb:1066-1075
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×8
  • Duplicated block (14 lines × 2) ShareRibbon/Services/Reformat/FormattingStandardData.vb:153 — ShareRibbon/Services/Reformat/FormattingStandardData.vb:153-166 | ShareRibbon/Services/Reformat/FormattingStandardData.vb:170-183
  • Duplicated block (14 lines × 2) ShareRibbon/Services/Reformat/SemanticPromptBuilder.vb:224 — ShareRibbon/Services/Reformat/SemanticPromptBuilder.vb:224-237 | ShareRibbon/Services/Reformat/SemanticPromptBuilder.vb:240-253
  • Duplicated block (14 lines × 2) ShareRibbon/Services/Reformat/StyleGuideConverter.vb:19 — ShareRibbon/Services/Reformat/StyleGuideConverter.vb:19-32 | ShareRibbon/Services/Reformat/StyleGuideConverter.vb:44-56
  • Duplicated block (14 lines × 2) ShareRibbon/Controls/BaseChat.vb:194 — ShareRibbon/Controls/BaseChat.vb:194-207 | ShareRibbon/Controls/BaseDeepseekChat.vb:146-159
  • Duplicated block (14 lines × 2) ShareRibbon/Services/Proofread/ProofreadPromptBuilder.vb:30 — ShareRibbon/Services/Proofread/ProofreadPromptBuilder.vb:30-43 | ShareRibbon/Services/Proofread/ProofreadPromptBuilder.vb:67-80
  • Duplicated block (14 lines × 2) WordAi/ChatControl.vb:1098 — WordAi/ChatControl.vb:1098-1111 | WordAi/ChatControl.vb:1161-1174
  • Duplicated block (14 lines × 2) WordAi/ChatControl.vb:4249 — WordAi/ChatControl.vb:4249-4262 | WordAi/ChatControl.vb:4309-4321
  • Duplicated block (14 lines × 2) PowerPointAi/Design/PowerPointVisualVerifier.Rendered.vb:101 — PowerPointAi/Design/PowerPointVisualVerifier.Rendered.vb:101-114 | PowerPointAi/Design/PowerPointVisualVerifier.Rendered.vb:145-158
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×8
  • Duplicated block (13 lines × 2) ShareRibbon/Config/ConfigApiForm.vb:1430 — ShareRibbon/Config/ConfigApiForm.vb:1430-1442 | ShareRibbon/Config/ConfigApiForm.vb:1731-1743
  • Duplicated block (13 lines × 2) ShareRibbon/Config/PresetProviders.vb:296 — ShareRibbon/Config/PresetProviders.vb:296-308 | ShareRibbon/Config/PresetProviders.vb:320-332
  • Duplicated block (13 lines × 2) ShareRibbon/Services/Reformat/StyleGuideConverter.vb:37 — ShareRibbon/Services/Reformat/StyleGuideConverter.vb:37-49 | ShareRibbon/Services/Reformat/StyleGuideConverter.vb:57-69
  • Duplicated block (13 lines × 2) ShareRibbon/Continuation/ContinuationService.vb:147 — ShareRibbon/Continuation/ContinuationService.vb:147-159 | ShareRibbon/Controls/BaseChatControl.vb:879-891
  • Duplicated block (13 lines × 2) ShareRibbon/Mcp/StdioConfigForm.vb:89 — ShareRibbon/Mcp/StdioConfigForm.vb:89-101 | ExcelAi/BatchDataGenerationForm.vb:228-239
  • Duplicated block (13 lines × 2) WordAi/ChatControl.vb:1343 — WordAi/ChatControl.vb:1343-1354 | WordAi/ChatControl.vb:1516-1528
  • Duplicated block (13 lines × 2) WordAi/ChatControl.vb:3601 — WordAi/ChatControl.vb:3601-3613 | PowerPointAi/ChatControl.vb:1234-1246
  • Duplicated block (13 lines × 2) PowerPointAi/PowerPointJsonCommandSchema.vb:505 — PowerPointAi/PowerPointJsonCommandSchema.vb:505-517 | ExcelAi/ExcelJsonCommandSchema.vb:888-900
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×8
  • Duplicated block (8 lines × 2) ShareRibbon/Config/SemanticStyleMapping.vb:106 — ShareRibbon/Config/SemanticStyleMapping.vb:106-113 | ShareRibbon/Config/SemanticStyleMapping.vb:117-124
  • Duplicated block (8 lines × 2) ShareRibbon/Services/Reformat/FormattingStandardData.vb:136 — ShareRibbon/Services/Reformat/FormattingStandardData.vb:136-143 | ShareRibbon/Services/Reformat/FormattingStandardData.vb:422-429
  • Duplicated block (8 lines × 2) ShareRibbon/Services/Reformat/SemanticRenderingEngine.vb:356 — ShareRibbon/Services/Reformat/SemanticRenderingEngine.vb:356-363 | ShareRibbon/Services/Reformat/ReformatCoordinator.vb:298-305
  • Duplicated block (8 lines × 2) WordAi/ChatControl.vb:4276 — WordAi/ChatControl.vb:4276-4282 | WordAi/ChatControl.vb:4336-4343
  • Duplicated block (8 lines × 2) PowerPointAi/Design/DesignSystemCatalog.vb:125 — PowerPointAi/Design/DesignSystemCatalog.vb:125-132 | PowerPointAi/Design/PowerPointVisualVerifier.vb:142-149
  • Duplicated block (8 lines × 2) PowerPointAi/Design/SlideComponentLibrary.Patterns.vb:343 — PowerPointAi/Design/SlideComponentLibrary.Patterns.vb:343-350 | PowerPointAi/Design/SlideComponentLibrary.Patterns.vb:355-362
  • Duplicated block (8 lines × 2) ExcelAi/ChatControl.vb:683 — ExcelAi/ChatControl.vb:683-690 | ExcelAi/ChatControl.vb:709-716
  • Duplicated block (8 lines × 2) ExcelAi/ExcelDirectOperationService.vb:1441 — ExcelAi/ExcelDirectOperationService.vb:1441-1448 | ExcelAi/ExcelDirectOperationService.vb:1474-1481
D15 · Churn × Complexity Hotspots · Hotspot · ×6
  • Hotspot: ShareRibbon/Resources/js/message-sender.js ShareRibbon/Resources/js/message-sender.js — ShareRibbon/Resources/js/message-sender.js changed 7 times in last 90 days, max complexity 69.
  • Hotspot: ShareRibbon/Resources/js/code-handler.js ShareRibbon/Resources/js/code-handler.js — ShareRibbon/Resources/js/code-handler.js changed 10 times in last 90 days, max complexity 25. 1 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: ShareRibbon/Resources/js/agent-card.js ShareRibbon/Resources/js/agent-card.js — ShareRibbon/Resources/js/agent-card.js changed 4 times in last 90 days, max complexity 61. 1 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: ShareRibbon/Resources/js/reformat-template.js ShareRibbon/Resources/js/reformat-template.js — ShareRibbon/Resources/js/reformat-template.js changed 4 times in last 90 days, max complexity 28. 1 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: ShareRibbon/Resources/js/autocomplete.js ShareRibbon/Resources/js/autocomplete.js — ShareRibbon/Resources/js/autocomplete.js changed 2 times in last 90 days, max complexity 21. 1 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: ShareRibbon/Resources/js/chat-manager.js ShareRibbon/Resources/js/chat-manager.js — ShareRibbon/Resources/js/chat-manager.js changed 2 times in last 90 days, max complexity 19. 1 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×6
  • Duplicated block (7 lines × 2) ShareRibbon/Config/ConfigApiForm.vb:1308 — ShareRibbon/Config/ConfigApiForm.vb:1308-1314 | ShareRibbon/Config/ConfigApiForm.vb:1623-1629
  • Duplicated block (7 lines × 2) ShareRibbon/Config/ConfigApiForm.vb:1513 — ShareRibbon/Config/ConfigApiForm.vb:1513-1519 | ShareRibbon/Config/ConfigApiForm.vb:1533-1539
  • Duplicated block (7 lines × 2) ShareRibbon/Translate/DocumentTranslateService.vb:417 — ShareRibbon/Translate/DocumentTranslateService.vb:417-423 | ExcelAi/ExcelDocumentTranslateService.vb:338-344
  • Duplicated block (7 lines × 2) ShareRibbon/Controls/BaseDataCapturePane.vb:2131 — ShareRibbon/Controls/BaseDataCapturePane.vb:2131-2137 | ShareRibbon/Controls/BaseDataCapturePane.vb:2156-2160
  • Duplicated block (7 lines × 2) ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:97 — ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:97-103 | ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:291-296
  • Duplicated block (7 lines × 2) ShareRibbon/Services/SkillsDirectoryService.vb:516 — ShareRibbon/Services/SkillsDirectoryService.vb:516-522 | ShareRibbon/Services/SkillsDirectoryService.vb:534-540
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×5
  • Duplicated block (16 lines × 2) ShareRibbon/Services/Reformat/SemanticPromptBuilder.vb:46 — ShareRibbon/Services/Reformat/SemanticPromptBuilder.vb:46-61 | ShareRibbon/Services/Reformat/SemanticPromptBuilder.vb:135-150
  • Duplicated block (16 lines × 2) ShareRibbon/Translate/DocumentTranslateService.vb:377 — ShareRibbon/Translate/DocumentTranslateService.vb:377-392 | ExcelAi/ExcelDocumentTranslateService.vb:298-313
  • Duplicated block (16 lines × 2) WordAi/ChatControl.vb:2223 — WordAi/ChatControl.vb:2223-2237 | ExcelAi/ChatControl.vb:968-983
  • Duplicated block (16 lines × 2) WordAi/Ribbon1.vb:125 — WordAi/Ribbon1.vb:125-140 | PowerPointAi/Ribbon1.vb:108-123
  • Duplicated block (16 lines × 2) WordAi/WordDocumentTranslateService.vb:49 — WordAi/WordDocumentTranslateService.vb:49-64 | WordAi/WordDocumentTranslateService.vb:71-86
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×5
  • Duplicated block (15 lines × 2) ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:242 — ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:242-256 | ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:271-282
  • Duplicated block (15 lines × 2) ShareRibbon/Services/SkillScriptExecutor.vb:144 — ShareRibbon/Services/SkillScriptExecutor.vb:144-158 | ShareRibbon/Services/SkillScriptExecutor.vb:210-224
  • Duplicated block (15 lines × 2) WordAi/Ribbon1.vb:207 — WordAi/Ribbon1.vb:207-221 | PowerPointAi/Ribbon1.vb:185-199
  • Duplicated block (15 lines × 2) WordAi/WordCompletionManager.vb:357 — WordAi/WordCompletionManager.vb:357-371 | PowerPointAi/PowerPointCompletionManager.vb:342-356
  • Duplicated block (15 lines × 2) PowerPointAi/ChatControl.vb:1309 — PowerPointAi/ChatControl.vb:1309-1323 | ExcelAi/ChatControl.vb:1179-1193
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×4
  • Duplicated block (19 lines × 2) ShareRibbon/Controls/Services/IntentRecognitionService.vb:388 — ShareRibbon/Controls/Services/IntentRecognitionService.vb:388-403 | ShareRibbon/Controls/Services/IntentRecognitionService.vb:417-435
  • Duplicated block (19 lines × 2) WordAi/ChatControl.vb:2298 — WordAi/ChatControl.vb:2298-2316 | WordAi/ChatControl.vb:2647-2664
  • Duplicated block (19 lines × 2) WordAi/ChatControl.vb:4427 — WordAi/ChatControl.vb:4427-4445 | PowerPointAi/ChatControl.vb:1500-1517
  • Duplicated block (19 lines × 2) ExcelAi/ChatControl.vb:162 — ExcelAi/ChatControl.vb:162-180 | ExcelAi/DeepseekControl.vb:157-175
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×4
  • Duplicated block (18 lines × 2) ShareRibbon/Config/ReformatTemplateEditorForm.vb:850 — ShareRibbon/Config/ReformatTemplateEditorForm.vb:850-867 | ShareRibbon/Controls/ReformatTemplateEditorControl.vb:1041-1057
  • Duplicated block (18 lines × 2) ShareRibbon/Controls/BaseDeepseekChat.vb:566 — ShareRibbon/Controls/BaseDeepseekChat.vb:566-583 | ShareRibbon/Controls/Services/CodeExecutionService.vb:423-440
  • Duplicated block (18 lines × 2) WordAi/Ribbon1.vb:179 — WordAi/Ribbon1.vb:179-196 | PowerPointAi/Ribbon1.vb:158-175
  • Duplicated block (18 lines × 2) ExcelAi/ExcelDirectOperationService.vb:466 — ExcelAi/ExcelDirectOperationService.vb:466-483 | ExcelAi/ExcelDirectOperationService.vb:515-532
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×3
  • Duplicated block (20 lines × 2) ShareRibbon/Controls/BaseChat.vb:149 — ShareRibbon/Controls/BaseChat.vb:149-168 | ShareRibbon/Controls/BaseChat.vb:177-196
  • Duplicated block (20 lines × 2) WordAi/WordCompletionManager.vb:245 — WordAi/WordCompletionManager.vb:245-264 | PowerPointAi/PowerPointCompletionManager.vb:230-249
  • Duplicated block (20 lines × 2) WordAi/WordCompletionManager.vb:330 — WordAi/WordCompletionManager.vb:330-349 | PowerPointAi/PowerPointCompletionManager.vb:315-334
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×3
  • Duplicated block (17 lines × 2) ShareRibbon/Controls/BaseChatControl.vb:824 — ShareRibbon/Controls/BaseChatControl.vb:824-840 | ShareRibbon/Controls/BaseChatControl.vb:914-930
  • Duplicated block (17 lines × 2) WordAi/Services/ContentLocator.vb:153 — WordAi/Services/ContentLocator.vb:153-169 | WordAi/Services/ContentLocator.vb:189-205
  • Duplicated block (17 lines × 2) WordAi/WordJsonCommandSchema.vb:195 — WordAi/WordJsonCommandSchema.vb:195-211 | PowerPointAi/PowerPointJsonCommandSchema.vb:225-241
D4 · Code Duplication · Duplicated block (13 lines × 3) · ×3
  • Duplicated block (13 lines × 3) ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:184 — ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:184-194 | ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:242-254 | ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:271-280
  • Duplicated block (13 lines × 3) WordAi/ChatControl.vb:3617 — WordAi/ChatControl.vb:3617-3629 | PowerPointAi/ChatControl.vb:1250-1262 | ExcelAi/ChatControl.vb:554-566
  • Duplicated block (13 lines × 3) WordAi/Ribbon1.vb:461 — WordAi/Ribbon1.vb:461-473 | PowerPointAi/Ribbon1.vb:417-429 | ExcelAi/Ribbon1.vb:230-242
D4 · Code Duplication · Duplicated block (12 lines × 3) · ×3
  • Duplicated block (12 lines × 3) ShareRibbon/Mcp/MCPConfigForm.vb:509 — ShareRibbon/Mcp/MCPConfigForm.vb:509-520 | ShareRibbon/Mcp/MCPConfigForm.vb:698-709 | ShareRibbon/Mcp/MCPConfigForm.vb:749-760
  • Duplicated block (12 lines × 3) ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:212 — ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:212-223 | ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:238-248 | ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:267-274
  • Duplicated block (12 lines × 3) ExcelAi/ExcelJsonCommandSchema.vb:782 — ExcelAi/ExcelJsonCommandSchema.vb:782-793 | ExcelAi/ExcelJsonCommandSchema.vb:801-812 | ExcelAi/ExcelJsonCommandSchema.vb:820-831
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×3
  • Duplicated block (6 lines × 2) ShareRibbon/Controls/Services/MemoryService.vb:175 — ShareRibbon/Controls/Services/MemoryService.vb:175-180 | ShareRibbon/Controls/Services/MemoryService.vb:187-192
  • Duplicated block (6 lines × 2) WordAi/Services/SmartFormatter.vb:260 — WordAi/Services/SmartFormatter.vb:260-265 | WordAi/Services/WordFormattingAgent.vb:495-500
  • Duplicated block (6 lines × 2) PowerPointAi/ChatControl.vb:2266 — PowerPointAi/ChatControl.vb:2266-2271 | PowerPointAi/ChatControl.vb:2292-2297
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×2
  • Duplicated block (14 lines × 3) ShareRibbon/Services/Reformat/FormattingStandardData.vb:43 — ShareRibbon/Services/Reformat/FormattingStandardData.vb:43-56 | ShareRibbon/Services/Reformat/FormattingStandardData.vb:270-283 | ShareRibbon/Services/Reformat/FormattingStandardData.vb:385-398
  • Duplicated block (14 lines × 3) WordAi/ThisAddIn.vb:98 — WordAi/ThisAddIn.vb:98-110 | PowerPointAi/ThisAddIn.vb:119-131 | ExcelAi/ThisAddIn.vb:265-278
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×2
  • Duplicated block (9 lines × 3) ShareRibbon/Config/ConfigApiForm.vb:1141 — ShareRibbon/Config/ConfigApiForm.vb:1141-1149 | ShareRibbon/Config/SkillsConfigForm.vb:336-344 | ShareRibbon/Config/SkillsConfigForm.vb:345-353
  • Duplicated block (9 lines × 3) WordAi/ChatControl.vb:4328 — WordAi/ChatControl.vb:4328-4336 | WordAi/ChatControl.vb:4338-4346 | WordAi/ChatControl.vb:4370-4376
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×2
  • Duplicated block (5 lines × 2) WordAi/Context/WordContextProvider.vb:121 — WordAi/Context/WordContextProvider.vb:121-125 | WordAi/Context/WordContextProvider.vb:136-140
  • Duplicated block (5 lines × 2) WordAi/Ribbon1.vb:290 — WordAi/Ribbon1.vb:290-294 | WordAi/Ribbon1.vb:308-312
D6 · Cohesion (LCOM4) · Low cohesion · ×2
  • Low cohesion: AboutForm (LCOM4 4) ShareRibbon/Config/AboutForm.vb:8 — AboutForm's methods form 4 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: ChatStateService (LCOM4 4) ShareRibbon/Controls/Services/ChatStateService.vb:9 — ChatStateService's methods form 4 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
D1 · Cyclomatic Complexity · MemoryRepository.GetRelevantMemories (cyclomatic 118) · ×1
  • MemoryRepository.GetRelevantMemories (cyclomatic 118) ShareRibbon/Storage/MemoryRepository.vb:205 — MemoryRepository.GetRelevantMemories has cyclomatic complexity 118 (threshold 15).
D1 · Cyclomatic Complexity · showContextHints (cyclomatic 69) · ×1
  • showContextHints (cyclomatic 69) ShareRibbon/Resources/js/message-sender.js:619 — showContextHints has cyclomatic complexity 69 (threshold 15).
D1 · Cyclomatic Complexity · ProfessionalDeckExecutor.ValidateSceneSpec (cyclomatic 65) · ×1
  • ProfessionalDeckExecutor.ValidateSceneSpec (cyclomatic 65) PowerPointAi/Design/ProfessionalDeckExecutor.vb:259 — ProfessionalDeckExecutor.ValidateSceneSpec has cyclomatic complexity 65 (threshold 15).
D1 · Cyclomatic Complexity · showAgentExecutionExplanation (cyclomatic 61) · ×1
  • showAgentExecutionExplanation (cyclomatic 61) ShareRibbon/Resources/js/agent-card.js:306 — showAgentExecutionExplanation has cyclomatic complexity 61 (threshold 15).
D1 · Cyclomatic Complexity · MemoryRepository.ListAtomicMemories (cyclomatic 49) · ×1
  • MemoryRepository.ListAtomicMemories (cyclomatic 49) ShareRibbon/Storage/MemoryRepository.vb:125 — MemoryRepository.ListAtomicMemories has cyclomatic complexity 49 (threshold 15).
D1 · Cyclomatic Complexity · HttpStreamService.SendToolResultForReActAsync (cyclomatic 48) · ×1
  • HttpStreamService.SendToolResultForReActAsync (cyclomatic 48) ShareRibbon/Controls/Services/HttpStreamService.vb:1148 — HttpStreamService.SendToolResultForReActAsync has cyclomatic complexity 48 (threshold 15).
D1 · Cyclomatic Complexity · ChatContextBuilder.BuildMessages (cyclomatic 47) · ×1
  • ChatContextBuilder.BuildMessages (cyclomatic 47) ShareRibbon/Controls/Services/ChatContextBuilder.vb:34 — ChatContextBuilder.BuildMessages has cyclomatic complexity 47 (threshold 15).
D1 · Cyclomatic Complexity · ExcelDirectOperationService.ExecuteFormatChart (cyclomatic 47) · ×1
  • ExcelDirectOperationService.ExecuteFormatChart (cyclomatic 47) ExcelAi/ExcelDirectOperationService.vb:432 — ExcelDirectOperationService.ExecuteFormatChart has cyclomatic complexity 47 (threshold 15).
D1 · Cyclomatic Complexity · DocumentAnalyzer.ScoreOfficialDocument (cyclomatic 45) · ×1
  • DocumentAnalyzer.ScoreOfficialDocument (cyclomatic 45) ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:381 — DocumentAnalyzer.ScoreOfficialDocument has cyclomatic complexity 45 (threshold 15).
D1 · Cyclomatic Complexity · LoopEngine.RunAsync (cyclomatic 45) · ×1
  • LoopEngine.RunAsync (cyclomatic 45) ShareRibbon/Agent/LoopEngine.vb:45 — LoopEngine.RunAsync has cyclomatic complexity 45 (threshold 15).
D1 · Cyclomatic Complexity · HttpStreamService.SendStreamRequestAsync (cyclomatic 45) · ×1
  • HttpStreamService.SendStreamRequestAsync (cyclomatic 45) ShareRibbon/Controls/Services/HttpStreamService.vb:420 — HttpStreamService.SendStreamRequestAsync has cyclomatic complexity 45 (threshold 15).
D1 · Cyclomatic Complexity · SkillsDirectoryService.ParseFrontMatterLines (cyclomatic 45) · ×1
  • SkillsDirectoryService.ParseFrontMatterLines (cyclomatic 45) ShareRibbon/Services/SkillsDirectoryService.vb:498 — SkillsDirectoryService.ParseFrontMatterLines has cyclomatic complexity 45 (threshold 15).
D1 · Cyclomatic Complexity · SmartFormattingOrchestrator.InferDefaultTag (cyclomatic 40) · ×1
  • SmartFormattingOrchestrator.InferDefaultTag (cyclomatic 40) ShareRibbon/Services/Reformat/SmartFormattingOrchestrator.vb:805 — SmartFormattingOrchestrator.InferDefaultTag has cyclomatic complexity 40 (threshold 15).
D1 · Cyclomatic Complexity · ExcelDirectOperationService.ExecuteCreateChart (cyclomatic 40) · ×1
  • ExcelDirectOperationService.ExecuteCreateChart (cyclomatic 40) ExcelAi/ExcelDirectOperationService.vb:551 — ExcelDirectOperationService.ExecuteCreateChart has cyclomatic complexity 40 (threshold 15).
D1 · Cyclomatic Complexity · ToolRegistry.ExecuteToolAsync (cyclomatic 39) · ×1
  • ToolRegistry.ExecuteToolAsync (cyclomatic 39) ShareRibbon/Agent/ToolRegistry.vb:657 — ToolRegistry.ExecuteToolAsync has cyclomatic complexity 39 (threshold 15).
D1 · Cyclomatic Complexity · ChatRoutingOrchestrator.RouteSmartModeAsync (cyclomatic 38) · ×1
  • ChatRoutingOrchestrator.RouteSmartModeAsync (cyclomatic 38) ShareRibbon/Controls/Services/ChatRoutingOrchestrator.vb:64 — ChatRoutingOrchestrator.RouteSmartModeAsync has cyclomatic complexity 38 (threshold 15).
D1 · Cyclomatic Complexity · SkillsService.CalculateMatchScore (cyclomatic 38) · ×1
  • SkillsService.CalculateMatchScore (cyclomatic 38) ShareRibbon/Services/SkillsService.vb:193 — SkillsService.CalculateMatchScore has cyclomatic complexity 38 (threshold 15).
D1 · Cyclomatic Complexity · MCPConfigForm.GenerateParameterTemplate (cyclomatic 36) · ×1
  • MCPConfigForm.GenerateParameterTemplate (cyclomatic 36) ShareRibbon/Mcp/MCPConfigForm.vb:898 — MCPConfigForm.GenerateParameterTemplate has cyclomatic complexity 36 (threshold 15).
D1 · Cyclomatic Complexity · FileParserService.DetectFileEncoding (cyclomatic 35) · ×1
  • FileParserService.DetectFileEncoding (cyclomatic 35) ShareRibbon/Controls/Services/FileParserService.vb:152 — FileParserService.DetectFileEncoding has cyclomatic complexity 35 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.ApplyFormattingToRange (cyclomatic 35) · ×1
  • ChatControl.ApplyFormattingToRange (cyclomatic 35) WordAi/ChatControl.vb:2805 — ChatControl.ApplyFormattingToRange has cyclomatic complexity 35 (threshold 15).
D1 · Cyclomatic Complexity · WordTemplateParser.MatchStyleToTag (cyclomatic 35) · ×1
  • WordTemplateParser.MatchStyleToTag (cyclomatic 35) WordAi/Services/Reformat/WordTemplateParser.vb:170 — WordTemplateParser.MatchStyleToTag has cyclomatic complexity 35 (threshold 15).
D1 · Cyclomatic Complexity · WordContextProvider.GetContext (cyclomatic 33) · ×1
  • WordContextProvider.GetContext (cyclomatic 33) WordAi/Context/WordContextProvider.vb:15 — WordContextProvider.GetContext has cyclomatic complexity 33 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.AppendCurrentSelectedContent (cyclomatic 33) · ×1
  • ChatControl.AppendCurrentSelectedContent (cyclomatic 33) PowerPointAi/ChatControl.vb:573 — ChatControl.AppendCurrentSelectedContent has cyclomatic complexity 33 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.IsExplicitFormattingRequest (cyclomatic 32) · ×1
  • ChatControl.IsExplicitFormattingRequest (cyclomatic 32) WordAi/ChatControl.vb:1368 — ChatControl.IsExplicitFormattingRequest has cyclomatic complexity 32 (threshold 15).
D1 · Cyclomatic Complexity · WordTemplateParser.EnrichFromDocumentBody (cyclomatic 32) · ×1
  • WordTemplateParser.EnrichFromDocumentBody (cyclomatic 32) WordAi/Services/Reformat/WordTemplateParser.vb:256 — WordTemplateParser.EnrichFromDocumentBody has cyclomatic complexity 32 (threshold 15).
D1 · Cyclomatic Complexity · PowerPointObjectResolver.ResolvePath (cyclomatic 32) · ×1
  • PowerPointObjectResolver.ResolvePath (cyclomatic 32) PowerPointAi/Runtime/PowerPointObjectResolver.vb:110 — PowerPointObjectResolver.ResolvePath has cyclomatic complexity 32 (threshold 15).
D1 · Cyclomatic Complexity · SmartFormattingOrchestrator.ApplyTweakToTags (cyclomatic 31) · ×1
  • SmartFormattingOrchestrator.ApplyTweakToTags (cyclomatic 31) ShareRibbon/Services/Reformat/SmartFormattingOrchestrator.vb:1112 — SmartFormattingOrchestrator.ApplyTweakToTags has cyclomatic complexity 31 (threshold 15).
D1 · Cyclomatic Complexity · ProfessionalDeckExecutor.ExecuteInternal (cyclomatic 31) · ×1
  • ProfessionalDeckExecutor.ExecuteInternal (cyclomatic 31) PowerPointAi/Design/ProfessionalDeckExecutor.vb:47 — ProfessionalDeckExecutor.ExecuteInternal has cyclomatic complexity 31 (threshold 15).
D1 · Cyclomatic Complexity · SmartFormattingOrchestrator.ParseUserIntent (cyclomatic 30) · ×1
  • SmartFormattingOrchestrator.ParseUserIntent (cyclomatic 30) ShareRibbon/Services/Reformat/SmartFormattingOrchestrator.vb:396 — SmartFormattingOrchestrator.ParseUserIntent has cyclomatic complexity 30 (threshold 15).
D1 · Cyclomatic Complexity · SemanticPromptBuilder.BuildSemanticTaggingPrompt (cyclomatic 30) · ×1
  • SemanticPromptBuilder.BuildSemanticTaggingPrompt (cyclomatic 30) ShareRibbon/Services/Reformat/SemanticPromptBuilder.vb:28 — SemanticPromptBuilder.BuildSemanticTaggingPrompt has cyclomatic complexity 30 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.ApplyTemplateToDocument (cyclomatic 30) · ×1
  • ChatControl.ApplyTemplateToDocument (cyclomatic 30) WordAi/ChatControl.vb:141 — ChatControl.ApplyTemplateToDocument has cyclomatic complexity 30 (threshold 15).
D1 · Cyclomatic Complexity · SemanticRenderingEngine.ApplyParagraphConfig (cyclomatic 29) · ×1
  • SemanticRenderingEngine.ApplyParagraphConfig (cyclomatic 29) ShareRibbon/Services/Reformat/SemanticRenderingEngine.vb:456 — SemanticRenderingEngine.ApplyParagraphConfig has cyclomatic complexity 29 (threshold 15).
D1 · Cyclomatic Complexity · ReformatCoordinator.BuildParagraphStyleInstruction (cyclomatic 29) · ×1
  • ReformatCoordinator.BuildParagraphStyleInstruction (cyclomatic 29) ShareRibbon/Services/Reformat/ReformatCoordinator.vb:194 — ReformatCoordinator.BuildParagraphStyleInstruction has cyclomatic complexity 29 (threshold 15).
D1 · Cyclomatic Complexity · AiNativeRuntime.BuildTaskSpec (cyclomatic 29) · ×1
  • AiNativeRuntime.BuildTaskSpec (cyclomatic 29) ShareRibbon/Agent/AiNativeRuntime.vb:113 — AiNativeRuntime.BuildTaskSpec has cyclomatic complexity 29 (threshold 15).
D1 · Cyclomatic Complexity · EmbeddingService.GetEmbeddingAsync (cyclomatic 29) · ×1
  • EmbeddingService.GetEmbeddingAsync (cyclomatic 29) ShareRibbon/Services/EmbeddingService.vb:90 — EmbeddingService.GetEmbeddingAsync has cyclomatic complexity 29 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.CheckAndCompleteProcessingHook (cyclomatic 29) · ×1
  • ChatControl.CheckAndCompleteProcessingHook (cyclomatic 29) WordAi/ChatControl.vb:2409 — ChatControl.CheckAndCompleteProcessingHook has cyclomatic complexity 29 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.ApplyReformatRules (cyclomatic 29) · ×1
  • ChatControl.ApplyReformatRules (cyclomatic 29) PowerPointAi/ChatControl.vb:2426 — ChatControl.ApplyReformatRules has cyclomatic complexity 29 (threshold 15).
D1 · Cyclomatic Complexity · ThisAddIn.FindXllPath (cyclomatic 29) · ×1
  • ThisAddIn.FindXllPath (cyclomatic 29) ExcelAi/ThisAddIn.vb:152 — ThisAddIn.FindXllPath has cyclomatic complexity 29 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.ApplyReformatRules (cyclomatic 28) · ×1
  • ChatControl.ApplyReformatRules (cyclomatic 28) WordAi/ChatControl.vb:2698 — ChatControl.ApplyReformatRules has cyclomatic complexity 28 (threshold 15).
D1 · Cyclomatic Complexity · showMappingPreview (cyclomatic 28) · ×1
  • showMappingPreview (cyclomatic 28) ShareRibbon/Resources/js/reformat-template.js:1307 — showMappingPreview has cyclomatic complexity 28 (threshold 15).
D1 · Cyclomatic Complexity · sendChatMessage (cyclomatic 28) · ×1
  • sendChatMessage (cyclomatic 28) ShareRibbon/Resources/js/message-sender.js:29 — sendChatMessage has cyclomatic complexity 28 (threshold 15).
D1 · Cyclomatic Complexity · MemoryRepository.GetUserProfile (cyclomatic 27) · ×1
  • MemoryRepository.GetUserProfile (cyclomatic 27) ShareRibbon/Storage/MemoryRepository.vb:415 — MemoryRepository.GetUserProfile has cyclomatic complexity 27 (threshold 15).
D1 · Cyclomatic Complexity · MemoryRepository.RecordPotentialConflictsForSession (cyclomatic 27) · ×1
  • MemoryRepository.RecordPotentialConflictsForSession (cyclomatic 27) ShareRibbon/Storage/MemoryRepository.vb:678 — MemoryRepository.RecordPotentialConflictsForSession has cyclomatic complexity 27 (threshold 15).
D1 · Cyclomatic Complexity · DocumentAnalyzer.DetectFormattingProblems (cyclomatic 27) · ×1
  • DocumentAnalyzer.DetectFormattingProblems (cyclomatic 27) ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:940 — DocumentAnalyzer.DetectFormattingProblems has cyclomatic complexity 27 (threshold 15).
D1 · Cyclomatic Complexity · OpenXmlReformatEngine.ExecuteSetParagraphStyle (cyclomatic 27) · ×1
  • OpenXmlReformatEngine.ExecuteSetParagraphStyle (cyclomatic 27) ShareRibbon/Services/Reformat/OpenXmlReformatEngine.vb:79 — OpenXmlReformatEngine.ExecuteSetParagraphStyle has cyclomatic complexity 27 (threshold 15).
D1 · Cyclomatic Complexity · IntentRecognitionService.IdentifyIntentWithLLMAsync (cyclomatic 27) · ×1
  • IntentRecognitionService.IdentifyIntentWithLLMAsync (cyclomatic 27) ShareRibbon/Controls/Services/IntentRecognitionService.vb:503 — IntentRecognitionService.IdentifyIntentWithLLMAsync has cyclomatic complexity 27 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.ApplyReformatWithTemplate (cyclomatic 27) · ×1
  • ChatControl.ApplyReformatWithTemplate (cyclomatic 27) PowerPointAi/ChatControl.vb:93 — ChatControl.ApplyReformatWithTemplate has cyclomatic complexity 27 (threshold 15).
D1 · Cyclomatic Complexity · MemoryRepository.GetSkillUsage (cyclomatic 26) · ×1
  • MemoryRepository.GetSkillUsage (cyclomatic 26) ShareRibbon/Storage/MemoryRepository.vb:769 — MemoryRepository.GetSkillUsage has cyclomatic complexity 26 (threshold 15).
D1 · Cyclomatic Complexity · ExceptionClassifier.Classify (cyclomatic 26) · ×1
  • ExceptionClassifier.Classify (cyclomatic 26) ShareRibbon/Common/ExceptionClassifier.vb:51 — ExceptionClassifier.Classify has cyclomatic complexity 26 (threshold 15).
D1 · Cyclomatic Complexity · OpenXmlReformatEngine.ExecuteSetCharacterFormat (cyclomatic 25) · ×1
  • OpenXmlReformatEngine.ExecuteSetCharacterFormat (cyclomatic 25) ShareRibbon/Services/Reformat/OpenXmlReformatEngine.vb:209 — OpenXmlReformatEngine.ExecuteSetCharacterFormat has cyclomatic complexity 25 (threshold 15).
D1 · Cyclomatic Complexity · SqliteNativeLoader.EnsureLoaded (cyclomatic 25) · ×1
  • SqliteNativeLoader.EnsureLoaded (cyclomatic 25) ShareRibbon/Config/SqliteNativeLoader.vb:20 — SqliteNativeLoader.EnsureLoaded has cyclomatic complexity 25 (threshold 15).
D1 · Cyclomatic Complexity · PowerPointVisualVerifier.VerifyAndRepairRenderedSlide (cyclomatic 25) · ×1
  • PowerPointVisualVerifier.VerifyAndRepairRenderedSlide (cyclomatic 25) PowerPointAi/Design/PowerPointVisualVerifier.vb:256 — PowerPointVisualVerifier.VerifyAndRepairRenderedSlide has cyclomatic complexity 25 (threshold 15).
D1 · Cyclomatic Complexity · parseJsonToPlan (cyclomatic 25) · ×1
  • parseJsonToPlan (cyclomatic 25) ShareRibbon/Resources/js/code-handler.js:1474 — parseJsonToPlan has cyclomatic complexity 25 (threshold 15).
D1 · Cyclomatic Complexity · FormatTemplateRepository.LoadTemplateElements (cyclomatic 24) · ×1
  • FormatTemplateRepository.LoadTemplateElements (cyclomatic 24) ShareRibbon/Storage/FormatTemplateRepository.vb:154 — FormatTemplateRepository.LoadTemplateElements has cyclomatic complexity 24 (threshold 15).
D1 · Cyclomatic Complexity · StyleGuideConverter.ParseAiResponse (cyclomatic 24) · ×1
  • StyleGuideConverter.ParseAiResponse (cyclomatic 24) ShareRibbon/Services/Reformat/StyleGuideConverter.vb:85 — StyleGuideConverter.ParseAiResponse has cyclomatic complexity 24 (threshold 15).
D1 · Cyclomatic Complexity · PowerPointVisualVerifier.ScoreComposition (cyclomatic 24) · ×1
  • PowerPointVisualVerifier.ScoreComposition (cyclomatic 24) PowerPointAi/Design/PowerPointVisualVerifier.vb:164 — PowerPointVisualVerifier.ScoreComposition has cyclomatic complexity 24 (threshold 15).
D1 · Cyclomatic Complexity · PowerPointOperationExecutor.ResolveSmartArtLayout (cyclomatic 24) · ×1
  • PowerPointOperationExecutor.ResolveSmartArtLayout (cyclomatic 24) PowerPointAi/Runtime/PowerPointOperationExecutor.vb:307 — PowerPointOperationExecutor.ResolveSmartArtLayout has cyclomatic complexity 24 (threshold 15).
D1 · Cyclomatic Complexity · ExcelDirectOperationService.ExecuteFormatRange (cyclomatic 24) · ×1
  • ExcelDirectOperationService.ExecuteFormatRange (cyclomatic 24) ExcelAi/ExcelDirectOperationService.vb:328 — ExcelDirectOperationService.ExecuteFormatRange has cyclomatic complexity 24 (threshold 15).
D1 · Cyclomatic Complexity · SemanticRenderingEngine.RestoreFormatSnapshot (cyclomatic 23) · ×1
  • SemanticRenderingEngine.RestoreFormatSnapshot (cyclomatic 23) ShareRibbon/Services/Reformat/SemanticRenderingEngine.vb:82 — SemanticRenderingEngine.RestoreFormatSnapshot has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · FormatMirrorService.ExtractFormattingFromDocument (cyclomatic 23) · ×1
  • FormatMirrorService.ExtractFormattingFromDocument (cyclomatic 23) ShareRibbon/Services/Reformat/FormatMirrorService.vb:36 — FormatMirrorService.ExtractFormattingFromDocument has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · ReformatCoordinator.BuildCharacterFormatInstruction (cyclomatic 23) · ×1
  • ReformatCoordinator.BuildCharacterFormatInstruction (cyclomatic 23) ShareRibbon/Services/Reformat/ReformatCoordinator.vb:276 — ReformatCoordinator.BuildCharacterFormatInstruction has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · ReformatTemplateEditorControl.LstLayoutElements_SelectedIndexChanged (cyclomatic 23) · ×1
  • ReformatTemplateEditorControl.LstLayoutElements_SelectedIndexChanged (cyclomatic 23) ShareRibbon/Controls/ReformatTemplateEditorControl.vb:559 — ReformatTemplateEditorControl.LstLayoutElements_SelectedIndexChanged has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · OpenXmlWordTranslator.ReplaceTextPreservingObjects (cyclomatic 23) · ×1
  • OpenXmlWordTranslator.ReplaceTextPreservingObjects (cyclomatic 23) WordAi/OpenXmlWordTranslator.vb:254 — OpenXmlWordTranslator.ReplaceTextPreservingObjects has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · showComparison (cyclomatic 23) · ×1
  • showComparison (cyclomatic 23) ShareRibbon/Resources/js/revision-manager.js:100 — showComparison has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · ConfigApiForm.CloudSaveButton_Click (cyclomatic 22) · ×1
  • ConfigApiForm.CloudSaveButton_Click (cyclomatic 22) ShareRibbon/Config/ConfigApiForm.vb:1344 — ConfigApiForm.CloudSaveButton_Click has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · MCPConfigForm.ShowToolDetails (cyclomatic 22) · ×1
  • MCPConfigForm.ShowToolDetails (cyclomatic 22) ShareRibbon/Mcp/MCPConfigForm.vb:558 — MCPConfigForm.ShowToolDetails has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · HttpStreamService.ProcessCompletedToolCallsAsync (cyclomatic 22) · ×1
  • HttpStreamService.ProcessCompletedToolCallsAsync (cyclomatic 22) ShareRibbon/Controls/Services/HttpStreamService.vb:1005 — HttpStreamService.ProcessCompletedToolCallsAsync has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · PreSendChecker.CheckAsync (cyclomatic 22) · ×1
  • PreSendChecker.CheckAsync (cyclomatic 22) ShareRibbon/Loop/Checkers/PreSendChecker.vb:15 — PreSendChecker.CheckAsync has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · ParagraphService.SetParagraphFormat (cyclomatic 22) · ×1
  • ParagraphService.SetParagraphFormat (cyclomatic 22) WordAi/Services/ParagraphService.vb:155 — ParagraphService.SetParagraphFormat has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · OpenXmlWordTranslator.ScanInternal (cyclomatic 22) · ×1
  • OpenXmlWordTranslator.ScanInternal (cyclomatic 22) WordAi/OpenXmlWordTranslator.vb:50 — OpenXmlWordTranslator.ScanInternal has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · PowerPointVisualVerifier.PreflightAndRepair (cyclomatic 22) · ×1
  • PowerPointVisualVerifier.PreflightAndRepair (cyclomatic 22) PowerPointAi/Design/PowerPointVisualVerifier.vb:15 — PowerPointVisualVerifier.PreflightAndRepair has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · previewTemplate (cyclomatic 22) · ×1
  • previewTemplate (cyclomatic 22) ShareRibbon/Resources/js/reformat-template.js:828 — previewTemplate has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · _createTemplateCard (cyclomatic 22) · ×1
  • _createTemplateCard (cyclomatic 22) ShareRibbon/Resources/js/markdown-renderer.js:113 — _createTemplateCard has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · code (cyclomatic 22) · ×1
  • code (cyclomatic 22) ShareRibbon/Resources/js/core.js:23 — code has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · ConfigApiForm.LocalSaveButton_Click (cyclomatic 21) · ×1
  • ConfigApiForm.LocalSaveButton_Click (cyclomatic 21) ShareRibbon/Config/ConfigApiForm.vb:1659 — ConfigApiForm.LocalSaveButton_Click has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · DocumentAnalyzer.DetectHeadingLevel (cyclomatic 21) · ×1
  • DocumentAnalyzer.DetectHeadingLevel (cyclomatic 21) ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:796 — DocumentAnalyzer.DetectHeadingLevel has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · PromptManager.BuildSystemPrompt (cyclomatic 21) · ×1
  • PromptManager.BuildSystemPrompt (cyclomatic 21) ShareRibbon/Agent/PromptManager.vb:44 — PromptManager.BuildSystemPrompt has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · SafetyGate.EvaluateOfficeOperation (cyclomatic 21) · ×1
  • SafetyGate.EvaluateOfficeOperation (cyclomatic 21) ShareRibbon/Agent/Execution/SafetyGate.vb:91 — SafetyGate.EvaluateOfficeOperation has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · ReformatTemplateEditorControl.LstBodyStyles_SelectedIndexChanged (cyclomatic 21) · ×1
  • ReformatTemplateEditorControl.LstBodyStyles_SelectedIndexChanged (cyclomatic 21) ShareRibbon/Controls/ReformatTemplateEditorControl.vb:622 — ReformatTemplateEditorControl.LstBodyStyles_SelectedIndexChanged has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · CodeExecutionService.ExecuteCodeWithToolResult (cyclomatic 21) · ×1
  • CodeExecutionService.ExecuteCodeWithToolResult (cyclomatic 21) ShareRibbon/Controls/Services/CodeExecutionService.vb:143 — CodeExecutionService.ExecuteCodeWithToolResult has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.ApplySemanticTaggingResult (cyclomatic 21) · ×1
  • ChatControl.ApplySemanticTaggingResult (cyclomatic 21) WordAi/ChatControl.vb:2977 — ChatControl.ApplySemanticTaggingResult has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · WordCompletionManager.OnSelectionChange (cyclomatic 21) · ×1
  • WordCompletionManager.OnSelectionChange (cyclomatic 21) WordAi/WordCompletionManager.vb:111 — WordCompletionManager.OnSelectionChange has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · PptGenerationHandler.ParseSlideContent (cyclomatic 21) · ×1
  • PptGenerationHandler.ParseSlideContent (cyclomatic 21) PowerPointAi/Handlers/PptGenerationHandler.vb:95 — PptGenerationHandler.ParseSlideContent has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · PowerPointCompletionManager.OnSelectionChange (cyclomatic 21) · ×1
  • PowerPointCompletionManager.OnSelectionChange (cyclomatic 21) PowerPointAi/PowerPointCompletionManager.vb:111 — PowerPointCompletionManager.OnSelectionChange has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · handleSmartInputKeydown (cyclomatic 21) · ×1
  • handleSmartInputKeydown (cyclomatic 21) ShareRibbon/Resources/js/autocomplete.js:106 — handleSmartInputKeydown has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · DocumentAnalyzer.ScoreBusinessReport (cyclomatic 20) · ×1
  • DocumentAnalyzer.ScoreBusinessReport (cyclomatic 20) ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:576 — DocumentAnalyzer.ScoreBusinessReport has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · AgentMemory.Search (cyclomatic 20) · ×1
  • AgentMemory.Search (cyclomatic 20) ShareRibbon/Agent/AgentMemory.vb:225 — AgentMemory.Search has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · PromptManager.BuildPlanningPrompt (cyclomatic 20) · ×1
  • PromptManager.BuildPlanningPrompt (cyclomatic 20) ShareRibbon/Agent/PromptManager.vb:165 — PromptManager.BuildPlanningPrompt has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · MCPConfigForm.TestConnectionAsync (cyclomatic 20) · ×1
  • MCPConfigForm.TestConnectionAsync (cyclomatic 20) ShareRibbon/Mcp/MCPConfigForm.vb:1195 — MCPConfigForm.TestConnectionAsync has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · HttpStreamService.ProcessStreamChunkAsync (cyclomatic 20) · ×1
  • HttpStreamService.ProcessStreamChunkAsync (cyclomatic 20) ShareRibbon/Controls/Services/HttpStreamService.vb:811 — HttpStreamService.ProcessStreamChunkAsync has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · SkillsDirectoryService.DiscoverSkillScripts (cyclomatic 20) · ×1
  • SkillsDirectoryService.DiscoverSkillScripts (cyclomatic 20) ShareRibbon/Services/SkillsDirectoryService.vb:361 — SkillsDirectoryService.DiscoverSkillScripts has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · SkillsService.BuildSkillsCatalogMessage (cyclomatic 20) · ×1
  • SkillsService.BuildSkillsCatalogMessage (cyclomatic 20) ShareRibbon/Services/SkillsService.vb:455 — SkillsService.BuildSkillsCatalogMessage has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.ApplyStylePreviewToSelection (cyclomatic 20) · ×1
  • ChatControl.ApplyStylePreviewToSelection (cyclomatic 20) WordAi/ChatControl.vb:1968 — ChatControl.ApplyStylePreviewToSelection has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · SmartFormatter.ExecuteFormatAction (cyclomatic 20) · ×1
  • SmartFormatter.ExecuteFormatAction (cyclomatic 20) WordAi/Services/SmartFormatter.vb:54 — SmartFormatter.ExecuteFormatAction has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · Ribbon1.ExtractTemplateStructure (cyclomatic 20) · ×1
  • Ribbon1.ExtractTemplateStructure (cyclomatic 20) WordAi/Ribbon1.vb:265 — Ribbon1.ExtractTemplateStructure has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · ThisAddIn.ApplyPlaceholderPreviewToDocument (cyclomatic 20) · ×1
  • ThisAddIn.ApplyPlaceholderPreviewToDocument (cyclomatic 20) WordAi/ThisAddIn.vb:305 — ThisAddIn.ApplyPlaceholderPreviewToDocument has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.ParseFile (cyclomatic 20) · ×1
  • ChatControl.ParseFile (cyclomatic 20) PowerPointAi/ChatControl.vb:433 — ChatControl.ParseFile has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · PowerPointVisualVerifier.VerifyRenderedPixels (cyclomatic 20) · ×1
  • PowerPointVisualVerifier.VerifyRenderedPixels (cyclomatic 20) PowerPointAi/Design/PowerPointVisualVerifier.Rendered.vb:11 — PowerPointVisualVerifier.VerifyRenderedPixels has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · PowerPointVisualVerifier.ScoreRenderedComposition (cyclomatic 20) · ×1
  • PowerPointVisualVerifier.ScoreRenderedComposition (cyclomatic 20) PowerPointAi/Design/PowerPointVisualVerifier.Rendered.vb:165 — PowerPointVisualVerifier.ScoreRenderedComposition has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · PowerPointOperationObserver.VerifyExpectedEffects (cyclomatic 20) · ×1
  • PowerPointOperationObserver.VerifyExpectedEffects (cyclomatic 20) PowerPointAi/Runtime/PowerPointOperationObserver.vb:113 — PowerPointOperationObserver.VerifyExpectedEffects has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · PowerPointOperationExecutor.Execute (cyclomatic 20) · ×1
  • PowerPointOperationExecutor.Execute (cyclomatic 20) PowerPointAi/Runtime/PowerPointOperationExecutor.vb:17 — PowerPointOperationExecutor.Execute has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 20) · ×1
  • (anonymous) (cyclomatic 20) ShareRibbon/Resources/js/message-sender.js:701 — (anonymous) has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · DocumentAnalyzer.ScoreResume (cyclomatic 19) · ×1
  • DocumentAnalyzer.ScoreResume (cyclomatic 19) ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:661 — DocumentAnalyzer.ScoreResume has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · TaggingValidator.Validate (cyclomatic 19) · ×1
  • TaggingValidator.Validate (cyclomatic 19) ShareRibbon/Services/Reformat/TaggingValidator.vb:30 — TaggingValidator.Validate has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · ToolRegistry.ExecuteSkillScriptAsync (cyclomatic 19) · ×1
  • ToolRegistry.ExecuteSkillScriptAsync (cyclomatic 19) ShareRibbon/Agent/ToolRegistry.vb:982 — ToolRegistry.ExecuteSkillScriptAsync has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · BaseChatControl.SendAndGetResponseAsync (cyclomatic 19) · ×1
  • BaseChatControl.SendAndGetResponseAsync (cyclomatic 19) ShareRibbon/Controls/BaseChatControl.vb:2006 — BaseChatControl.SendAndGetResponseAsync has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · SkillsDirectoryService.ParseSkillJsonFile (cyclomatic 19) · ×1
  • SkillsDirectoryService.ParseSkillJsonFile (cyclomatic 19) ShareRibbon/Services/SkillsDirectoryService.vb:616 — SkillsDirectoryService.ParseSkillJsonFile has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · UnifiedMemoryService.CalculateImportance (cyclomatic 19) · ×1
  • UnifiedMemoryService.CalculateImportance (cyclomatic 19) ShareRibbon/Services/UnifiedMemoryService.vb:12 — UnifiedMemoryService.CalculateImportance has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.HandleApplyDocumentPlanItem (cyclomatic 19) · ×1
  • ChatControl.HandleApplyDocumentPlanItem (cyclomatic 19) WordAi/ChatControl.vb:2611 — ChatControl.HandleApplyDocumentPlanItem has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · WordFormattingAgent.ResolveObservationRanges (cyclomatic 19) · ×1
  • WordFormattingAgent.ResolveObservationRanges (cyclomatic 19) WordAi/Services/WordFormattingAgent.vb:293 — WordFormattingAgent.ResolveObservationRanges has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · WordTemplateParser.ApplyParagraphPropertiesToConfig (cyclomatic 19) · ×1
  • WordTemplateParser.ApplyParagraphPropertiesToConfig (cyclomatic 19) WordAi/Services/Reformat/WordTemplateParser.vb:401 — WordTemplateParser.ApplyParagraphPropertiesToConfig has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · WordContinuationService.GetCursorContext (cyclomatic 19) · ×1
  • WordContinuationService.GetCursorContext (cyclomatic 19) WordAi/WordContinuationService.vb:43 — WordContinuationService.GetCursorContext has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.ApplyFormattingToShape (cyclomatic 19) · ×1
  • ChatControl.ApplyFormattingToShape (cyclomatic 19) PowerPointAi/ChatControl.vb:2532 — ChatControl.ApplyFormattingToShape has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · PowerPointContextProvider.GetContext (cyclomatic 19) · ×1
  • PowerPointContextProvider.GetContext (cyclomatic 19) PowerPointAi/Context/PowerPointContextProvider.vb:15 — PowerPointContextProvider.GetContext has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · PowerPointApiCatalogProvider.ScoreEntry (cyclomatic 19) · ×1
  • PowerPointApiCatalogProvider.ScoreEntry (cyclomatic 19) PowerPointAi/Runtime/PowerPointApiCatalogProvider.vb:420 — PowerPointApiCatalogProvider.ScoreEntry has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · PowerPointOperationExecutor.BuildResultRef (cyclomatic 19) · ×1
  • PowerPointOperationExecutor.BuildResultRef (cyclomatic 19) PowerPointAi/Runtime/PowerPointOperationExecutor.vb:387 — PowerPointOperationExecutor.BuildResultRef has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · ExcelJsonCommandSchema.NormalizeParamNames (cyclomatic 19) · ×1
  • ExcelJsonCommandSchema.NormalizeParamNames (cyclomatic 19) ExcelAi/ExcelJsonCommandSchema.vb:295 — ExcelJsonCommandSchema.NormalizeParamNames has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · executeCodeAutoMode (cyclomatic 19) · ×1
  • executeCodeAutoMode (cyclomatic 19) ShareRibbon/Resources/js/code-handler.js:1283 — executeCodeAutoMode has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · setChatMessages (cyclomatic 19) · ×1
  • setChatMessages (cyclomatic 19) ShareRibbon/Resources/js/chat-manager.js:247 — setChatMessages has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · MemoryRepository.InsertMemory (cyclomatic 18) · ×1
  • MemoryRepository.InsertMemory (cyclomatic 18) ShareRibbon/Storage/MemoryRepository.vb:542 — MemoryRepository.InsertMemory has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · DocumentAnalyzer.Analyze (cyclomatic 18) · ×1
  • DocumentAnalyzer.Analyze (cyclomatic 18) ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:255 — DocumentAnalyzer.Analyze has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · LoopEngine.BuildExecutionExplanation (cyclomatic 18) · ×1
  • LoopEngine.BuildExecutionExplanation (cyclomatic 18) ShareRibbon/Agent/LoopEngine.Planning.vb:13 — LoopEngine.BuildExecutionExplanation has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · LoopEngine.SendRepairRequestAsync (cyclomatic 18) · ×1
  • LoopEngine.SendRepairRequestAsync (cyclomatic 18) ShareRibbon/Agent/LoopEngine.Planning.vb:557 — LoopEngine.SendRepairRequestAsync has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · LoopEngine.ValidateObservedOutcome (cyclomatic 18) · ×1
  • LoopEngine.ValidateObservedOutcome (cyclomatic 18) ShareRibbon/Agent/LoopEngine.Planning.vb:624 — LoopEngine.ValidateObservedOutcome has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · AutocompleteService.EnrichContextForIntent (cyclomatic 18) · ×1
  • AutocompleteService.EnrichContextForIntent (cyclomatic 18) ShareRibbon/Controls/Services/AutocompleteService.vb:70 — AutocompleteService.EnrichContextForIntent has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.ParseFile (cyclomatic 18) · ×1
  • ChatControl.ParseFile (cyclomatic 18) WordAi/ChatControl.vb:2134 — ChatControl.ParseFile has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · ProfessionalDeckExecutor.ValidateChartSpec (cyclomatic 18) · ×1
  • ProfessionalDeckExecutor.ValidateChartSpec (cyclomatic 18) PowerPointAi/Design/ProfessionalDeckExecutor.vb:362 — ProfessionalDeckExecutor.ValidateChartSpec has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · PowerPointOperationExecutor.ConvertArgument (cyclomatic 18) · ×1
  • PowerPointOperationExecutor.ConvertArgument (cyclomatic 18) PowerPointAi/Runtime/PowerPointOperationExecutor.vb:274 — PowerPointOperationExecutor.ConvertArgument has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · executeCode (cyclomatic 18) · ×1
  • executeCode (cyclomatic 18) ShareRibbon/Resources/js/code-handler.js:90 — executeCode has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · AgentMemoryRepository.ReadMemoryItem (cyclomatic 17) · ×1
  • AgentMemoryRepository.ReadMemoryItem (cyclomatic 17) ShareRibbon/Storage/AgentMemoryRepository.vb:39 — AgentMemoryRepository.ReadMemoryItem has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · AgentMemoryRepository.RetrieveMemoryItemsByVector (cyclomatic 17) · ×1
  • AgentMemoryRepository.RetrieveMemoryItemsByVector (cyclomatic 17) ShareRibbon/Storage/AgentMemoryRepository.vb:403 — AgentMemoryRepository.RetrieveMemoryItemsByVector has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · SkillsConfigForm.ListSelectionChanged (cyclomatic 17) · ×1
  • SkillsConfigForm.ListSelectionChanged (cyclomatic 17) ShareRibbon/Config/SkillsConfigForm.vb:296 — SkillsConfigForm.ListSelectionChanged has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · DocumentAnalyzer.AnalyzeStructure (cyclomatic 17) · ×1
  • DocumentAnalyzer.AnalyzeStructure (cyclomatic 17) ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:712 — DocumentAnalyzer.AnalyzeStructure has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · ReformatTemplateEditorControl.SaveCurrentLayoutElement (cyclomatic 17) · ×1
  • ReformatTemplateEditorControl.SaveCurrentLayoutElement (cyclomatic 17) ShareRibbon/Controls/ReformatTemplateEditorControl.vb:899 — ReformatTemplateEditorControl.SaveCurrentLayoutElement has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · ReformatTemplateEditorControl.SaveCurrentBodyStyle (cyclomatic 17) · ×1
  • ReformatTemplateEditorControl.SaveCurrentBodyStyle (cyclomatic 17) ShareRibbon/Controls/ReformatTemplateEditorControl.vb:939 — ReformatTemplateEditorControl.SaveCurrentBodyStyle has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · PostFlushValidator.FindFirstCompleteJsonEnd (cyclomatic 17) · ×1
  • PostFlushValidator.FindFirstCompleteJsonEnd (cyclomatic 17) ShareRibbon/Loop/Validators/PostFlushValidator.vb:230 — PostFlushValidator.FindFirstCompleteJsonEnd has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.HandleApplyRevisionSegment (cyclomatic 17) · ×1
  • ChatControl.HandleApplyRevisionSegment (cyclomatic 17) WordAi/ChatControl.vb:2282 — ChatControl.HandleApplyRevisionSegment has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · WordTemplateParser.ExtractPageSetup (cyclomatic 17) · ×1
  • WordTemplateParser.ExtractPageSetup (cyclomatic 17) WordAi/Services/Reformat/WordTemplateParser.vb:458 — WordTemplateParser.ExtractPageSetup has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.GetSelectionContent (cyclomatic 17) · ×1
  • ChatControl.GetSelectionContent (cyclomatic 17) PowerPointAi/ChatControl.vb:292 — ChatControl.GetSelectionContent has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · DoubaoChat.AppendCurrentSelectedContent (cyclomatic 17) · ×1
  • DoubaoChat.AppendCurrentSelectedContent (cyclomatic 17) PowerPointAi/DoubaoChat.vb:46 — DoubaoChat.AppendCurrentSelectedContent has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · PowerPointDocumentTranslateService.ApplyImmersiveMode (cyclomatic 17) · ×1
  • PowerPointDocumentTranslateService.ApplyImmersiveMode (cyclomatic 17) PowerPointAi/PowerPointDocumentTranslateService.vb:243 — PowerPointDocumentTranslateService.ApplyImmersiveMode has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · SlideComponentLibrary.BuildTableContent (cyclomatic 17) · ×1
  • SlideComponentLibrary.BuildTableContent (cyclomatic 17) PowerPointAi/Design/SlideComponentLibrary.vb:290 — SlideComponentLibrary.BuildTableContent has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · ExcelDirectOperationService.ExecuteWriteData (cyclomatic 17) · ×1
  • ExcelDirectOperationService.ExecuteWriteData (cyclomatic 17) ExcelAi/ExcelDirectOperationService.vb:123 — ExcelDirectOperationService.ExecuteWriteData has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · FormatTemplateRepository.ReadTemplateFromReader (cyclomatic 16) · ×1
  • FormatTemplateRepository.ReadTemplateFromReader (cyclomatic 16) ShareRibbon/Storage/FormatTemplateRepository.vb:127 — FormatTemplateRepository.ReadTemplateFromReader has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · ChatSettings.LoadSettings (cyclomatic 16) · ×1
  • ChatSettings.LoadSettings (cyclomatic 16) ShareRibbon/Config/ChatSettings.vb:72 — ChatSettings.LoadSettings has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · SemanticRenderingEngine.ApplySemanticFormatting (cyclomatic 16) · ×1
  • SemanticRenderingEngine.ApplySemanticFormatting (cyclomatic 16) ShareRibbon/Services/Reformat/SemanticRenderingEngine.vb:188 — SemanticRenderingEngine.ApplySemanticFormatting has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · SemanticPromptBuilder.GetExamplesByDocumentType (cyclomatic 16) · ×1
  • SemanticPromptBuilder.GetExamplesByDocumentType (cyclomatic 16) ShareRibbon/Services/Reformat/SemanticPromptBuilder.vb:212 — SemanticPromptBuilder.GetExamplesByDocumentType has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · LoopEngine.ValidateExecutionOutcome (cyclomatic 16) · ×1
  • LoopEngine.ValidateExecutionOutcome (cyclomatic 16) ShareRibbon/Agent/LoopEngine.Planning.vb:368 — LoopEngine.ValidateExecutionOutcome has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · BaseChatControl.HandleSendMessage (cyclomatic 16) · ×1
  • BaseChatControl.HandleSendMessage (cyclomatic 16) ShareRibbon/Controls/BaseChatControl.vb:1193 — BaseChatControl.HandleSendMessage has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · BaseChatControl.Send (cyclomatic 16) · ×1
  • BaseChatControl.Send (cyclomatic 16) ShareRibbon/Controls/BaseChatControl.vb:2584 — BaseChatControl.Send has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · ReformatTemplateEditorControl.SaveLayoutElementAt (cyclomatic 16) · ×1
  • ReformatTemplateEditorControl.SaveLayoutElementAt (cyclomatic 16) ShareRibbon/Controls/ReformatTemplateEditorControl.vb:826 — ReformatTemplateEditorControl.SaveLayoutElementAt has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · ReformatTemplateEditorControl.SaveBodyStyleAt (cyclomatic 16) · ×1
  • ReformatTemplateEditorControl.SaveBodyStyleAt (cyclomatic 16) ShareRibbon/Controls/ReformatTemplateEditorControl.vb:867 — ReformatTemplateEditorControl.SaveBodyStyleAt has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · MCPConfigForm.AdvancedButton_Click (cyclomatic 16) · ×1
  • MCPConfigForm.AdvancedButton_Click (cyclomatic 16) ShareRibbon/Mcp/MCPConfigForm.vb:406 — MCPConfigForm.AdvancedButton_Click has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · MCPConfigForm.SaveButton_Click (cyclomatic 16) · ×1
  • MCPConfigForm.SaveButton_Click (cyclomatic 16) ShareRibbon/Mcp/MCPConfigForm.vb:1480 — MCPConfigForm.SaveButton_Click has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · ExecutionPlanRenderer.GetFormulaDescription (cyclomatic 16) · ×1
  • ExecutionPlanRenderer.GetFormulaDescription (cyclomatic 16) ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:321 — ExecutionPlanRenderer.GetFormulaDescription has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.MergePreviewPlanTags (cyclomatic 16) · ×1
  • ChatControl.MergePreviewPlanTags (cyclomatic 16) WordAi/ChatControl.vb:2933 — ChatControl.MergePreviewPlanTags has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.ExecuteDslCommand (cyclomatic 16) · ×1
  • ChatControl.ExecuteDslCommand (cyclomatic 16) WordAi/ChatControl.vb:4146 — ChatControl.ExecuteDslCommand has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · FormattingIntentPlan.OperationToText (cyclomatic 16) · ×1
  • FormattingIntentPlan.OperationToText (cyclomatic 16) WordAi/Services/FormattingIntentCompiler.vb:117 — FormattingIntentPlan.OperationToText has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · WebDataCapturePane.HandleMediaContainerContent (cyclomatic 16) · ×1
  • WebDataCapturePane.HandleMediaContainerContent (cyclomatic 16) WordAi/WebDataCapturePane.vb:490 — WebDataCapturePane.HandleMediaContainerContent has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.GetSlideContent (cyclomatic 16) · ×1
  • ChatControl.GetSlideContent (cyclomatic 16) PowerPointAi/ChatControl.vb:840 — ChatControl.GetSlideContent has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · ProfessionalDeckExecutor.ValidateVariant (cyclomatic 16) · ×1
  • ProfessionalDeckExecutor.ValidateVariant (cyclomatic 16) PowerPointAi/Design/ProfessionalDeckExecutor.vb:342 — ProfessionalDeckExecutor.ValidateVariant has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · ChatControl.ExecuteCommandsArray (cyclomatic 16) · ×1
  • ChatControl.ExecuteCommandsArray (cyclomatic 16) ExcelAi/ChatControl.vb:572 — ChatControl.ExecuteCommandsArray has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · ExcelContextProvider.BuildColumnTypeSummary (cyclomatic 16) · ×1
  • ExcelContextProvider.BuildColumnTypeSummary (cyclomatic 16) ExcelAi/Context/ExcelContextProvider.vb:153 — ExcelContextProvider.BuildColumnTypeSummary has cyclomatic complexity 16 (threshold 15).
D17 · Explicit Debt · XxxComment · ×1
  • XxxComment ShareRibbon/Controls/Services/HttpStreamService.vb:704 — ' Anthropic SSE 格式: event: xxx\ndata: {...} — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
D19 · Documentation Quality · LLM evaluation failed · ×1
  • LLM evaluation failed — JSON parse error: Expected end of string, but instead reached end of data. Path: $.findings[1].issue | LineNumber: 0 | BytePositionInLine: 1091.
D2 · Cognitive Complexity · MemoryRepository.GetRelevantMemories (cognitive 154) · ×1
  • MemoryRepository.GetRelevantMemories (cognitive 154) ShareRibbon/Storage/MemoryRepository.vb:205 — MemoryRepository.GetRelevantMemories has cognitive complexity 154 (threshold 15).
D2 · Cognitive Complexity · ChatContextBuilder.BuildMessages (cognitive 115) · ×1
  • ChatContextBuilder.BuildMessages (cognitive 115) ShareRibbon/Controls/Services/ChatContextBuilder.vb:34 — ChatContextBuilder.BuildMessages has cognitive complexity 115 (threshold 15).
D2 · Cognitive Complexity · ChatControl.AppendCurrentSelectedContent (cognitive 110) · ×1
  • ChatControl.AppendCurrentSelectedContent (cognitive 110) PowerPointAi/ChatControl.vb:573 — ChatControl.AppendCurrentSelectedContent has cognitive complexity 110 (threshold 15).
D2 · Cognitive Complexity · LoopEngine.RunAsync (cognitive 99) · ×1
  • LoopEngine.RunAsync (cognitive 99) ShareRibbon/Agent/LoopEngine.vb:45 — LoopEngine.RunAsync has cognitive complexity 99 (threshold 15).
D2 · Cognitive Complexity · showContextHints (cognitive 94) · ×1
  • showContextHints (cognitive 94) ShareRibbon/Resources/js/message-sender.js:619 — showContextHints has cognitive complexity 94 (threshold 15).
D2 · Cognitive Complexity · SkillsService.CalculateMatchScore (cognitive 93) · ×1
  • SkillsService.CalculateMatchScore (cognitive 93) ShareRibbon/Services/SkillsService.vb:193 — SkillsService.CalculateMatchScore has cognitive complexity 93 (threshold 15).
D2 · Cognitive Complexity · ExcelDirectOperationService.ExecuteFormatChart (cognitive 93) · ×1
  • ExcelDirectOperationService.ExecuteFormatChart (cognitive 93) ExcelAi/ExcelDirectOperationService.vb:432 — ExcelDirectOperationService.ExecuteFormatChart has cognitive complexity 93 (threshold 15).
D2 · Cognitive Complexity · ExcelDirectOperationService.ExecuteCreateChart (cognitive 90) · ×1
  • ExcelDirectOperationService.ExecuteCreateChart (cognitive 90) ExcelAi/ExcelDirectOperationService.vb:551 — ExcelDirectOperationService.ExecuteCreateChart has cognitive complexity 90 (threshold 15).
D2 · Cognitive Complexity · MCPConfigForm.GenerateParameterTemplate (cognitive 84) · ×1
  • MCPConfigForm.GenerateParameterTemplate (cognitive 84) ShareRibbon/Mcp/MCPConfigForm.vb:898 — MCPConfigForm.GenerateParameterTemplate has cognitive complexity 84 (threshold 15).
D2 · Cognitive Complexity · ProfessionalDeckExecutor.ValidateSceneSpec (cognitive 82) · ×1
  • ProfessionalDeckExecutor.ValidateSceneSpec (cognitive 82) PowerPointAi/Design/ProfessionalDeckExecutor.vb:259 — ProfessionalDeckExecutor.ValidateSceneSpec has cognitive complexity 82 (threshold 15).
D2 · Cognitive Complexity · WordTemplateParser.EnrichFromDocumentBody (cognitive 81) · ×1
  • WordTemplateParser.EnrichFromDocumentBody (cognitive 81) WordAi/Services/Reformat/WordTemplateParser.vb:256 — WordTemplateParser.EnrichFromDocumentBody has cognitive complexity 81 (threshold 15).
D2 · Cognitive Complexity · WordContextProvider.GetContext (cognitive 77) · ×1
  • WordContextProvider.GetContext (cognitive 77) WordAi/Context/WordContextProvider.vb:15 — WordContextProvider.GetContext has cognitive complexity 77 (threshold 15).
D2 · Cognitive Complexity · SmartFormattingOrchestrator.InferDefaultTag (cognitive 76) · ×1
  • SmartFormattingOrchestrator.InferDefaultTag (cognitive 76) ShareRibbon/Services/Reformat/SmartFormattingOrchestrator.vb:805 — SmartFormattingOrchestrator.InferDefaultTag has cognitive complexity 76 (threshold 15).
D2 · Cognitive Complexity · MCPConfigForm.ShowToolDetails (cognitive 73) · ×1
  • MCPConfigForm.ShowToolDetails (cognitive 73) ShareRibbon/Mcp/MCPConfigForm.vb:558 — MCPConfigForm.ShowToolDetails has cognitive complexity 73 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ApplyTemplateToDocument (cognitive 73) · ×1
  • ChatControl.ApplyTemplateToDocument (cognitive 73) WordAi/ChatControl.vb:141 — ChatControl.ApplyTemplateToDocument has cognitive complexity 73 (threshold 15).
D2 · Cognitive Complexity · StyleGuideConverter.ParseAiResponse (cognitive 68) · ×1
  • StyleGuideConverter.ParseAiResponse (cognitive 68) ShareRibbon/Services/Reformat/StyleGuideConverter.vb:85 — StyleGuideConverter.ParseAiResponse has cognitive complexity 68 (threshold 15).
D2 · Cognitive Complexity · PowerPointObjectResolver.ResolvePath (cognitive 64) · ×1
  • PowerPointObjectResolver.ResolvePath (cognitive 64) PowerPointAi/Runtime/PowerPointObjectResolver.vb:110 — PowerPointObjectResolver.ResolvePath has cognitive complexity 64 (threshold 15).
D2 · Cognitive Complexity · ReformatCoordinator.BuildParagraphStyleInstruction (cognitive 63) · ×1
  • ReformatCoordinator.BuildParagraphStyleInstruction (cognitive 63) ShareRibbon/Services/Reformat/ReformatCoordinator.vb:194 — ReformatCoordinator.BuildParagraphStyleInstruction has cognitive complexity 63 (threshold 15).
D2 · Cognitive Complexity · HttpStreamService.SendToolResultForReActAsync (cognitive 61) · ×1
  • HttpStreamService.SendToolResultForReActAsync (cognitive 61) ShareRibbon/Controls/Services/HttpStreamService.vb:1148 — HttpStreamService.SendToolResultForReActAsync has cognitive complexity 61 (threshold 15).
D2 · Cognitive Complexity · OpenXmlWordTranslator.ScanInternal (cognitive 60) · ×1
  • OpenXmlWordTranslator.ScanInternal (cognitive 60) WordAi/OpenXmlWordTranslator.vb:50 — OpenXmlWordTranslator.ScanInternal has cognitive complexity 60 (threshold 15).
D2 · Cognitive Complexity · PowerPointContextProvider.GetContext (cognitive 60) · ×1
  • PowerPointContextProvider.GetContext (cognitive 60) PowerPointAi/Context/PowerPointContextProvider.vb:15 — PowerPointContextProvider.GetContext has cognitive complexity 60 (threshold 15).
D2 · Cognitive Complexity · showAgentExecutionExplanation (cognitive 60) · ×1
  • showAgentExecutionExplanation (cognitive 60) ShareRibbon/Resources/js/agent-card.js:306 — showAgentExecutionExplanation has cognitive complexity 60 (threshold 15).
D2 · Cognitive Complexity · MemoryRepository.ListAtomicMemories (cognitive 59) · ×1
  • MemoryRepository.ListAtomicMemories (cognitive 59) ShareRibbon/Storage/MemoryRepository.vb:125 — MemoryRepository.ListAtomicMemories has cognitive complexity 59 (threshold 15).
D2 · Cognitive Complexity · HttpStreamService.SendStreamRequestAsync (cognitive 58) · ×1
  • HttpStreamService.SendStreamRequestAsync (cognitive 58) ShareRibbon/Controls/Services/HttpStreamService.vb:420 — HttpStreamService.SendStreamRequestAsync has cognitive complexity 58 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ApplyFormattingToRange (cognitive 58) · ×1
  • ChatControl.ApplyFormattingToRange (cognitive 58) WordAi/ChatControl.vb:2805 — ChatControl.ApplyFormattingToRange has cognitive complexity 58 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ParseFile (cognitive 58) · ×1
  • ChatControl.ParseFile (cognitive 58) PowerPointAi/ChatControl.vb:433 — ChatControl.ParseFile has cognitive complexity 58 (threshold 15).
D2 · Cognitive Complexity · ReformatCoordinator.BuildCharacterFormatInstruction (cognitive 56) · ×1
  • ReformatCoordinator.BuildCharacterFormatInstruction (cognitive 56) ShareRibbon/Services/Reformat/ReformatCoordinator.vb:276 — ReformatCoordinator.BuildCharacterFormatInstruction has cognitive complexity 56 (threshold 15).
D2 · Cognitive Complexity · OpenXmlReformatEngine.ExecuteSetCharacterFormat (cognitive 54) · ×1
  • OpenXmlReformatEngine.ExecuteSetCharacterFormat (cognitive 54) ShareRibbon/Services/Reformat/OpenXmlReformatEngine.vb:209 — OpenXmlReformatEngine.ExecuteSetCharacterFormat has cognitive complexity 54 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ApplyReformatRules (cognitive 54) · ×1
  • ChatControl.ApplyReformatRules (cognitive 54) PowerPointAi/ChatControl.vb:2426 — ChatControl.ApplyReformatRules has cognitive complexity 54 (threshold 15).
D2 · Cognitive Complexity · ChatControl.CheckAndCompleteProcessingHook (cognitive 53) · ×1
  • ChatControl.CheckAndCompleteProcessingHook (cognitive 53) WordAi/ChatControl.vb:2409 — ChatControl.CheckAndCompleteProcessingHook has cognitive complexity 53 (threshold 15).
D2 · Cognitive Complexity · ToolRegistry.ExecuteToolAsync (cognitive 52) · ×1
  • ToolRegistry.ExecuteToolAsync (cognitive 52) ShareRibbon/Agent/ToolRegistry.vb:657 — ToolRegistry.ExecuteToolAsync has cognitive complexity 52 (threshold 15).
D2 · Cognitive Complexity · ProfessionalDeckExecutor.ExecuteInternal (cognitive 50) · ×1
  • ProfessionalDeckExecutor.ExecuteInternal (cognitive 50) PowerPointAi/Design/ProfessionalDeckExecutor.vb:47 — ProfessionalDeckExecutor.ExecuteInternal has cognitive complexity 50 (threshold 15).
D2 · Cognitive Complexity · SkillsDirectoryService.DiscoverSkillScripts (cognitive 49) · ×1
  • SkillsDirectoryService.DiscoverSkillScripts (cognitive 49) ShareRibbon/Services/SkillsDirectoryService.vb:361 — SkillsDirectoryService.DiscoverSkillScripts has cognitive complexity 49 (threshold 15).
D2 · Cognitive Complexity · SkillsDirectoryService.ParseFrontMatterLines (cognitive 49) · ×1
  • SkillsDirectoryService.ParseFrontMatterLines (cognitive 49) ShareRibbon/Services/SkillsDirectoryService.vb:498 — SkillsDirectoryService.ParseFrontMatterLines has cognitive complexity 49 (threshold 15).
D2 · Cognitive Complexity · SmartFormattingOrchestrator.ApplyTweakToTags (cognitive 48) · ×1
  • SmartFormattingOrchestrator.ApplyTweakToTags (cognitive 48) ShareRibbon/Services/Reformat/SmartFormattingOrchestrator.vb:1112 — SmartFormattingOrchestrator.ApplyTweakToTags has cognitive complexity 48 (threshold 15).
D2 · Cognitive Complexity · AiNativeRuntime.BuildTaskSpec (cognitive 48) · ×1
  • AiNativeRuntime.BuildTaskSpec (cognitive 48) ShareRibbon/Agent/AiNativeRuntime.vb:113 — AiNativeRuntime.BuildTaskSpec has cognitive complexity 48 (threshold 15).
D2 · Cognitive Complexity · ThisAddIn.FindXllPath (cognitive 48) · ×1
  • ThisAddIn.FindXllPath (cognitive 48) ExcelAi/ThisAddIn.vb:152 — ThisAddIn.FindXllPath has cognitive complexity 48 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ApplyReformatRules (cognitive 47) · ×1
  • ChatControl.ApplyReformatRules (cognitive 47) WordAi/ChatControl.vb:2698 — ChatControl.ApplyReformatRules has cognitive complexity 47 (threshold 15).
D2 · Cognitive Complexity · DoubaoChat.AppendCurrentSelectedContent (cognitive 47) · ×1
  • DoubaoChat.AppendCurrentSelectedContent (cognitive 47) PowerPointAi/DoubaoChat.vb:46 — DoubaoChat.AppendCurrentSelectedContent has cognitive complexity 47 (threshold 15).
D2 · Cognitive Complexity · SemanticPromptBuilder.BuildSemanticTaggingPrompt (cognitive 46) · ×1
  • SemanticPromptBuilder.BuildSemanticTaggingPrompt (cognitive 46) ShareRibbon/Services/Reformat/SemanticPromptBuilder.vb:28 — SemanticPromptBuilder.BuildSemanticTaggingPrompt has cognitive complexity 46 (threshold 15).
D2 · Cognitive Complexity · HttpStreamService.ProcessCompletedToolCallsAsync (cognitive 46) · ×1
  • HttpStreamService.ProcessCompletedToolCallsAsync (cognitive 46) ShareRibbon/Controls/Services/HttpStreamService.vb:1005 — HttpStreamService.ProcessCompletedToolCallsAsync has cognitive complexity 46 (threshold 15).
D2 · Cognitive Complexity · PowerPointVisualVerifier.VerifyAndRepairRenderedSlide (cognitive 46) · ×1
  • PowerPointVisualVerifier.VerifyAndRepairRenderedSlide (cognitive 46) PowerPointAi/Design/PowerPointVisualVerifier.vb:256 — PowerPointVisualVerifier.VerifyAndRepairRenderedSlide has cognitive complexity 46 (threshold 15).
D2 · Cognitive Complexity · showMappingPreview (cognitive 46) · ×1
  • showMappingPreview (cognitive 46) ShareRibbon/Resources/js/reformat-template.js:1307 — showMappingPreview has cognitive complexity 46 (threshold 15).
D2 · Cognitive Complexity · SemanticRenderingEngine.RestoreFormatSnapshot (cognitive 44) · ×1
  • SemanticRenderingEngine.RestoreFormatSnapshot (cognitive 44) ShareRibbon/Services/Reformat/SemanticRenderingEngine.vb:82 — SemanticRenderingEngine.RestoreFormatSnapshot has cognitive complexity 44 (threshold 15).
D2 · Cognitive Complexity · ChatRoutingOrchestrator.RouteSmartModeAsync (cognitive 44) · ×1
  • ChatRoutingOrchestrator.RouteSmartModeAsync (cognitive 44) ShareRibbon/Controls/Services/ChatRoutingOrchestrator.vb:64 — ChatRoutingOrchestrator.RouteSmartModeAsync has cognitive complexity 44 (threshold 15).
D2 · Cognitive Complexity · SmartFormattingOrchestrator.ParseUserIntent (cognitive 42) · ×1
  • SmartFormattingOrchestrator.ParseUserIntent (cognitive 42) ShareRibbon/Services/Reformat/SmartFormattingOrchestrator.vb:396 — SmartFormattingOrchestrator.ParseUserIntent has cognitive complexity 42 (threshold 15).
D2 · Cognitive Complexity · ChatControl.GetSelectionContent (cognitive 41) · ×1
  • ChatControl.GetSelectionContent (cognitive 41) PowerPointAi/ChatControl.vb:292 — ChatControl.GetSelectionContent has cognitive complexity 41 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ApplyReformatWithTemplate (cognitive 40) · ×1
  • ChatControl.ApplyReformatWithTemplate (cognitive 40) PowerPointAi/ChatControl.vb:93 — ChatControl.ApplyReformatWithTemplate has cognitive complexity 40 (threshold 15).
D2 · Cognitive Complexity · PowerPointDocumentTranslateService.ApplyTranslationToSlide (cognitive 40) · ×1
  • PowerPointDocumentTranslateService.ApplyTranslationToSlide (cognitive 40) PowerPointAi/PowerPointDocumentTranslateService.vb:333 — PowerPointDocumentTranslateService.ApplyTranslationToSlide has cognitive complexity 40 (threshold 15).
D2 · Cognitive Complexity · DocumentAnalyzer.DetectFormattingProblems (cognitive 39) · ×1
  • DocumentAnalyzer.DetectFormattingProblems (cognitive 39) ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:940 — DocumentAnalyzer.DetectFormattingProblems has cognitive complexity 39 (threshold 15).
D2 · Cognitive Complexity · SemanticRenderingEngine.ApplyParagraphConfig (cognitive 39) · ×1
  • SemanticRenderingEngine.ApplyParagraphConfig (cognitive 39) ShareRibbon/Services/Reformat/SemanticRenderingEngine.vb:456 — SemanticRenderingEngine.ApplyParagraphConfig has cognitive complexity 39 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ParseFile (cognitive 39) · ×1
  • ChatControl.ParseFile (cognitive 39) WordAi/ChatControl.vb:2134 — ChatControl.ParseFile has cognitive complexity 39 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ExecuteCommandsArray (cognitive 39) · ×1
  • ChatControl.ExecuteCommandsArray (cognitive 39) ExcelAi/ChatControl.vb:572 — ChatControl.ExecuteCommandsArray has cognitive complexity 39 (threshold 15).
D2 · Cognitive Complexity · ConfigApiForm.CloudSaveButton_Click (cognitive 38) · ×1
  • ConfigApiForm.CloudSaveButton_Click (cognitive 38) ShareRibbon/Config/ConfigApiForm.vb:1344 — ConfigApiForm.CloudSaveButton_Click has cognitive complexity 38 (threshold 15).
D2 · Cognitive Complexity · MemoryRepository.GetUserProfile (cognitive 38) · ×1
  • MemoryRepository.GetUserProfile (cognitive 38) ShareRibbon/Storage/MemoryRepository.vb:415 — MemoryRepository.GetUserProfile has cognitive complexity 38 (threshold 15).
D2 · Cognitive Complexity · IntentRecognitionService.IdentifyIntentWithLLMAsync (cognitive 38) · ×1
  • IntentRecognitionService.IdentifyIntentWithLLMAsync (cognitive 38) ShareRibbon/Controls/Services/IntentRecognitionService.vb:503 — IntentRecognitionService.IdentifyIntentWithLLMAsync has cognitive complexity 38 (threshold 15).
D2 · Cognitive Complexity · PowerPointOperationObserver.VerifyExpectedEffects (cognitive 38) · ×1
  • PowerPointOperationObserver.VerifyExpectedEffects (cognitive 38) PowerPointAi/Runtime/PowerPointOperationObserver.vb:113 — PowerPointOperationObserver.VerifyExpectedEffects has cognitive complexity 38 (threshold 15).
D2 · Cognitive Complexity · ChatControl.GetContextSnapshot (cognitive 38) · ×1
  • ChatControl.GetContextSnapshot (cognitive 38) ExcelAi/ChatControl.vb:1063 — ChatControl.GetContextSnapshot has cognitive complexity 38 (threshold 15).
D2 · Cognitive Complexity · sendChatMessage (cognitive 38) · ×1
  • sendChatMessage (cognitive 38) ShareRibbon/Resources/js/message-sender.js:29 — sendChatMessage has cognitive complexity 38 (threshold 15).
D2 · Cognitive Complexity · MemoryRepository.RecordPotentialConflictsForSession (cognitive 37) · ×1
  • MemoryRepository.RecordPotentialConflictsForSession (cognitive 37) ShareRibbon/Storage/MemoryRepository.vb:678 — MemoryRepository.RecordPotentialConflictsForSession has cognitive complexity 37 (threshold 15).
D2 · Cognitive Complexity · OpenXmlReformatEngine.ExecuteSetParagraphStyle (cognitive 37) · ×1
  • OpenXmlReformatEngine.ExecuteSetParagraphStyle (cognitive 37) ShareRibbon/Services/Reformat/OpenXmlReformatEngine.vb:79 — OpenXmlReformatEngine.ExecuteSetParagraphStyle has cognitive complexity 37 (threshold 15).
D2 · Cognitive Complexity · PromptManager.BuildSystemPrompt (cognitive 37) · ×1
  • PromptManager.BuildSystemPrompt (cognitive 37) ShareRibbon/Agent/PromptManager.vb:44 — PromptManager.BuildSystemPrompt has cognitive complexity 37 (threshold 15).
D2 · Cognitive Complexity · LoopEngine.ValidatePlannedImagePaths (cognitive 36) · ×1
  • LoopEngine.ValidatePlannedImagePaths (cognitive 36) ShareRibbon/Agent/LoopEngine.Planning.vb:296 — LoopEngine.ValidatePlannedImagePaths has cognitive complexity 36 (threshold 15).
D2 · Cognitive Complexity · MCPConfigForm.AdvancedButton_Click (cognitive 36) · ×1
  • MCPConfigForm.AdvancedButton_Click (cognitive 36) ShareRibbon/Mcp/MCPConfigForm.vb:406 — MCPConfigForm.AdvancedButton_Click has cognitive complexity 36 (threshold 15).
D2 · Cognitive Complexity · HttpStreamService.ProcessStreamChunkAsync (cognitive 36) · ×1
  • HttpStreamService.ProcessStreamChunkAsync (cognitive 36) ShareRibbon/Controls/Services/HttpStreamService.vb:811 — HttpStreamService.ProcessStreamChunkAsync has cognitive complexity 36 (threshold 15).
D2 · Cognitive Complexity · Ribbon1.ExtractTemplateStructure (cognitive 36) · ×1
  • Ribbon1.ExtractTemplateStructure (cognitive 36) WordAi/Ribbon1.vb:265 — Ribbon1.ExtractTemplateStructure has cognitive complexity 36 (threshold 15).
D2 · Cognitive Complexity · HttpStreamService.ConvertToAnthropicFormatNonStreaming (cognitive 35) · ×1
  • HttpStreamService.ConvertToAnthropicFormatNonStreaming (cognitive 35) ShareRibbon/Controls/Services/HttpStreamService.vb:243 — HttpStreamService.ConvertToAnthropicFormatNonStreaming has cognitive complexity 35 (threshold 15).
D2 · Cognitive Complexity · HttpStreamService.ConvertToAnthropicFormat (cognitive 35) · ×1
  • HttpStreamService.ConvertToAnthropicFormat (cognitive 35) ShareRibbon/Controls/Services/HttpStreamService.vb:589 — HttpStreamService.ConvertToAnthropicFormat has cognitive complexity 35 (threshold 15).
D2 · Cognitive Complexity · ConfigApiForm.LocalSaveButton_Click (cognitive 34) · ×1
  • ConfigApiForm.LocalSaveButton_Click (cognitive 34) ShareRibbon/Config/ConfigApiForm.vb:1659 — ConfigApiForm.LocalSaveButton_Click has cognitive complexity 34 (threshold 15).
D2 · Cognitive Complexity · FormatMirrorService.ExtractFormattingFromDocument (cognitive 34) · ×1
  • FormatMirrorService.ExtractFormattingFromDocument (cognitive 34) ShareRibbon/Services/Reformat/FormatMirrorService.vb:36 — FormatMirrorService.ExtractFormattingFromDocument has cognitive complexity 34 (threshold 15).
D2 · Cognitive Complexity · SqliteNativeLoader.EnsureLoaded (cognitive 34) · ×1
  • SqliteNativeLoader.EnsureLoaded (cognitive 34) ShareRibbon/Config/SqliteNativeLoader.vb:20 — SqliteNativeLoader.EnsureLoaded has cognitive complexity 34 (threshold 15).
D2 · Cognitive Complexity · AutocompleteService.EnrichContextForIntent (cognitive 34) · ×1
  • AutocompleteService.EnrichContextForIntent (cognitive 34) ShareRibbon/Controls/Services/AutocompleteService.vb:70 — AutocompleteService.EnrichContextForIntent has cognitive complexity 34 (threshold 15).
D2 · Cognitive Complexity · FormatTemplateRepository.LoadTemplateElements (cognitive 33) · ×1
  • FormatTemplateRepository.LoadTemplateElements (cognitive 33) ShareRibbon/Storage/FormatTemplateRepository.vb:154 — FormatTemplateRepository.LoadTemplateElements has cognitive complexity 33 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ApplySemanticTaggingResult (cognitive 33) · ×1
  • ChatControl.ApplySemanticTaggingResult (cognitive 33) WordAi/ChatControl.vb:2977 — ChatControl.ApplySemanticTaggingResult has cognitive complexity 33 (threshold 15).
D2 · Cognitive Complexity · ConfigApiForm.LoadAndShowSkillDirectoryFiles (cognitive 32) · ×1
  • ConfigApiForm.LoadAndShowSkillDirectoryFiles (cognitive 32) ShareRibbon/Config/ConfigApiForm.vb:961 — ConfigApiForm.LoadAndShowSkillDirectoryFiles has cognitive complexity 32 (threshold 15).
D2 · Cognitive Complexity · DocumentAnalyzer.ScoreOfficialDocument (cognitive 32) · ×1
  • DocumentAnalyzer.ScoreOfficialDocument (cognitive 32) ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:381 — DocumentAnalyzer.ScoreOfficialDocument has cognitive complexity 32 (threshold 15).
D2 · Cognitive Complexity · TaggingValidator.Validate (cognitive 32) · ×1
  • TaggingValidator.Validate (cognitive 32) ShareRibbon/Services/Reformat/TaggingValidator.vb:30 — TaggingValidator.Validate has cognitive complexity 32 (threshold 15).
D2 · Cognitive Complexity · ReformatTemplateEditorControl.LstBodyStyles_SelectedIndexChanged (cognitive 32) · ×1
  • ReformatTemplateEditorControl.LstBodyStyles_SelectedIndexChanged (cognitive 32) ShareRibbon/Controls/ReformatTemplateEditorControl.vb:622 — ReformatTemplateEditorControl.LstBodyStyles_SelectedIndexChanged has cognitive complexity 32 (threshold 15).
D2 · Cognitive Complexity · PowerPointVisualVerifier.PreflightAndRepair (cognitive 32) · ×1
  • PowerPointVisualVerifier.PreflightAndRepair (cognitive 32) PowerPointAi/Design/PowerPointVisualVerifier.vb:15 — PowerPointVisualVerifier.PreflightAndRepair has cognitive complexity 32 (threshold 15).
D2 · Cognitive Complexity · PowerPointOperationExecutor.Execute (cognitive 32) · ×1
  • PowerPointOperationExecutor.Execute (cognitive 32) PowerPointAi/Runtime/PowerPointOperationExecutor.vb:17 — PowerPointOperationExecutor.Execute has cognitive complexity 32 (threshold 15).
D2 · Cognitive Complexity · ExcelDirectOperationService.ExecuteFormatRange (cognitive 32) · ×1
  • ExcelDirectOperationService.ExecuteFormatRange (cognitive 32) ExcelAi/ExcelDirectOperationService.vb:328 — ExcelDirectOperationService.ExecuteFormatRange has cognitive complexity 32 (threshold 15).
D2 · Cognitive Complexity · ConfigManager.MergeConfigurations (cognitive 31) · ×1
  • ConfigManager.MergeConfigurations (cognitive 31) ShareRibbon/Config/ConfigManager.vb:64 — ConfigManager.MergeConfigurations has cognitive complexity 31 (threshold 15).
D2 · Cognitive Complexity · MemoryRepository.GetSkillUsage (cognitive 31) · ×1
  • MemoryRepository.GetSkillUsage (cognitive 31) ShareRibbon/Storage/MemoryRepository.vb:769 — MemoryRepository.GetSkillUsage has cognitive complexity 31 (threshold 15).
D2 · Cognitive Complexity · SkillsService.BuildSkillsCatalogMessage (cognitive 31) · ×1
  • SkillsService.BuildSkillsCatalogMessage (cognitive 31) ShareRibbon/Services/SkillsService.vb:455 — SkillsService.BuildSkillsCatalogMessage has cognitive complexity 31 (threshold 15).
D2 · Cognitive Complexity · WordTemplateParser.ApplyParagraphPropertiesToConfig (cognitive 31) · ×1
  • WordTemplateParser.ApplyParagraphPropertiesToConfig (cognitive 31) WordAi/Services/Reformat/WordTemplateParser.vb:401 — WordTemplateParser.ApplyParagraphPropertiesToConfig has cognitive complexity 31 (threshold 15).
D2 · Cognitive Complexity · SlideComponentLibrary.BuildTableContent (cognitive 31) · ×1
  • SlideComponentLibrary.BuildTableContent (cognitive 31) PowerPointAi/Design/SlideComponentLibrary.vb:290 — SlideComponentLibrary.BuildTableContent has cognitive complexity 31 (threshold 15).
D2 · Cognitive Complexity · Ribbon1.ExtractPresentationStructure (cognitive 31) · ×1
  • Ribbon1.ExtractPresentationStructure (cognitive 31) PowerPointAi/Ribbon1.vb:243 — Ribbon1.ExtractPresentationStructure has cognitive complexity 31 (threshold 15).
D2 · Cognitive Complexity · ReformatTemplateEditorControl.LstLayoutElements_SelectedIndexChanged (cognitive 30) · ×1
  • ReformatTemplateEditorControl.LstLayoutElements_SelectedIndexChanged (cognitive 30) ShareRibbon/Controls/ReformatTemplateEditorControl.vb:559 — ReformatTemplateEditorControl.LstLayoutElements_SelectedIndexChanged has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · SkillsDirectoryService.ParseSkillJsonFile (cognitive 30) · ×1
  • SkillsDirectoryService.ParseSkillJsonFile (cognitive 30) ShareRibbon/Services/SkillsDirectoryService.vb:616 — SkillsDirectoryService.ParseSkillJsonFile has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · PptGenerationHandler.ParseSlideContent (cognitive 30) · ×1
  • PptGenerationHandler.ParseSlideContent (cognitive 30) PowerPointAi/Handlers/PptGenerationHandler.vb:95 — PptGenerationHandler.ParseSlideContent has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · EnhancedPreviewAndConfirm.CompareWorkbookStates (cognitive 30) · ×1
  • EnhancedPreviewAndConfirm.CompareWorkbookStates (cognitive 30) ExcelAi/EnhancedPreviewAndConfirm.vb:468 — EnhancedPreviewAndConfirm.CompareWorkbookStates has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · ExcelContextProvider.BuildColumnTypeSummary (cognitive 30) · ×1
  • ExcelContextProvider.BuildColumnTypeSummary (cognitive 30) ExcelAi/Context/ExcelContextProvider.vb:153 — ExcelContextProvider.BuildColumnTypeSummary has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · handleSmartInputKeydown (cognitive 30) · ×1
  • handleSmartInputKeydown (cognitive 30) ShareRibbon/Resources/js/autocomplete.js:106 — handleSmartInputKeydown has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · ChatSettings.LoadSettings (cognitive 29) · ×1
  • ChatSettings.LoadSettings (cognitive 29) ShareRibbon/Config/ChatSettings.vb:72 — ChatSettings.LoadSettings has cognitive complexity 29 (threshold 15).
D2 · Cognitive Complexity · AgentMemory.Search (cognitive 29) · ×1
  • AgentMemory.Search (cognitive 29) ShareRibbon/Agent/AgentMemory.vb:225 — AgentMemory.Search has cognitive complexity 29 (threshold 15).
D2 · Cognitive Complexity · EmbeddingService.GetEmbeddingAsync (cognitive 29) · ×1
  • EmbeddingService.GetEmbeddingAsync (cognitive 29) ShareRibbon/Services/EmbeddingService.vb:90 — EmbeddingService.GetEmbeddingAsync has cognitive complexity 29 (threshold 15).
D2 · Cognitive Complexity · WebDataCapturePane.HandleMediaContainerContent (cognitive 29) · ×1
  • WebDataCapturePane.HandleMediaContainerContent (cognitive 29) WordAi/WebDataCapturePane.vb:490 — WebDataCapturePane.HandleMediaContainerContent has cognitive complexity 29 (threshold 15).
D2 · Cognitive Complexity · OpenXmlWordTranslator.ReplaceTextPreservingObjects (cognitive 29) · ×1
  • OpenXmlWordTranslator.ReplaceTextPreservingObjects (cognitive 29) WordAi/OpenXmlWordTranslator.vb:254 — OpenXmlWordTranslator.ReplaceTextPreservingObjects has cognitive complexity 29 (threshold 15).
D2 · Cognitive Complexity · PowerPointDocumentTranslateService.ApplyImmersiveMode (cognitive 29) · ×1
  • PowerPointDocumentTranslateService.ApplyImmersiveMode (cognitive 29) PowerPointAi/PowerPointDocumentTranslateService.vb:243 — PowerPointDocumentTranslateService.ApplyImmersiveMode has cognitive complexity 29 (threshold 15).
D2 · Cognitive Complexity · PromptManager.BuildPlanningPrompt (cognitive 28) · ×1
  • PromptManager.BuildPlanningPrompt (cognitive 28) ShareRibbon/Agent/PromptManager.vb:165 — PromptManager.BuildPlanningPrompt has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · MCPConfigForm.SaveButton_Click (cognitive 28) · ×1
  • MCPConfigForm.SaveButton_Click (cognitive 28) ShareRibbon/Mcp/MCPConfigForm.vb:1480 — MCPConfigForm.SaveButton_Click has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · WordTemplateParser.ExtractPageSetup (cognitive 28) · ×1
  • WordTemplateParser.ExtractPageSetup (cognitive 28) WordAi/Services/Reformat/WordTemplateParser.vb:458 — WordTemplateParser.ExtractPageSetup has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ParseFile (cognitive 28) · ×1
  • ChatControl.ParseFile (cognitive 28) ExcelAi/ChatControl.vb:896 — ChatControl.ParseFile has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · _createTemplateCard (cognitive 28) · ×1
  • _createTemplateCard (cognitive 28) ShareRibbon/Resources/js/markdown-renderer.js:113 — _createTemplateCard has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · SemanticRenderingEngine.BuildSetCharacterFormatInstruction (cognitive 27) · ×1
  • SemanticRenderingEngine.BuildSetCharacterFormatInstruction (cognitive 27) ShareRibbon/Services/Reformat/SemanticRenderingEngine.vb:339 — SemanticRenderingEngine.BuildSetCharacterFormatInstruction has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · ToolRegistry.ExecuteSkillScriptAsync (cognitive 27) · ×1
  • ToolRegistry.ExecuteSkillScriptAsync (cognitive 27) ShareRibbon/Agent/ToolRegistry.vb:982 — ToolRegistry.ExecuteSkillScriptAsync has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · SkillsService.TokenizeQuery (cognitive 27) · ×1
  • SkillsService.TokenizeQuery (cognitive 27) ShareRibbon/Services/SkillsService.vb:158 — SkillsService.TokenizeQuery has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · WordFormattingAgent.ResolveObservationRanges (cognitive 27) · ×1
  • WordFormattingAgent.ResolveObservationRanges (cognitive 27) WordAi/Services/WordFormattingAgent.vb:293 — WordFormattingAgent.ResolveObservationRanges has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · ChatControl.GetSlideContent (cognitive 27) · ×1
  • ChatControl.GetSlideContent (cognitive 27) PowerPointAi/ChatControl.vb:840 — ChatControl.GetSlideContent has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · PowerPointOperationExecutor.ResolveSmartArtLayout (cognitive 27) · ×1
  • PowerPointOperationExecutor.ResolveSmartArtLayout (cognitive 27) PowerPointAi/Runtime/PowerPointOperationExecutor.vb:307 — PowerPointOperationExecutor.ResolveSmartArtLayout has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · ChatControl.EvaluateFormula (cognitive 27) · ×1
  • ChatControl.EvaluateFormula (cognitive 27) ExcelAi/ChatControl.vb:153 — ChatControl.EvaluateFormula has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · DeepseekControl.EvaluateFormula (cognitive 27) · ×1
  • DeepseekControl.EvaluateFormula (cognitive 27) ExcelAi/DeepseekControl.vb:148 — DeepseekControl.EvaluateFormula has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · showComparison (cognitive 27) · ×1
  • showComparison (cognitive 27) ShareRibbon/Resources/js/revision-manager.js:100 — showComparison has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · code (cognitive 27) · ×1
  • code (cognitive 27) ShareRibbon/Resources/js/core.js:23 — code has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · DocumentAnalyzer.AnalyzeStructure (cognitive 26) · ×1
  • DocumentAnalyzer.AnalyzeStructure (cognitive 26) ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:712 — DocumentAnalyzer.AnalyzeStructure has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · SemanticRenderingEngine.ApplySemanticFormatting (cognitive 26) · ×1
  • SemanticRenderingEngine.ApplySemanticFormatting (cognitive 26) ShareRibbon/Services/Reformat/SemanticRenderingEngine.vb:188 — SemanticRenderingEngine.ApplySemanticFormatting has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · MCPConfigForm.LoadToolsFromConnection (cognitive 26) · ×1
  • MCPConfigForm.LoadToolsFromConnection (cognitive 26) ShareRibbon/Mcp/MCPConfigForm.vb:306 — MCPConfigForm.LoadToolsFromConnection has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · MCPConfigForm.TestConnectionAsync (cognitive 26) · ×1
  • MCPConfigForm.TestConnectionAsync (cognitive 26) ShareRibbon/Mcp/MCPConfigForm.vb:1195 — MCPConfigForm.TestConnectionAsync has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · HttpStreamService.ProcessAnthropicChunk (cognitive 26) · ×1
  • HttpStreamService.ProcessAnthropicChunk (cognitive 26) ShareRibbon/Controls/Services/HttpStreamService.vb:702 — HttpStreamService.ProcessAnthropicChunk has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · HttpStreamService.FlushBufferAsync (cognitive 26) · ×1
  • HttpStreamService.FlushBufferAsync (cognitive 26) ShareRibbon/Controls/Services/HttpStreamService.vb:892 — HttpStreamService.FlushBufferAsync has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · AiGateway.ConvertToAnthropicRequest (cognitive 26) · ×1
  • AiGateway.ConvertToAnthropicRequest (cognitive 26) ShareRibbon/Services/Ai/AiGateway.vb:193 — AiGateway.ConvertToAnthropicRequest has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · ThisAddIn.ApplyPlaceholderPreviewToDocument (cognitive 26) · ×1
  • ThisAddIn.ApplyPlaceholderPreviewToDocument (cognitive 26) WordAi/ThisAddIn.vb:305 — ThisAddIn.ApplyPlaceholderPreviewToDocument has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · WordContinuationService.GetCursorContext (cognitive 26) · ×1
  • WordContinuationService.GetCursorContext (cognitive 26) WordAi/WordContinuationService.vb:43 — WordContinuationService.GetCursorContext has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · PptGenerationHandler.CreateSlide (cognitive 26) · ×1
  • PptGenerationHandler.CreateSlide (cognitive 26) PowerPointAi/Handlers/PptGenerationHandler.vb:167 — PptGenerationHandler.CreateSlide has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · ExcelDirectOperationService.ExecuteWriteData (cognitive 26) · ×1
  • ExcelDirectOperationService.ExecuteWriteData (cognitive 26) ExcelAi/ExcelDirectOperationService.vb:123 — ExcelDirectOperationService.ExecuteWriteData has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · completeAgent (cognitive 26) · ×1
  • completeAgent (cognitive 26) ShareRibbon/Resources/js/agent-card.js:477 — completeAgent has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · DocumentAnalyzer.Analyze (cognitive 25) · ×1
  • DocumentAnalyzer.Analyze (cognitive 25) ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:255 — DocumentAnalyzer.Analyze has cognitive complexity 25 (threshold 15).
D2 · Cognitive Complexity · SkillsDirectoryService.ParseFrontMatterAndContent (cognitive 25) · ×1
  • SkillsDirectoryService.ParseFrontMatterAndContent (cognitive 25) ShareRibbon/Services/SkillsDirectoryService.vb:437 — SkillsDirectoryService.ParseFrontMatterAndContent has cognitive complexity 25 (threshold 15).
D2 · Cognitive Complexity · PreSendChecker.CheckAsync (cognitive 25) · ×1
  • PreSendChecker.CheckAsync (cognitive 25) ShareRibbon/Loop/Checkers/PreSendChecker.vb:15 — PreSendChecker.CheckAsync has cognitive complexity 25 (threshold 15).
D2 · Cognitive Complexity · ChatControl.StartSemanticReformatPipeline (cognitive 25) · ×1
  • ChatControl.StartSemanticReformatPipeline (cognitive 25) WordAi/ChatControl.vb:450 — ChatControl.StartSemanticReformatPipeline has cognitive complexity 25 (threshold 15).
D2 · Cognitive Complexity · PowerPointDocumentTranslateService.ExtractTextFromShape (cognitive 25) · ×1
  • PowerPointDocumentTranslateService.ExtractTextFromShape (cognitive 25) PowerPointAi/PowerPointDocumentTranslateService.vb:66 — PowerPointDocumentTranslateService.ExtractTextFromShape has cognitive complexity 25 (threshold 15).
D2 · Cognitive Complexity · ConfigManager.LoadConfig (cognitive 24) · ×1
  • ConfigManager.LoadConfig (cognitive 24) ShareRibbon/Config/ConfigManager.vb:12 — ConfigManager.LoadConfig has cognitive complexity 24 (threshold 15).
D2 · Cognitive Complexity · BaseChatControl.SendAndGetResponseAsync (cognitive 24) · ×1
  • BaseChatControl.SendAndGetResponseAsync (cognitive 24) ShareRibbon/Controls/BaseChatControl.vb:2006 — BaseChatControl.SendAndGetResponseAsync has cognitive complexity 24 (threshold 15).
D2 · Cognitive Complexity · PostFlushValidator.ValidateDslJson (cognitive 24) · ×1
  • PostFlushValidator.ValidateDslJson (cognitive 24) ShareRibbon/Loop/Validators/PostFlushValidator.vb:118 — PostFlushValidator.ValidateDslJson has cognitive complexity 24 (threshold 15).
D2 · Cognitive Complexity · ChatControl.GetSelectionContent (cognitive 24) · ×1
  • ChatControl.GetSelectionContent (cognitive 24) WordAi/ChatControl.vb:1863 — ChatControl.GetSelectionContent has cognitive complexity 24 (threshold 15).
D2 · Cognitive Complexity · ChatControl.MergePreviewPlanTags (cognitive 24) · ×1
  • ChatControl.MergePreviewPlanTags (cognitive 24) WordAi/ChatControl.vb:2933 — ChatControl.MergePreviewPlanTags has cognitive complexity 24 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ApplyFormattingToShape (cognitive 24) · ×1
  • ChatControl.ApplyFormattingToShape (cognitive 24) PowerPointAi/ChatControl.vb:2532 — ChatControl.ApplyFormattingToShape has cognitive complexity 24 (threshold 15).
D2 · Cognitive Complexity · setChatMessages (cognitive 24) · ×1
  • setChatMessages (cognitive 24) ShareRibbon/Resources/js/chat-manager.js:247 — setChatMessages has cognitive complexity 24 (threshold 15).
D2 · Cognitive Complexity · OpenXmlReformatEngine.ExecuteSetPageSetup (cognitive 23) · ×1
  • OpenXmlReformatEngine.ExecuteSetPageSetup (cognitive 23) ShareRibbon/Services/Reformat/OpenXmlReformatEngine.vb:317 — OpenXmlReformatEngine.ExecuteSetPageSetup has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · ReformatCoordinator.BuildInstructions (cognitive 23) · ×1
  • ReformatCoordinator.BuildInstructions (cognitive 23) ShareRibbon/Services/Reformat/ReformatCoordinator.vb:140 — ReformatCoordinator.BuildInstructions has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · StdioConfigForm.CollectEnvironmentVariables (cognitive 23) · ×1
  • StdioConfigForm.CollectEnvironmentVariables (cognitive 23) ShareRibbon/Mcp/StdioConfigForm.vb:137 — StdioConfigForm.CollectEnvironmentVariables has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · HttpStreamService.ProcessNonStreamingResponseAsync (cognitive 23) · ×1
  • HttpStreamService.ProcessNonStreamingResponseAsync (cognitive 23) ShareRibbon/Controls/Services/HttpStreamService.vb:356 — HttpStreamService.ProcessNonStreamingResponseAsync has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · CodeExecutionService.ExecuteCodeWithToolResult (cognitive 23) · ×1
  • CodeExecutionService.ExecuteCodeWithToolResult (cognitive 23) ShareRibbon/Controls/Services/CodeExecutionService.vb:143 — CodeExecutionService.ExecuteCodeWithToolResult has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ExecuteAddAnimation (cognitive 23) · ×1
  • ChatControl.ExecuteAddAnimation (cognitive 23) PowerPointAi/ChatControl.vb:1950 — ChatControl.ExecuteAddAnimation has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · ProfessionalDeckExecutor.ValidateChartSpec (cognitive 23) · ×1
  • ProfessionalDeckExecutor.ValidateChartSpec (cognitive 23) PowerPointAi/Design/ProfessionalDeckExecutor.vb:362 — ProfessionalDeckExecutor.ValidateChartSpec has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · PowerPointOperationExecutor.BuildResultRef (cognitive 23) · ×1
  • PowerPointOperationExecutor.BuildResultRef (cognitive 23) PowerPointAi/Runtime/PowerPointOperationExecutor.vb:387 — PowerPointOperationExecutor.BuildResultRef has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · SkillsConfigForm.ListSelectionChanged (cognitive 22) · ×1
  • SkillsConfigForm.ListSelectionChanged (cognitive 22) ShareRibbon/Config/SkillsConfigForm.vb:296 — SkillsConfigForm.ListSelectionChanged has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · BaseChatControl.HandleUndoReformat (cognitive 22) · ×1
  • BaseChatControl.HandleUndoReformat (cognitive 22) ShareRibbon/Controls/BaseChatControl.vb:2938 — BaseChatControl.HandleUndoReformat has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · MCPConfigForm.ExecuteTestAsync (cognitive 22) · ×1
  • MCPConfigForm.ExecuteTestAsync (cognitive 22) ShareRibbon/Mcp/MCPConfigForm.vb:1324 — MCPConfigForm.ExecuteTestAsync has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · ChatControl.IsExplicitFormattingRequest (cognitive 22) · ×1
  • ChatControl.IsExplicitFormattingRequest (cognitive 22) WordAi/ChatControl.vb:1368 — ChatControl.IsExplicitFormattingRequest has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · OpenXmlWordTranslator.ApplyImmersiveMode (cognitive 22) · ×1
  • OpenXmlWordTranslator.ApplyImmersiveMode (cognitive 22) WordAi/OpenXmlWordTranslator.vb:361 — OpenXmlWordTranslator.ApplyImmersiveMode has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · WordCompletionManager.OnSelectionChange (cognitive 22) · ×1
  • WordCompletionManager.OnSelectionChange (cognitive 22) WordAi/WordCompletionManager.vb:111 — WordCompletionManager.OnSelectionChange has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · PowerPointCompletionManager.OnSelectionChange (cognitive 22) · ×1
  • PowerPointCompletionManager.OnSelectionChange (cognitive 22) PowerPointAi/PowerPointCompletionManager.vb:111 — PowerPointCompletionManager.OnSelectionChange has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · ExcelJsonCommandSchema.NormalizeParamNames (cognitive 22) · ×1
  • ExcelJsonCommandSchema.NormalizeParamNames (cognitive 22) ExcelAi/ExcelJsonCommandSchema.vb:295 — ExcelJsonCommandSchema.NormalizeParamNames has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · (anonymous) (cognitive 22) · ×1
  • (anonymous) (cognitive 22) ShareRibbon/Resources/js/message-sender.js:701 — (anonymous) has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · executeCode (cognitive 22) · ×1
  • executeCode (cognitive 22) ShareRibbon/Resources/js/code-handler.js:90 — executeCode has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · TaggingValidator.StripMarkdownCodeBlock (cognitive 21) · ×1
  • TaggingValidator.StripMarkdownCodeBlock (cognitive 21) ShareRibbon/Services/Reformat/TaggingValidator.vb:183 — TaggingValidator.StripMarkdownCodeBlock has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · ToolRegistry.LoadSkillScriptsAsTools (cognitive 21) · ×1
  • ToolRegistry.LoadSkillScriptsAsTools (cognitive 21) ShareRibbon/Agent/ToolRegistry.vb:376 — ToolRegistry.LoadSkillScriptsAsTools has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · ToolRegistry.ConvertMcpToDescriptor (cognitive 21) · ×1
  • ToolRegistry.ConvertMcpToDescriptor (cognitive 21) ShareRibbon/Agent/ToolRegistry.vb:590 — ToolRegistry.ConvertMcpToDescriptor has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · ExceptionClassifier.Classify (cognitive 21) · ×1
  • ExceptionClassifier.Classify (cognitive 21) ShareRibbon/Common/ExceptionClassifier.vb:51 — ExceptionClassifier.Classify has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · MCPConnectionManager.SaveConnections (cognitive 21) · ×1
  • MCPConnectionManager.SaveConnections (cognitive 21) ShareRibbon/Mcp/MCPConnectionConfig.vb:393 — MCPConnectionManager.SaveConnections has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · FileParserService.DetectFileEncoding (cognitive 21) · ×1
  • FileParserService.DetectFileEncoding (cognitive 21) ShareRibbon/Controls/Services/FileParserService.vb:152 — FileParserService.DetectFileEncoding has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ApplyStylePreviewToSelection (cognitive 21) · ×1
  • ChatControl.ApplyStylePreviewToSelection (cognitive 21) WordAi/ChatControl.vb:1968 — ChatControl.ApplyStylePreviewToSelection has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · ChatControl.HandleApplyRevisionSegment (cognitive 21) · ×1
  • ChatControl.HandleApplyRevisionSegment (cognitive 21) WordAi/ChatControl.vb:2282 — ChatControl.HandleApplyRevisionSegment has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ExecuteDslCommand (cognitive 21) · ×1
  • ChatControl.ExecuteDslCommand (cognitive 21) WordAi/ChatControl.vb:4146 — ChatControl.ExecuteDslCommand has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · DeepseekControl.AppendCurrentSelectedContent (cognitive 21) · ×1
  • DeepseekControl.AppendCurrentSelectedContent (cognitive 21) PowerPointAi/DeepseekControl.vb:48 — DeepseekControl.AppendCurrentSelectedContent has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · PowerPointVisualVerifier.ScoreComposition (cognitive 21) · ×1
  • PowerPointVisualVerifier.ScoreComposition (cognitive 21) PowerPointAi/Design/PowerPointVisualVerifier.vb:164 — PowerPointVisualVerifier.ScoreComposition has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · previewTemplate (cognitive 21) · ×1
  • previewTemplate (cognitive 21) ShareRibbon/Resources/js/reformat-template.js:828 — previewTemplate has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · (anonymous) (cognitive 21) · ×1
  • (anonymous) (cognitive 21) ShareRibbon/Resources/js/reformat-template.js:1258 — (anonymous) has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · executeCodeAutoMode (cognitive 21) · ×1
  • executeCodeAutoMode (cognitive 21) ShareRibbon/Resources/js/code-handler.js:1283 — executeCodeAutoMode has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · parseJsonToPlan (cognitive 21) · ×1
  • parseJsonToPlan (cognitive 21) ShareRibbon/Resources/js/code-handler.js:1474 — parseJsonToPlan has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · SemanticRenderingEngine.BuildSetParagraphStyleInstruction (cognitive 20) · ×1
  • SemanticRenderingEngine.BuildSetParagraphStyleInstruction (cognitive 20) ShareRibbon/Services/Reformat/SemanticRenderingEngine.vb:291 — SemanticRenderingEngine.BuildSetParagraphStyleInstruction has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · ScenarioManager.BuildIdentificationPatternsText (cognitive 20) · ×1
  • ScenarioManager.BuildIdentificationPatternsText (cognitive 20) ShareRibbon/Services/Reformat/ScenarioManager.vb:166 — ScenarioManager.BuildIdentificationPatternsText has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · LoopEngine.ValidateExecutionOutcome (cognitive 20) · ×1
  • LoopEngine.ValidateExecutionOutcome (cognitive 20) ShareRibbon/Agent/LoopEngine.Planning.vb:368 — LoopEngine.ValidateExecutionOutcome has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · SkillRegistry.MatchSkill (cognitive 20) · ×1
  • SkillRegistry.MatchSkill (cognitive 20) ShareRibbon/Agent/SkillRegistry.vb:48 — SkillRegistry.MatchSkill has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · BaseChatControl.HandleSendMessage (cognitive 20) · ×1
  • BaseChatControl.HandleSendMessage (cognitive 20) ShareRibbon/Controls/BaseChatControl.vb:1193 — BaseChatControl.HandleSendMessage has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · BaseChatControl.CheckAndCompleteProcessingHook (cognitive 20) · ×1
  • BaseChatControl.CheckAndCompleteProcessingHook (cognitive 20) ShareRibbon/Controls/BaseChatControl.vb:2707 — BaseChatControl.CheckAndCompleteProcessingHook has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · SkillsIndexService.IndexInstalledSkillsAsync (cognitive 20) · ×1
  • SkillsIndexService.IndexInstalledSkillsAsync (cognitive 20) ShareRibbon/Services/Memory/SkillsIndexService.vb:39 — SkillsIndexService.IndexInstalledSkillsAsync has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · PostFlushValidator.FindFirstCompleteJsonEnd (cognitive 20) · ×1
  • PostFlushValidator.FindFirstCompleteJsonEnd (cognitive 20) ShareRibbon/Loop/Validators/PostFlushValidator.vb:230 — PostFlushValidator.FindFirstCompleteJsonEnd has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · PowerPointVisualVerifier.VerifyRenderedPixels (cognitive 20) · ×1
  • PowerPointVisualVerifier.VerifyRenderedPixels (cognitive 20) PowerPointAi/Design/PowerPointVisualVerifier.Rendered.vb:11 — PowerPointVisualVerifier.VerifyRenderedPixels has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · PowerPointApiCatalogProvider.ScoreEntry (cognitive 20) · ×1
  • PowerPointApiCatalogProvider.ScoreEntry (cognitive 20) PowerPointAi/Runtime/PowerPointApiCatalogProvider.vb:420 — PowerPointApiCatalogProvider.ScoreEntry has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · ExcelDocumentTranslateService.PrepareOutputSpace (cognitive 20) · ×1
  • ExcelDocumentTranslateService.PrepareOutputSpace (cognitive 20) ExcelAi/ExcelDocumentTranslateService.vb:198 — ExcelDocumentTranslateService.PrepareOutputSpace has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · updateContinuationModeUI (cognitive 20) · ×1
  • updateContinuationModeUI (cognitive 20) ShareRibbon/Resources/js/code-handler.js:642 — updateContinuationModeUI has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · FormatTemplateRepository.LoadTemplateStyleRules (cognitive 19) · ×1
  • FormatTemplateRepository.LoadTemplateStyleRules (cognitive 19) ShareRibbon/Storage/FormatTemplateRepository.vb:187 — FormatTemplateRepository.LoadTemplateStyleRules has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · MCPConfigForm.ConvertToolToLLMFunction (cognitive 19) · ×1
  • MCPConfigForm.ConvertToolToLLMFunction (cognitive 19) ShareRibbon/Mcp/MCPConfigForm.vb:1023 — MCPConfigForm.ConvertToolToLLMFunction has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · ResourceExtractor.ExtractResources (cognitive 19) · ×1
  • ResourceExtractor.ExtractResources (cognitive 19) ShareRibbon/Resources/ResourceExtractor.vb:21 — ResourceExtractor.ExtractResources has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ExecuteFormatText (cognitive 19) · ×1
  • ChatControl.ExecuteFormatText (cognitive 19) WordAi/ChatControl.vb:4571 — ChatControl.ExecuteFormatText has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · WordTemplateParser.MatchStyleToTag (cognitive 19) · ×1
  • WordTemplateParser.MatchStyleToTag (cognitive 19) WordAi/Services/Reformat/WordTemplateParser.vb:170 — WordTemplateParser.MatchStyleToTag has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · WordJsonCommandSchema.ValidateJsonStructure (cognitive 19) · ×1
  • WordJsonCommandSchema.ValidateJsonStructure (cognitive 19) WordAi/WordJsonCommandSchema.vb:111 — WordJsonCommandSchema.ValidateJsonStructure has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · PowerPointJsonCommandSchema.ValidateJsonStructure (cognitive 19) · ×1
  • PowerPointJsonCommandSchema.ValidateJsonStructure (cognitive 19) PowerPointAi/PowerPointJsonCommandSchema.vb:141 — PowerPointJsonCommandSchema.ValidateJsonStructure has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · PowerPointOperationObserver.CaptureState (cognitive 19) · ×1
  • PowerPointOperationObserver.CaptureState (cognitive 19) PowerPointAi/Runtime/PowerPointOperationObserver.vb:15 — PowerPointOperationObserver.CaptureState has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · PowerPointOperationExecutor.ConvertArgument (cognitive 19) · ×1
  • PowerPointOperationExecutor.ConvertArgument (cognitive 19) PowerPointAi/Runtime/PowerPointOperationExecutor.vb:274 — PowerPointOperationExecutor.ConvertArgument has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · ExcelDirectOperationService.ExecuteApplyFormulaFlexible (cognitive 19) · ×1
  • ExcelDirectOperationService.ExecuteApplyFormulaFlexible (cognitive 19) ExcelAi/ExcelDirectOperationService.vb:221 — ExcelDirectOperationService.ExecuteApplyFormulaFlexible has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · ExcelDirectOperationService.ExecuteCleanData (cognitive 19) · ×1
  • ExcelDirectOperationService.ExecuteCleanData (cognitive 19) ExcelAi/ExcelDirectOperationService.vb:735 — ExcelDirectOperationService.ExecuteCleanData has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · ExcelJsonCommandSchema.ValidateJsonStructure (cognitive 19) · ×1
  • ExcelJsonCommandSchema.ValidateJsonStructure (cognitive 19) ExcelAi/ExcelJsonCommandSchema.vb:166 — ExcelJsonCommandSchema.ValidateJsonStructure has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · DocumentAnalyzer.ScoreResume (cognitive 18) · ×1
  • DocumentAnalyzer.ScoreResume (cognitive 18) ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:661 — DocumentAnalyzer.ScoreResume has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · TranslateActionForm.LoadSettings (cognitive 18) · ×1
  • TranslateActionForm.LoadSettings (cognitive 18) ShareRibbon/Translate/TranslateActionForm.vb:354 — TranslateActionForm.LoadSettings has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · BaseChatControl.Send (cognitive 18) · ×1
  • BaseChatControl.Send (cognitive 18) ShareRibbon/Controls/BaseChatControl.vb:2584 — BaseChatControl.Send has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · ReformatTemplateEditorControl.SaveCurrentLayoutElement (cognitive 18) · ×1
  • ReformatTemplateEditorControl.SaveCurrentLayoutElement (cognitive 18) ShareRibbon/Controls/ReformatTemplateEditorControl.vb:899 — ReformatTemplateEditorControl.SaveCurrentLayoutElement has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · MCPConnectionManager.ImportAndMergeConfig (cognitive 18) · ×1
  • MCPConnectionManager.ImportAndMergeConfig (cognitive 18) ShareRibbon/Mcp/MCPConnectionConfig.vb:293 — MCPConnectionManager.ImportAndMergeConfig has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · HttpStreamService.BuildToolsArray (cognitive 18) · ×1
  • HttpStreamService.BuildToolsArray (cognitive 18) ShareRibbon/Controls/Services/HttpStreamService.vb:1404 — HttpStreamService.BuildToolsArray has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · CodeExecutionService.FixMissingQuotes (cognitive 18) · ×1
  • CodeExecutionService.FixMissingQuotes (cognitive 18) ShareRibbon/Controls/Services/CodeExecutionService.vb:70 — CodeExecutionService.FixMissingQuotes has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · CodeExecutionService.ExecuteVBACode (cognitive 18) · ×1
  • CodeExecutionService.ExecuteVBACode (cognitive 18) ShareRibbon/Controls/Services/CodeExecutionService.vb:266 — CodeExecutionService.ExecuteVBACode has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · AutocompleteService.AddCompletionsFromMessage (cognitive 18) · ×1
  • AutocompleteService.AddCompletionsFromMessage (cognitive 18) ShareRibbon/Controls/Services/AutocompleteService.vb:234 — AutocompleteService.AddCompletionsFromMessage has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · ExcelContextService.DetectDataStructure (cognitive 18) · ×1
  • ExcelContextService.DetectDataStructure (cognitive 18) ShareRibbon/Controls/Services/ExcelContextService.vb:208 — ExcelContextService.DetectDataStructure has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · SkillsService.ApplyRegistryUsageStats (cognitive 18) · ×1
  • SkillsService.ApplyRegistryUsageStats (cognitive 18) ShareRibbon/Services/SkillsService.vb:104 — SkillsService.ApplyRegistryUsageStats has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · Instruction.ParseInstructions (cognitive 18) · ×1
  • Instruction.ParseInstructions (cognitive 18) ShareRibbon/Protocol/Instruction.vb:77 — Instruction.ParseInstructions has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · ChatControl.HandleApplyDocumentPlanItem (cognitive 18) · ×1
  • ChatControl.HandleApplyDocumentPlanItem (cognitive 18) WordAi/ChatControl.vb:2611 — ChatControl.HandleApplyDocumentPlanItem has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ExecuteWordCommandsArrayWithToolResult (cognitive 18) · ×1
  • ChatControl.ExecuteWordCommandsArrayWithToolResult (cognitive 18) WordAi/ChatControl.vb:3681 — ChatControl.ExecuteWordCommandsArrayWithToolResult has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · ContentLocator.FindHeading (cognitive 18) · ×1
  • ContentLocator.FindHeading (cognitive 18) WordAi/Services/ContentLocator.vb:81 — ContentLocator.FindHeading has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · SmartFormatter.ResolveTargetRanges (cognitive 18) · ×1
  • SmartFormatter.ResolveTargetRanges (cognitive 18) WordAi/Services/SmartFormatter.vb:297 — SmartFormatter.ResolveTargetRanges has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · ParagraphService.SetParagraphFormat (cognitive 18) · ×1
  • ParagraphService.SetParagraphFormat (cognitive 18) WordAi/Services/ParagraphService.vb:155 — ParagraphService.SetParagraphFormat has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · OpenXmlWordTranslator.ApplyReplaceMode (cognitive 18) · ×1
  • OpenXmlWordTranslator.ApplyReplaceMode (cognitive 18) WordAi/OpenXmlWordTranslator.vb:209 — OpenXmlWordTranslator.ApplyReplaceMode has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · ChatControl.GetSlideTitle (cognitive 18) · ×1
  • ChatControl.GetSlideTitle (cognitive 18) PowerPointAi/ChatControl.vb:780 — ChatControl.GetSlideTitle has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · ChatControl.BeautifySingleSlide (cognitive 18) · ×1
  • ChatControl.BeautifySingleSlide (cognitive 18) PowerPointAi/ChatControl.vb:2171 — ChatControl.BeautifySingleSlide has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · DeckDesignSpec.Parse (cognitive 18) · ×1
  • DeckDesignSpec.Parse (cognitive 18) PowerPointAi/Design/SlideDesignModels.vb:11 — DeckDesignSpec.Parse has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · ProfessionalDeckExecutor.ExecutePreview (cognitive 18) · ×1
  • ProfessionalDeckExecutor.ExecutePreview (cognitive 18) PowerPointAi/Design/ProfessionalDeckExecutor.Operations.vb:46 — ProfessionalDeckExecutor.ExecutePreview has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ExecuteSingleCommand (cognitive 18) · ×1
  • ChatControl.ExecuteSingleCommand (cognitive 18) ExcelAi/ChatControl.vb:777 — ChatControl.ExecuteSingleCommand has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · Ribbon1.BatchDataGenButton_Click (cognitive 18) · ×1
  • Ribbon1.BatchDataGenButton_Click (cognitive 18) ExcelAi/Ribbon1.vb:78 — Ribbon1.BatchDataGenButton_Click has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · updateResourceTabUI (cognitive 18) · ×1
  • updateResourceTabUI (cognitive 18) ShareRibbon/Resources/js/reformat-template.js:141 — updateResourceTabUI has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · createChatSection (cognitive 18) · ×1
  • createChatSection (cognitive 18) ShareRibbon/Resources/js/chat-manager.js:7 — createChatSection has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · OfficeAiDatabase.MigrateLegacySkillUsageJson (cognitive 17) · ×1
  • OfficeAiDatabase.MigrateLegacySkillUsageJson (cognitive 17) ShareRibbon/Storage/OfficeAiDatabase.vb:713 — OfficeAiDatabase.MigrateLegacySkillUsageJson has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · AgentMemoryRepository.RetrieveMemoryItemsByVector (cognitive 17) · ×1
  • AgentMemoryRepository.RetrieveMemoryItemsByVector (cognitive 17) ShareRibbon/Storage/AgentMemoryRepository.vb:403 — AgentMemoryRepository.RetrieveMemoryItemsByVector has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · MemoryRepository.InsertMemory (cognitive 17) · ×1
  • MemoryRepository.InsertMemory (cognitive 17) ShareRibbon/Storage/MemoryRepository.vb:542 — MemoryRepository.InsertMemory has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · MemoryRepository.RecordSkillUsage (cognitive 17) · ×1
  • MemoryRepository.RecordSkillUsage (cognitive 17) ShareRibbon/Storage/MemoryRepository.vb:797 — MemoryRepository.RecordSkillUsage has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · ReformatTemplateManager.MigrateFromJson (cognitive 17) · ×1
  • ReformatTemplateManager.MigrateFromJson (cognitive 17) ShareRibbon/Config/ReformatTemplateManager.vb:60 — ReformatTemplateManager.MigrateFromJson has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · SemanticPromptBuilder.GetExamplesByDocumentType (cognitive 17) · ×1
  • SemanticPromptBuilder.GetExamplesByDocumentType (cognitive 17) ShareRibbon/Services/Reformat/SemanticPromptBuilder.vb:212 — SemanticPromptBuilder.GetExamplesByDocumentType has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · DocumentTranslateService.TranslateBatchAsync (cognitive 17) · ×1
  • DocumentTranslateService.TranslateBatchAsync (cognitive 17) ShareRibbon/Translate/DocumentTranslateService.vb:183 — DocumentTranslateService.TranslateBatchAsync has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · LoopEngine.BuildExecutionExplanation (cognitive 17) · ×1
  • LoopEngine.BuildExecutionExplanation (cognitive 17) ShareRibbon/Agent/LoopEngine.Planning.vb:13 — LoopEngine.BuildExecutionExplanation has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · ToolRegistry.RegisterOrMergeTool (cognitive 17) · ×1
  • ToolRegistry.RegisterOrMergeTool (cognitive 17) ShareRibbon/Agent/ToolRegistry.vb:338 — ToolRegistry.RegisterOrMergeTool has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · ReformatTemplateEditorControl.SaveCurrentBodyStyle (cognitive 17) · ×1
  • ReformatTemplateEditorControl.SaveCurrentBodyStyle (cognitive 17) ShareRibbon/Controls/ReformatTemplateEditorControl.vb:939 — ReformatTemplateEditorControl.SaveCurrentBodyStyle has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · ExecutionPlanRenderer.GetFormulaDescription (cognitive 17) · ×1
  • ExecutionPlanRenderer.GetFormulaDescription (cognitive 17) ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:321 — ExecutionPlanRenderer.GetFormulaDescription has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · SkillsIndexService.SelectSkillDefinitions (cognitive 17) · ×1
  • SkillsIndexService.SelectSkillDefinitions (cognitive 17) ShareRibbon/Services/Memory/SkillsIndexService.vb:79 — SkillsIndexService.SelectSkillDefinitions has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · ChatControl.HandleChatDrivenReformat (cognitive 17) · ×1
  • ChatControl.HandleChatDrivenReformat (cognitive 17) WordAi/ChatControl.vb:1413 — ChatControl.HandleChatDrivenReformat has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · SmartFormatter.ExecuteFormatAction (cognitive 17) · ×1
  • SmartFormatter.ExecuteFormatAction (cognitive 17) WordAi/Services/SmartFormatter.vb:54 — SmartFormatter.ExecuteFormatAction has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · PowerPointDocumentTranslateService.CollectTextItemsFromShape (cognitive 17) · ×1
  • PowerPointDocumentTranslateService.CollectTextItemsFromShape (cognitive 17) PowerPointAi/PowerPointDocumentTranslateService.vb:442 — PowerPointDocumentTranslateService.CollectTextItemsFromShape has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · ChatControl.GetSelectionContentExcel (cognitive 17) · ×1
  • ChatControl.GetSelectionContentExcel (cognitive 17) ExcelAi/ChatControl.vb:57 — ChatControl.GetSelectionContentExcel has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · DoubaoChat.AppendCurrentSelectedContent (cognitive 17) · ×1
  • DoubaoChat.AppendCurrentSelectedContent (cognitive 17) ExcelAi/DoubaoChat.vb:46 — DoubaoChat.AppendCurrentSelectedContent has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · EnhancedPreviewAndConfirm.GenerateSummary (cognitive 17) · ×1
  • EnhancedPreviewAndConfirm.GenerateSummary (cognitive 17) ExcelAi/EnhancedPreviewAndConfirm.vb:308 — EnhancedPreviewAndConfirm.GenerateSummary has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · ExcelDirectOperationService.GroupByAnalysis (cognitive 17) · ×1
  • ExcelDirectOperationService.GroupByAnalysis (cognitive 17) ExcelAi/ExcelDirectOperationService.vb:1776 — ExcelDirectOperationService.GroupByAnalysis has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · ExcelDirectOperationService.ResolveExcelRange (cognitive 17) · ×1
  • ExcelDirectOperationService.ResolveExcelRange (cognitive 17) ExcelAi/ExcelDirectOperationService.vb:1901 — ExcelDirectOperationService.ResolveExcelRange has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · JsonPreviewDialog.PopulateSummary (cognitive 17) · ×1
  • JsonPreviewDialog.PopulateSummary (cognitive 17) ExcelAi/JsonPreviewDialog.vb:150 — JsonPreviewDialog.PopulateSummary has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · toggleCodeViewFromRenderer (cognitive 17) · ×1
  • toggleCodeViewFromRenderer (cognitive 17) ShareRibbon/Resources/js/code-handler.js:1680 — toggleCodeViewFromRenderer has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · showAgentPlanCard (cognitive 17) · ×1
  • showAgentPlanCard (cognitive 17) ShareRibbon/Resources/js/agent-card.js:81 — showAgentPlanCard has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · AgentMemoryRepository.ReadMemoryItem (cognitive 16) · ×1
  • AgentMemoryRepository.ReadMemoryItem (cognitive 16) ShareRibbon/Storage/AgentMemoryRepository.vb:39 — AgentMemoryRepository.ReadMemoryItem has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · FormattingStandardRegistry.SelectBest (cognitive 16) · ×1
  • FormattingStandardRegistry.SelectBest (cognitive 16) ShareRibbon/Services/Reformat/FormattingStandardRegistry.vb:65 — FormattingStandardRegistry.SelectBest has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · OfficeOperationValidation.ValidateBatch (cognitive 16) · ×1
  • OfficeOperationValidation.ValidateBatch (cognitive 16) ShareRibbon/Agent/OfficeOperations/OfficeOperationValidation.vb:44 — OfficeOperationValidation.ValidateBatch has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · SafetyGate.EvaluateOfficeOperation (cognitive 16) · ×1
  • SafetyGate.EvaluateOfficeOperation (cognitive 16) ShareRibbon/Agent/Execution/SafetyGate.vb:91 — SafetyGate.EvaluateOfficeOperation has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · ReformatTemplateEditorControl.SaveLayoutElementAt (cognitive 16) · ×1
  • ReformatTemplateEditorControl.SaveLayoutElementAt (cognitive 16) ShareRibbon/Controls/ReformatTemplateEditorControl.vb:826 — ReformatTemplateEditorControl.SaveLayoutElementAt has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · CommandPreviewForm.GetCommandDescription (cognitive 16) · ×1
  • CommandPreviewForm.GetCommandDescription (cognitive 16) ShareRibbon/Controls/CommandPreviewForm.vb:152 — CommandPreviewForm.GetCommandDescription has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · StreamJsonRpcMCPClient.ListPromptsAsync (cognitive 16) · ×1
  • StreamJsonRpcMCPClient.ListPromptsAsync (cognitive 16) ShareRibbon/Mcp/StreamJsonRpcMCPClient.vb:709 — StreamJsonRpcMCPClient.ListPromptsAsync has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · HttpStreamService.HandleMcpToolCallAsync (cognitive 16) · ×1
  • HttpStreamService.HandleMcpToolCallAsync (cognitive 16) ShareRibbon/Controls/Services/HttpStreamService.vb:1107 — HttpStreamService.HandleMcpToolCallAsync has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · UnifiedMemoryService.CalculateImportance (cognitive 16) · ×1
  • UnifiedMemoryService.CalculateImportance (cognitive 16) ShareRibbon/Services/UnifiedMemoryService.vb:12 — UnifiedMemoryService.CalculateImportance has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ApplyDslParagraphStyle (cognitive 16) · ×1
  • ChatControl.ApplyDslParagraphStyle (cognitive 16) WordAi/ChatControl.vb:4247 — ChatControl.ApplyDslParagraphStyle has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ApplyDslCharacterFormat (cognitive 16) · ×1
  • ChatControl.ApplyDslCharacterFormat (cognitive 16) WordAi/ChatControl.vb:4307 — ChatControl.ApplyDslCharacterFormat has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · FormattingIntentCompiler.AddFontSizeOperations (cognitive 16) · ×1
  • FormattingIntentCompiler.AddFontSizeOperations (cognitive 16) WordAi/Services/FormattingIntentCompiler.vb:214 — FormattingIntentCompiler.AddFontSizeOperations has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · ChatControl.GetContextSnapshot (cognitive 16) · ×1
  • ChatControl.GetContextSnapshot (cognitive 16) PowerPointAi/ChatControl.vb:1132 — ChatControl.GetContextSnapshot has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · ChatControl.ExecuteInsertTable (cognitive 16) · ×1
  • ChatControl.ExecuteInsertTable (cognitive 16) PowerPointAi/ChatControl.vb:1761 — ChatControl.ExecuteInsertTable has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · PowerPointContinuationService.GetTextSelectionContext (cognitive 16) · ×1
  • PowerPointContinuationService.GetTextSelectionContext (cognitive 16) PowerPointAi/PowerPointContinuationService.vb:91 — PowerPointContinuationService.GetTextSelectionContext has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · PowerPointContinuationService.GetShapeSelectionContext (cognitive 16) · ×1
  • PowerPointContinuationService.GetShapeSelectionContext (cognitive 16) PowerPointAi/PowerPointContinuationService.vb:164 — PowerPointContinuationService.GetShapeSelectionContext has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · SlideComponentLibrary.BuildComparison (cognitive 16) · ×1
  • SlideComponentLibrary.BuildComparison (cognitive 16) PowerPointAi/Design/SlideComponentLibrary.Patterns.vb:106 — SlideComponentLibrary.BuildComparison has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · PowerPointVisualVerifier.ScoreRenderedComposition (cognitive 16) · ×1
  • PowerPointVisualVerifier.ScoreRenderedComposition (cognitive 16) PowerPointAi/Design/PowerPointVisualVerifier.Rendered.vb:165 — PowerPointVisualVerifier.ScoreRenderedComposition has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · ProfessionalDeckExecutor.ValidateVariant (cognitive 16) · ×1
  • ProfessionalDeckExecutor.ValidateVariant (cognitive 16) PowerPointAi/Design/ProfessionalDeckExecutor.vb:342 — ProfessionalDeckExecutor.ValidateVariant has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · ChatControl.AppendCurrentSelectedContent (cognitive 16) · ×1
  • ChatControl.AppendCurrentSelectedContent (cognitive 16) ExcelAi/ChatControl.vb:414 — ChatControl.AppendCurrentSelectedContent has cognitive complexity 16 (threshold 15).
D4 · Code Duplication · Duplicated block (183 lines × 2) · ×1
  • Duplicated block (183 lines × 2) ShareRibbon/Controls/BaseDataCapturePane.vb:549 — ShareRibbon/Controls/BaseDataCapturePane.vb:549-731 | ShareRibbon/Controls/BaseDataCapturePane.vb:1156-1186
D4 · Code Duplication · Duplicated block (76 lines × 2) · ×1
  • Duplicated block (76 lines × 2) ShareRibbon/Config/ReformatTemplateManager.vb:385 — ShareRibbon/Config/ReformatTemplateManager.vb:385-452 | ShareRibbon/Config/ReformatTemplateManager.vb:676-751
D4 · Code Duplication · Duplicated block (69 lines × 5) · ×1
  • Duplicated block (69 lines × 5) ShareRibbon/Config/ReformatTemplateManager.vb:281 — ShareRibbon/Config/ReformatTemplateManager.vb:281-345 | ShareRibbon/Config/ReformatTemplateManager.vb:355-416 | ShareRibbon/Config/ReformatTemplateManager.vb:478-542 | ShareRibbon/Config/ReformatTemplateManager.vb:552-612 | ShareRibbon/Config/ReformatTemplateManager.vb:622-690
D4 · Code Duplication · Duplicated block (53 lines × 2) · ×1
  • Duplicated block (53 lines × 2) ShareRibbon/Config/PromptManager.vb:661 — ShareRibbon/Config/PromptManager.vb:661-713 | ShareRibbon/Config/PromptManager.vb:785-837
D4 · Code Duplication · Duplicated block (49 lines × 2) · ×1
  • Duplicated block (49 lines × 2) ShareRibbon/Controls/BaseDataCapturePane.vb:494 — ShareRibbon/Controls/BaseDataCapturePane.vb:494-542 | ShareRibbon/Controls/BaseDataCapturePane.vb:998-1041
D4 · Code Duplication · Duplicated block (37 lines × 2) · ×1
  • Duplicated block (37 lines × 2) ShareRibbon/Config/ReformatTemplateEditorForm.vb:453 — ShareRibbon/Config/ReformatTemplateEditorForm.vb:453-489 | ShareRibbon/Controls/ReformatTemplateEditorControl.vb:451-463
D4 · Code Duplication · Duplicated block (31 lines × 2) · ×1
  • Duplicated block (31 lines × 2) ShareRibbon/Storage/OfficeAiDatabase.vb:576 — ShareRibbon/Storage/OfficeAiDatabase.vb:576-606 | ShareRibbon/Storage/OfficeAiDatabase.vb:607-637
D4 · Code Duplication · Duplicated block (29 lines × 2) · ×1
  • Duplicated block (29 lines × 2) ShareRibbon/Storage/OfficeAiDatabase.vb:541 — ShareRibbon/Storage/OfficeAiDatabase.vb:541-569 | ShareRibbon/Storage/OfficeAiDatabase.vb:575-603
D4 · Code Duplication · Duplicated block (28 lines × 2) · ×1
  • Duplicated block (28 lines × 2) ExcelAi/EnhancedPreviewAndConfirm.vb:182 — ExcelAi/EnhancedPreviewAndConfirm.vb:182-209 | ExcelAi/EnhancedPreviewAndConfirm.vb:217-244
D4 · Code Duplication · Duplicated block (24 lines × 3) · ×1
  • Duplicated block (24 lines × 3) WordAi/WordJsonCommandSchema.vb:147 — WordAi/WordJsonCommandSchema.vb:147-170 | PowerPointAi/PowerPointJsonCommandSchema.vb:177-200 | ExcelAi/ExcelJsonCommandSchema.vb:202-225
D4 · Code Duplication · Duplicated block (24 lines × 2) · ×1
  • Duplicated block (24 lines × 2) WordAi/ChatControl.vb:3404 — WordAi/ChatControl.vb:3404-3427 | PowerPointAi/ChatControl.vb:1006-1029
D4 · Code Duplication · Duplicated block (22 lines × 3) · ×1
  • Duplicated block (22 lines × 3) ShareRibbon/Controls/BaseChat.vb:108 — ShareRibbon/Controls/BaseChat.vb:108-127 | ShareRibbon/Controls/BaseDeepseekChat.vb:64-85 | ShareRibbon/Controls/BaseDoubaoChat.vb:69-89
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×1
  • Duplicated block (22 lines × 2) ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:396 — ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:396-417 | ShareRibbon/Services/Reformat/DocumentAnalyzer.vb:422-436
D4 · Code Duplication · Duplicated block (21 lines × 4) · ×1
  • Duplicated block (21 lines × 4) WordAi/ChatControl.vb:3450 — WordAi/ChatControl.vb:3450-3470 | WordAi/ChatControl.vb:3496-3516 | PowerPointAi/ChatControl.vb:1052-1072 | PowerPointAi/ChatControl.vb:1098-1118
D4 · Code Duplication · Duplicated block (17 lines × 3) · ×1
  • Duplicated block (17 lines × 3) WordAi/WordJsonCommandSchema.vb:245 — WordAi/WordJsonCommandSchema.vb:245-260 | PowerPointAi/PowerPointJsonCommandSchema.vb:275-290 | ExcelAi/ExcelJsonCommandSchema.vb:361-377
D4 · Code Duplication · Duplicated block (14 lines × 15) · ×1
  • Duplicated block (14 lines × 15) ShareRibbon/Config/PresetProviders.vb:27 — ShareRibbon/Config/PresetProviders.vb:27-39 | ShareRibbon/Config/PresetProviders.vb:43-55 | ShareRibbon/Config/PresetProviders.vb:59-71 | ShareRibbon/Config/PresetProviders.vb:74-87 | ShareRibbon/Config/PresetProviders.vb:91-103 | ShareRibbon/Config/PresetProviders.vb:106-118 | ShareRibbon/Config/PresetProviders.vb:123-135 | ShareRibbon/Config/PresetProviders.vb:138-150 | ShareRibbon/Config/PresetProviders.vb:153-165 | ShareRibbon/Config/PresetProviders.vb:170-182 | ShareRibbon/Config/PresetProviders.vb:184-196 | ShareRibbon/Config/PresetProviders.vb:199-211 | ShareRibbon/Config/PresetProviders.vb:215-227 | ShareRibbon/Config/PresetProviders.vb:229-241 | ShareRibbon/Config/PresetProviders.vb:243-255
D4 · Code Duplication · Duplicated block (12 lines × 4) · ×1
  • Duplicated block (12 lines × 4) ShareRibbon/Controls/BaseChat.vb:500 — ShareRibbon/Controls/BaseChat.vb:500-511 | ShareRibbon/Controls/BaseDeepseekChat.vb:737-748 | ShareRibbon/Controls/Services/CodeExecutionService.vb:363-374 | ExcelAi/EnhancedPreviewAndConfirm.vb:358-369
D4 · Code Duplication · Duplicated block (10 lines × 5) · ×1
  • Duplicated block (10 lines × 5) ShareRibbon/Services/Reformat/FormattingStandardData.vb:232 — ShareRibbon/Services/Reformat/FormattingStandardData.vb:232-241 | ShareRibbon/Services/Reformat/FormattingStandardData.vb:291-300 | ShareRibbon/Services/Reformat/FormattingStandardData.vb:327-336 | ShareRibbon/Services/Reformat/FormattingStandardData.vb:341-350 | ShareRibbon/Services/Reformat/FormattingStandardData.vb:414-423
D4 · Code Duplication · Duplicated block (10 lines × 4) · ×1
  • Duplicated block (10 lines × 4) ShareRibbon/Services/Reformat/LegacyTemplateConverter.vb:153 — ShareRibbon/Services/Reformat/LegacyTemplateConverter.vb:153-162 | ShareRibbon/Services/Reformat/LegacyTemplateConverter.vb:180-189 | ShareRibbon/Services/Reformat/LegacyTemplateConverter.vb:198-207 | ShareRibbon/Services/Reformat/LegacyTemplateConverter.vb:216-225
D4 · Code Duplication · Duplicated block (7 lines × 4) · ×1
  • Duplicated block (7 lines × 4) ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:175 — ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:175-180 | ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:234-240 | ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:263-269 | ShareRibbon/Controls/Services/ExecutionPlanRenderer.vb:289-294
D5 · Coupling · Off the main sequence · ×1
  • Off the main sequence: ShareRibbon — ShareRibbon: abstractness 0.06, instability 0.00, distance 0.94 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Recommendation — 7 finding(s)
D18 · Solution Shape · Shell project · ×4
  • Shell project: ShareRibbon ShareRibbon/ShareRibbon.vbproj — `ShareRibbon` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
  • Shell project: WordAi WordAi/WordAi.vbproj — `WordAi` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
  • Shell project: PowerPointAi PowerPointAi/PowerPointAi.vbproj — `PowerPointAi` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
  • Shell project: ExcelAi ExcelAi/ExcelAi.vbproj — `ExcelAi` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
D11 · Test Reliability · Test reliability not included · ×1
  • Test reliability not included — No test projects found, so reliability couldn't be assessed.
D26 · Project Cohesion · Split ShareRibbon · ×1
  • Split ShareRibbon — A ribbon host whose 49k LoC and 373 types spread over 12 unrelated namespaces make it a sprawling grab-bag. Suggested: by namespace: RibbonCommands, RibbonThemes, RibbonDragDrop
D9 · Test Distribution · No tests found · ×1
  • No tests found — No test projects found in the repository.
Info — 2 finding(s)
D18 · Solution Shape · Build did not complete in the analyzer · ×1
  • Build did not complete in the analyzer — `dotnet build` reported 4 error(s) but no C# compiler diagnostic — an SDK / target-framework / restore mismatch in the analyzer environment, not a code defect (common for an older codebase whose target framework the analyzer's SDK can't build). Solution Shape is scored on structure and is NOT capped; the C# semantic analysis loads independently and is unaffected.
D22 · Internal API Consistency · No exposed public API · ×1
  • No exposed public API — No intentionally-exposed types (IsPackable or .Contracts) to evaluate.

Appendix B — Reproduction & audit trail

Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaksgitleaks detect --no-banner --report-format json --report-path /dev/stdout --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D29 · Static Analysis (SAST)semgrepsemgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --json --quiet --timeout 0 --metrics off .0artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesdotnetdotnet: not applicable — the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan for NuGet CVEs — excluded rather than scored; re-run on an SDK that can restore this solution0
D31 · IaC & Container Securitytrivytrivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.0
D32 · Data Compliance (PII/GDPR)semgrepsemgrep: not applicable — No PII/GDPR ruleset is bundled (the public p/gdpr semgrep pack was retired) — data compliance is not assessed in this scan.0
D33 · JS/npm Dependency Vulnerabilitiestrivytrivy: not applicable — No JS/npm manifest or lockfile found outside bin/obj (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan.0
D36 · Supply-chain Provenance & Signingprovenanceprovenance: not applicable — No CI/build pipeline found (.github/workflows, .gitlab-ci.yml, azure-pipelines.yml, Jenkinsfile, .circleci); there is no build to attest provenance for.0
D37 · Vulnerability-disclosure Policydisclosuredisclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md, .github/SECURITY.md, docs/SECURITY.md, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.0
D38 · OSV Dependency Vulnerabilitiesosv-scannerosv-scanner: not applicable — No JS/npm lockfile found outside bin/obj (package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); nothing for OSV to scan.0

Run 019fdeb7-70c3-717a-9ad6-89a6e6693e63 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.

⬇ Findings, MITRE CWE-tagged .sarif⬇ Health changelog .md