Public report — atmosphere, published 4 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 04-08-2026 @ 20:36 UTC Public
Code Health Audit

Atmosphere/atmosphere

No baseline yet — first run
62% Adequate
CriticalWeakAdequateStrongExemplary
middle

Large · 229,761 LoC · rebuild ~3.1 person-years · weakest lens: Accessibility (52%)

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

42/44dimensions tool-verifieddeterministic · confidence 1.0 · 2 LLM-assisted, advisory
625findings with an exact file:lineof 633 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
44/106dimensions across the health lenses229761 LoC — 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.

Atmosphere/atmosphere is sound in substance but carries real gaps (62%). It is not in crisis, but the issues below raise the cost of changing it — friction its consumers ultimately inherit.

It is strongest in Architecture (100%) — the structure is clean and changes stay contained. Code Health (87%) is solid too.

The area that most needs attention is Accessibility (52%) — it raises ongoing delivery and operational cost. Maturity (66%) is the next concern — onboarding is slow and knowledge is concentrated in too few people (a bus-factor risk).

Leadership focus, highest impact first: Make custom controls keyboard-operable (role + tabindex + key handler) (Keyboard semantics); accessibility in the toolchain (A11y enforcement); Give every control a programmatic label (a <label for> /… (Forms & labels).

For scale: Large (~229,761 production lines); rebuilding it from scratch would take roughly ~3.1 person-years (~1–6 engineers). Approximate, ±~30%.

It builds on a genuinely strong Architecture 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.
Accessibility 52% · 46% weightMaturity 66% · 25% weightReadiness 68% · 14% weightSecurity 76% · 8% weightCode Health 87% · 4% weightArchitecture 100% · 2% weight

Raise Accessibility 52 → 70 (the Healthy floor) ⇒ headline 62 → ~69.

Code composition — where the lines go
Tests 100%
Rebuild cost & value ~ Modeled — €150,000–€760,000
Cost to rebuild€150,000–€760,000 (1.5–4.8 person-years (2,516–7,982 h), ~1–6 engineers)
Domain complexityStandard — harder problems cost more per line
Quality factor0.9× (at 62% quality) — the last 20% of quality is most of the work
Size & shapeLarge · effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk)

This codebase represents roughly ~3.1 person-years of build effort (about ~€450,000 to rebuild). Its weakest lens is Accessibility at 52% — the part of that asset most exposed by the findings below.

How we model this: boilerplate at a scaffolding rate + logic × domain Standard (×1.0) — standard service × a 0.9× quality factor, at €60–95/h; indicative, ±~30% · size measured directly from source · effort from total production LoC as straight-line logic (the tier split is a C#-only syntax walk), a conservative lower bound. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).

Top priorities

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

1
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
+9.5 pts · Medium effort · Keyboard semantics
2
Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y, then assert with vitest-axe in tests, then gate axe/pa11y/Lighthouse in CI.
+9.5 pts · Medium effort · A11y enforcement
3
Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
+9.3 pts · Medium effort · Forms & labels

Diagnosis — what's actually going on

The top fix pays for itself · High · Economics
The top-ranked fix costs roughly 3–10 engineer-days once. Not doing it costs about 39.9–266.3 engineer-days every year, paid as drag on the ~798,985 lines this team changes annually — a bill that arrives whether or not anyone books it. On those figures the fix breaks even in roughly 1–3 months and is free after that. Method, stated so this is not read as a quotation: debt from the ranked task's effort band; interest = annual changed lines (measured, annualised from the 90-day window) ÷ an ASSUMED 150–400 lines per engineer-day × the 2–5% drag implied by the code-quality signals; breaking point = debt ÷ annual interest. A modelled planning range built from measured inputs and one named assumption — not a quotation, a valuation, or a certified figure.
Evidence: D15 churn: 197,010 line(s) changed over a 90-day window ⇒ ~798,985/year · D1/D2/D4 code quality: averaging 7.3/10 ⇒ a 2–5% drag on each change · top-ranked remediation: Medium effort ⇒ about 3–10 engineer-day(s)
→ Do the top-ranked fix now if this code will still be yours in 3 months.
Value concentrated against a weak lens · Medium · Value at risk
This is a Large asset (~3.1 person-years to rebuild), and its weakest lens is Accessibility at 52%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
Evidence: valuation: Large, ~3.1 person-years rebuild (229,761 LoC) · weakest lens: Accessibility 52%
→ Direct remediation budget at Accessibility first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
A velocity tax on every change · Medium · Economics
The code-quality signals (complexity, duplication, cohesion) average 7.3/10, which acts as a tax on every change in the weaker areas: modifications there plausibly cost on the order of 2–5% more than in clean code, and the tax compounds as the codebase grows. (A modelled estimate, not a measured fact.)
Evidence: D1/D2/D4 code quality: averaging 7.3/10 across the code-quality signals actually measured
→ Pay it down where churn is highest — the hotspots — not everywhere; that's where the tax is actually paid.

Architecture — module dependency matrix

14 modules, 2 dependencies — every dependency points down the layering, so there are no cycles. Rows and columns are the same modules, ordered so that a module only depends on ones above it. A cell means the row depends on the column, and its number is how many type pairs create that dependency. Read one thing: is anything above the diagonal? A mark there is a dependency cycle. (A cycle is all this shows — an unusual but cycle-free dependency sits below the diagonal like any other.)

(global)…84b1881d3a49f2fa745dc…ewai.sidecar.examples…ere_crewai_bridge.app…ai_bridge.crew_loader…rewai_bridge.sessions…_crewai_bridge.stream…e_crewai_bridge.tools…idecar.tests.conftest…ecar.tests.test_tools…est_tools_in_sessionsscripts…osphere_crewai_bridge….crewai.sidecar.tests(global)1…84b1881d3a49f2fa745dc2…ewai.sidecar.examples3…ere_crewai_bridge.app4…ai_bridge.crew_loader5…rewai_bridge.sessions6…_crewai_bridge.stream7…e_crewai_bridge.tools8…idecar.tests.conftest9…ecar.tests.test_tools10…est_tools_in_sessions11scripts12…osphere_crewai_bridge13….crewai.sidecar.tests1421

At a glance — Code Health · 87% · Strong

At a glance — Architecture · 100% · Exemplary

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

At a glance — Readiness · 68% · Adequate · gated by R4

At a glance — Security · 76% · Adequate · gated by D32

At a glance — Accessibility · 52% · Adequate · gated by AC4

Security & Compliance — OWASP Top-10 mapping

Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).

OWASP categoryFindingsSeverity
A04:2021 — Insecure Design23High / Critical
A06:2021 — Vulnerable & Outdated Components4High / Critical
A05:2021 — Security Misconfiguration3High / Critical

Roadmap

First, make custom controls keyboard-operable and ensure anchors have real hrefs. Next, enforce accessibility by adding eslint-plugin-jsx-a11y, asserting with vitest-axe in tests, and gating axe, pa11y, and Lighthouse in CI. Then, provide programmatic labels for all controls and buttons. After that, declare the html language, add a title and main landmark, maintain heading order, and remove meta-refresh. Finally, document significant architectural decisions in a dedicated folder with clear context and consequences.

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

Do thisHelpsEffortDimension
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.+9.5 ptsMediumKeyboard semantics
Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y, then assert with vitest-axe in tests, then gate axe/pa11y/Lighthouse in CI.+9.5 ptsMediumA11y enforcement
Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.+9.3 ptsMediumForms & labels
Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.+9.0 ptsMediumPage structure
Resolve the 1 Off-boarding risk finding(s) in Bus Factor.+2.3 ptsLowBus Factor
Resolve the 1 The Compose generator's Prerequisites list omits Docker installation… finding(s) in Documentation Quality — start with README.md.+1.7 ptsLowDocumentation Quality
Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree with `NNNN-title.md` names is the most discoverable form).+3.2 ptsMediumArchitecture documentation
Add a 'Testing' section to the root README — how to run the test suite.+2.5 ptsMediumDocumentation (README)

File quality

Per-file score 0–10 — a quality signature. Of 252 files carrying findings, judged against the Production bar: 1% slop · 49% mixed · 50% near-clean.

FileScoreBandWorst signal
modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java2.1SlopData Compliance (PII/GDPR): High: watchdog-sensitive-personal-data-in-log
modules/cpr/src/main/java/org/atmosphere/cpr/FrameworkDiagnostics.java2.5SlopData Compliance (PII/GDPR): High: watchdog-sensitive-personal-data-in-log
modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java2.5SlopData Compliance (PII/GDPR): High: watchdog-sensitive-personal-data-in-log
modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java4.3MixedData Compliance (PII/GDPR): High: watchdog-sensitive-personal-data-in-log
modules/quarkus-extension/deployment/src/main/java/org/atmosphere/quarkus/deployment/AtmosphereProcessor.java4.3MixedData Compliance (PII/GDPR): High: watchdog-sensitive-personal-data-in-log
generator/templates/compose/Dockerfile.mustache4.4MixedIaC & Container Security: High IaC: DS-0002
modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java5.0MixedData Compliance (PII/GDPR): High: watchdog-sensitive-personal-data-in-log
atmosphere.js/package-lock.json5.1MixedOSV Dependency Vulnerabilities: High CVE: [GHSA redacted]
modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java5.6MixedCyclomatic Complexity: A2aAgentTransport.extractStreamingText (cyclomatic 18)
modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java5.8MixedChange Coupling: Boundary-crossing change coupling: ToolAwareStreamingResponseHandler.java ↔ SpringAiAgentRuntime.java
modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInAgentRuntime.java5.8MixedChange Coupling: Boundary-crossing change coupling: BuiltInAgentRuntime.java ↔ ToolAwareStreamingResponseHandler.java
modules/cpr/src/main/java/org/atmosphere/cpr/WebSocketConfig.java5.8MixedData Compliance (PII/GDPR): High: watchdog-sensitive-personal-data-in-log
modules/cpr/src/main/java/org/atmosphere/handler/ReflectorServletProcessor.java5.8MixedData Compliance (PII/GDPR): High: watchdog-sensitive-personal-data-in-log
modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereServletInstanceFactory.java5.8MixedData Compliance (PII/GDPR): High: watchdog-sensitive-personal-data-in-log
modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java7.0MixedCyclomatic Complexity: DefaultBroadcaster.deliverPush (cyclomatic 40)
modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java7.0MixedCyclomatic Complexity: OpenAiCompatibleClient.processResponsesApiSSELine (cyclomatic 36)
modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java7.0MixedCyclomatic Complexity: CoordinatorProcessor.handle (cyclomatic 28)
modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java7.0MixedCyclomatic Complexity: IntrospectionUtils.invokeProperty (cyclomatic 27)
modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java7.0MixedCyclomatic Complexity: CohereChatClient.stream (cyclomatic 22)
modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java7.0MixedCognitive Complexity: McpProtocolHandler.handleInitialize (cognitive 19)

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. 42 of 44 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.7 — 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 — 44 dimensions across the health lenses
D1D2D3D4D13D15D16D19D21D28D29D31D32D33D34D35D36D37D38AC1AC2AC3AC4AC5AC6AC7M1M2M3M4P1P3P4P6R1R10R2R3R4R5R6R7R8R9

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, 625 of 633 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.302✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.302✓ 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 · 3.2.533✓ 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 019fce7d-fef7-792c-a9b5-fec150e9dfe1.

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.

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

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 (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • 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.
  • D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement.
  • 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.
  • 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").
  • D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
  • D32 Data Compliance (PII/GDPR): PII/GDPR signals are heuristic pattern matches in code — they flag likely handling concerns, not legal compliance, and cannot trace where data actually flows at runtime.
  • D33 JS/npm Dependency Vulnerabilities: JS/npm CVE matching reads package manifests and lockfiles — risk from how a dependency is used, and advisories not yet published, fall outside this scan.
  • 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.
  • AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
  • AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A clean result is "no unlabelled native control found", not a labelling proof.
  • AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
  • AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
  • AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them.
  • AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
  • AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
  • 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.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • 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 (3): D19, 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 Complexity6.3 / 10Adequate✓ 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 6.3 / 10 · rule-coverage 100% · ceiling Prevented

74 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was AiPipeline.execute at 74. A further 3 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being TapeRecordingSession.emit at 19 — they are counted neither in the figure above nor in this dimension's score.

AiPipeline.execute (cyclomatic 74)modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:389
AiStreamingSession.stream (cyclomatic 69)modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:562
AiEndpointHandler.onStateChange (cyclomatic 49)modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:467
SpringAiAgentRuntime.doExecuteWithHandle (cyclomatic 43)modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:132
JSR356Endpoint.onOpen (cyclomatic 43)modules/cpr/src/main/java/org/atmosphere/container/JSR356Endpoint.java:121

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

What to do

  1. Resolve the 1 AiPipeline.execute (cyclomatic 74) finding(s) in Cyclomatic Complexity — start with AiPipeline.java. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 AiStreamingSession.stream (cyclomatic 69) finding(s) in Cyclomatic Complexity — start with AiStreamingSession.java. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 AiEndpointHandler.onStateChange (cyclomatic 49) finding(s) in Cyclomatic Complexity — start with AiEndpointHandler.java. — 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 Complexity6.1 / 10Adequate✓ 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 6.1 / 10 · rule-coverage 100% · ceiling Prevented

177 method(s) exceeded the cognitive complexity threshold of 15; the worst was AiStreamingSession.stream at 90.

AiStreamingSession.stream (cognitive 90)modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:562
AiPipeline.execute (cognitive 87)modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:389
JSR356Endpoint.onOpen (cognitive 71)modules/cpr/src/main/java/org/atmosphere/container/JSR356Endpoint.java:121
DefaultBroadcaster.deliverPush (cognitive 69)modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:669
ToolBridgeUtils.parseJsonArgs (cognitive 67)modules/ai/src/main/java/org/atmosphere/ai/tool/ToolBridgeUtils.java:49

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

What to do

  1. Resolve the 1 AiStreamingSession.stream (cognitive 90) finding(s) in Cognitive Complexity — start with AiStreamingSession.java. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 AiPipeline.execute (cognitive 87) finding(s) in Cognitive Complexity — start with AiPipeline.java. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 JSR356Endpoint.onOpen (cognitive 71) finding(s) in Cognitive Complexity — start with JSR356Endpoint.java. — 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 Classes9.4 / 10Exemplary✓ 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 9.4 / 10 · rule-coverage 100% · ceiling Prevented

43 god class(es) detected.

TooManyMethods: AtmosphereFramework · ×28modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:104
FileTooLong: cpr/DefaultBroadcaster.java · ×15modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:0

✓ On the Gold path — maintain.

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

D4 · Code Duplication9.4 / 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.4 / 10 · rule-coverage 100% · ceiling Verified

283 duplicated block group(s) detected.

Duplicated block (8 lines × 2) · ×44modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:63
Duplicated block (9 lines × 2) · ×43samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java:91
Duplicated block (7 lines × 2) · ×39samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/CeoCoordinator.java:251
Duplicated block (6 lines × 2) · ×33modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1284
Duplicated block (11 lines × 2) · ×25samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/RetryDemoChat.java:92

+ 27 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.

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: modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java (18×74=1332); modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java (18×69=1242); modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java (14×43=602)

Hotspot: modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java · ×10modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java

✓ On the Gold path — maintain.

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

D16 · Bus Factor4.7 / 10Weak✓ 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 4.7 / 10 · rule-coverage 100% · ceiling Documented

542 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java.

Off-boarding risk: anonymized user #1

What to do

  1. Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).

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

D19 · Documentation Quality / 10Strong◐ Sampled · advisory

What it measures: Whether the project's documentation is clear, complete, and useful.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.

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

Atmosphere's documentation is clear and complete for a real-time AI runtime engine: an engaging README with Maven Central/npm/Ci badges, a Why Atmosphere table, and a dedicated samples/README that lists every Atmosphere version (4.0) sample by stack, AI backend, and tool calling, plus the full outline of each section present in the visible text. The generator/README is also well written, covering compose skill-file scaffolding with prerequisites and usage.

The Compose generator's Prerequisites list omits Docker installation (docker/dockerd) required to run the generated project locally.generator/README.md

What to do

  1. Resolve the 1 The Compose generator's Prerequisites list omits Docker installation… finding(s) in Documentation Quality — start with README.md. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d19_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.

D28 · Secrets (history)8.0 / 10Strong✓ Tool-verified

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 8.0 / 10 · rule-coverage 100% · ceiling Documented

2 finding(s): 0 critical, 2 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.

What to do

  1. Improve Secrets (history) — currently 8.0/10. — 2 finding(s): 0 critical, 2 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.

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.

D31 · IaC & Container Security9.5 / 10Exemplary✓ Tool-verified

What it measures: Whether Dockerfiles / Terraform / Kubernetes config follow security best practices.

Method: IaC/container misconfiguration scan via trivy config (Dockerfile/Terraform/K8s/Helm/CloudFormation); severity rules to 0-10 moderate normalizer. NotApplicable without manifests. Exhaustive, deterministic.

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

3 finding(s): 0 critical, 1 high, 1 medium, 1 low.

High IaC: DS-0002generator/templates/compose/Dockerfile.mustachedetected by trivy finding
Medium IaC: CKV_DOCKER_3generator/templates/compose/Dockerfile.mustache:1detected by trivy finding
Low IaC: DS-0026generator/templates/compose/Dockerfile.mustachedetected by trivy finding

✓ On the Gold path — maintain.

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

D32 · Data Compliance (PII/GDPR)0.0 / 10Critical✓ Tool-verified

What it measures: Likely personal-data (PII / GDPR) handling concerns — logging or storing data without safeguards.

Method: Heuristic PII/GDPR pattern scan via semgrep across the repo, using Watchdog's own ruleset (personal data reaching log/console sinks, URLs and query strings, or unprotected browser storage); matches map to severity and a 0-10 wide normalizer. NotApplicable when the scan runs and detects no PII/GDPR surface (no unearned 10); reported LOUDLY as a measurement gap, never as not-applicable, if the ruleset is missing from the analyzer image. Exhaustive, advisory-leaning; degrades on parse failure.

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

23 finding(s): 0 critical, 23 high, 0 medium, 0 low.

High: watchdog-sensitive-personal-data-in-log · ×23modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:958detected by semgrep finding

What to do

  1. Resolve the 23 High finding(s) in Data Compliance (PII/GDPR) — start with ClasspathScanner.java (4), FrameworkDiagnostics.java (4), AtmosphereFramework.java (3). — One of this dimension's main actionable groups (23 issue-level).

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

D33 · JS/npm Dependency Vulnerabilities10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether JavaScript/npm dependencies have known published vulnerabilities (CVEs) — the npm ecosystem's biggest risk.

Method: JS/npm CVE scan via trivy fs --scanners vuln over JS manifests (package.json/yarn.lock/pnpm-lock/bun.lockb); 0-10 tight normalizer. NotApplicable without JS manifests. Exhaustive, deterministic.

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

No known-vulnerable JS/npm dependencies.

✓ On the Gold path — maintain.

Detailed fixes: d33_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 Coupling9.9 / 10Exemplary✓ 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 9.9 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: playwright.config.ts↔AiFeatureTestServer.java 80%; A2aAgentTransport.java↔LocalAgentTransport.java 75%; KoogAgentRuntime.kt↔ToolAwareStreamingResponseHandler.java 58%

Boundary-crossing change coupling: KoogAgentRuntime.kt ↔ ToolAwareStreamingResponseHandler.java · ×3modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt
Change coupling: playwright.config.ts ↔ AiFeatureTestServer.java · ×4modules/integration-tests/playwright.config.ts

✓ On the Gold path — maintain.

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

D36 · Supply-chain Provenance & Signing5.0 / 10Adequate✓ Tool-verified

What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.

Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.

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

2/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).

Unpinned build actions
PR-triggered workflow without a permissions block
No SBOM

What to do

  1. Resolve the 1 Unpinned build actions finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 PR-triggered workflow without a permissions block finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 No SBOM finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).

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

D37 · Vulnerability-disclosure Policy10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the repository publishes a coordinated-vulnerability-disclosure policy (SECURITY.md or security.txt) with a reporting contact, so finders know how to report a vulnerability. Presence of a policy file with a contact, not whether the policy is adequate or honoured.

Method: Vulnerability-disclosure policy read deterministically from the repo: a SECURITY.md (root/.github/docs) or .well-known/security.txt / security.txt, regex-checked for a reporting contact (email / URL / mailto). Present + contact → 10; present without a contact → 4; NotApplicable when no policy file exists (it may live off-repo). Detects the policy file's presence + contact, not its adequacy.

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

A vulnerability-disclosure policy (SECURITY.md) is published with a reporting contact.

✓ On the Gold path — maintain.

Detailed fixes: d37_recommendation.md.

D38 · OSV Dependency Vulnerabilities8.1 / 10Strong✓ Tool-verified

What it measures: Whether dependencies have known published vulnerabilities (CVEs) per the OSV database — read natively from whatever lockfile the repository ships (Cargo, npm, Go, Python, Maven, RubyGems, …). D33 and D30 add ecosystem-specific scanners on top for npm and .NET.

Method: Multi-ecosystem dependency-CVE scan via osv-scanner --recursive (queries the osv.dev database + parses lockfiles natively across ecosystems: npm package-lock/yarn/pnpm/bun, Go go.mod, Rust Cargo.lock, Maven/Gradle pom.xml/gradle.lockfile, PyPI requirements.txt/poetry.lock/Pipfile.lock, Composer composer.lock, RubyGems Gemfile.lock, Hex mix.lock, pub pubspec.lock, Swift Package.resolved); severity tally (Critical/High/Medium/Low) to 0-10 tight normalizer (8.0). NotApplicable only when the repo declares no supported non-.NET dependency lockfile (a NuGet-only repo stays NotApplicable — .NET CVEs are D30's domain); coverage needs a resolved lockfile. Additive to D33 (trivy fs); exhaustive + deterministic, DB kept fresh.

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

4 finding(s): 0 critical, 3 high, 0 medium, 1 low.

High CVE: [GHSA redacted] · ×2atmosphere.js/package-lock.jsondetected by osv-scanner finding
High vulnerability: [GHSA redacted]atmosphere.js/package-lock.jsondetected by osv-scanner finding
Low CVE: [GHSA redacted]modules/spring-boot-starter/frontend/package-lock.jsondetected by osv-scanner finding

What to do

  1. Resolve the 2 High CVE finding(s) in OSV Dependency Vulnerabilities — start with package-lock.json (2). — One of this dimension's main actionable groups (2 issue-level).
  2. Resolve the 1 High vulnerability finding(s) in OSV Dependency Vulnerabilities — start with package-lock.json. — One of this dimension's main actionable groups (1 issue-level).
  3. Resolve the 1 Low CVE finding(s) in OSV Dependency Vulnerabilities — start with package-lock.json. — One of this dimension's main actionable groups (1 recommendation-level).

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

Frontend & cross-cutting dimensions

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

AC1 · Text alternatives10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether non-text content carries a text alternative — img/area/input[type=image] have alt, a meaningful svg has a title or aria-label, video has a captions track, and object/embed/canvas have a name or fallback content. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: every img/area/input[type=image] checked for alt, svg[role=img] for a title/aria-label, video for a captions <track>. Components skipped, spreads suppressed. Deterministic, hard fact per element.

AC2 · Forms & labels5.6 / 10Adequate✓ Tool-verified

Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, links have an accessible name, fieldsets have a non-empty legend, known UI-library field components carry a label prop, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: inputs/selects/textareas checked for an associated label[for]/wrapping label/aria-label/aria-labelledby (per document), buttons for accessible text, fieldsets for a legend; placeholder-only labelling flagged. Deterministic, hard fact per control.

  • This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label. (×3) — ChatInput.vue:4, Validation.vue:100, Workspace.vue:71
  • This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. (×3) — GovernanceDecisions.vue:11, Workspace.vue:12, Workspace.vue:62

What to do

  • Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
AC3 · Page structure6.3 / 10Adequate✓ Tool-verified

Other · Accessibility — Whether pages declare a language (well-formed BCP-47) and a non-empty title, expose exactly one main landmark and a sane heading order with non-empty headings, keep zoom enabled, title their iframes, give data tables header cells, and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: html lang, document <title>, a main landmark and heading order on full documents only, plus zoom-disabling viewports, untitled iframes and meta-refresh anywhere. Deterministic, per structural checkpoint.

  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. (×5) — index.html:2, evals.html:17, index.html:2, …

What to do

  • Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
AC4 · Keyboard semantics1.8 / 10Critical✓ Tool-verified

Other · Accessibility — Whether interactive behaviour is keyboard-reachable — no click handler on a non-interactive element lacking a role, tabindex and key handler, no positive tabindex, no href-less anchor, no placeholder-href (#/javascript) link acting as a button. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: click handlers on non-interactive elements lacking role+tabindex+key handler, positive tabindex values, and href-less anchors. Components skipped, spreads suppressed. Deterministic, hard fact per element.

  • A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler. (×5) — index.html:77, GovernancePolicies.vue:26, Tape.vue:31, …

What to do

  • Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
AC5 · ARIA correctness10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether ARIA is used correctly — valid non-abstract roles, the ARIA state a role requires, valid (non-misspelled) aria-* attribute names, in-enum values for token-typed aria-* attributes, and no aria-hidden on (or wrapping) a focusable element. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: role values checked against the WAI-ARIA role set (abstract/invalid flagged), required ARIA state for a role, and aria-hidden on a focusable element. Deterministic, role/attribute level.

AC6 · Visual & motion safety10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS literals are read (hex/rgb/hsl/named), never computed/runtime/external-CDN colour. Static markup readiness, not a WCAG conformance claim.

Method: Static markup/CSS scan: inline outline:none/0, literal inline colour/background contrast against the 4.5:1 AA floor, and <style>-block animation without a prefers-reduced-motion guard. Deterministic but PARTIAL — only inline styles and in-repo CSS literals are visible.

AC7 · A11y enforcement4.0 / 10Weak✓ Tool-verified

Other · Accessibility — Whether accessibility is ENFORCED in the toolchain — an accessibility checker configured over the markup (an a11y lint rule set, e.g. eslint-plugin-jsx-a11y or vuejs-accessibility where the project lints JavaScript) and an automated accessibility assertion wired into tests or CI (axe/pa11y/Lighthouse or an equivalent) — on the Documented→Verified→Prevented ladder.

Method: Repo config/CI scan: an accessibility checker configured over the markup (an a11y lint rule set such as eslint-plugin-jsx-a11y / vuejs-accessibility where JavaScript is linted) and an automated accessibility assertion in tests or CI (axe/pa11y/Lighthouse or equivalent), graded on the Documented→Verified→Prevented rungs. Deterministic, presence/rung detection.

  • No accessibility enforcement found — no a11y linter (eslint-plugin-jsx-a11y) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time.

What to do

  • Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y, then assert with vitest-axe in tests, then gate axe/pa11y/Lighthouse in CI.
M1 · Documentation (README)8.0 / 10Strong✓ 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 '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 40 of 115 project(s) that lack one — worth up to 0.7 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 — no conventional ADR directory, no `NNNN-title.md` documents and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.

What to do

  • Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree with `NNNN-title.md` names is the most discoverable form).
M3 · Folder & project structure10.0 / 10Exemplary✓ 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.

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 gates10.0 / 10Exemplary○ Nothing flagged

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.

P3 · Security & performance tooling7.0 / 10Strong✓ Tool-verified

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

Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.

What to do

  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback10.0 / 10Exemplary✓ Tool-verified

Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.

Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.

P6 · Release Hygiene10.0 / 10Exemplary✓ 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.

R1 · Type Safety10.0 / 10Exemplary✓ 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.

R10 · Code Duplication9.2 / 10Exemplary✓ 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.

  • atmosphere.js/src/hooks/react-native/useChatRN.ts:140 · atmosphere.js/src/hooks/react/useChat.ts:185 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — useChatRN.ts:140
  • atmosphere.js/src/hooks/react/useMessageHistory.ts:17 · atmosphere.js/src/hooks/vue/useMessageHistory.ts:17 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — useMessageHistory.ts:17
  • atmosphere.js/src/transports/websocket.ts:97 · atmosphere.js/src/transports/webtransport.ts:167 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — websocket.ts:97
  • atmosphere.js/src/hooks/svelte/atmosphere.ts:104 · atmosphere.js/src/hooks/svelte/room.ts:104 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — atmosphere.ts:104
  • atmosphere.js/src/hooks/react-native/ConnectionStatusBadgeRN.tsx:34 · atmosphere.js/src/hooks/react/ConnectionStatusBadge.tsx:37 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — ConnectionStatusBadgeRN.tsx:34
  • atmosphere.js/src/hooks/react-native/useChatRN.ts:102 · atmosphere.js/src/hooks/react/useChat.ts:132 · atmosphere.js/src/hooks/vue/useChat.ts:71 — the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — useChatRN.ts:102
  • atmosphere.js/src/hooks/react-native/useStreamingRN.ts:173 · atmosphere.js/src/hooks/react/useStreaming.ts:263 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — useStreamingRN.ts:173
  • atmosphere.js/src/hooks/react-native/useStreamingRN.ts:204 · atmosphere.js/src/hooks/react/useStreaming.ts:297 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — useStreamingRN.ts:204

What to do

  • Extract the duplicated blocks into shared functions/components.
R2 · Cyclomatic Complexity9.6 / 10Exemplary✓ 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) — useAtmosphereChat.ts:180, index.ts:203, index.js:86, …

What to do

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

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

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

What to do

  • Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage0.8 / 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. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×8) — useAtmosphereChat.ts, McpApps.vue, Workspace.vue, …

What to do

  • Add tests that import the unreached modules (directly or through their public entry).
R5 · Dependency Freshness10.0 / 10Exemplary✓ Tool-verified

React / JS · Readiness — How outdated the npm dependencies are (a maturity signal). JS/npm CVEs are scored separately in D33 (JS/npm Dependency Vulnerabilities).

Method: npm dependency staleness from manifest/registry metadata (a maturity signal; JS/npm CVEs are scored separately in D33). Deterministic.

R6 · Tooling10.0 / 10Exemplary✓ 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.

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.

R8 · Dependency Hygiene9.5 / 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.

  • Declared in modules/integration-tests/package.json but never imported anywhere in that package or its workspace members — dead weight and attack surface. Verify against build tooling before removing.

What to do

  • Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
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.

WCAG coverage — what static analysis assessed

Statically assessed 15 of 55 WCAG 2.2 Level A/AA success criteria (27%; ≈30% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 40 require runtime or manual evaluation. Partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).

DimensionWCAG 2.2 A/AA criteriaCoverage
AC1 · Text alternatives1.1.1, 1.2.2, 1.2.5Partial signal
AC2 · Forms & labels1.3.1, 3.3.2, 4.1.2Partial signal
AC3 · Page structure1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2Partial signal
AC4 · Keyboard semantics2.1.1, 2.4.3Partial signal
AC5 · ARIA correctness4.1.2Partial signal
AC6 · Visual & motion safety1.4.3, 2.4.7Partial — literal CSS only
AC7 · A11y enforcementenforcement — no page criterionEnforcement posture (process)

Not statically assessed — these 40 Level A/AA criteria need runtime or manual evaluation (WCAG-EM): 1.2.1, 1.2.3, 1.2.4, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.4.1, 1.4.2, 1.4.5, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 2.1.2, 2.1.4, 2.2.2, 2.3.1, 2.4.4, 2.4.5, 2.4.6, 2.4.11, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.7, 2.5.8, 3.1.2, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.6, 3.3.1, 3.3.3, 3.3.4, 3.3.7, 3.3.8, 4.1.3.

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 Health87%StrongSolid.
Architecture100%ExemplaryStrongest area.
Maturity66%Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness68%Adequate — gated by R4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security76%Adequate — gated by D32Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Accessibility52%Adequate — gated by AC4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Not included — 62 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.

  • AX1 Captive dependencies — no DI registrations detected
  • AX10 Code composition — not assessed — code composition is computed by ROLE over a document set that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX2 Stateful singletons — no singleton implementations detected
  • AX3 Project dependency cycles — not assessed — project cycles and dependency direction are computed over a project-reference graph that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX4 Dependency direction — not assessed — project cycles and dependency direction are computed over a project-reference graph that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX8 Test isolation — not assessed — test isolation is computed from a project graph (which projects are test projects, and what they reference) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • D10 Test Quality — ~178110 lines of test source are present (.ts, .java, .kt, .js) but the test-quality collector reads C# only, so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D11 Test Reliability — Test reliability not included
  • D12 Dependency Hygiene — Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
  • D14 License Compliance — Not scored — this repository's package manifest is not parsed for licence data yet. A gap in the analyzer's language coverage, NOT a finding that the repository's licenses are compliant (a Maven POM and package.json), which this pass does not parse yet — so this dimension asserts nothing about this repository's licensing in either direction.
  • D17 Explicit Debt — explicit-debt markers are read through a C# workspace today, so they were not read for this repository's language — this asserts nothing about how many markers the code carries. Not scored — this is a gap in the analyzer, not a finding about this repository
  • D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
  • 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 — Production source is present (.java, .kt, .py, .rb, .ts, .tsx) but bounded contexts are resolved over the C#/VB project set, which exposed none, so context scope could not be assessed. Not scored — this is a gap in the analyzer, not a verdict about this repository. Declaring the codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed — see the recommendation on this dimension for where. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
  • D24 Comment Value — No inline comments to assess — comment value is not applicable here.
  • D25 ADR Conformance — no ADRs to check
  • D26 Project Cohesion — Project cohesion is assessed over the .NET project set; this target exposed no projects, so project size and spread could not be assessed. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
  • D27 Navigability — No calls could be sampled, so navigability was not assessed — tracing effort is measured over resolved call sites and this target exposed none. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
  • D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Maven POM and package.json — not scanned yet) — where an OSV-supported manifest exists, dependency vulnerabilities for this repository are reported under D38 instead.
  • D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D5 Coupling — Inter-project coupling could not be assessed — no analyzable project graph was found for this repository. Not scored: a gap in the analyzer's reach, not a verdict about this repository. (Coupling here is Martin afferent/efferent/instability plus reference cycles across a project-reference graph, read today from .NET project files; other ecosystems' module graphs are not read yet.)
  • D6 Cohesion (LCOM4) — Cohesion (LCOM4) is measured over a C#/VB class graph, and this repository's production source is .java, .kt, .py, .rb, .ts, .tsx, which this pass does not read — so no class could be assessed. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
  • D8 Code Coverage — Coverage not included — suite not readable by the collector
  • D9 Test Distribution — Test source is present (.ts, .java, .kt, .js) but the test-pyramid classifier reads C# only, so its unit/integration/BDD/E2E split couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • DM1 Domain Modelling — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 816 value object(s); 8 domain event(s)
  • ED1 Event-Driven — not scored — this repository shows only 1 of the 3 signals this check looks for (2 event handler(s))
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows only 1 of the 3 signals this check looks for (an Axon event-sourcing framework (@Aggregate/@CommandHandler/@EventSourcingHandler annotations))
  • GD1 Unfinished & placeholder code — no source files
  • IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • P12 CI test-gate honesty — Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
  • P2 Observability — Observability was not assessed: this check reads a source model that does not carry this repository's product — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of a logging idiom this check recognises is NOT evidence that this repo lacks structured logging (it may log through its own ecosystem's logger). This is a gap in the analyzer, not a finding about this repository.
  • 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 measured — the application kind could not be determined for this repo
  • P8 Schema migrations — not assessed — schema-migration practice is read from a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (JaCoCo XML — `mvn jacoco:report`) into the repo working tree before the scan — a CI step is the usual place, since the artefact is commonly gitignored, or wire coverage collection into CI, to enable this cross-layer check
  • PF1 Benchmark discipline — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • PF2 Allocation hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • PF3 Async & latency hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
  • S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X1 Async correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X3 Exception handling — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository

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 — 30 finding(s)
D32 · Data Compliance (PII/GDPR) · High · ×23
  • High: watchdog-sensitive-personal-data-in-log modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:958 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:962 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:1166 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:213 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:301 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:335 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:338 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/cpr/src/main/java/org/atmosphere/cpr/FrameworkDiagnostics.java:74 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/cpr/src/main/java/org/atmosphere/cpr/FrameworkDiagnostics.java:79 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/cpr/src/main/java/org/atmosphere/cpr/FrameworkDiagnostics.java:106 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/cpr/src/main/java/org/atmosphere/cpr/FrameworkDiagnostics.java:108 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/cpr/src/main/java/org/atmosphere/cpr/WebSocketConfig.java:94 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/cpr/src/main/java/org/atmosphere/cpr/WebSocketConfig.java:96 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/cpr/src/main/java/org/atmosphere/handler/ReflectorServletProcessor.java:107 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/cpr/src/main/java/org/atmosphere/handler/ReflectorServletProcessor.java:109 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:117 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpAuthorization.java:193 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/quarkus-extension/deployment/src/main/java/org/atmosphere/quarkus/deployment/AtmosphereProcessor.java:175 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/quarkus-extension/deployment/src/main/java/org/atmosphere/quarkus/deployment/AtmosphereProcessor.java:181 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereServletInstanceFactory.java:43 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereServletInstanceFactory.java:86 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:539 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
  • High: watchdog-sensitive-personal-data-in-log modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:193 — Special-category or directly-identifying personal data appears to be written to a log or console sink. Logs are copied, shipped to third parties and retained far longer than the data itself is lawfully needed. Log a stable pseudonymous reference instead of the value.
D35 · Change Coupling · Boundary-crossing change coupling · ×3
  • Boundary-crossing change coupling: KoogAgentRuntime.kt ↔ ToolAwareStreamingResponseHandler.java modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt — `modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt` (context koog) and `modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java` (context langchain4j) sit in DIFFERENT parts of the tree yet change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) — 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: BuiltInAgentRuntime.java ↔ ToolAwareStreamingResponseHandler.java modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInAgentRuntime.java — `modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInAgentRuntime.java` (context ai) and `modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java` (context langchain4j) sit in DIFFERENT parts of the tree yet change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) — 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: ToolAwareStreamingResponseHandler.java ↔ SpringAiAgentRuntime.java modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java — `modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java` (context langchain4j) and `modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java` (context spring-ai) sit in DIFFERENT parts of the tree yet change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) — 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.
D38 · OSV Dependency Vulnerabilities · High CVE · ×2
  • High CVE: [GHSA redacted] atmosphere.js/package-lock.json — brace-expansion 5.0.6: [GHSA redacted] — brace-expansion is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin brace-expansion to 5.0.7 with an `overrides` entry). This is 1 of 3 advisories with a published fix this scan raises against brace-expansion 5.0.6, and their fixed versions do not agree — anything below 5.0.9 still leaves at least one of them open. Take this package to 5.0.9 or later: that is the floor for the package, not this row's target alone. This one row stands for the 3 advisories this scan raises against brace-expansion 5.0.6: [GHSA redacted], [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] atmosphere.js/package-lock.json — undici 7.28.0: [GHSA redacted] — undici is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin undici to 7.29.0 with an `overrides` entry). This one row stands for the 5 advisories this scan raises against undici 7.28.0: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted].
D31 · IaC & Container Security · High IaC · ×1
  • High IaC: DS-0002 generator/templates/compose/Dockerfile.mustache — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
D38 · OSV Dependency Vulnerabilities · High vulnerability · ×1
  • High vulnerability: [GHSA redacted] atmosphere.js/package-lock.json — postcss 8.5.16: [GHSA redacted] — postcss is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin postcss to 8.5.18 with an `overrides` entry). This is 1 of 2 advisories with a published fix this scan raises against postcss 8.5.16, and their fixed versions do not agree — anything below 8.5.23 still leaves at least one of them open. Take this package to 8.5.23 or later: that is the floor for the package, not this row's target alone. (in 2 dependency files: atmosphere.js/package-lock.json, modules/spring-boot-starter/frontend/package-lock.json) This one row stands for the 2 advisories this scan raises against postcss 8.5.16: [GHSA redacted], [GHSA redacted].
Warning — 594 finding(s)
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×44
  • Duplicated block (8 lines × 2) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:63 — modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:63-70 | modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:594-601 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:63` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java:236 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java:236-243 | modules/ai/src/main/java/org/atmosphere/ai/fs/WorkspaceAgentFileSystem.java:131-139 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (8 lines × 2) modules/sandbox/src/main/java/org/atmosphere/ai/sandbox/DockerSandboxProvider.java:167 — modules/sandbox/src/main/java/org/atmosphere/ai/sandbox/DockerSandboxProvider.java:167-174 | modules/sandbox/src/main/java/org/atmosphere/ai/sandbox/InProcessSandboxProvider.java:174-181 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/sandbox/src/main/java/org/atmosphere/ai/sandbox/DockerSandboxProvider.java:167` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminReadAuthFilter.java:179 — modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminReadAuthFilter.java:179-186 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:264-271 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminReadAuthFilter.java:179` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:662 — modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:662-669 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:693-700 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:662` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:147 — modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:147-154 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:463-470 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:147` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:282 — modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:282-289 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:512-519 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:282` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:236 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:236-243 | modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:107-114 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:236` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:405 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:405-412 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:935-942 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:405` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (8 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:422 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:422-429 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1070-1077 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:245 — modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:245-252 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:266-273 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:245` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:320 — modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:320-327 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:349-356 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:320` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:148 — modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:148-158 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:310-317 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:148` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (8 lines × 2) modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:200 — modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:200-209 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:310-317 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:200` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/real/RealLlmChatTestHandler.java:78 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/real/RealLlmChatTestHandler.java:78-90 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/HitlCrossSessionTestHandler.java:65-72 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (8 lines × 2) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:96 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:96-103 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:167-174 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:96` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheSkipTestHandler.java:81 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheSkipTestHandler.java:81-88 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/HitlApprovalTestHandler.java:104-112 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (8 lines × 2) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:610 — modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:610-617 | modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:631-638 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:610` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:311 — modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:311-321 | modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java:248-255 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (8 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1309 — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1309-1316 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1377-1384 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1309` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1317 — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1317-1324 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1242-1249 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1317` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1435 — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1435-1444 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:802-809 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1435` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/McpCoordinatorRegistration.java:125 — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/McpCoordinatorRegistration.java:125-132 | modules/agent/src/main/java/org/atmosphere/agent/processor/McpAgentRegistration.java:135-142 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/McpCoordinatorRegistration.java:125` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:235 — modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:235-242 | modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/JsonRpcUtils.java:71-80 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:235` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:273 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:273-280 | modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:256-263 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:273` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • + 19 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×43
  • Duplicated block (9 lines × 2) samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java:91 — samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java:91-99 | samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/PromptCacheDemoChat.java:69-77 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java:91` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java:137 — samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java:137-145 | samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/PromptCacheDemoChat.java:108-116 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java:137` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java:138 — samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java:138-146 | modules/grpc/src/main/java/org/atmosphere/grpc/AtmosphereGrpcService.java:83-92 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java:138` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:143 — modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:143-151 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:170-178 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:143` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java:161 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java:161-169 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java:199-207 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java:161` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (9 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionsEndpoint.java:82 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionsEndpoint.java:82-90 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionsEndpoint.java:103-111 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:97 — modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:97-105 | modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:96-104 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:97` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:245 — modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:245-254 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:324-332 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:245` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (9 lines × 2) modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:62 — modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:62-70 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1128-1137 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:62` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:99 — modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:99-107 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1229-1238 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:99` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:956 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:956-964 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1074-1082 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:956` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:660 — modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:660-668 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:689-697 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:660` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:355 — modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:355-363 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:389-397 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:355` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:74 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:74-82 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:102-110 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:74` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:84 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:84-92 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:112-120 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:84` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (9 lines × 2) modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:166 — modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:166-174 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:229-237 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:166` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (9 lines × 2) modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeInterceptor.java:110 — modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeInterceptor.java:110-120 | modules/cpr/src/main/java/org/atmosphere/interceptor/TrackMessageSizeB64Interceptor.java:77-85 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeInterceptor.java:110` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultAsyncSupportResolver.java:86 — modules/cpr/src/main/java/org/atmosphere/cpr/DefaultAsyncSupportResolver.java:86-94 | modules/cpr/src/main/java/org/atmosphere/cpr/DefaultAsyncSupportResolver.java:96-104 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/cpr/DefaultAsyncSupportResolver.java:86` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (9 lines × 2) modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java:341 — modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java:341-349 | modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java:369-377 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java:341` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/protocol/SimpleHttpProtocol.java:86 — modules/cpr/src/main/java/org/atmosphere/websocket/protocol/SimpleHttpProtocol.java:86-94 | modules/cpr/src/main/java/org/atmosphere/websocket/protocol/SimpleHttpProtocol.java:127-136 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:196 — modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:196-205 | modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java:156-164 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (9 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:291 — modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:291-300 | modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java:230-238 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:291` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/commitment/AgentStateIntegrity.java:79 — modules/coordinator/src/main/java/org/atmosphere/coordinator/commitment/AgentStateIntegrity.java:79-87 | modules/coordinator/src/main/java/org/atmosphere/coordinator/commitment/Ed25519CommitmentSigner.java:77-85 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (9 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:346 — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:346-354 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:233-244 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:346` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1421 — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1421-1429 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:786-797 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1421` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • + 18 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×39
  • Duplicated block (7 lines × 2) samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/CeoCoordinator.java:251 — samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/CeoCoordinator.java:251-257 | samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/CeoCoordinator.java:281-288 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/CeoCoordinator.java:251` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (7 lines × 2) samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/GovernanceConfig.java:147 — samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/GovernanceConfig.java:147-153 | samples/spring-boot-mcp-server/src/main/java/org/atmosphere/samples/mcp/McpGovernanceConfig.java:110-116 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (7 lines × 2) modules/verifier/src/main/java/org/atmosphere/verifier/policy/Condition.java:190 — modules/verifier/src/main/java/org/atmosphere/verifier/policy/Condition.java:190-196 | modules/verifier/src/main/java/org/atmosphere/verifier/policy/Condition.java:208-214 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/verifier/src/main/java/org/atmosphere/verifier/policy/Condition.java:190` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:250 — modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:250-256 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:441-453 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:250` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (7 lines × 2) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:731 — modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:731-737 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:860-866 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:731` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java:395 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java:395-401 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java:707-713 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java:395` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionStreamHandler.java:118 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionStreamHandler.java:118-124 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionsEndpoint.java:237-243 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionStreamHandler.java:118` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:126 — modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:126-132 | modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:126-132 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:126` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:140 — modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:140-146 | modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:155-161 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (7 lines × 2) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:336 — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:336-342 | modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:489-495 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:336` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:110 — modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:110-116 | modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:108-114 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:110` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:216 — modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:216-222 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:424-430 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:216` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (7 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:82 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:82-88 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpTaskManager.java:64-72 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:82` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:438 — modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:438-444 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:532-538 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:438` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:64 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:64-70 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:49-55 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:64` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:76 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:76-82 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:63-69 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (7 lines × 2) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConversationMemoryTestHandler.java:60 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConversationMemoryTestHandler.java:60-66 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MemoryStrategyTestHandler.java:60-67 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConversationMemoryTestHandler.java:60` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/crewai/src/main/java/org/atmosphere/ai/crewai/CrewAiAgentRuntime.java:359 — modules/crewai/src/main/java/org/atmosphere/ai/crewai/CrewAiAgentRuntime.java:359-365 | modules/ai/src/main/java/org/atmosphere/ai/AbstractAgentRuntime.java:198-204 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/crewai/src/main/java/org/atmosphere/ai/crewai/CrewAiAgentRuntime.java:359` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (7 lines × 2) modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java:238 — modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java:238-244 | modules/ai/src/main/java/org/atmosphere/ai/llm/AbstractSseLlmClient.java:247-253 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java:238` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) modules/crewai/src/main/java/org/atmosphere/ai/crewai/ToolCallbackServer.java:314 — modules/crewai/src/main/java/org/atmosphere/ai/crewai/ToolCallbackServer.java:314-320 | modules/crewai/src/main/java/org/atmosphere/ai/crewai/ToolCallbackServer.java:347-353 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/crewai/src/main/java/org/atmosphere/ai/crewai/ToolCallbackServer.java:314` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:91 — modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:91-97 | modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:150-156 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:91` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java:59 — modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java:59-65 | modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java:72-78 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java:59` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1243 — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1243-1249 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1176-1182 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1243` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:592 — modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:592-598 | modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1103-1110 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:592` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:227 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:227-233 | modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:214-220 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:227` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • + 14 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×33
  • Duplicated block (6 lines × 2) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1284 — modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1284-1289 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:383-388 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1284` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/MicrometerGovernanceMetrics.java:89 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/MicrometerGovernanceMetrics.java:89-94 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereGovernanceMetricsProducer.java:161-166 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/MicrometerGovernanceMetrics.java:89` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 2) modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:148 — modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:148-153 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1259-1264 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:148` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/bridge/McpProtocolBridge.java:69 — modules/mcp/src/main/java/org/atmosphere/mcp/bridge/McpProtocolBridge.java:69-74 | modules/agui/src/main/java/org/atmosphere/agui/bridge/AgUiProtocolBridge.java:64-69 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/mcp/src/main/java/org/atmosphere/mcp/bridge/McpProtocolBridge.java:69` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:969 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:969-974 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1087-1092 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:969` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/StatelessDialect.java:219 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/StatelessDialect.java:219-224 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/StatelessDialect.java:308-313 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 2) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiGapCoverageTestHandler.java:56 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiGapCoverageTestHandler.java:56-61 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ToolCallDeltaTestHandler.java:38-43 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiGapCoverageTestHandler.java:56` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 2) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:88 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:88-93 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:94-99 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (6 lines × 2) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:135 — modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:135-140 | modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:251-256 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:135` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 2) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:602 — modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:602-607 | modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:621-626 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:602` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/journal/CoordinationProjection.java:149 — modules/coordinator/src/main/java/org/atmosphere/coordinator/journal/CoordinationProjection.java:149-154 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/coordinator/CheckpointingCoordinationJournal.java:172-177 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/journal/CoordinationProjection.java:149` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1385 — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1385-1390 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1338-1343 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1385` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1474 — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1474-1479 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1381-1387 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (6 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:259 — modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:259-264 | modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/JsonRpcUtils.java:118-123 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:259` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:400 — modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:400-405 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:406-411 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (6 lines × 2) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:427 — modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:427-432 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:460-465 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:427` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/episodicmemory/InMemoryEpisodicMemoryStore.java:56 — modules/ai/src/main/java/org/atmosphere/ai/episodicmemory/InMemoryEpisodicMemoryStore.java:56-61 | modules/ai/src/main/java/org/atmosphere/ai/episodicmemory/JsonFileEpisodicMemoryStore.java:108-113 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/episodicmemory/InMemoryEpisodicMemoryStore.java:56` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:162 — modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:162-167 | modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:192-197 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:162` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:122 — modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:122-127 | modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:142-148 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:122` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/rag/LlmClassifierInjectionClassifier.java:150 — modules/ai/src/main/java/org/atmosphere/ai/governance/rag/LlmClassifierInjectionClassifier.java:150-155 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/LlmClassifierScopeGuardrail.java:171-176 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:87 — modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:87-92 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:84-89 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:141 — modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:141-146 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:152-157 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java:174 — modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java:174-179 | modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:114-119 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java:174` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1340 — modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1340-1346 | modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1356-1361 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1340` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java:102 — modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java:102-107 | modules/ai/src/main/java/org/atmosphere/ai/LlmSummarizingCompaction.java:107-112 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java:102` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • + 8 more in this group — see findings.md.
D3 · God Classes · TooManyMethods · ×28
  • TooManyMethods: AtmosphereFramework modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:104 — TooManyMethods — 195 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AtmosphereRequestImpl modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java:78 — TooManyMethods — 108 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: DefaultBroadcaster modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:93 — TooManyMethods — 92 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AtmosphereResourceImpl modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:52 — TooManyMethods — 85 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: NoOpsRequest modules/cpr/src/main/java/org/atmosphere/cpr/NoOpsRequest.java:54 — TooManyMethods — 72 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AtmosphereResponseImpl modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResponseImpl.java:52 — TooManyMethods — 71 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: McpProtocolHandler modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:48 — TooManyMethods — 53 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AiEndpointHandler modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:64 — TooManyMethods — 48 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AiStreamingSession modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:55 — TooManyMethods — 46 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AdminResource modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:51 — TooManyMethods — 46 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: DefaultWebSocketProcessor modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:93 — TooManyMethods — 43 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: OpenAiCompatibleClient modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:64 — TooManyMethods — 42 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: Builder modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java:989 — TooManyMethods — 41 methods. Most of these members implement cpr.Builder (38 of 39 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
  • TooManyMethods: BroadcasterConfig modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterConfig.java:42 — TooManyMethods — 39 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: BroadcasterSetup modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterSetup.java:39 — TooManyMethods — 39 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AgentProcessor modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:76 — TooManyMethods — 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: A2aProtocolHandler modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:56 — TooManyMethods — 37 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: CoordinatorProcessor modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:121 — TooManyMethods — 36 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: UUIDBroadcasterCache modules/cpr/src/main/java/org/atmosphere/cache/UUIDBroadcasterCache.java:56 — TooManyMethods — 35 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AiProperties modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java:255 — TooManyMethods — 35 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: ResponseWriter modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java:43 — TooManyMethods — 34 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: TapeRecordingSession modules/ai/src/main/java/org/atmosphere/ai/tape/TapeRecordingSession.java:99 — TooManyMethods — 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: IntrospectionUtils modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:57 — TooManyMethods — 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: WebSocket modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:49 — TooManyMethods — 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: McpRegistry modules/mcp/src/main/java/org/atmosphere/mcp/registry/McpRegistry.java:41 — TooManyMethods — 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • + 3 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×25
  • Duplicated block (11 lines × 2) samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/RetryDemoChat.java:92 — samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/RetryDemoChat.java:92-102 | samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/RetryDemoChat.java:75-85 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/RetryDemoChat.java:92` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java:279 — samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java:279-289 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:342-352 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java:279` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:76 — modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:76-86 | modules/wasync/src/main/java/org/atmosphere/wasync/transport/StreamTransport.java:80-90 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:76` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (11 lines × 2) modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:101 — modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:101-111 | modules/wasync/src/main/java/org/atmosphere/wasync/transport/StreamTransport.java:113-123 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:101` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (11 lines × 2) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:189 — modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:189-199 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1261-1271 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:189` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1247 — modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1247-1259 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:239-249 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1247` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGovernanceAuditKafkaAutoConfiguration.java:95 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGovernanceAuditKafkaAutoConfiguration.java:95-105 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGovernanceAuditPostgresAutoConfiguration.java:81-91 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGovernanceAuditKafkaAutoConfiguration.java:95` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java:83 — modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java:83-93 | modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:87-97 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java:83` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:166 — modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:166-176 | modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:178-188 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:166` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:78 — modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:78-88 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1145-1155 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:78` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:113 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:113-123 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:134-144 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:113` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterConfig.java:452 — modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterConfig.java:452-462 | modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterConfig.java:486-496 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterConfig.java:452` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java:417 — modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java:417-427 | modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java:435-445 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java:417` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (11 lines × 2) modules/cpr/src/main/java/org/atmosphere/util/ExcludeSessionBroadcaster.java:130 — modules/cpr/src/main/java/org/atmosphere/util/ExcludeSessionBroadcaster.java:130-140 | modules/cpr/src/main/java/org/atmosphere/util/ExcludeSessionBroadcaster.java:162-173 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/util/ExcludeSessionBroadcaster.java:130` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:233 — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:233-243 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:160-171 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (11 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:363 — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:363-374 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:261-271 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:363` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java:110 — modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java:110-120 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java:121-138 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java:110` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:565 — modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:565-575 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:660-670 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:565` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:480 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:480-490 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:608-624 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (11 lines × 2) modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:135 — modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:135-145 | modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:174-184 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:135` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:219 — modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:219-229 | modules/ai/src/main/java/org/atmosphere/ai/filter/PiiRedactionFilter.java:166-176 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:219` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:754 — modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:754-764 | modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1296-1306 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:754` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/AgentRuntimeResolver.java:122 — modules/ai/src/main/java/org/atmosphere/ai/AgentRuntimeResolver.java:122-132 | modules/ai/src/main/java/org/atmosphere/ai/EmbeddingRuntimeResolver.java:89-99 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/AgentRuntimeResolver.java:122` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/MetricsCapturingSession.java:149 — modules/ai/src/main/java/org/atmosphere/ai/MetricsCapturingSession.java:149-159 | modules/ai/src/main/java/org/atmosphere/ai/TracingCapturingSession.java:136-146 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/MetricsCapturingSession.java:149` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:320 — modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:320-330 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:382-392 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:320` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×22
  • Duplicated block (10 lines × 2) samples/spring-boot-ai-tools/src/main/java/org/atmosphere/samples/springboot/aitools/AssistantTools.java:101 — samples/spring-boot-ai-tools/src/main/java/org/atmosphere/samples/springboot/aitools/AssistantTools.java:101-110 | samples/spring-boot-agui-chat/src/main/java/org/atmosphere/samples/springboot/agui/AssistantAgent.java:96-105 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `samples/spring-boot-ai-tools/src/main/java/org/atmosphere/samples/springboot/aitools/AssistantTools.java:101` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/MicrometerGovernanceMetrics.java:72 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/MicrometerGovernanceMetrics.java:72-81 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereGovernanceMetricsProducer.java:143-152 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/MicrometerGovernanceMetrics.java:72` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:198 — modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:198-207 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:294-305 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (10 lines × 2) modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:304 — modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:304-313 | modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelAgentRuntime.java:187-198 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (10 lines × 2) modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java:101 — modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java:101-110 | modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisClusterBroadcastFilter.java:85-94 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java:101` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/quarkus-extension/deployment/src/main/java/org/atmosphere/quarkus/deployment/AtmosphereProcessor.java:425 — modules/quarkus-extension/deployment/src/main/java/org/atmosphere/quarkus/deployment/AtmosphereProcessor.java:425-434 | modules/quarkus-extension/deployment/src/main/java/org/atmosphere/quarkus/deployment/AtmosphereProcessor.java:436-447 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:78 — modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:78-87 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:97-106 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:78` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:279 — modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:279-288 | modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:319-329 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:279` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1443 — modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1443-1452 | modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1493-1502 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java:145 — modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java:145-155 | modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java:167-176 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java:145` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/protocol/StreamingHttpProtocol.java:88 — modules/cpr/src/main/java/org/atmosphere/websocket/protocol/StreamingHttpProtocol.java:88-97 | modules/cpr/src/main/java/org/atmosphere/websocket/protocol/StreamingHttpProtocol.java:105-114 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:250 — modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:250-260 | modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java:207-216 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:250` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/GovernanceFleetInterceptor.java:85 — modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/GovernanceFleetInterceptor.java:85-94 | modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/SpawnSubagentTool.java:208-217 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/GovernanceFleetInterceptor.java:85` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:119 — modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:119-129 | modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/LocalAgentTransport.java:165-174 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:119` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:103 — modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:103-112 | modules/channels/src/main/java/org/atmosphere/channels/whatsapp/WhatsAppChannel.java:106-115 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:103` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopePolicy.java:83 — modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopePolicy.java:83-92 | modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java:73-82 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopePolicy.java:83` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/ConcurrencyLimitPolicy.java:75 — modules/ai/src/main/java/org/atmosphere/ai/governance/ConcurrencyLimitPolicy.java:75-84 | modules/ai/src/main/java/org/atmosphere/ai/governance/MessageLengthPolicy.java:56-65 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/ConcurrencyLimitPolicy.java:75` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAdmissionGate.java:137 — modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAdmissionGate.java:137-146 | modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:519-530 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAdmissionGate.java:137` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:773 — modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:773-782 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:959-968 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:773` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:598 — modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:598-607 | modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:825-834 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:598` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:138 — modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:138-147 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:169-178 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:138` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1245 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1245-1255 | modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:125-134 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×19
  • Duplicated block (5 lines × 2) modules/wasync/src/main/java/org/atmosphere/wasync/transport/LongPollingTransport.java:124 — modules/wasync/src/main/java/org/atmosphere/wasync/transport/LongPollingTransport.java:124-128 | modules/wasync/src/main/java/org/atmosphere/wasync/transport/StreamTransport.java:129-133 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:54 — modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:54-58 | modules/wasync/src/main/java/org/atmosphere/wasync/transport/StreamTransport.java:63-67 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (5 lines × 2) modules/verifier/src/main/java/org/atmosphere/verifier/checks/AutomatonVerifier.java:116 — modules/verifier/src/main/java/org/atmosphere/verifier/checks/AutomatonVerifier.java:116-120 | modules/verifier/src/main/java/org/atmosphere/verifier/checks/WellFormednessVerifier.java:86-90 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/verifier/src/main/java/org/atmosphere/verifier/checks/AutomatonVerifier.java:116` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:313 — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:313-317 | modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:256-260 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:313` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:679 — modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:679-683 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:707-711 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:679` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:163 — modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:163-167 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:168-172 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (5 lines × 2) modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:198 — modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:198-202 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:218-222 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (5 lines × 2) modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:280 — modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:280-284 | modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:277-281 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:280` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:192 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:192-196 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:442-446 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:138 — modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:138-142 | modules/ai/src/main/java/org/atmosphere/ai/filter/PiiRedactionFilter.java:118-123 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:138` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/memory/ScreenedLongTermMemory.java:206 — modules/ai/src/main/java/org/atmosphere/ai/governance/memory/ScreenedLongTermMemory.java:206-210 | modules/ai/src/main/java/org/atmosphere/ai/governance/rag/SafetyContextProvider.java:248-252 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/memory/ScreenedLongTermMemory.java:206` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/rag/SafetyContextProvider.java:217 — modules/ai/src/main/java/org/atmosphere/ai/governance/rag/SafetyContextProvider.java:217-221 | modules/ai/src/main/java/org/atmosphere/ai/governance/rag/SafetyContextProvider.java:226-230 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/GovernanceDecisionLog.java:258 — modules/ai/src/main/java/org/atmosphere/ai/governance/GovernanceDecisionLog.java:258-262 | modules/ai/src/main/java/org/atmosphere/ai/governance/GovernanceDecisionLog.java:295-299 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/GovernanceDecisionLog.java:258` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (5 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/YamlPolicyParser.java:161 — modules/ai/src/main/java/org/atmosphere/ai/governance/YamlPolicyParser.java:161-165 | modules/ai/src/main/java/org/atmosphere/ai/governance/YamlPolicyParser.java:196-200 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/YamlPolicyParser.java:161` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (5 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/routing/RoutingLlmClient.java:202 — modules/ai/src/main/java/org/atmosphere/ai/routing/RoutingLlmClient.java:202-206 | modules/ai/src/main/java/org/atmosphere/ai/routing/RoutingLlmClient.java:219-224 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/routing/RoutingLlmClient.java:202` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:399 — modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:399-403 | modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:404-408 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:399` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (5 lines × 2) modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AgentScopeAgentRuntime.java:407 — modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AgentScopeAgentRuntime.java:407-411 | modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AgentScopeAgentRuntime.java:413-417 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:77 — modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:77-81 | modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:541-545 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (5 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:296 — modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:296-300 | modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:460-464 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D3 · God Classes · FileTooLong · ×15
  • FileTooLong: cpr/DefaultBroadcaster.java modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:0 — FileTooLong — 1207 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: cpr/AtmosphereRequestImpl.java modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java:0 — FileTooLong — 1106 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AtmosphereRequestImpl (78-1751). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: cpr/AtmosphereFramework.java modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:0 — FileTooLong — 946 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: AtmosphereFramework (104-2135). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: llm/OpenAiCompatibleClient.java modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:0 — FileTooLong — 851 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: OpenAiCompatibleClient (64-1597). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: processor/CoordinatorProcessor.java modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:0 — FileTooLong — 834 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: CoordinatorProcessor (121-1487). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: boot/AtmosphereAiAutoConfiguration.java modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:0 — FileTooLong — 833 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AtmosphereAiAutoConfiguration (57-1522). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: boot/AtmosphereAiAutoConfiguration.java modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:0 — FileTooLong — 790 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: AtmosphereAiAutoConfiguration (69-1323). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: processor/AgentProcessor.java modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:0 — FileTooLong — 767 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: AgentProcessor (76-1418). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: runtime/McpProtocolHandler.java modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:0 — FileTooLong — 752 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: McpProtocolHandler (48-1290). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: boot/AtmosphereProperties.java modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java:0 — FileTooLong — 664 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: AtmosphereProperties (33-1610). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: cpr/AtmosphereResourceImpl.java modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:0 — FileTooLong — 638 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AtmosphereResourceImpl (52-1100). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: websocket/DefaultWebSocketProcessor.java modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:0 — FileTooLong — 626 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: processor/AiEndpointHandler.java modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:0 — FileTooLong — 618 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: AiEndpointHandler (64-1232). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: ai/AiStreamingSession.java modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:0 — FileTooLong — 556 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: AiStreamingSession (55-1190). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: boot/AtmosphereProperties.java modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java:0 — FileTooLong — 549 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: AtmosphereProperties (33-1298). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
D15 · Churn × Complexity Hotspots · Hotspot · ×10
  • Hotspot: modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java — modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java changed 18 times in last 90 days, max complexity 74. 6 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
  • Hotspot: modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java — modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java changed 18 times in last 90 days, max complexity 69. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
  • Hotspot: modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java — modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java changed 14 times in last 90 days, max complexity 43. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
  • Hotspot: modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java — modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java changed 11 times in last 90 days, max complexity 49. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
  • Hotspot: modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java — modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java changed 18 times in last 90 days, max complexity 27. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
  • Hotspot: modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java — modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java changed 13 times in last 90 days, max complexity 27. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
  • Hotspot: modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java changed 16 times in last 90 days, max complexity 21. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
  • Hotspot: modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java changed 11 times in last 90 days, max complexity 28. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
  • Hotspot: modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java — modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java changed 9 times in last 90 days, max complexity 33. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
  • Hotspot: modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java — modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java changed 8 times in last 90 days, max complexity 36. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×8
  • Duplicated block (13 lines × 2) samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/MultiModalAgent.java:119 — samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/MultiModalAgent.java:119-135 | samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/MultiModalAgent.java:91-103 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/MultiModalAgent.java:119` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java:166 — samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java:166-179 | modules/grpc/src/main/java/org/atmosphere/grpc/AtmosphereGrpcService.java:110-122 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java:166` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java:139 — modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java:139-151 | modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisClusterBroadcastFilter.java:119-131 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java:139` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (13 lines × 2) modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:70 — modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:70-82 | modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:118-130 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:70` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (13 lines × 2) modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java:285 — modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java:285-297 | modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java:314-326 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java:285` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:133 — modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:133-145 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:159-172 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (13 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/fs/FilesystemPreset.java:91 — modules/ai/src/main/java/org/atmosphere/ai/fs/FilesystemPreset.java:91-103 | modules/ai/src/main/java/org/atmosphere/ai/plan/PlanningPreset.java:90-102 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/fs/FilesystemPreset.java:91` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:513 — modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:513-525 | modules/ai/src/main/java/org/atmosphere/ai/PersistentConversationMemory.java:242-254 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:513` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×7
  • Duplicated block (12 lines × 2) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:205 — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:205-216 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:243-254 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:205` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereDurableRunsProducer.java:190 — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereDurableRunsProducer.java:190-201 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereTapeProducer.java:192-203 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereDurableRunsProducer.java:190` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:178 — modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:178-189 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:232-243 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:178` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/protocol/SimpleHttpProtocol.java:61 — modules/cpr/src/main/java/org/atmosphere/websocket/protocol/SimpleHttpProtocol.java:61-72 | modules/cpr/src/main/java/org/atmosphere/websocket/protocol/StreamingHttpProtocol.java:64-75 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
  • Duplicated block (12 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/WorkspaceMcpToolWiring.java:73 — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/WorkspaceMcpToolWiring.java:73-84 | modules/agent/src/main/java/org/atmosphere/agent/processor/WorkspaceMcpToolWiring.java:95-106 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/WorkspaceMcpToolWiring.java:73` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:230 — modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:230-243 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:263-274 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:230` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:68 — modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:68-79 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:65-76 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:68` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (6 lines × 3) · ×6
  • Duplicated block (6 lines × 3) modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:497 — modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:497-502 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:668-673 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:697-702 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 3) modules/rag/src/main/java/org/atmosphere/ai/rag/pgvector/PgVectorContextProvider.java:97 — modules/rag/src/main/java/org/atmosphere/ai/rag/pgvector/PgVectorContextProvider.java:97-102 | modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:96-101 | modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:95-100 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/rag/src/main/java/org/atmosphere/ai/rag/pgvector/PgVectorContextProvider.java:97` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 3) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:780 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:780-785 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:793-798 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:830-835 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:780` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 3) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CoordinatorFirstRunTestHandler.java:68 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CoordinatorFirstRunTestHandler.java:68-74 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EpisodicMemoryTestHandler.java:57-63 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ToolPermissionTestHandler.java:64-69 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:113 — modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:113-118 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:144-149 | modules/ai/src/main/java/org/atmosphere/ai/governance/PreferencePolicy.java:141-146 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:113` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 3) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:311 — modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:311-316 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:368-373 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:386-391 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:311` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (8 lines × 3) · ×5
  • Duplicated block (8 lines × 3) samples/spring-boot-dentist-agent/src/main/java/org/atmosphere/samples/springboot/dentist/DentistAgent.java:62 — samples/spring-boot-dentist-agent/src/main/java/org/atmosphere/samples/springboot/dentist/DentistAgent.java:62-69 | samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/AiChat.java:78-86 | samples/spring-boot-agui-chat/src/main/java/org/atmosphere/samples/springboot/agui/AssistantAgent.java:74-82 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (8 lines × 3) modules/sandbox/src/main/java/org/atmosphere/ai/sandbox/SandboxSnapshot.java:33 — modules/sandbox/src/main/java/org/atmosphere/ai/sandbox/SandboxSnapshot.java:33-40 | modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java:72-79 | modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:55-62 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/sandbox/src/main/java/org/atmosphere/ai/sandbox/SandboxSnapshot.java:33` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 3) modules/cpr/src/main/java/org/atmosphere/util/HtmlEncoder.java:44 — modules/cpr/src/main/java/org/atmosphere/util/HtmlEncoder.java:44-51 | modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:492-499 | modules/ai/src/main/java/org/atmosphere/ai/PersistentConversationMemory.java:272-279 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/util/HtmlEncoder.java:44` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 3) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/InMemoryCheckpointStore.java:106 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/InMemoryCheckpointStore.java:106-113 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:250-257 | modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:234-241 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (8 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/governance/rag/EmbeddingInjectionClassifier.java:179 — modules/ai/src/main/java/org/atmosphere/ai/governance/rag/EmbeddingInjectionClassifier.java:179-186 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:166-173 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/SemanticIntentScopeGuardrail.java:179-186 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/rag/EmbeddingInjectionClassifier.java:179` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D35 · Change Coupling · Change coupling · ×4
  • Change coupling: playwright.config.ts ↔ AiFeatureTestServer.java modules/integration-tests/playwright.config.ts — `modules/integration-tests/playwright.config.ts` and `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiFeatureTestServer.java` change together 80% of the time (12 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge.
  • Change coupling: A2aAgentTransport.java ↔ LocalAgentTransport.java modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java — `modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java` and `modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/LocalAgentTransport.java` change together 75% of the time (9 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package — so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking.
  • Change coupling: App.vue ↔ AtmosphereConsoleInfoEndpoint.java modules/spring-boot-starter/frontend/src/App.vue — `modules/spring-boot-starter/frontend/src/App.vue` and `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java` change together 53% of the time (8 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge.
  • Change coupling: AgentFleet.java ↔ CoordinationEvent.java modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/AgentFleet.java — `modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/AgentFleet.java` and `modules/coordinator/src/main/java/org/atmosphere/coordinator/journal/CoordinationEvent.java` change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking.
D4 · Code Duplication · Duplicated block (10 lines × 3) · ×4
  • Duplicated block (10 lines × 3) samples/spring-boot-rag-chat/src/main/java/org/atmosphere/samples/springboot/ragchat/VectorStoreConfig.java:118 — samples/spring-boot-rag-chat/src/main/java/org/atmosphere/samples/springboot/ragchat/VectorStoreConfig.java:118-127 | modules/rag/src/main/java/org/atmosphere/ai/rag/InMemoryContextProvider.java:189-198 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1136-1145 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `samples/spring-boot-rag-chat/src/main/java/org/atmosphere/samples/springboot/ragchat/VectorStoreConfig.java:118` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (10 lines × 3) modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:161 — modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:161-170 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:215-224 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:186-195 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:161` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/governance/SwappablePolicy.java:62 — modules/ai/src/main/java/org/atmosphere/ai/governance/SwappablePolicy.java:62-71 | modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:65-74 | modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:56-65 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/SwappablePolicy.java:62` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (10 lines × 3) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:545 — modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:545-554 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:565-574 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:579-588 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×3
  • Duplicated block (17 lines × 2) samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/StartupVerifierConfig.java:152 — samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/StartupVerifierConfig.java:152-168 | samples/spring-boot-guarded-email-agent/src/main/java/org/atmosphere/samples/springboot/guardedemail/GuardedEmailAgentApplication.java:200-216 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/StartupVerifierConfig.java:152` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:379 — modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:379-395 | modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelAgentRuntime.java:210-226 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:379` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1354 — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1354-1370 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1314-1331 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1354` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×3
  • Duplicated block (14 lines × 2) modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:330 — modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:330-343 | modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:272-285 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:330` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) modules/cpr/src/main/java/org/atmosphere/util/ExecutorsFactory.java:89 — modules/cpr/src/main/java/org/atmosphere/util/ExecutorsFactory.java:89-102 | modules/cpr/src/main/java/org/atmosphere/util/ExecutorsFactory.java:134-147 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/util/ExecutorsFactory.java:89` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:179 — modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:179-192 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:213-226 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:179` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×3
  • Duplicated block (9 lines × 3) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:53 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:53-61 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheTestHandler.java:41-49 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:55-63 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:53` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 3) modules/durable-sessions-redis/src/main/java/org/atmosphere/session/redis/RedisConversationPersistence.java:52 — modules/durable-sessions-redis/src/main/java/org/atmosphere/session/redis/RedisConversationPersistence.java:52-60 | modules/durable-sessions-redis/src/main/java/org/atmosphere/session/redis/RedisConversationPersistence.java:89-97 | modules/durable-sessions-redis/src/main/java/org/atmosphere/session/redis/RedisLongTermMemory.java:59-67 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (9 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:366 — modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:366-374 | modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:589-597 | modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:629-637 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×2
  • Duplicated block (15 lines × 2) samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/DemoResponseProducer.java:50 — samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/DemoResponseProducer.java:50-64 | samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/DemoResponseProducer.java:50-64 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (15 lines × 2) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java:224 — modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java:224-238 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java:240-254 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java:224` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (11 lines × 3) · ×2
  • Duplicated block (11 lines × 3) samples/spring-boot-dentist-agent/src/main/java/org/atmosphere/samples/springboot/dentist/DemoResponseProducer.java:29 — samples/spring-boot-dentist-agent/src/main/java/org/atmosphere/samples/springboot/dentist/DemoResponseProducer.java:29-39 | samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/DemoResponseProducer.java:33-43 | samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/DemoResponseProducer.java:33-43 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `samples/spring-boot-dentist-agent/src/main/java/org/atmosphere/samples/springboot/dentist/DemoResponseProducer.java:29` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 3) modules/cpr/src/main/java/org/atmosphere/util/SimpleBroadcaster.java:77 — modules/cpr/src/main/java/org/atmosphere/util/SimpleBroadcaster.java:77-87 | modules/cpr/src/main/java/org/atmosphere/util/SimpleBroadcaster.java:94-104 | modules/cpr/src/main/java/org/atmosphere/util/SimpleBroadcaster.java:111-122 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D1 · Cyclomatic Complexity · AiPipeline.execute (cyclomatic 74) · ×1
  • AiPipeline.execute (cyclomatic 74) modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:389 — AiPipeline.execute has cyclomatic complexity 74 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · AiStreamingSession.stream (cyclomatic 69) · ×1
  • AiStreamingSession.stream (cyclomatic 69) modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:562 — AiStreamingSession.stream has cyclomatic complexity 69 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AiEndpointHandler.onStateChange (cyclomatic 49) · ×1
  • AiEndpointHandler.onStateChange (cyclomatic 49) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:467 — AiEndpointHandler.onStateChange has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SpringAiAgentRuntime.doExecuteWithHandle (cyclomatic 43) · ×1
  • SpringAiAgentRuntime.doExecuteWithHandle (cyclomatic 43) modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:132 — SpringAiAgentRuntime.doExecuteWithHandle has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · JSR356Endpoint.onOpen (cyclomatic 43) · ×1
  • JSR356Endpoint.onOpen (cyclomatic 43) modules/cpr/src/main/java/org/atmosphere/container/JSR356Endpoint.java:121 — JSR356Endpoint.onOpen has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DefaultBroadcaster.deliverPush (cyclomatic 40) · ×1
  • DefaultBroadcaster.deliverPush (cyclomatic 40) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:669 — DefaultBroadcaster.deliverPush has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OpenAiCompatibleClient.processResponsesApiSSELine (cyclomatic 36) · ×1
  • OpenAiCompatibleClient.processResponsesApiSSELine (cyclomatic 36) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1290 — OpenAiCompatibleClient.processResponsesApiSSELine has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ToolExecutionHelper.executeWithApprovalLive (cyclomatic 33) · ×1
  • ToolExecutionHelper.executeWithApprovalLive (cyclomatic 33) modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java:326 — ToolExecutionHelper.executeWithApprovalLive has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SpringAiAlibabaAgentRuntime.doExecute (cyclomatic 32) · ×1
  • SpringAiAlibabaAgentRuntime.doExecute (cyclomatic 32) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaAgentRuntime.java:144 — SpringAiAlibabaAgentRuntime.doExecute has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OpenAiCompatibleClient.processSSELine (cyclomatic 32) · ×1
  • OpenAiCompatibleClient.processSSELine (cyclomatic 32) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:749 — OpenAiCompatibleClient.processSSELine has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WorkspaceExtensions.permissionPolicies (cyclomatic 31) · ×1
  • WorkspaceExtensions.permissionPolicies (cyclomatic 31) modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:347 — WorkspaceExtensions.permissionPolicies has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ToolBridgeUtils.parseJsonArgs (cyclomatic 30) · ×1
  • ToolBridgeUtils.parseJsonArgs (cyclomatic 30) modules/ai/src/main/java/org/atmosphere/ai/tool/ToolBridgeUtils.java:49 — ToolBridgeUtils.parseJsonArgs has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AtmosphereResourceImpl.suspend (cyclomatic 29) · ×1
  • AtmosphereResourceImpl.suspend (cyclomatic 29) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:347 — AtmosphereResourceImpl.suspend has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CoordinatorProcessor.handle (cyclomatic 28) · ×1
  • CoordinatorProcessor.handle (cyclomatic 28) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:190 — CoordinatorProcessor.handle has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · main (cyclomatic 28) · ×1
  • main (cyclomatic 28) cli/npx/index.js:86 — main has cyclomatic complexity 28 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · LangChain4jAgentRuntime.doExecuteWithHandle (cyclomatic 27) · ×1
  • LangChain4jAgentRuntime.doExecuteWithHandle (cyclomatic 27) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:214 — LangChain4jAgentRuntime.doExecuteWithHandle has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsynchronousProcessor.action (cyclomatic 27) · ×1
  • AsynchronousProcessor.action (cyclomatic 27) modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:116 — AsynchronousProcessor.action has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · IntrospectionUtils.invokeProperty (cyclomatic 27) · ×1
  • IntrospectionUtils.invokeProperty (cyclomatic 27) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:131 — IntrospectionUtils.invokeProperty has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OpenAiCompatibleClient.doStreamWithToolLoop (cyclomatic 27) · ×1
  • OpenAiCompatibleClient.doStreamWithToolLoop (cyclomatic 27) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:244 — OpenAiCompatibleClient.doStreamWithToolLoop has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AiEndpointProcessor.handle (cyclomatic 27) · ×1
  • AiEndpointProcessor.handle (cyclomatic 27) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:131 — AiEndpointProcessor.handle has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · AtmosphereConfigReader.parse (cyclomatic 25) · ×1
  • AtmosphereConfigReader.parse (cyclomatic 25) modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java:85 — AtmosphereConfigReader.parse has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · A2aHandler.restRoute (cyclomatic 25) · ×1
  • A2aHandler.restRoute (cyclomatic 25) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:201 — A2aHandler.restRoute has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DefaultBroadcaster.checkCachedAndPush (cyclomatic 22) · ×1
  • DefaultBroadcaster.checkCachedAndPush (cyclomatic 22) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1107 — DefaultBroadcaster.checkCachedAndPush has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Markdown.format (cyclomatic 22) · ×1
  • Markdown.format (cyclomatic 22) modules/coordinator/src/main/java/org/atmosphere/coordinator/journal/JournalFormat.java:52 — Markdown.format has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CohereChatClient.stream (cyclomatic 22) · ×1
  • CohereChatClient.stream (cyclomatic 22) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:126 — CohereChatClient.stream has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AgUiEventMapper.toAgUi (cyclomatic 22) · ×1
  • AgUiEventMapper.toAgUi (cyclomatic 22) modules/agui/src/main/java/org/atmosphere/agui/event/AgUiEventMapper.java:55 — AgUiEventMapper.toAgUi has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · HttpSseSidecarClient.toJson (cyclomatic 21) · ×1
  • HttpSseSidecarClient.toJson (cyclomatic 21) modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java:175 — HttpSseSidecarClient.toJson has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AtmosphereFramework.doInitParams (cyclomatic 21) · ×1
  • AtmosphereFramework.doInitParams (cyclomatic 21) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:582 — AtmosphereFramework.doInitParams has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · AtmosphereFramework.loadAtmosphereDotXml (cyclomatic 21) · ×1
  • AtmosphereFramework.loadAtmosphereDotXml (cyclomatic 21) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:857 — AtmosphereFramework.loadAtmosphereDotXml has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AbstractReflectorAtmosphereHandler.onStateChange (cyclomatic 21) · ×1
  • AbstractReflectorAtmosphereHandler.onStateChange (cyclomatic 21) modules/cpr/src/main/java/org/atmosphere/handler/AbstractReflectorAtmosphereHandler.java:70 — AbstractReflectorAtmosphereHandler.onStateChange has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AgentProcessor.handle (cyclomatic 21) · ×1
  • AgentProcessor.handle (cyclomatic 21) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:114 — AgentProcessor.handle has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · AdminMcpBridge.registerOptionalReadTools (cyclomatic 21) · ×1
  • AdminMcpBridge.registerOptionalReadTools (cyclomatic 21) modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:314 — AdminMcpBridge.registerOptionalReadTools has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · DefaultBroadcaster.addAtmosphereResource (cyclomatic 20) · ×1
  • DefaultBroadcaster.addAtmosphereResource (cyclomatic 20) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1510 — DefaultBroadcaster.addAtmosphereResource has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AtmosphereFramework.configureRequestResponse (cyclomatic 19) · ×1
  • AtmosphereFramework.configureRequestResponse (cyclomatic 19) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:1049 — AtmosphereFramework.configureRequestResponse has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ContainerInitializer.onStartup (cyclomatic 19) · ×1
  • ContainerInitializer.onStartup (cyclomatic 19) modules/cpr/src/main/java/org/atmosphere/cpr/ContainerInitializer.java:47 — ContainerInitializer.onStartup has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DefaultBroadcaster.getAsyncWriteHandler (cyclomatic 19) · ×1
  • DefaultBroadcaster.getAsyncWriteHandler (cyclomatic 19) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:528 — DefaultBroadcaster.getAsyncWriteHandler has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ServerCookieDecoder.decode (cyclomatic 19) · ×1
  • ServerCookieDecoder.decode (cyclomatic 19) modules/cpr/src/main/java/org/atmosphere/util/CookieUtil.java:394 — ServerCookieDecoder.decode has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AnthropicMessagesClient.buildRequestBody (cyclomatic 19) · ×1
  • AnthropicMessagesClient.buildRequestBody (cyclomatic 19) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:599 — AnthropicMessagesClient.buildRequestBody has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · AnthropicMessagesClient.stream (cyclomatic 19) · ×1
  • AnthropicMessagesClient.stream (cyclomatic 19) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:152 — AnthropicMessagesClient.stream has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · HttpOperationExecutor.execute (cyclomatic 19) · ×1
  • HttpOperationExecutor.execute (cyclomatic 19) modules/ai/src/main/java/org/atmosphere/ai/tool/openapi/OpenApiToolImporter.java:421 — HttpOperationExecutor.execute has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GovernanceController.check (cyclomatic 19) · ×1
  • GovernanceController.check (cyclomatic 19) modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:167 — GovernanceController.check has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · VerifyCli.run (cyclomatic 18) · ×1
  • VerifyCli.run (cyclomatic 18) modules/verifier/src/main/java/org/atmosphere/verifier/cli/VerifyCli.java:104 — VerifyCli.run has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar (cyclomatic 18) · ×1
  • AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar (cyclomatic 18) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:101 — AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · McpHandler.handlePost (cyclomatic 18) · ×1
  • McpHandler.handlePost (cyclomatic 18) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:214 — McpHandler.handlePost has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ManagedAtmosphereHandler.onStateChange (cyclomatic 18) · ×1
  • ManagedAtmosphereHandler.onStateChange (cyclomatic 18) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java:184 — ManagedAtmosphereHandler.onStateChange has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AtmosphereFramework.configureQueryStringAsRequest (cyclomatic 18) · ×1
  • AtmosphereFramework.configureQueryStringAsRequest (cyclomatic 18) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:1284 — AtmosphereFramework.configureQueryStringAsRequest has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AtmosphereResourceImpl.notifyListeners (cyclomatic 18) · ×1
  • AtmosphereResourceImpl.notifyListeners (cyclomatic 18) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:685 — AtmosphereResourceImpl.notifyListeners has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · InstallMetaServiceProcedure.apply (cyclomatic 18) · ×1
  • InstallMetaServiceProcedure.apply (cyclomatic 18) modules/cpr/src/main/java/org/atmosphere/cpr/MetaServiceAction.java:118 — InstallMetaServiceProcedure.apply has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DefaultAgentFleet.parallel (cyclomatic 18) · ×1
  • DefaultAgentFleet.parallel (cyclomatic 18) modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/DefaultAgentFleet.java:161 — DefaultAgentFleet.parallel has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · A2aAgentTransport.extractStreamingText (cyclomatic 18) · ×1
  • A2aAgentTransport.extractStreamingText (cyclomatic 18) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:204 — A2aAgentTransport.extractStreamingText has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OpenAiCompatibleClient.buildRequestBody (cyclomatic 18) · ×1
  • OpenAiCompatibleClient.buildRequestBody (cyclomatic 18) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:876 — OpenAiCompatibleClient.buildRequestBody has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · OpenAiCompatibleClient.buildResponsesApiBody (cyclomatic 18) · ×1
  • OpenAiCompatibleClient.buildResponsesApiBody (cyclomatic 18) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1190 — OpenAiCompatibleClient.buildResponsesApiBody has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CrewAiAgentRuntime.drainStream (cyclomatic 17) · ×1
  • CrewAiAgentRuntime.drainStream (cyclomatic 17) modules/crewai/src/main/java/org/atmosphere/ai/crewai/CrewAiAgentRuntime.java:258 — CrewAiAgentRuntime.drainStream has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AtmosphereRequestImpl.getHeader (cyclomatic 17) · ×1
  • AtmosphereRequestImpl.getHeader (cyclomatic 17) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java:345 — AtmosphereRequestImpl.getHeader has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DefaultBroadcaster.executeAsyncWrite (cyclomatic 17) · ×1
  • DefaultBroadcaster.executeAsyncWrite (cyclomatic 17) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1003 — DefaultBroadcaster.executeAsyncWrite has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · FrameworkDiagnostics.info (cyclomatic 17) · ×1
  • FrameworkDiagnostics.info (cyclomatic 17) modules/cpr/src/main/java/org/atmosphere/cpr/FrameworkDiagnostics.java:48 — FrameworkDiagnostics.info has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · HeartbeatInterceptor.inspect (cyclomatic 17) · ×1
  • HeartbeatInterceptor.inspect (cyclomatic 17) modules/cpr/src/main/java/org/atmosphere/interceptor/HeartbeatInterceptor.java:186 — HeartbeatInterceptor.inspect has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · JavaScriptProtocol.inspect (cyclomatic 17) · ×1
  • JavaScriptProtocol.inspect (cyclomatic 17) modules/cpr/src/main/java/org/atmosphere/interceptor/JavaScriptProtocol.java:85 — JavaScriptProtocol.inspect has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · QueryStringDecoder.decodeParams (cyclomatic 17) · ×1
  • QueryStringDecoder.decodeParams (cyclomatic 17) modules/cpr/src/main/java/org/atmosphere/util/QueryStringDecoder.java:228 — QueryStringDecoder.decodeParams has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AnthropicMessagesClient.parseRound (cyclomatic 17) · ×1
  • AnthropicMessagesClient.parseRound (cyclomatic 17) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:253 — AnthropicMessagesClient.parseRound has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · ScopeConfig.<init> (cyclomatic 17) · ×1
  • ScopeConfig.<init> (cyclomatic 17) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopeConfig.java:43 — ScopeConfig.<init> has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OnSessionCloseStrategy.parseJsonArray (cyclomatic 17) · ×1
  • OnSessionCloseStrategy.parseJsonArray (cyclomatic 17) modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java:120 — OnSessionCloseStrategy.parseJsonArray has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AiEndpointHandler.appendResolvedFacts (cyclomatic 17) · ×1
  • AiEndpointHandler.appendResolvedFacts (cyclomatic 17) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:888 — AiEndpointHandler.appendResolvedFacts has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MultiModalInput.decode (cyclomatic 17) · ×1
  • MultiModalInput.decode (cyclomatic 17) modules/ai/src/main/java/org/atmosphere/ai/MultiModalInput.java:153 — MultiModalInput.decode has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · AdkAgentRuntime.buildRequestRunner (cyclomatic 17) · ×1
  • AdkAgentRuntime.buildRequestRunner (cyclomatic 17) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java:235 — AdkAgentRuntime.buildRequestRunner has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AdkAgentRuntime.doExecuteWithHandle (cyclomatic 17) · ×1
  • AdkAgentRuntime.doExecuteWithHandle (cyclomatic 17) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java:411 — AdkAgentRuntime.doExecuteWithHandle has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller (cyclomatic 16) · ×1
  • AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller (cyclomatic 16) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1063 — AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AtmosphereAutoConfiguration.scanAnnotations (cyclomatic 16) · ×1
  • AtmosphereAutoConfiguration.scanAnnotations (cyclomatic 16) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:111 — AtmosphereAutoConfiguration.scanAnnotations has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ToolAwareStreamingResponseHandler.onCompleteResponse (cyclomatic 16) · ×1
  • ToolAwareStreamingResponseHandler.onCompleteResponse (cyclomatic 16) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java:132 — ToolAwareStreamingResponseHandler.onCompleteResponse has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ManagedAtmosphereHandler.onRequest (cyclomatic 16) · ×1
  • ManagedAtmosphereHandler.onRequest (cyclomatic 16) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java:119 — ManagedAtmosphereHandler.onRequest has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AnnotationDetector.detect (cyclomatic 16) · ×1
  • AnnotationDetector.detect (cyclomatic 16) modules/cpr/src/main/java/org/atmosphere/util/annotation/AnnotationDetector.java:277 — AnnotationDetector.detect has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · YamlPolicyParser.parse (cyclomatic 16) · ×1
  • YamlPolicyParser.parse (cyclomatic 16) modules/ai/src/main/java/org/atmosphere/ai/governance/YamlPolicyParser.java:114 — YamlPolicyParser.parse has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · BuiltInAgentRuntime.buildRequest (cyclomatic 16) · ×1
  • BuiltInAgentRuntime.buildRequest (cyclomatic 16) modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInAgentRuntime.java:130 — BuiltInAgentRuntime.buildRequest has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · OpenApiToolImporter.fromSpec (cyclomatic 16) · ×1
  • OpenApiToolImporter.fromSpec (cyclomatic 16) modules/ai/src/main/java/org/atmosphere/ai/tool/openapi/OpenApiToolImporter.java:88 — OpenApiToolImporter.fromSpec has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D2 · Cognitive Complexity · AiStreamingSession.stream (cognitive 90) · ×1
  • AiStreamingSession.stream (cognitive 90) modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:562 — AiStreamingSession.stream has cognitive complexity 90 (threshold 15). Drivers by points: ternaries 33, if/else 25, error handling 13, boolean chains 8, loops 7, match/switch 4 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AiPipeline.execute (cognitive 87) · ×1
  • AiPipeline.execute (cognitive 87) modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:389 — AiPipeline.execute has cognitive complexity 87 (threshold 15). Drivers by points: if/else 32, boolean chains 21, ternaries 19, error handling 9, match/switch 4, loops 2 (nesting depth added 18). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · JSR356Endpoint.onOpen (cognitive 71) · ×1
  • JSR356Endpoint.onOpen (cognitive 71) modules/cpr/src/main/java/org/atmosphere/container/JSR356Endpoint.java:121 — JSR356Endpoint.onOpen has cognitive complexity 71 (threshold 15). Drivers by points: if/else 47, ternaries 8, loops 7, error handling 5, boolean chains 4 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultBroadcaster.deliverPush (cognitive 69) · ×1
  • DefaultBroadcaster.deliverPush (cognitive 69) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:669 — DefaultBroadcaster.deliverPush has cognitive complexity 69 (threshold 15). Drivers by points: if/else 35, loops 16, error handling 6, ternaries 6, match/switch 4, boolean chains 2 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ToolBridgeUtils.parseJsonArgs (cognitive 67) · ×1
  • ToolBridgeUtils.parseJsonArgs (cognitive 67) modules/ai/src/main/java/org/atmosphere/ai/tool/ToolBridgeUtils.java:49 — ToolBridgeUtils.parseJsonArgs has cognitive complexity 67 (threshold 15). Drivers by points: if/else 41, loops 11, boolean chains 9, error handling 6 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AiEndpointHandler.onStateChange (cognitive 66) · ×1
  • AiEndpointHandler.onStateChange (cognitive 66) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:467 — AiEndpointHandler.onStateChange has cognitive complexity 66 (threshold 15). Drivers by points: if/else 44, ternaries 9, error handling 7, boolean chains 6 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · OpenAiCompatibleClient.processResponsesApiSSELine (cognitive 61) · ×1
  • OpenAiCompatibleClient.processResponsesApiSSELine (cognitive 61) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1290 — OpenAiCompatibleClient.processResponsesApiSSELine has cognitive complexity 61 (threshold 15). Drivers by points: if/else 41, ternaries 11, boolean chains 7, error handling 1, match/switch 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AbstractReflectorAtmosphereHandler.onStateChange (cognitive 59) · ×1
  • AbstractReflectorAtmosphereHandler.onStateChange (cognitive 59) modules/cpr/src/main/java/org/atmosphere/handler/AbstractReflectorAtmosphereHandler.java:70 — AbstractReflectorAtmosphereHandler.onStateChange has cognitive complexity 59 (threshold 15). Drivers by points: if/else 41, error handling 8, loops 6, ternaries 4 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IntrospectionUtils.invokeProperty (cognitive 58) · ×1
  • IntrospectionUtils.invokeProperty (cognitive 58) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:131 — IntrospectionUtils.invokeProperty has cognitive complexity 58 (threshold 15). Drivers by points: if/else 29, error handling 21, boolean chains 6, loops 2 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SpringAiAgentRuntime.doExecuteWithHandle (cognitive 57) · ×1
  • SpringAiAgentRuntime.doExecuteWithHandle (cognitive 57) modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:132 — SpringAiAgentRuntime.doExecuteWithHandle has cognitive complexity 57 (threshold 15). Drivers by points: if/else 29, boolean chains 12, ternaries 12, loops 4 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereFramework.loadAtmosphereDotXml (cognitive 52) · ×1
  • AtmosphereFramework.loadAtmosphereDotXml (cognitive 52) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:857 — AtmosphereFramework.loadAtmosphereDotXml has cognitive complexity 52 (threshold 15). Drivers by points: if/else 33, loops 11, error handling 7, boolean chains 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereResourceImpl.suspend (cognitive 51) · ×1
  • AtmosphereResourceImpl.suspend (cognitive 51) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:347 — AtmosphereResourceImpl.suspend has cognitive complexity 51 (threshold 15). Drivers by points: if/else 32, boolean chains 10, ternaries 6, loops 3 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AnnotationDetector.detect (cognitive 51) · ×1
  • AnnotationDetector.detect (cognitive 51) modules/cpr/src/main/java/org/atmosphere/util/annotation/AnnotationDetector.java:277 — AnnotationDetector.detect has cognitive complexity 51 (threshold 15). Drivers by points: if/else 34, error handling 13, loops 4 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · OpenAiCompatibleClient.processSSELine (cognitive 50) · ×1
  • OpenAiCompatibleClient.processSSELine (cognitive 50) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:749 — OpenAiCompatibleClient.processSSELine has cognitive complexity 50 (threshold 15). Drivers by points: if/else 34, boolean chains 10, ternaries 3, loops 2, error handling 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ManagedAtmosphereHandler.onStateChange (cognitive 48) · ×1
  • ManagedAtmosphereHandler.onStateChange (cognitive 48) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java:184 — ManagedAtmosphereHandler.onStateChange has cognitive complexity 48 (threshold 15). Drivers by points: if/else 34, loops 6, ternaries 5, boolean chains 3 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereConfigReader.parse (cognitive 47) · ×1
  • AtmosphereConfigReader.parse (cognitive 47) modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java:85 — AtmosphereConfigReader.parse has cognitive complexity 47 (threshold 15). Drivers by points: loops 21, if/else 20, match/switch 6 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SpringAiAlibabaAgentRuntime.doExecute (cognitive 45) · ×1
  • SpringAiAlibabaAgentRuntime.doExecute (cognitive 45) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaAgentRuntime.java:144 — SpringAiAlibabaAgentRuntime.doExecute has cognitive complexity 45 (threshold 15). Drivers by points: if/else 26, boolean chains 7, ternaries 7, error handling 4, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ServerCookieDecoder.decode (cognitive 45) · ×1
  • ServerCookieDecoder.decode (cognitive 45) modules/cpr/src/main/java/org/atmosphere/util/CookieUtil.java:394 — ServerCookieDecoder.decode has cognitive complexity 45 (threshold 15). Drivers by points: if/else 30, loops 6, ternaries 6, boolean chains 3 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereFramework.configureQueryStringAsRequest (cognitive 41) · ×1
  • AtmosphereFramework.configureQueryStringAsRequest (cognitive 41) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:1284 — AtmosphereFramework.configureQueryStringAsRequest has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 20, if/else 14, boolean chains 4, loops 2, error handling 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LangChain4jAgentRuntime.doExecuteWithHandle (cognitive 40) · ×1
  • LangChain4jAgentRuntime.doExecuteWithHandle (cognitive 40) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:214 — LangChain4jAgentRuntime.doExecuteWithHandle has cognitive complexity 40 (threshold 15). Drivers by points: if/else 28, ternaries 6, boolean chains 4, loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultBroadcaster.checkCachedAndPush (cognitive 39) · ×1
  • DefaultBroadcaster.checkCachedAndPush (cognitive 39) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1107 — DefaultBroadcaster.checkCachedAndPush has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19, loops 7, error handling 5, ternaries 5, match/switch 2, boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · JavaScriptProtocol.inspect (cognitive 39) · ×1
  • JavaScriptProtocol.inspect (cognitive 39) modules/cpr/src/main/java/org/atmosphere/interceptor/JavaScriptProtocol.java:85 — JavaScriptProtocol.inspect has cognitive complexity 39 (threshold 15). Drivers by points: if/else 28, loops 5, error handling 4, boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ContainerInitializer.onStartup (cognitive 38) · ×1
  • ContainerInitializer.onStartup (cognitive 38) modules/cpr/src/main/java/org/atmosphere/cpr/ContainerInitializer.java:47 — ContainerInitializer.onStartup has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18, error handling 10, boolean chains 6, ternaries 3, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HttpSseSidecarClient.toJson (cognitive 37) · ×1
  • HttpSseSidecarClient.toJson (cognitive 37) modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java:175 — HttpSseSidecarClient.toJson has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 19, loops 8, if/else 6, boolean chains 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultBroadcaster.getAsyncWriteHandler (cognitive 37) · ×1
  • DefaultBroadcaster.getAsyncWriteHandler (cognitive 37) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:528 — DefaultBroadcaster.getAsyncWriteHandler has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20, boolean chains 6, error handling 5, ternaries 5, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IntrospectionUtils.replaceProperties (cognitive 37) · ×1
  • IntrospectionUtils.replaceProperties (cognitive 37) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:306 — IntrospectionUtils.replaceProperties has cognitive complexity 37 (threshold 15). Drivers by points: if/else 30, loops 6, boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereRequestImpl.getHeader (cognitive 36) · ×1
  • AtmosphereRequestImpl.getHeader (cognitive 36) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java:345 — AtmosphereRequestImpl.getHeader has cognitive complexity 36 (threshold 15). Drivers by points: if/else 22, boolean chains 5, loops 5, error handling 4 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · InjectableObjectFactory.injectFields (cognitive 36) · ×1
  • InjectableObjectFactory.injectFields (cognitive 36) modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java:251 — InjectableObjectFactory.injectFields has cognitive complexity 36 (threshold 15). Drivers by points: if/else 27, error handling 5, loops 4 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IntrospectionUtils.processArgs (cognitive 36) · ×1
  • IntrospectionUtils.processArgs (cognitive 36) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:551 — IntrospectionUtils.processArgs has cognitive complexity 36 (threshold 15). Drivers by points: if/else 28, loops 7, boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · QueryStringDecoder.decodeParams (cognitive 36) · ×1
  • QueryStringDecoder.decodeParams (cognitive 36) modules/cpr/src/main/java/org/atmosphere/util/QueryStringDecoder.java:228 — QueryStringDecoder.decodeParams has cognitive complexity 36 (threshold 15). Drivers by points: if/else 33, boolean chains 2, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultAgentFleet.parallel (cognitive 36) · ×1
  • DefaultAgentFleet.parallel (cognitive 36) modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/DefaultAgentFleet.java:161 — DefaultAgentFleet.parallel has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13, loops 8, ternaries 7, error handling 6, boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CacheKey.compute (cognitive 36) · ×1
  • CacheKey.compute (cognitive 36) modules/ai/src/main/java/org/atmosphere/ai/cache/CacheKey.java:63 — CacheKey.compute has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 16, if/else 14, loops 6 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · OpenAiCompatibleClient.doStreamWithToolLoop (cognitive 36) · ×1
  • OpenAiCompatibleClient.doStreamWithToolLoop (cognitive 36) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:244 — OpenAiCompatibleClient.doStreamWithToolLoop has cognitive complexity 36 (threshold 15). Drivers by points: if/else 24, boolean chains 5, error handling 4, ternaries 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultBroadcaster.addAtmosphereResource (cognitive 35) · ×1
  • DefaultBroadcaster.addAtmosphereResource (cognitive 35) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1510 — DefaultBroadcaster.addAtmosphereResource has cognitive complexity 35 (threshold 15). Drivers by points: if/else 26, boolean chains 5, error handling 4 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CoordinatorProcessor.handle (cognitive 35) · ×1
  • CoordinatorProcessor.handle (cognitive 35) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:190 — CoordinatorProcessor.handle has cognitive complexity 35 (threshold 15). Drivers by points: if/else 24, ternaries 6, error handling 2, loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ClassFileIterator.next (cognitive 34) · ×1
  • ClassFileIterator.next (cognitive 34) modules/cpr/src/main/java/org/atmosphere/util/annotation/ClassFileIterator.java:130 — ClassFileIterator.next has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23, error handling 8, boolean chains 2, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AsynchronousProcessor.action (cognitive 33) · ×1
  • AsynchronousProcessor.action (cognitive 33) modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:116 — AsynchronousProcessor.action has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20, boolean chains 5, error handling 5, ternaries 3 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · IntrospectionUtils.findMethod (cognitive 33) · ×1
  • IntrospectionUtils.findMethod (cognitive 33) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:654 — IntrospectionUtils.findMethod has cognitive complexity 33 (threshold 15). Drivers by points: if/else 27, loops 4, boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AsynchronousProcessor.completeLifecycle (cognitive 32) · ×1
  • AsynchronousProcessor.completeLifecycle (cognitive 32) modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:477 — AsynchronousProcessor.completeLifecycle has cognitive complexity 32 (threshold 15). Drivers by points: if/else 18, error handling 11, ternaries 2, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ChunkConcatReader.read (cognitive 32) · ×1
  • ChunkConcatReader.read (cognitive 32) modules/cpr/src/main/java/org/atmosphere/util/ChunkConcatReaderPool.java:102 — ChunkConcatReader.read has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21, error handling 8, boolean chains 1, loops 1, ternaries 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultWebSocketProcessor.postProcessMapping (cognitive 32) · ×1
  • DefaultWebSocketProcessor.postProcessMapping (cognitive 32) modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:268 — DefaultWebSocketProcessor.postProcessMapping has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20, error handling 8, boolean chains 2, ternaries 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HeartbeatInterceptor.inspect (cognitive 31) · ×1
  • HeartbeatInterceptor.inspect (cognitive 31) modules/cpr/src/main/java/org/atmosphere/interceptor/HeartbeatInterceptor.java:186 — HeartbeatInterceptor.inspect has cognitive complexity 31 (threshold 15). Drivers by points: if/else 23, boolean chains 5, error handling 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultWebSocketProcessor.close (cognitive 31) · ×1
  • DefaultWebSocketProcessor.close (cognitive 31) modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:604 — DefaultWebSocketProcessor.close has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18, ternaries 11, boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PromptMethodInvoker.bindArguments (cognitive 30) · ×1
  • PromptMethodInvoker.bindArguments (cognitive 30) modules/ai/src/main/java/org/atmosphere/ai/processor/PromptMethodInvoker.java:99 — PromptMethodInvoker.bindArguments has cognitive complexity 30 (threshold 15). Drivers by points: if/else 23, loops 7 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CedarCliAuthorizer.appendJson (cognitive 30) · ×1
  • CedarCliAuthorizer.appendJson (cognitive 30) modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:247 — CedarCliAuthorizer.appendJson has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19, loops 11 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · main (cognitive 30) · ×1
  • main (cognitive 30) cli/npx/index.js:86 — main has cognitive complexity 30 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereAutoConfiguration.scanAnnotations (cognitive 29) · ×1
  • AtmosphereAutoConfiguration.scanAnnotations (cognitive 29) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:111 — AtmosphereAutoConfiguration.scanAnnotations has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15, loops 14 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereResourceImpl.notifyListeners (cognitive 29) · ×1
  • AtmosphereResourceImpl.notifyListeners (cognitive 29) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:685 — AtmosphereResourceImpl.notifyListeners has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17, ternaries 5, boolean chains 4, error handling 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IOUtils.readEntirelyAsString (cognitive 29) · ×1
  • IOUtils.readEntirelyAsString (cognitive 29) modules/cpr/src/main/java/org/atmosphere/util/IOUtils.java:114 — IOUtils.readEntirelyAsString has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13, error handling 10, loops 3, ternaries 2, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WhatsAppChannel.receive (cognitive 29) · ×1
  • WhatsAppChannel.receive (cognitive 29) modules/channels/src/main/java/org/atmosphere/channels/whatsapp/WhatsAppChannel.java:105 — WhatsAppChannel.receive has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18, loops 6, boolean chains 4, error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AiEndpointProcessor.handle (cognitive 29) · ×1
  • AiEndpointProcessor.handle (cognitive 29) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:131 — AiEndpointProcessor.handle has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17, ternaries 8, loops 2, boolean chains 1, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · AdkAgentRuntime.buildRequestRunner (cognitive 29) · ×1
  • AdkAgentRuntime.buildRequestRunner (cognitive 29) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java:235 — AdkAgentRuntime.buildRequestRunner has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18, error handling 4, ternaries 4, boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PathParamIntrospector.injectable (cognitive 28) · ×1
  • PathParamIntrospector.injectable (cognitive 28) modules/cpr/src/main/java/org/atmosphere/inject/PathParamIntrospector.java:50 — PathParamIntrospector.injectable has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, boolean chains 4, ternaries 3, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SimpleRestInterceptor.readBalancedObject (cognitive 28) · ×1
  • SimpleRestInterceptor.readBalancedObject (cognitive 28) modules/cpr/src/main/java/org/atmosphere/interceptor/SimpleRestInterceptor.java:425 — SimpleRestInterceptor.readBalancedObject has cognitive complexity 28 (threshold 15). Drivers by points: if/else 26, boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IOUtils.forceReadEntirelyAsByte (cognitive 28) · ×1
  • IOUtils.forceReadEntirelyAsByte (cognitive 28) modules/cpr/src/main/java/org/atmosphere/util/IOUtils.java:186 — IOUtils.forceReadEntirelyAsByte has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17, error handling 8, loops 3 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · A2aHandler.restRoute (cognitive 28) · ×1
  • A2aHandler.restRoute (cognitive 28) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:201 — A2aHandler.restRoute has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, boolean chains 8 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · ManagedAtmosphereHandler.onRequest (cognitive 27) · ×1
  • ManagedAtmosphereHandler.onRequest (cognitive 27) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java:119 — ManagedAtmosphereHandler.onRequest has cognitive complexity 27 (threshold 15). Drivers by points: if/else 24, boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ManagedServiceInterceptor.mapAnnotatedService (cognitive 27) · ×1
  • ManagedServiceInterceptor.mapAnnotatedService (cognitive 27) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedServiceInterceptor.java:44 — ManagedServiceInterceptor.mapAnnotatedService has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, error handling 5, boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CohereChatClient.stream (cognitive 27) · ×1
  • CohereChatClient.stream (cognitive 27) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:126 — CohereChatClient.stream has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11, ternaries 5, loops 4, boolean chains 3, error handling 2, match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · OpenAiCompatibleClient.buildResponsesApiBody (cognitive 27) · ×1
  • OpenAiCompatibleClient.buildResponsesApiBody (cognitive 27) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1190 — OpenAiCompatibleClient.buildResponsesApiBody has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, loops 4, boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · UUIDBroadcasterCache.invalidateExpiredEntries (cognitive 26) · ×1
  • UUIDBroadcasterCache.invalidateExpiredEntries (cognitive 26) modules/cpr/src/main/java/org/atmosphere/cache/UUIDBroadcasterCache.java:321 — UUIDBroadcasterCache.invalidateExpiredEntries has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, loops 7, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AgentProcessor.handle (cognitive 26) · ×1
  • AgentProcessor.handle (cognitive 26) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:114 — AgentProcessor.handle has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, ternaries 3, error handling 2, loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · GovernanceController.check (cognitive 26) · ×1
  • GovernanceController.check (cognitive 26) modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:167 — GovernanceController.check has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10, loops 4, ternaries 4, error handling 3, match/switch 3, boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereFramework.configureRequestResponse (cognitive 25) · ×1
  • AtmosphereFramework.configureRequestResponse (cognitive 25) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:1049 — AtmosphereFramework.configureRequestResponse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15, boolean chains 5, ternaries 5 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FrameworkDiagnostics.info (cognitive 25) · ×1
  • FrameworkDiagnostics.info (cognitive 25) modules/cpr/src/main/java/org/atmosphere/cpr/FrameworkDiagnostics.java:48 — FrameworkDiagnostics.info has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, loops 5, ternaries 4, boolean chains 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · DefaultEndpointMapper.map (cognitive 25) · ×1
  • DefaultEndpointMapper.map (cognitive 25) modules/cpr/src/main/java/org/atmosphere/util/DefaultEndpointMapper.java:71 — DefaultEndpointMapper.map has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, ternaries 6, loops 4, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ScopeConfig.<init> (cognitive 25) · ×1
  • ScopeConfig.<init> (cognitive 25) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopeConfig.java:43 — ScopeConfig.<init> has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 12, if/else 9, boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RoutingLlmClient.streamChatCompletion (cognitive 25) · ×1
  • RoutingLlmClient.streamChatCompletion (cognitive 25) modules/ai/src/main/java/org/atmosphere/ai/routing/RoutingLlmClient.java:146 — RoutingLlmClient.streamChatCompletion has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, error handling 3, match/switch 2, boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ToolExecutionHelper.executeWithApprovalLive (cognitive 25) · ×1
  • ToolExecutionHelper.executeWithApprovalLive (cognitive 25) modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java:326 — ToolExecutionHelper.executeWithApprovalLive has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, ternaries 5, boolean chains 4, match/switch 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · SkillFileParser.parse (cognitive 25) · ×1
  • SkillFileParser.parse (cognitive 25) modules/agent/src/main/java/org/atmosphere/agent/skill/SkillFileParser.java:72 — SkillFileParser.parse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 21, boolean chains 2, loops 1, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AgentController.listAgents (cognitive 25) · ×1
  • AgentController.listAgents (cognitive 25) modules/admin/src/main/java/org/atmosphere/admin/agent/AgentController.java:58 — AgentController.listAgents has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17, ternaries 5, boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AdminMcpBridge.registerOptionalReadTools (cognitive 25) · ×1
  • AdminMcpBridge.registerOptionalReadTools (cognitive 25) modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:314 — AdminMcpBridge.registerOptionalReadTools has cognitive complexity 25 (threshold 15). Drivers by points: error handling 19, if/else 5, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · KafkaBroadcaster.consumeLoop (cognitive 24) · ×1
  • KafkaBroadcaster.consumeLoop (cognitive 24) modules/kafka/src/main/java/org/atmosphere/kafka/KafkaBroadcaster.java:187 — KafkaBroadcaster.consumeLoop has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11, error handling 9, loops 3, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereFramework.doInitParams (cognitive 24) · ×1
  • AtmosphereFramework.doInitParams (cognitive 24) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:582 — AtmosphereFramework.doInitParams has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · Markdown.format (cognitive 24) · ×1
  • Markdown.format (cognitive 24) modules/coordinator/src/main/java/org/atmosphere/coordinator/journal/JournalFormat.java:52 — Markdown.format has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 16, if/else 3, boolean chains 2, match/switch 2, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AnthropicMessagesClient.buildRequestBody (cognitive 24) · ×1
  • AnthropicMessagesClient.buildRequestBody (cognitive 24) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:599 — AnthropicMessagesClient.buildRequestBody has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10, loops 6, boolean chains 5, error handling 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WorkspaceExtensions.permissionPolicies (cognitive 24) · ×1
  • WorkspaceExtensions.permissionPolicies (cognitive 24) modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:347 — WorkspaceExtensions.permissionPolicies has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17, boolean chains 4, match/switch 2, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · McpHandler.handlePost (cognitive 23) · ×1
  • McpHandler.handlePost (cognitive 23) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:214 — McpHandler.handlePost has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, error handling 4, boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ToolAwareStreamingResponseHandler.onCompleteResponse (cognitive 23) · ×1
  • ToolAwareStreamingResponseHandler.onCompleteResponse (cognitive 23) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java:132 — ToolAwareStreamingResponseHandler.onCompleteResponse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, ternaries 6, match/switch 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CrewAiAgentRuntime.drainStream (cognitive 23) · ×1
  • CrewAiAgentRuntime.drainStream (cognitive 23) modules/crewai/src/main/java/org/atmosphere/ai/crewai/CrewAiAgentRuntime.java:258 — CrewAiAgentRuntime.drainStream has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, boolean chains 2, error handling 2, loops 2, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultMetaBroadcaster.broadcast (cognitive 23) · ×1
  • DefaultMetaBroadcaster.broadcast (cognitive 23) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultMetaBroadcaster.java:76 — DefaultMetaBroadcaster.broadcast has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, loops 4, error handling 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · InjectableObjectFactory.configure (cognitive 23) · ×1
  • InjectableObjectFactory.configure (cognitive 23) modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java:71 — InjectableObjectFactory.configure has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9, error handling 7, loops 4, boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultEndpointMapper.map (cognitive 23) · ×1
  • DefaultEndpointMapper.map (cognitive 23) modules/cpr/src/main/java/org/atmosphere/util/DefaultEndpointMapper.java:109 — DefaultEndpointMapper.map has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, ternaries 6, loops 4, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · A2aAgentTransport.extractStreamingText (cognitive 23) · ×1
  • A2aAgentTransport.extractStreamingText (cognitive 23) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:204 — A2aAgentTransport.extractStreamingText has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, boolean chains 3, error handling 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · A2aAgentTransport.send (cognitive 23) · ×1
  • A2aAgentTransport.send (cognitive 23) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:98 — A2aAgentTransport.send has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 12, if/else 8, boolean chains 2, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ChannelAiBridge.callAi (cognitive 23) · ×1
  • ChannelAiBridge.callAi (cognitive 23) modules/channels/src/main/java/org/atmosphere/channels/ChannelAiBridge.java:259 — ChannelAiBridge.callAi has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15, error handling 3, loops 3, boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AnthropicMessagesClient.stream (cognitive 23) · ×1
  • AnthropicMessagesClient.stream (cognitive 23) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:152 — AnthropicMessagesClient.stream has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10, ternaries 5, boolean chains 2, error handling 2, loops 2, match/switch 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · OpenAiCompatibleClient.continueAfterRound (cognitive 23) · ×1
  • OpenAiCompatibleClient.continueAfterRound (cognitive 23) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:439 — OpenAiCompatibleClient.continueAfterRound has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, loops 4, match/switch 4, ternaries 2, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · OnSessionCloseStrategy.parseJsonArray (cognitive 23) · ×1
  • OnSessionCloseStrategy.parseJsonArray (cognitive 23) modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java:120 — OnSessionCloseStrategy.parseJsonArray has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, boolean chains 5, loops 5 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · OpenApiToolImporter.fromSpec (cognitive 23) · ×1
  • OpenApiToolImporter.fromSpec (cognitive 23) modules/ai/src/main/java/org/atmosphere/ai/tool/openapi/OpenApiToolImporter.java:88 — OpenApiToolImporter.fromSpec has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10, boolean chains 4, error handling 3, loops 3, ternaries 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GoapPlanner.plan (cognitive 22) · ×1
  • GoapPlanner.plan (cognitive 22) modules/verifier/src/main/java/org/atmosphere/verifier/planner/GoapPlanner.java:91 — GoapPlanner.plan has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, loops 3, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · McpRegistry.scan (cognitive 22) · ×1
  • McpRegistry.scan (cognitive 22) modules/mcp/src/main/java/org/atmosphere/mcp/registry/McpRegistry.java:207 — McpRegistry.scan has cognitive complexity 22 (threshold 15). Drivers by points: if/else 21, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ClasspathScanner.autoConfigureService (cognitive 22) · ×1
  • ClasspathScanner.autoConfigureService (cognitive 22) modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:207 — ClasspathScanner.autoConfigureService has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, loops 6, ternaries 3, boolean chains 1, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultBroadcaster.queueWriteIO (cognitive 22) · ×1
  • DefaultBroadcaster.queueWriteIO (cognitive 22) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:834 — DefaultBroadcaster.queueWriteIO has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SimpleRestInterceptor.createAtmosphereRequest (cognitive 22) · ×1
  • SimpleRestInterceptor.createAtmosphereRequest (cognitive 22) modules/cpr/src/main/java/org/atmosphere/interceptor/SimpleRestInterceptor.java:247 — SimpleRestInterceptor.createAtmosphereRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, ternaries 8 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · OpenAiCompatibleClient.sendWithRetry (cognitive 22) · ×1
  • OpenAiCompatibleClient.sendWithRetry (cognitive 22) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:643 — OpenAiCompatibleClient.sendWithRetry has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, error handling 4, boolean chains 2, ternaries 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AiEndpointHandler.appendResolvedFacts (cognitive 22) · ×1
  • AiEndpointHandler.appendResolvedFacts (cognitive 22) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:888 — AiEndpointHandler.appendResolvedFacts has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 9, if/else 8, boolean chains 4, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SpringAtmosphereObjectFactory.injectSpringBeans (cognitive 21) · ×1
  • SpringAtmosphereObjectFactory.injectSpringBeans (cognitive 21) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java:93 — SpringAtmosphereObjectFactory.injectSpringBeans has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10, error handling 6, loops 3, boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IdleResourceInterceptor.idleResources (cognitive 21) · ×1
  • IdleResourceInterceptor.idleResources (cognitive 21) modules/cpr/src/main/java/org/atmosphere/interceptor/IdleResourceInterceptor.java:72 — IdleResourceInterceptor.idleResources has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, boolean chains 2, error handling 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IOUtils.guestRawServletPath (cognitive 21) · ×1
  • IOUtils.guestRawServletPath (cognitive 21) modules/cpr/src/main/java/org/atmosphere/util/IOUtils.java:248 — IOUtils.guestRawServletPath has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, loops 5, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HttpOperationExecutor.execute (cognitive 21) · ×1
  • HttpOperationExecutor.execute (cognitive 21) modules/ai/src/main/java/org/atmosphere/ai/tool/openapi/OpenApiToolImporter.java:421 — HttpOperationExecutor.execute has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 8, if/else 7, boolean chains 2, loops 2, match/switch 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VerifyCli.run (cognitive 20) · ×1
  • VerifyCli.run (cognitive 20) modules/verifier/src/main/java/org/atmosphere/verifier/cli/VerifyCli.java:104 — VerifyCli.run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8, ternaries 6, error handling 2, loops 2, match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ManagedAtmosphereHandler.message (cognitive 20) · ×1
  • ManagedAtmosphereHandler.message (cognitive 20) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java:330 — ManagedAtmosphereHandler.message has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, error handling 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereResourceImpl.resume (cognitive 20) · ×1
  • AtmosphereResourceImpl.resume (cognitive 20) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:277 — AtmosphereResourceImpl.resume has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, error handling 3, loops 2, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultBroadcaster.executeAsyncWrite (cognitive 20) · ×1
  • DefaultBroadcaster.executeAsyncWrite (cognitive 20) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1003 — DefaultBroadcaster.executeAsyncWrite has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, error handling 3, loops 3, ternaries 3, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · QueryStringDecoder.decodeComponent (cognitive 20) · ×1
  • QueryStringDecoder.decodeComponent (cognitive 20) modules/cpr/src/main/java/org/atmosphere/util/QueryStringDecoder.java:327 — QueryStringDecoder.decodeComponent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, match/switch 4, loops 2, boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AgentHandler.onRequest (cognitive 20) · ×1
  • AgentHandler.onRequest (cognitive 20) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentHandler.java:122 — AgentHandler.onRequest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, match/switch 3, ternaries 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · A2aProtocolHandler.executeSkill (cognitive 20) · ×1
  • A2aProtocolHandler.executeSkill (cognitive 20) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:411 — A2aProtocolHandler.executeSkill has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, ternaries 3, boolean chains 2, error handling 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · A2aProtocolHandler.handleStreamingMessage (cognitive 20) · ×1
  • A2aProtocolHandler.handleStreamingMessage (cognitive 20) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:227 — A2aProtocolHandler.handleStreamingMessage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, loops 4, boolean chains 2, error handling 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LongPollingTransport.poll (cognitive 19) · ×1
  • LongPollingTransport.poll (cognitive 19) modules/wasync/src/main/java/org/atmosphere/wasync/transport/LongPollingTransport.java:74 — LongPollingTransport.poll has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, error handling 4, loops 4, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar (cognitive 19) · ×1
  • AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar (cognitive 19) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:101 — AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 3, error handling 2, ternaries 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller (cognitive 19) · ×1
  • AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller (cognitive 19) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1063 — AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, boolean chains 6, loops 4, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · McpProtocolHandler.handleInitialize (cognitive 19) · ×1
  • McpProtocolHandler.handleInitialize (cognitive 19) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:310 — McpProtocolHandler.handleInitialize has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, ternaries 6, boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · EventIterator.readNext (cognitive 19) · ×1
  • EventIterator.readNext (cognitive 19) modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java:325 — EventIterator.readNext has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, ternaries 4, boolean chains 2, error handling 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereFrameworkInitializer.configureFramework (cognitive 19) · ×1
  • AtmosphereFrameworkInitializer.configureFramework (cognitive 19) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFrameworkInitializer.java:52 — AtmosphereFrameworkInitializer.configureFramework has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, error handling 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereRequestImpl.getHeaders (cognitive 19) · ×1
  • AtmosphereRequestImpl.getHeaders (cognitive 19) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java:234 — AtmosphereRequestImpl.getHeaders has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 2, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultAsyncSupportResolver.detectWebSocketPresent (cognitive 19) · ×1
  • DefaultAsyncSupportResolver.detectWebSocketPresent (cognitive 19) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultAsyncSupportResolver.java:81 — DefaultAsyncSupportResolver.detectWebSocketPresent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 5 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultBroadcaster.getBroadcastHandler (cognitive 19) · ×1
  • DefaultBroadcaster.getBroadcastHandler (cognitive 19) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:483 — DefaultBroadcaster.getBroadcastHandler has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, error handling 6, boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SimpleRestInterceptor.inspect (cognitive 19) · ×1
  • SimpleRestInterceptor.inspect (cognitive 19) modules/cpr/src/main/java/org/atmosphere/interceptor/SimpleRestInterceptor.java:116 — SimpleRestInterceptor.inspect has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 3, error handling 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultWebSocketProcessor.invokeInterceptors (cognitive 19) · ×1
  • DefaultWebSocketProcessor.invokeInterceptors (cognitive 19) modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:370 — DefaultWebSocketProcessor.invokeInterceptors has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, error handling 2, ternaries 2, boolean chains 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · LocalAgentTransport.send (cognitive 19) · ×1
  • LocalAgentTransport.send (cognitive 19) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/LocalAgentTransport.java:129 — LocalAgentTransport.send has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, ternaries 7, boolean chains 2, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FanOutStreamingSession.fanOut (cognitive 19) · ×1
  • FanOutStreamingSession.fanOut (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/fanout/FanOutStreamingSession.java:97 — FanOutStreamingSession.fanOut has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, loops 5, error handling 2, boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GovernancePolicies.installed (cognitive 19) · ×1
  • GovernancePolicies.installed (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/governance/GovernancePolicies.java:56 — GovernancePolicies.installed has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 5, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · YamlPolicyParser.parse (cognitive 19) · ×1
  • YamlPolicyParser.parse (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/governance/YamlPolicyParser.java:114 — YamlPolicyParser.parse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, ternaries 4, error handling 3, boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · BuiltInAgentRuntime.buildRequest (cognitive 19) · ×1
  • BuiltInAgentRuntime.buildRequest (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInAgentRuntime.java:130 — BuiltInAgentRuntime.buildRequest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · OpenAiCompatibleClient.buildRequestBody (cognitive 19) · ×1
  • OpenAiCompatibleClient.buildRequestBody (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:876 — OpenAiCompatibleClient.buildRequestBody has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, boolean chains 5, ternaries 2, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · DurableRunResumer.reconstruct (cognitive 19) · ×1
  • DurableRunResumer.reconstruct (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/resume/DurableRunResumer.java:155 — DurableRunResumer.reconstruct has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, ternaries 8, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WorkspaceExtensions.mcpServerUris (cognitive 19) · ×1
  • WorkspaceExtensions.mcpServerUris (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:578 — WorkspaceExtensions.mcpServerUris has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 4, error handling 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · OpaSubprocessEvaluator.appendValue (cognitive 19) · ×1
  • OpaSubprocessEvaluator.appendValue (cognitive 19) modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/OpaSubprocessEvaluator.java:237 — OpaSubprocessEvaluator.appendValue has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 6 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AgUiHandler.handlePost (cognitive 19) · ×1
  • AgUiHandler.handlePost (cognitive 19) modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:103 — AgUiHandler.handlePost has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, error handling 4, ternaries 4, boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FlowController.buildGraph (cognitive 19) · ×1
  • FlowController.buildGraph (cognitive 19) modules/admin/src/main/java/org/atmosphere/admin/flow/FlowController.java:94 — FlowController.buildGraph has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, ternaries 6, loops 3, match/switch 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · JsonCanonicalizer.write (cognitive 19) · ×1
  • JsonCanonicalizer.write (cognitive 19) modules/a2a/src/main/java/org/atmosphere/a2a/security/JsonCanonicalizer.java:69 — JsonCanonicalizer.write has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, ternaries 5, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TypeResolver.resolveGenericType (cognitive 18) · ×1
  • TypeResolver.resolveGenericType (cognitive 18) modules/cpr/src/main/java/org/atmosphere/config/managed/TypeResolver.java:164 — TypeResolver.resolveGenericType has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AsynchronousProcessor.invokeAtmosphereHandler (cognitive 18) · ×1
  • AsynchronousProcessor.invokeAtmosphereHandler (cognitive 18) modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:546 — AsynchronousProcessor.invokeAtmosphereHandler has cognitive complexity 18 (threshold 15). Drivers by points: error handling 9, if/else 7, boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereResourceImpl.cancel (cognitive 18) · ×1
  • AtmosphereResourceImpl.cancel (cognitive 18) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:843 — AtmosphereResourceImpl.cancel has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · InstallMetaServiceProcedure.apply (cognitive 18) · ×1
  • InstallMetaServiceProcedure.apply (cognitive 18) modules/cpr/src/main/java/org/atmosphere/cpr/MetaServiceAction.java:118 — InstallMetaServiceProcedure.apply has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · DefaultWebSocketProcessor.open (cognitive 18) · ×1
  • DefaultWebSocketProcessor.open (cognitive 18) modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:179 — DefaultWebSocketProcessor.open has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, error handling 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ChannelWebhookController.handleWebhook (cognitive 18) · ×1
  • ChannelWebhookController.handleWebhook (cognitive 18) modules/channels/src/main/java/org/atmosphere/channels/ChannelWebhookController.java:102 — ChannelWebhookController.handleWebhook has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, ternaries 4, error handling 3, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · StreamingLoadTest.runLoadTest (cognitive 18) · ×1
  • StreamingLoadTest.runLoadTest (cognitive 18) modules/benchmarks/src/main/java/org/atmosphere/benchmarks/load/StreamingLoadTest.java:88 — StreamingLoadTest.runLoadTest has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, loops 6, error handling 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TapeTrainingExtractor.inputMessages (cognitive 18) · ×1
  • TapeTrainingExtractor.inputMessages (cognitive 18) modules/ai/src/main/java/org/atmosphere/ai/tape/TapeTrainingExtractor.java:130 — TapeTrainingExtractor.inputMessages has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6, if/else 4, boolean chains 3, loops 3, error handling 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PersistentConversationMemory.findMatchingBrace (cognitive 18) · ×1
  • PersistentConversationMemory.findMatchingBrace (cognitive 18) modules/ai/src/main/java/org/atmosphere/ai/PersistentConversationMemory.java:193 — PersistentConversationMemory.findMatchingBrace has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · StructuredOutputRetry.runLoop (cognitive 18) · ×1
  • StructuredOutputRetry.runLoop (cognitive 18) modules/ai/src/main/java/org/atmosphere/ai/StructuredOutputRetry.java:116 — StructuredOutputRetry.runLoop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, error handling 4, boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AgentHandler.<init> (cognitive 18) · ×1
  • AgentHandler.<init> (cognitive 18) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentHandler.java:79 — AgentHandler.<init> has cognitive complexity 18 (threshold 15). Drivers by points: error handling 6, loops 6, if/else 5, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AgentProcessor.handleHeadless (cognitive 18) · ×1
  • AgentProcessor.handleHeadless (cognitive 18) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:634 — AgentProcessor.handleHeadless has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, ternaries 7, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LangChain4jAgentRuntime.dispatchAiService (cognitive 17) · ×1
  • LangChain4jAgentRuntime.dispatchAiService (cognitive 17) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:421 — LangChain4jAgentRuntime.dispatchAiService has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, ternaries 6, boolean chains 2, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TokenEmittingRuntime.execute (cognitive 17) · ×1
  • TokenEmittingRuntime.execute (cognitive 17) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetCircuitBreakerTestHandler.java:128 — TokenEmittingRuntime.execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 2, boolean chains 1, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Interceptor.transformPayload (cognitive 17) · ×1
  • Interceptor.transformPayload (cognitive 17) modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeInterceptor.java:132 — Interceptor.transformPayload has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 2, error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereRequestImpl.getSession (cognitive 17) · ×1
  • AtmosphereRequestImpl.getSession (cognitive 17) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java:684 — AtmosphereRequestImpl.getSession has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, error handling 7, boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · InterceptorRegistry.configure (cognitive 17) · ×1
  • InterceptorRegistry.configure (cognitive 17) modules/cpr/src/main/java/org/atmosphere/cpr/InterceptorRegistry.java:159 — InterceptorRegistry.configure has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 4, error handling 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SSEAtmosphereInterceptor.encodeMultilineData (cognitive 17) · ×1
  • SSEAtmosphereInterceptor.encodeMultilineData (cognitive 17) modules/cpr/src/main/java/org/atmosphere/interceptor/SSEAtmosphereInterceptor.java:211 — SSEAtmosphereInterceptor.encodeMultilineData has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, boolean chains 1, error handling 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AgUiCoordinatorBridge.onAction (cognitive 17) · ×1
  • AgUiCoordinatorBridge.onAction (cognitive 17) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1300 — AgUiCoordinatorBridge.onAction has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, error handling 4, ternaries 3, loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · JsonRpcUtils.firstPartText (cognitive 17) · ×1
  • JsonRpcUtils.firstPartText (cognitive 17) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/JsonRpcUtils.java:93 — JsonRpcUtils.firstPartText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 4, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AiStreamMessage.extractValue (cognitive 17) · ×1
  • AiStreamMessage.extractValue (cognitive 17) modules/ai/src/main/java/org/atmosphere/ai/filter/AiStreamMessage.java:154 — AiStreamMessage.extractValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, loops 8, boolean chains 1 (nesting depth added 7). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · SemanticIntentScopeGuardrail.evaluate (cognitive 17) · ×1
  • SemanticIntentScopeGuardrail.evaluate (cognitive 17) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/SemanticIntentScopeGuardrail.java:98 — SemanticIntentScopeGuardrail.evaluate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 3, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · AiEndpointProcessor.instantiateGuardrails (cognitive 17) · ×1
  • AiEndpointProcessor.instantiateGuardrails (cognitive 17) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:574 — AiEndpointProcessor.instantiateGuardrails has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, loops 5, error handling 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TapeRecordingSession.recordInput (cognitive 17) · ×1
  • TapeRecordingSession.recordInput (cognitive 17) modules/ai/src/main/java/org/atmosphere/ai/tape/TapeRecordingSession.java:426 — TapeRecordingSession.recordInput has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, ternaries 6, boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AbstractAgentRuntime.executeWithOuterRetry (cognitive 17) · ×1
  • AbstractAgentRuntime.executeWithOuterRetry (cognitive 17) modules/ai/src/main/java/org/atmosphere/ai/AbstractAgentRuntime.java:494 — AbstractAgentRuntime.executeWithOuterRetry has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, error handling 6, boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SkillFileParser.parseFrontmatter (cognitive 17) · ×1
  • SkillFileParser.parseFrontmatter (cognitive 17) modules/agent/src/main/java/org/atmosphere/agent/skill/SkillFileParser.java:166 — SkillFileParser.parseFrontmatter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 3, loops 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AgentController.findAgentAnnotation (cognitive 17) · ×1
  • AgentController.findAgentAnnotation (cognitive 17) modules/admin/src/main/java/org/atmosphere/admin/agent/AgentController.java:215 — AgentController.findAgentAnnotation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, loops 5, boolean chains 2, error handling 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AdminMcpBridge.registerTapeReadTool (cognitive 17) · ×1
  • AdminMcpBridge.registerTapeReadTool (cognitive 17) modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:213 — AdminMcpBridge.registerTapeReadTool has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 9, if/else 3, loops 3, error handling 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AdkAgentRuntime.doExecuteWithHandle (cognitive 17) · ×1
  • AdkAgentRuntime.doExecuteWithHandle (cognitive 17) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java:411 — AdkAgentRuntime.doExecuteWithHandle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6, ternaries 6, boolean chains 4, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · AdkEventAdapter.onEvent (cognitive 17) · ×1
  • AdkEventAdapter.onEvent (cognitive 17) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkEventAdapter.java:210 — AdkEventAdapter.onEvent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 4, boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · EmbeddedJettyWebSocketChat.run (cognitive 16) · ×1
  • EmbeddedJettyWebSocketChat.run (cognitive 16) samples/embedded-jetty-websocket-chat/src/main/java/org/atmosphere/samples/chat/EmbeddedJettyWebSocketChat.java:41 — EmbeddedJettyWebSocketChat.run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · McpProtocolHandler.handleSingleMessage (cognitive 16) · ×1
  • McpProtocolHandler.handleSingleMessage (cognitive 16) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:228 — McpProtocolHandler.handleSingleMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 5, boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TypeResolver.buildTypeVariableMap (cognitive 16) · ×1
  • TypeResolver.buildTypeVariableMap (cognitive 16) modules/cpr/src/main/java/org/atmosphere/config/managed/TypeResolver.java:270 — TypeResolver.buildTypeVariableMap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultBroadcaster.cacheAndSuspend (cognitive 16) · ×1
  • DefaultBroadcaster.cacheAndSuspend (cognitive 16) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1601 — DefaultBroadcaster.cacheAndSuspend has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 3, ternaries 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ResponseWriter.writeWithBuffering (cognitive 16) · ×1
  • ResponseWriter.writeWithBuffering (cognitive 16) modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java:412 — ResponseWriter.writeWithBuffering has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, error handling 5 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AnnotationDetector.print (cognitive 16) · ×1
  • AnnotationDetector.print (cognitive 16) modules/cpr/src/main/java/org/atmosphere/util/annotation/AnnotationDetector.java:669 — AnnotationDetector.print has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CookieUtil.toString (cognitive 16) · ×1
  • CookieUtil.toString (cognitive 16) modules/cpr/src/main/java/org/atmosphere/util/CookieUtil.java:68 — CookieUtil.toString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IntrospectionUtils.convert (cognitive 16) · ×1
  • IntrospectionUtils.convert (cognitive 16) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:766 — IntrospectionUtils.convert has cognitive complexity 16 (threshold 15). Drivers by points: error handling 8, if/else 6, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PathTemplate.<init> (cognitive 16) · ×1
  • PathTemplate.<init> (cognitive 16) modules/cpr/src/main/java/org/atmosphere/util/PathTemplate.java:57 — PathTemplate.<init> has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WebSocket.write (cognitive 16) · ×1
  • WebSocket.write (cognitive 16) modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:237 — WebSocket.write has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, ternaries 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WebTransportSession.write (cognitive 16) · ×1
  • WebTransportSession.write (cognitive 16) modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java:194 — WebTransportSession.write has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, ternaries 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AiResponseCacheListener.onAddCache (cognitive 16) · ×1
  • AiResponseCacheListener.onAddCache (cognitive 16) modules/ai/src/main/java/org/atmosphere/ai/cache/AiResponseCacheListener.java:45 — AiResponseCacheListener.onAddCache has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 6, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AuthorizationPolicy.defaultRoleResolver (cognitive 16) · ×1
  • AuthorizationPolicy.defaultRoleResolver (cognitive 16) modules/ai/src/main/java/org/atmosphere/ai/governance/AuthorizationPolicy.java:124 — AuthorizationPolicy.defaultRoleResolver has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · OpenApiToolImporter.collectRequestBody (cognitive 16) · ×1
  • OpenApiToolImporter.collectRequestBody (cognitive 16) modules/ai/src/main/java/org/atmosphere/ai/tool/openapi/OpenApiToolImporter.java:249 — OpenApiToolImporter.collectRequestBody has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 3, ternaries 3, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MultiModalInput.decode (cognitive 16) · ×1
  • MultiModalInput.decode (cognitive 16) modules/ai/src/main/java/org/atmosphere/ai/MultiModalInput.java:153 — MultiModalInput.decode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 4, error handling 2. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D31 · IaC & Container Security · Medium IaC · ×1
  • Medium IaC: CKV_DOCKER_3 generator/templates/compose/Dockerfile.mustache:1 — Ensure that a user for the container has been created
D36 · Supply-chain Provenance & Signing · Unpinned build actions · ×1
  • Unpinned build actions — CI references GitHub Actions by a floating ref (@main / @tag) rather than a pinned commit SHA, weakening build integrity. 123 floating ref(s) across 22 workflow file(s). Each floating ref is itemized at file:line by the SAST (D29) lens.
D36 · Supply-chain Provenance & Signing · PR-triggered workflow without a permissions block · ×1
  • PR-triggered workflow without a permissions block — 11 workflow(s) triggered by pull_request declare no `permissions:` block (samples-ci.yml, native-image-ci.yml, integration-tests.yml …) and so run with the repository's default GITHUB_TOKEN scope, while 8 sibling workflows in the same repository are already scoped. Pull-request runs build the least-trusted code in the repository; give each of these workflows its own least-privilege block — `permissions: {contents: read}` at the top of the workflow, widened per job only where a job genuinely writes.
D4 · Code Duplication · Duplicated block (67 lines × 2) · ×1
  • Duplicated block (67 lines × 2) modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:402 — modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:402-472 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:580-646 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:402` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×1
  • Duplicated block (16 lines × 2) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:156 — modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:156-172 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:180-195 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (12 lines × 3) · ×1
  • Duplicated block (12 lines × 3) samples/spring-boot-orchestration-demo/src/main/java/org/atmosphere/samples/springboot/orchestration/ConsoleEndpointAlias.java:39 — samples/spring-boot-orchestration-demo/src/main/java/org/atmosphere/samples/springboot/orchestration/ConsoleEndpointAlias.java:39-50 | samples/spring-boot-dentist-agent/src/main/java/org/atmosphere/samples/springboot/dentist/ConsoleEndpointAlias.java:39-50 | samples/spring-boot-channels-chat/src/main/java/org/atmosphere/samples/channels/ConsoleEndpointAlias.java:40-51 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `samples/spring-boot-orchestration-demo/src/main/java/org/atmosphere/samples/springboot/orchestration/ConsoleEndpointAlias.java:39` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (9 lines × 10) · ×1
  • Duplicated block (9 lines × 10) samples/spring-boot-ms-governance-chat/src/main/java/org/atmosphere/samples/springboot/msgovernance/FaqKnowledgeBase.java:60 — samples/spring-boot-ms-governance-chat/src/main/java/org/atmosphere/samples/springboot/msgovernance/FaqKnowledgeBase.java:60-68 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopePolicy.java:80-88 | modules/ai/src/main/java/org/atmosphere/ai/governance/AuthorizationPolicy.java:70-78 | modules/ai/src/main/java/org/atmosphere/ai/governance/ConcurrencyLimitPolicy.java:72-80 | modules/ai/src/main/java/org/atmosphere/ai/governance/MessageLengthPolicy.java:53-61 | modules/ai/src/main/java/org/atmosphere/ai/governance/MetadataPresencePolicy.java:54-62 | modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java:99-107 | modules/ai/src/main/java/org/atmosphere/ai/governance/RateLimitPolicy.java:72-80 | modules/ai/src/main/java/org/atmosphere/ai/governance/SwappablePolicy.java:59-67 | modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:62-70 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 10 times. Read the line range as the matched WINDOW rather than a finished unit: at `samples/spring-boot-ms-governance-chat/src/main/java/org/atmosphere/samples/springboot/msgovernance/FaqKnowledgeBase.java:60` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (9 lines × 7) · ×1
  • Duplicated block (9 lines × 7) modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:81 — modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:81-89 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:98-106 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:117-125 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:72-80 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:114-122 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:123-131 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:132-140 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 7 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (9 lines × 4) · ×1
  • Duplicated block (9 lines × 4) modules/ai/src/main/java/org/atmosphere/ai/code/CodeExecTool.java:68 — modules/ai/src/main/java/org/atmosphere/ai/code/CodeExecTool.java:68-77 | modules/ai/src/main/java/org/atmosphere/ai/code/EvalTool.java:62-70 | modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:256-264 | modules/ai/src/main/java/org/atmosphere/ai/plan/PlanningTools.java:88-96 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/code/CodeExecTool.java:68` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (8 lines × 10) · ×1
  • Duplicated block (8 lines × 10) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetTestHandler.java:114 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetTestHandler.java:114-121 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:77-84 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheTestHandler.java:63-70 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ClassroomTestHandler.java:69-76 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:148-155 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:131-138 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ErrorRecoveryTestHandler.java:57-64 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/FanOutTestHandler.java:73-80 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/FilterTestHandler.java:64-71 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RoutingTestHandler.java:76-83 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetTestHandler.java:114` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (8 lines × 6) · ×1
  • Duplicated block (8 lines × 6) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaRunnableConfig.java:103 — modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaRunnableConfig.java:103-110 | modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelInvocation.java:103-110 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAiServices.java:170-177 | modules/ai/src/main/java/org/atmosphere/ai/llm/ToolLoopPolicies.java:118-125 | modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AgentScopeAgent.java:96-103 | modules/adk/src/main/java/org/atmosphere/ai/adk/AdkRootAgent.java:152-159 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 6 times.
D4 · Code Duplication · Duplicated block (8 lines × 4) · ×1
  • Duplicated block (8 lines × 4) modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:122 — modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:122-129 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:136-143 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:151-158 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:170-177 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:122` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (7 lines × 20) · ×1
  • Duplicated block (7 lines × 20) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/real/RealLlmChatTestHandler.java:125 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/real/RealLlmChatTestHandler.java:125-131 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:114-120 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiGapCoverageTestHandler.java:148-154 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheHintTestHandler.java:86-92 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheSkipTestHandler.java:173-179 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CancelTestHandler.java:253-259 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CoordinatorFirstRunTestHandler.java:174-180 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EmbeddingTestHandler.java:83-89 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EpisodicMemoryTestHandler.java:212-218 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/HitlApprovalTestHandler.java:240-246 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/HitlCrossSessionTestHandler.java:114-120 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/IdentityTestHandler.java:62-68 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/JfrObservabilityTestHandler.java:148-154 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/LifecycleListenerTestHandler.java:172-178 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MemoryStrategyTestHandler.java:76-82 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ModelsTestHandler.java:89-95 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MultiModalTestHandler.java:110-116 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RetryPolicyTestHandler.java:83-89 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ToolCallDeltaTestHandler.java:74-80 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ToolPermissionTestHandler.java:145-151 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 20 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 20 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/real/RealLlmChatTestHandler.java:125` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×1
  • Duplicated block (7 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:173 — modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:173-179 | modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:192-198 | modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:211-217 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (6 lines × 19) · ×1
  • Duplicated block (6 lines × 19) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:42 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:42-48 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetCircuitBreakerTestHandler.java:64-69 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheHintTestHandler.java:43-49 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ClassroomTestHandler.java:50-56 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConfidenceElicitationTestHandler.java:65-70 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConversationMemoryTestHandler.java:53-59 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:44-50 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EmbeddingTestHandler.java:43-49 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ErrorRecoveryTestHandler.java:40-46 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/FanOutTestHandler.java:52-58 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/IdentityTestHandler.java:39-45 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/LifecycleListenerTestHandler.java:62-68 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MemoryStrategyTestHandler.java:53-59 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ModelsTestHandler.java:48-54 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MultiModalTestHandler.java:60-66 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/PassivationTestHandler.java:72-77 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RetryPolicyTestHandler.java:43-49 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RoutingTestHandler.java:60-66 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/StructuredOutputTestHandler.java:67-72 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:42` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (6 lines × 5) · ×1
  • Duplicated block (6 lines × 5) modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:115 — modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:115-120 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:129-134 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:143-149 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:158-164 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:177-182 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (5 lines × 4) · ×1
  • Duplicated block (5 lines × 4) modules/ai/src/main/java/org/atmosphere/ai/cache/SemanticResponseCache.java:185 — modules/ai/src/main/java/org/atmosphere/ai/cache/SemanticResponseCache.java:185-189 | modules/ai/src/main/java/org/atmosphere/ai/governance/rag/EmbeddingInjectionClassifier.java:185-189 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:172-176 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/SemanticIntentScopeGuardrail.java:185-189 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/cache/SemanticResponseCache.java:185` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (5 lines × 3) · ×1
  • Duplicated block (5 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java:112 — modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java:112-116 | modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java:81-85 | modules/ai/src/main/java/org/atmosphere/ai/LlmSummarizingCompaction.java:119-123 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java:112` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Recommendation — 7 finding(s)
D11 · Test Reliability · Test reliability not included · ×1
  • Test reliability not included — Test source is present (.ts, .java, .kt, .js) but the built-in reliability runner does not support this repository's ecosystem, so flakiness couldn't be assessed. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
D16 · Bus Factor · Off-boarding risk · ×1
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 542 significant file(s) lose their only recent owner: modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java, modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java, modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java, modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java, modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java, modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java, modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java, modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java (+534 more). Pair on, review, or document these before any departure.
D19 · Documentation Quality · The Compose generator's Prerequisites list omits Docker installation (docker/dockerd) required to run the generated project locally. · ×1
  • The Compose generator's Prerequisites list omits Docker installation (docker/dockerd) required to run the generated project locally. generator/README.md — Add Docker prerequisite "Docker installed" so users can build/run the multi-module Atmosphere starter from scratch.
D31 · IaC & Container Security · Low IaC · ×1
  • Low IaC: DS-0026 generator/templates/compose/Dockerfile.mustache — No HEALTHCHECK defined Without one the runtime only knows whether the process is alive, not whether it is serving, so a wedged container is restarted by nobody. The step: add a `HEALTHCHECK` to the image that probes the service the way a client would — this image already declares `EXPOSE 8080`, so a request to `localhost:8080` on the service's own health or root route, exiting non-zero when it does not answer, is the probe — and give it an `--interval`, a `--timeout` and a `--start-period` long enough to cover startup. If the image ships no HTTP client, probe with whatever the runtime already has, or declare the check in the orchestrator instead and say so here.
D36 · Supply-chain Provenance & Signing · No SBOM · ×1
  • No SBOM — No SBOM generation or committed SBOM found — produce one with what your ecosystem ships (the `cyclonedx-maven-plugin` bound to the package phase, `syft` (or `anchore/sbom-action` in CI) over the source tree or released image). Publish it as a release asset (`*.spdx.json` / `*.cdx.json`) so consumers can see what they are installing.
D38 · OSV Dependency Vulnerabilities · Low CVE · ×1
  • Low CVE: [GHSA redacted] modules/spring-boot-starter/frontend/package-lock.json — dompurify 3.4.11: [GHSA redacted] — this repo declares dompurify ^3.4.11, a range that ALREADY admits the fixed 3.4.12, so there is no manifest edit to make here. Re-resolve the lock so dompurify moves onto 3.4.12 or later; if the flagged 3.4.11 comes back, a dependency is pinning it — upgrade that dependent, or pin dompurify with an `overrides` entry so only one copy resolves.
D8 · Code Coverage · Coverage not included · ×1
  • Coverage not included — suite not readable by the collector — Coverage NOT READ here — but this repository measures it: a coverage step in CI (`codecov/codecov-action`) shows that coverage is collected and tracked in your own CI. The built-in collector has no runner for this ecosystem (.ts, .java, .kt, .js), so the analyzer could not read the number — a gap in the analyzer's language coverage, not an unmeasured repo. Not scored. To have the real number read, produce a coverage report in a standard format (lcov — `vitest --coverage`, `jest --coverage`, `bun test --coverage --coverage-reporter=lcov`, or `nyc`, or JaCoCo XML — `mvn jacoco:report`) into the repo working tree before the scan — a CI step is the usual place, since the artefact is commonly gitignored.
Info — 2 finding(s)
D12 · Dependency Hygiene · Dependency hygiene not measured · ×1
  • Dependency hygiene not measured — dependency manifest found but not parsed for hygiene — This repository's dependency manifests (a Maven POM and package.json) were found, but this pass cannot parse them for hygiene, so no package was assessed. Zero packages read is NOT a clean dependency tree, so this is NOT SCORED — a gap in the analyzer, not a verdict about this repository. This row is about dependency HYGIENE — outdated, deprecated or unmaintained direct dependencies; known CVEs in the same dependency graph are a separate question, reported under D38 wherever the manifest is OSV-readable.
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 .2artifacts/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 .0
D30 · Dependency Vulnerabilitiesnone (no readable dependency manifest)none (no readable dependency manifest): not present in this environment0
D31 · IaC & Container Securitytrivytrivy config --format json --quiet .3artifacts/raw/trivy-config.json
D32 · Data Compliance (PII/GDPR)semgrepsemgrep --config /opt/semgrep-rules/gdpr.yml --json --quiet --timeout 0 --metrics off .23artifacts/raw/semgrep-gdpr.json
D33 · JS/npm Dependency Vulnerabilitiestrivytrivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update0
D38 · OSV Dependency Vulnerabilitiesosv-scannerosv-scanner --format json --recursive .4artifacts/raw/osv-scanner.json
D40 · Network Egress Confinementruntime-hardeningruntime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.0
D41 · Kernel & Syscall Confinementruntime-hardeningruntime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.0
D42 · Runtime Threat Enforcementruntime-hardeningruntime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.0

Run 019fce7d-fef7-792c-a9b5-fec150e9dfe1 · 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