Public report of JiRaska/open-bank-oss, published 9 November 2026. It has the same score, grades and number of findings as the full report. The details of security findings (where they are in the code, which known vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive report Measured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.11.2). Assert signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey → Signed and filed in the standard's public register, 9 November 2026, 06:53 UTC · Survey ID cd_a63a40bdaeda4ad9be89c7bdf631e8cb

JiRaska/open-bank-oss

Measured 9 November 2026, 06:49 UTC, at code version 5a5030a

Code coverage is not measured: JavaScript/TypeScript suite (CouldNotMeasureTestRunFailed).

CAI score 66out of 100 At risk Up 5 since the last survey

The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.

A large codebase: 492,859 lines of product code in 87 projects, tests not counted · Estimated rebuild effort: about 11.0 person-years · Weakest lens: Production Readiness, 60

Findings by how serious they are

205 critical 4351 serious 1236 minor

8 dimensions are left out of the score. For each one, we either couldn't measure it in this code, or found no evidence of the safeguard we look for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.

This survey was produced by

Assert small markCanine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
9 November 2026, 06:49 UTC

A measurement, not a certificate. The Code Assurance Index records a number together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee the code. The standard was written by Canine Development, which also builds the Canine Code Analyzer. It is open to any tool that implements it, and today the Canine Code Analyzer is the only one that does.

A critical security finding is open, such as a library with a known critical vulnerability or a password or key found in the code. The score itself is unchanged, but its band shows At risk until the finding is fixed. See the Security and Compliance lens.

The score is deterministic, which means the same code always gets the same score. We work it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸

107of 107 dimensions measured by tools.
5768of 5792 findings point to an exact file and line, so you can open each one in the code. The other 24 concern the repository as a whole, such as missing documentation.
107dimensions across 8 lenses, read from 492,859 lines of product code in 87 projects.
Chapters

Executive summary

JiRaska/open-bank-oss is rated At risk because critical security findings are open, most of them in the build pipeline. It scores 66 out of 100, which the At risk rating leaves unchanged. We judged it as a template or a sample, against a lower bar.

Every lens scores high enough to be rated Strong, so no single lens holds the score back. The best first steps are replacing the two exposed passwords or keys and switching the old ones off and tidying the declared packages, each worth about 5 points.

Eighty-nine secrets can leak from the build pipeline. Fifty-four known security holes in the packages the code depends on can be used by attackers. Limiting each secret to its own step and updating the vulnerable packages would close both risks. Passing outside input through environment variables would fix the 11 pipeline steps that put outside input straight into a shell command, and the seven pipeline steps that run downloads without checking them need each download checked against a known checksum first. The 16 controls that only work with a mouse need to work with the keyboard, or to become a real button.

The product code is 492,859 lines, about €1,600,000 to rebuild.

A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.

How the score is built: what each lens counts for The lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
Production Readiness 60 · counts for 45%Code Health 71 · counts for 25%Accessibility 71 · counts for 14%Security and Compliance 71 · counts for 8%Architecture 77 · counts for 4%Performance 77 · counts for 2%Domain Modelling 78 · counts for 1%Maturity 93 · counts for 1%

Every lens already scores high enough to be rated Strong, so no single lens holds the score back.

Code composition: what the lines of code are
Product code 51%Tests 49%
New since the last survey: 632 findings

These 632 critical or serious findings weren't in the previous survey, on 22 October 2026. The first 100 are listed here, and the findings file in the download package lists them all.

  • Cyclomatic Complexity · page.GameCatalogPage (cyclomatic 151) openbank-admin-ui/src/app/loyalty/game/page.tsx
  • Cyclomatic Complexity · contentSnapshot.validClusterTopology (cyclomatic 83) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts
  • Cyclomatic Complexity · CommandPalette.OpenCommandPalette (cyclomatic 78) openbank-admin-ui/src/components/search/CommandPalette.tsx
  • Cyclomatic Complexity · check-capacity-profile.validate (cyclomatic 70) .github/scripts/check-capacity-profile.py
  • Cyclomatic Complexity · check-asyncapi-doc-discriminator.streams_topics (cyclomatic 65) .github/scripts/check-asyncapi-doc-discriminator.py
  • Cyclomatic Complexity · record-agent-merge.execute (cyclomatic 50) .github/scripts/record-agent-merge.py
  • Cyclomatic Complexity · merge-train.judge_strict_carriers (cyclomatic 48) .github/scripts/merge-train.py
  • Cyclomatic Complexity · merge_authorization_proof.app_authorization (cyclomatic 48) .github/scripts/merge_authorization_proof.py
  • Cyclomatic Complexity · types.appEvidence (cyclomatic 47) openbank-admin-ui/src/lib/agent-merge-records/types.ts
  • Cyclomatic Complexity · check-product-ir-run-limits.check_document (cyclomatic 41) .github/scripts/check-product-ir-run-limits.py
  • Cyclomatic Complexity · check-service-build-results.verify (cyclomatic 41) .github/scripts/check-service-build-results.py
  • Cyclomatic Complexity · fuzz_response_isolation.before_load_schema (cyclomatic 40) .github/scripts/fuzz_response_isolation.py
  • Cyclomatic Complexity · check-admin-ui-evidence-plan.validate_ui_stream (cyclomatic 39) .github/scripts/check-admin-ui-evidence-plan.py
  • Cyclomatic Complexity · check-honeytoken-wiring.scan (cyclomatic 37) .github/scripts/check-honeytoken-wiring.py
  • Cyclomatic Complexity · HttpFixture.route (cyclomatic 37) .github/scripts/merge-train.py
  • Cyclomatic Complexity · check-service-application-readiness.check_component (cyclomatic 36) .github/scripts/check-service-application-readiness.py
  • Cyclomatic Complexity · ScenePreview.ScenePreview (cyclomatic 35) openbank-admin-ui/src/app/loyalty/game/ScenePreview.tsx
  • Cyclomatic Complexity · check-fleet-release-evidence.check_fleet (cyclomatic 34) .github/scripts/check-fleet-release-evidence.py
  • Cyclomatic Complexity · readiness_fuzz_evidence.verify_fuzz_ops (cyclomatic 34) .github/scripts/readiness_fuzz_evidence.py
  • Cyclomatic Complexity · classify-pact-drift-scope._classify (cyclomatic 32) .github/scripts/classify-pact-drift-scope.py
  • Cyclomatic Complexity · merge_pr_policy.premerge_policy_context (cyclomatic 31) .github/scripts/merge_pr_policy.py
  • Cyclomatic Complexity · merge_authorization_proof.pr_request_observation (cyclomatic 30) .github/scripts/merge_authorization_proof.py
  • Cyclomatic Complexity · verify-capacity-evidence.parse_manifest (cyclomatic 30) .github/scripts/verify-capacity-evidence.py
  • Cyclomatic Complexity · contentSnapshot.isAdminUiContentSnapshot (cyclomatic 30) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts
  • Cyclomatic Complexity · merge_pr_policy.requires_exact_head (cyclomatic 29) .github/scripts/merge_pr_policy.py
  • Cyclomatic Complexity · stage-admin-ui-performance.stage_performance (cyclomatic 29) .github/scripts/stage-admin-ui-performance.py
  • Cyclomatic Complexity · check-artifact-lock.check_text (cyclomatic 28) .github/scripts/check-artifact-lock.py
  • Cyclomatic Complexity · rewrite-reconcile-image-pins.rewrite (cyclomatic 28) .github/scripts/rewrite-reconcile-image-pins.py
  • Cyclomatic Complexity · editor.courseProblems (cyclomatic 28) openbank-admin-ui/src/lib/game/editor.ts
  • Cyclomatic Complexity · check-fleet-release-evidence.inventory_report (cyclomatic 27) .github/scripts/check-fleet-release-evidence.py
  • Cyclomatic Complexity · check-product-revision-pinned.run (cyclomatic 27) .github/scripts/check-product-revision-pinned.py
  • Cyclomatic Complexity · ReleasedPaymentValidator.validate (cyclomatic 26) openbank-swift-service/src/main/kotlin/com/openbank/swift/domain/institution/ReleasedPayment.kt
  • Cyclomatic Complexity · check-product-ir-determinism.static_findings (cyclomatic 26) .github/scripts/check-product-ir-determinism.py
  • Cyclomatic Complexity · check-threat-model-claims.self_test (cyclomatic 26) .github/scripts/check-threat-model-claims.py
  • Cyclomatic Complexity · merge-train.build_strict_carrier (cyclomatic 26) .github/scripts/merge-train.py
  • Cyclomatic Complexity · types.parseAgentMergeRecord (cyclomatic 26) openbank-admin-ui/src/lib/agent-merge-records/types.ts
  • Cyclomatic Complexity · GitHub.rerun_inconclusive (cyclomatic 24) .github/scripts/merge-train.py
  • Cyclomatic Complexity · (anonymous) (cyclomatic 24) openbank-infra/web/landing/bank-as-code.js
  • Cyclomatic Complexity · Reader.number (cyclomatic 23) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/IrJson.kt
  • Cyclomatic Complexity · Ctx.action (cyclomatic 23) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/ProductIrParser.kt
  • Cyclomatic Complexity · ci-latency-report.job_row (cyclomatic 23) .github/scripts/ci-latency-report.py
  • Cyclomatic Complexity · live-platform-versions.fetchLiveSnapshot (cyclomatic 23) REDACTED
  • Cyclomatic Complexity · check-deploy-pin-monotonic.judge (cyclomatic 22) .github/scripts/check-deploy-pin-monotonic.py
  • Cyclomatic Complexity · check-dockerfile-no-build-stage.self_test (cyclomatic 22) .github/scripts/check-dockerfile-no-build-stage.py
  • Cyclomatic Complexity · check-product-ir-authoring-parity.findings (cyclomatic 22) .github/scripts/check-product-ir-authoring-parity.py
  • Cyclomatic Complexity · check-service-application-readiness.effective_resources (cyclomatic 22) .github/scripts/check-service-application-readiness.py
  • Cyclomatic Complexity · deploy-window.main (cyclomatic 22) .github/scripts/deploy-window.py
  • Cyclomatic Complexity · ProductIrEditor.ProductIrEditor (cyclomatic 22) openbank-admin-ui/src/components/product-studio/ProductIrEditor.tsx
  • Cyclomatic Complexity · check-admin-ui-a11y-route-coverage.test_bodies (cyclomatic 21) .github/scripts/check-admin-ui-a11y-route-coverage.py
  • Cyclomatic Complexity · check-requirements-traceability.check_file (cyclomatic 21) .github/scripts/check-requirements-traceability.py
  • Cyclomatic Complexity · check-security-checklist.code_boxes (cyclomatic 21) .github/scripts/check-security-checklist.py
  • Cyclomatic Complexity · ci-latency-report.analyze (cyclomatic 21) .github/scripts/ci-latency-report.py
  • Cyclomatic Complexity · record-agent-merge.verify_stored (cyclomatic 21) .github/scripts/record-agent-merge.py
  • Cyclomatic Complexity · runtime_resource_inputs._resource_body (cyclomatic 21) .github/scripts/runtime_resource_inputs.py
  • Cyclomatic Complexity · verify-successful-service-ci.resolve_reconcile_service_sources (cyclomatic 21) .github/scripts/verify-successful-service-ci.py
  • Cyclomatic Complexity · Ctx.predicate (cyclomatic 20) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/ProductIrParser.kt
  • Cyclomatic Complexity · Ctx.crossChecks (cyclomatic 20) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/ProductIrParser.kt
  • Cyclomatic Complexity · check-dockerfile-no-build-stage.check_dependabot_fleet_group (cyclomatic 20) .github/scripts/check-dockerfile-no-build-stage.py
  • Cyclomatic Complexity · check-recorded-source-manifests.prove (cyclomatic 20) .github/scripts/check-recorded-source-manifests.py
  • Cyclomatic Complexity · check-vex-overlay-coverage.self_test (cyclomatic 20) .github/scripts/check-vex-overlay-coverage.py
  • Cyclomatic Complexity · runtime_resource_inputs.main (cyclomatic 20) .github/scripts/runtime_resource_inputs.py
  • Cyclomatic Complexity · Reader.string (cyclomatic 19) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/IrJson.kt
  • Cyclomatic Complexity · check-deploy-source-freshness.verify (cyclomatic 19) .github/scripts/check-deploy-source-freshness.py
  • Cyclomatic Complexity · check-libs-core-purity.self_test (cyclomatic 19) .github/scripts/check-libs-core-purity.py
  • Cyclomatic Complexity · check-recorded-source-manifests.classify (cyclomatic 19) .github/scripts/check-recorded-source-manifests.py
  • Cyclomatic Complexity · check-security-checklist.run_carrier (cyclomatic 19) .github/scripts/check-security-checklist.py
  • Cyclomatic Complexity · ci-latency-report.fetch_live (cyclomatic 19) .github/scripts/ci-latency-report.py
  • Cyclomatic Complexity · deploy-window-mutate.selected_pr (cyclomatic 19) .github/scripts/deploy-window-mutate.py
  • Cyclomatic Complexity · deploy-window.flush_candidates (cyclomatic 19) .github/scripts/deploy-window.py
  • Cyclomatic Complexity · merge-train.api (cyclomatic 19) .github/scripts/merge-train.py
  • Cyclomatic Complexity · merge-train.close_linked_issues (cyclomatic 19) .github/scripts/merge-train.py
  • Cyclomatic Complexity · runtime_resource_inputs._root_aliases (cyclomatic 19) .github/scripts/runtime_resource_inputs.py
  • Cyclomatic Complexity · auto-update-armed-prs.observe_update (cyclomatic 18) .github/scripts/auto-update-armed-prs.py
  • Cyclomatic Complexity · check-default-nodepool-budget.check_text (cyclomatic 18) .github/scripts/check-default-nodepool-budget.py
  • Cyclomatic Complexity · check-main-red-watch.classify_run (cyclomatic 18) .github/scripts/check-main-red-watch.py
  • Cyclomatic Complexity · check-msg-channel-image-parity.prefetch_full_shas (cyclomatic 18) .github/scripts/check-msg-channel-image-parity.py
  • Cyclomatic Complexity · check-recorded-source-manifests.fetch_tree (cyclomatic 18) .github/scripts/check-recorded-source-manifests.py
  • Cyclomatic Complexity · check-remote-build-cache-write-scope.scan (cyclomatic 18) .github/scripts/check-remote-build-cache-write-scope.py
  • Cyclomatic Complexity · check_library_quality_evidence.quota_delay (cyclomatic 18) .github/scripts/check_library_quality_evidence.py
  • Cyclomatic Complexity · check_library_quality_evidence.require_proofs (cyclomatic 18) .github/scripts/check_library_quality_evidence.py
  • Cyclomatic Complexity · record-rerun-flake.main (cyclomatic 18) .github/scripts/record-rerun-flake.py
  • Cyclomatic Complexity · record-rerun-flake.self_test (cyclomatic 18) .github/scripts/record-rerun-flake.py
  • Cyclomatic Complexity · collect-repository-documentation.collectRepositoryDocumentation (cyclomatic 18) openbank-admin-ui/scripts/collect-repository-documentation.mjs
  • Cyclomatic Complexity · docs.parseAdr (cyclomatic 18) openbank-admin-ui/src/lib/governance/docs.ts
  • Cyclomatic Complexity · check-gate-script-registration.coverage (cyclomatic 17) .github/scripts/check-gate-script-registration.py
  • Cyclomatic Complexity · check-pr-file-overlap.fetch_open_prs (cyclomatic 17) .github/scripts/check-pr-file-overlap.py
  • Cyclomatic Complexity · check-product-ir-purity.strip_comments_and_strings (cyclomatic 17) .github/scripts/check-product-ir-purity.py
  • Cyclomatic Complexity · check-product-ir-version-lifecycle.run (cyclomatic 17) .github/scripts/check-product-ir-version-lifecycle.py
  • Cyclomatic Complexity · check-security-checklist.identify (cyclomatic 17) .github/scripts/check-security-checklist.py
  • Cyclomatic Complexity · check-synthetic-customer-identity.self_test (cyclomatic 17) .github/scripts/check-synthetic-customer-identity.py
  • Cyclomatic Complexity · infracost-scope.cost_scope (cyclomatic 17) .github/scripts/infracost-scope.py
  • Cyclomatic Complexity · service-build-artifact.restore (cyclomatic 17) .github/scripts/service-build-artifact.py
  • Cyclomatic Complexity · gitops_facts._has_management_port (cyclomatic 17) openbank-infra/scripts/gitops_facts.py
  • Cyclomatic Complexity · SepaPayment.transitionTo (cyclomatic 16) openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/domain/model/SepaPayment.kt
  • Cyclomatic Complexity · check-asyncapi-doc-discriminator.self_test (cyclomatic 16) .github/scripts/check-asyncapi-doc-discriminator.py
  • Cyclomatic Complexity · check-honeytoken-wiring.honey_path_workloads (cyclomatic 16) .github/scripts/check-honeytoken-wiring.py
  • Cyclomatic Complexity · check-product-ir-formal-properties.run (cyclomatic 16) .github/scripts/check-product-ir-formal-properties.py
  • Cyclomatic Complexity · check-vex-overlay-coverage.build (cyclomatic 16) .github/scripts/check-vex-overlay-coverage.py
  • Cyclomatic Complexity · deploy-publication-race.decision (cyclomatic 16) .github/scripts/deploy-publication-race.py
  • Cyclomatic Complexity · merge-train.live_source_intent (cyclomatic 16) .github/scripts/merge-train.py

We compare every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.

Fixed since the last survey: 698 findings

These 698 critical or serious findings were in the previous survey, on 22 October 2026, and are gone from this one. The first 100 are listed here.

  • Cyclomatic Complexity · CommandPalette.CommandPalette (cyclomatic 33) openbank-admin-ui/src/components/search/CommandPalette.tsx
  • Cyclomatic Complexity · record-agent-merge.main (cyclomatic 17) .github/scripts/record-agent-merge.py
  • Cyclomatic Complexity · deploy-window.flush (cyclomatic 16) .github/scripts/deploy-window.py
  • Cyclomatic Complexity · generate-public-catalog.render (cyclomatic 16) openbank-infra/web/generate-public-catalog.py
  • Cognitive Complexity · generate-public-catalog.render (cognitive 26) openbank-infra/web/generate-public-catalog.py
  • Cognitive Complexity · CommandPalette.CommandPalette (cognitive 25) openbank-admin-ui/src/components/search/CommandPalette.tsx
  • Cognitive Complexity · deploy-window.flush (cognitive 23) .github/scripts/deploy-window.py
  • Cognitive Complexity · classify-pact-drift-scope.classify (cognitive 18) .github/scripts/classify-pact-drift-scope.py
  • Cognitive Complexity · merge-train.main (cognitive 18) .github/scripts/merge-train.py
  • Cognitive Complexity · record-agent-merge.main (cognitive 16) .github/scripts/record-agent-merge.py
  • God Classes · FunctionTooLong: CommandPalette.CommandPalette openbank-admin-ui/src/components/search/CommandPalette.tsx
  • Code Duplication · Members sharing a duplicated core (33 members, 50+ identical tokens) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/messaging/KafkaAccountOutboxEventPublisher.kt
  • Code Duplication · Members sharing a duplicated core (8 members, 50+ identical tokens) .github/scripts/check-accounting-clock.py
  • Code Duplication · Members sharing a duplicated core (7 members, 50+ identical tokens) openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt
  • Code Duplication · Members sharing a duplicated core (7 members, 50+ identical tokens) openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt
  • Code Duplication · Members sharing a duplicated core (7 members, 50+ identical tokens) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt
  • Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/LedgerOutboxEventPublisher.kt
  • Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) .github/scripts/check-alert-metric-emitted.py
  • Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) .github/scripts/check-hibernate-sequence-guard.py
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) .github/scripts/check-audit-money-path-subscription.py
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) .github/scripts/check-authz-pdp-parity.py
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) .github/scripts/check-kafka-acl-coverage.py
  • Code Duplication · Duplicated block (20–21 lines × 2) openbank-sepa-instant/src/main/kotlin/com/openbank/sepainstant/infrastructure/client/SchemeGatewayAdapter.kt
  • Code Duplication · Duplicated block (14–15 lines × 2) openbank-product-catalog/src/main/kotlin/com/openbank/productcatalog/infrastructure/persistence/BankV1CatalogMapping.kt
  • Code Duplication · Duplicated block (11 lines × 4) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/domain/screening/ScreeningPolicy.kt
  • Code Duplication · Duplicated block (7 lines × 4) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/FraudScoringAdapter.kt
  • Code Duplication · Duplicated block (7 lines × 4) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/SanctionsScreeningAdapter.kt
  • Code Duplication · Duplicated block (7 lines × 2) openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/FeeBillingScenario.kt
  • Code Duplication · Duplicated block (16 lines × 2) .github/scripts/list-recorded-flakes.py
  • Code Duplication · Duplicated block (8–10 lines × 2) .github/scripts/check-journey-catalog.py
  • Code Duplication · Duplicated block (9 lines × 2) .github/scripts/merge-train.py
  • Code Duplication · Duplicated block (8 lines × 2) .github/scripts/pact-reconcile-verifications.py
  • Code Duplication · Duplicated block (6 lines × 2) .github/scripts/auto-update-armed-prs.py
  • Code Duplication · Duplicated block (9 lines × 2) .github/scripts/check-route-exports.py
  • Code Duplication · Duplicated block (14–23 lines × 3) .github/scripts/check-test-intelligence-ecosystem.py
  • Code Duplication · Duplicated block (11–17 lines × 4) .github/scripts/check-test-intelligence-ecosystem.py
  • Churn × Complexity Hotspots · Hotspot: .github/scripts/gen-eu-ai-act.py .github/scripts/gen-eu-ai-act.py
  • Churn × Complexity Hotspots · Hotspot: .github/scripts/check-outbox-has-writer.py .github/scripts/check-outbox-has-writer.py
  • Churn × Complexity Hotspots · Hotspot: .github/scripts/check-verification-metadata-complete.py .github/scripts/check-verification-metadata-complete.py
  • Churn × Complexity Hotspots · Hotspot: .github/scripts/derive-codeploy-set.py .github/scripts/derive-codeploy-set.py
  • Churn × Complexity Hotspots · Hotspot: openbank-admin-ui/src/components/lending/OriginationPipeline.tsx openbank-admin-ui/src/components/lending/OriginationPipeline.tsx
  • Churn × Complexity Hotspots · Hotspot: .github/scripts/check-incluster-hostnames.py .github/scripts/check-incluster-hostnames.py
  • Churn × Complexity Hotspots · Hotspot: .github/scripts/check-no-runblocking-in-scheduled.py .github/scripts/check-no-runblocking-in-scheduled.py
  • Churn × Complexity Hotspots · Repeated repair: openbank-finrep-service/src/main/kotlin/com/openbank/finrep/infrastructure/client/LedgerClient.kt openbank-finrep-service/src/main/kotlin/com/openbank/finrep/infrastructure/client/LedgerClient.kt
  • Churn × Complexity Hotspots · Repeated repair: openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/adapter/NoOpLendingAdapters.kt openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/adapter/NoOpLendingAdapters.kt
  • Churn × Complexity Hotspots · Repeated repair: openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/persistence/repository/PanacheTransactionRepository.kt openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/persistence/repository/PanacheTransactionRepository.kt
  • Churn × Complexity Hotspots · Repeated repair: openbank-libs-runtime/src/main/kotlin/com/openbank/libs/llm/OpenAiCompatibleLlmGatewayClient.kt openbank-libs-runtime/src/main/kotlin/com/openbank/libs/llm/OpenAiCompatibleLlmGatewayClient.kt
  • Churn × Complexity Hotspots · Repeated repair: openbank-settlement-service/src/main/kotlin/com/openbank/settlement/application/workflow/SettlementActivitiesImpl.kt openbank-settlement-service/src/main/kotlin/com/openbank/settlement/application/workflow/SettlementActivitiesImpl.kt
  • Churn × Complexity Hotspots · Repeated repair: openbank-settlement-service/src/main/kotlin/com/openbank/settlement/application/workflow/SettlementWorkflowImpl.kt openbank-settlement-service/src/main/kotlin/com/openbank/settlement/application/workflow/SettlementWorkflowImpl.kt
  • Churn × Complexity Hotspots · Repeated repair: openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/observability/SettlementStrandedGauge.kt openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/observability/SettlementStrandedGauge.kt
  • Churn × Complexity Hotspots · Repeated repair: openbank-onboarding-service/src/main/kotlin/com/openbank/onboarding/infrastructure/kafka/OnboardingEventConsumer.kt openbank-onboarding-service/src/main/kotlin/com/openbank/onboarding/infrastructure/kafka/OnboardingEventConsumer.kt
  • Churn × Complexity Hotspots · Repeated repair: openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/adapter/RestLedgerPostingAdapter.kt openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/adapter/RestLedgerPostingAdapter.kt
  • Churn × Complexity Hotspots · Repeated repair: openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/messaging/TransactionSignalConsumer.kt openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/messaging/TransactionSignalConsumer.kt
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Static Analysis (SAST) · High: watchdog-secret-interpolated-into-run .github/workflows/dependabot-verification-metadata.yml
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Static Analysis (SAST) · Medium: REDACTED openbank-admin-ui/src/app/api/cluster/topology/route.ts
  • Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · Medium CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · Medium CVE: [GHSA redacted] REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED openbank-infra/gitops/components/openbao/secret-rotator-cronjob.yaml
  • IaC & Container Security · Medium IaC: REDACTED openbank-infra/gitops/components/openbao/secret-rotator-cronjob.yaml
  • IaC & Container Security · Medium IaC: REDACTED openbank-infra/gitops/components/openbao/secret-rotator-cronjob.yaml
  • IaC & Container Security · Medium IaC: REDACTED openbank-infra/gitops/components/openbao/secret-rotator-cronjob.yaml
  • IaC & Container Security · Medium IaC: REDACTED openbank-infra/gitops/components/openbao/secret-rotator-cronjob.yaml
  • IaC & Container Security · Medium IaC: REDACTED openbank-infra/gitops/components/openbao/secret-rotator-cronjob.yaml
  • IaC & Container Security · Medium IaC: REDACTED openbank-infra/gitops/components/openbao/secret-rotator-cronjob.yaml
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
  • IaC & Container Security · Medium IaC: REDACTED REDACTED
Rebuild cost: about €1,600,000 · Estimate
Cost to rebuild€530,000 to €2,700,000, for 8,819 to 27,977 hours of work, about 11.0 person-years for 6 to 21 engineers
Difficulty of the problemHigh, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor×0.9 at a score of 66. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
SizeLarge: 492,859 lines of product code
What it is notNot a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.

How the estimate is made: We price the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.

Top priorities

The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.

1
Resolve the 2 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2).
Raises the score by about 5 points · Low effort · REDACTED Scanning
2
Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
Raises the score by about 5 points · Medium effort · Dependency Hygiene
3
Improve Test Distribution — currently 8.9/10.
Raises the score by about 2 points · Medium effort · Test Distribution

Diagnosis: what the measurements show together

Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.

Where the investment is most exposed · Value at risk
This code would cost about €1,600,000 to build again, about 11.0 person-years of work. Its weakest lens is Production Readiness, at 60 (Adequate). Production Readiness is about whether the product is ready to run in production and to change without breaking. Because the weakest lens counts most in the score, work on Production Readiness also moves the score most.
Based on: the rebuild estimate · the Production Readiness grade · how much each lens counts
What to do: Start with the Production Readiness actions in Top priorities.
If you do one thing first · First action
Resolve the 2 Leaked secret finding(s) in REDACTED Scanning. Of all the actions in this report, it raises the score most for the work it takes: about 5 points for low effort, because it clears the 2 REDACTED Scanning findings. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 6.2 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 4% to 10% on every change. The history of the code shows how much it changes: about 1,350,660 lines over the last 90 days, which is about 5,477,677 lines a year. At that pace, the extra work comes to an estimated 606.8 to 3640.7 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of our own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.

Architecture — module dependency graph

Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways, which only happens where the projects form a dependency cycle. A graph without cycles has none.

arch openbank:openbank-card-processing-service openbank:openbank-card-processing-service openbank:openbank-client-transaction openbank:openbank-client-transaction openbank:openbank-card-processing-service->openbank:openbank-client-transaction openbank:openbank-libs-domain openbank:openbank-libs-domain openbank:openbank-card-processing-service->openbank:openbank-libs-domain openbank:openbank-libs-runtime openbank:openbank-libs-runtime openbank:openbank-card-processing-service->openbank:openbank-libs-runtime openbank:openbank-interest-service openbank:openbank-interest-service openbank:openbank-interest-service->openbank:openbank-client-transaction openbank:openbank-interest-service->openbank:openbank-libs-domain openbank:openbank-libs-finance openbank:openbank-libs-finance openbank:openbank-interest-service->openbank:openbank-libs-finance openbank:openbank-interest-service->openbank:openbank-libs-runtime openbank:openbank-lending-service openbank:openbank-lending-service openbank:openbank-lending-service->openbank:openbank-libs-domain openbank:openbank-libs-lending openbank:openbank-libs-lending openbank:openbank-lending-service->openbank:openbank-libs-lending openbank:openbank-lending-service->openbank:openbank-libs-runtime openbank:openbank-libs-temporal openbank:openbank-libs-temporal openbank:openbank-lending-service->openbank:openbank-libs-temporal openbank:openbank-libs-finance->openbank:openbank-libs-domain openbank:openbank-libs-fincrime openbank:openbank-libs-fincrime openbank:openbank-libs-fincrime->openbank:openbank-libs-domain openbank:openbank-libs-iso20022 openbank:openbank-libs-iso20022 openbank:openbank-libs-iso20022->openbank:openbank-libs-domain openbank:openbank-libs-lending->openbank:openbank-libs-domain openbank:openbank-libs-runtime->openbank:openbank-libs-domain openbank:openbank-pension-service openbank:openbank-pension-service openbank:openbank-pension-service->openbank:openbank-libs-domain openbank:openbank-pension-service->openbank:openbank-libs-runtime openbank:openbank-pension-service->openbank:openbank-libs-temporal openbank:openbank-products openbank:openbank-products openbank:openbank-products->openbank:openbank-libs-domain openbank:openbank-products->openbank:openbank-libs-finance openbank:openbank-products->openbank:openbank-libs-runtime openbank:openbank-risk-engine openbank:openbank-risk-engine openbank:openbank-risk-engine->openbank:openbank-libs-domain openbank:openbank-risk-engine->openbank:openbank-libs-finance openbank:openbank-risk-engine->openbank:openbank-libs-lending openbank:openbank-risk-engine->openbank:openbank-libs-runtime openbank:openbank-sdd-service openbank:openbank-sdd-service openbank:openbank-sdd-service->openbank:openbank-client-transaction openbank:openbank-sdd-service->openbank:openbank-libs-domain openbank:openbank-sdd-service->openbank:openbank-libs-runtime openbank:openbank-sepa-instant openbank:openbank-sepa-instant openbank:openbank-sepa-instant->openbank:openbank-client-transaction openbank:openbank-sepa-instant->openbank:openbank-libs-domain openbank:openbank-sepa-instant->openbank:openbank-libs-fincrime openbank:openbank-sepa-instant->openbank:openbank-libs-iso20022 openbank:openbank-sepa-instant->openbank:openbank-libs-runtime openbank:openbank-settlement-service openbank:openbank-settlement-service openbank:openbank-settlement-service->openbank:openbank-libs-domain openbank:openbank-settlement-service->openbank:openbank-libs-runtime openbank:openbank-settlement-service->openbank:openbank-libs-temporal openbank:openbank-simulation openbank:openbank-simulation openbank:openbank-simulation->openbank:openbank-card-processing-service openbank:openbank-simulation->openbank:openbank-interest-service openbank:openbank-simulation->openbank:openbank-libs-domain openbank:openbank-simulation->openbank:openbank-libs-finance openbank:openbank-simulation->openbank:openbank-libs-fincrime openbank:openbank-simulation->openbank:openbank-libs-lending openbank:openbank-simulation->openbank:openbank-libs-runtime openbank:openbank-simulation->openbank:openbank-pension-service openbank:openbank-simulation->openbank:openbank-products openbank:openbank-simulation->openbank:openbank-sdd-service openbank:openbank-simulation->openbank:openbank-sepa-instant openbank:openbank-simulation->openbank:openbank-settlement-service openbank:openbank-statement-service openbank:openbank-statement-service openbank:openbank-simulation->openbank:openbank-statement-service openbank:openbank-swift-service openbank:openbank-swift-service openbank:openbank-simulation->openbank:openbank-swift-service openbank:openbank-statement-service->openbank:openbank-libs-domain openbank:openbank-statement-service->openbank:openbank-libs-runtime openbank:openbank-statement-service->openbank:openbank-libs-temporal openbank:openbank-swift-service->openbank:openbank-client-transaction openbank:openbank-swift-service->openbank:openbank-libs-domain openbank:openbank-swift-service->openbank:openbank-libs-iso20022 openbank:openbank-swift-service->openbank:openbank-libs-runtime __more__ +67 more projects

Architecture: which parts of the code depend on which

The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.

4149 modules, with 4166 dependencies between them. 40 loops run through 91 of the modules, marked above the diagonal.

The table shows the 40 modules with the most connections; 4109 more are left out to keep it readable.

Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
uses →1 campaign.domain.model2 cardprocessing.domain.model3 customeredge.infrastructure.rest4 kyb.domain.model5 libs.approval6 libs.domain.calendar7 libs.domain.money8 libs.fincrime9 libs.governance10 libs.iso2002211 libs.llm12 libs.security13 libs.temporal14 notification.domain.model15 party.domain.model16 pensionfund.domain.model17 pid.domain.model18 account.domain.model19 delegation.domain.model20 domestic.domain.model21 ledger.domain.model22 lending.domain.model23 libs.finance.leg24 libs.observability25 libs.product.ir26 pension.domain.pack27 treasury.domain.model28 agent.application29 libs.persistence.outbox30 pension.domain.model31 risk.domain.model32 treasury.infrastructure.rest33 pension.domain.exit34 pension.domain.onboarding35 risk.domain.curve36 simulation.runner37 pension.application.exit38 pension.application.onboarding39 simulation.scenario40 pension.application.usecase
1 campaign.domain.model
2 cardprocessing.domain.model
3 customeredge.infrastructure.rest
4 kyb.domain.model
5 libs.approval
6 libs.domain.calendar
7 libs.domain.money
8 libs.fincrime
9 libs.governance
10 libs.iso20022
11 libs.llm
12 libs.security
13 libs.temporal
14 notification.domain.model
15 party.domain.model
16 pensionfund.domain.model
17 pid.domain.model
18 account.domain.model5
19 delegation.domain.model42
20 domestic.domain.model1
21 ledger.domain.model3
22 lending.domain.model9
23 libs.finance.leg22
24 libs.observability2
25 libs.product.ir13
26 pension.domain.pack71
27 treasury.domain.model2
28 agent.application23
29 libs.persistence.outbox7
30 pension.domain.model1
31 risk.domain.model21
32 treasury.infrastructure.rest56
33 pension.domain.exit15
34 pension.domain.onboarding24
35 risk.domain.curve211
36 simulation.runner1211
37 pension.application.exit2716
38 pension.application.onboarding5420
39 simulation.scenario461392118
40 pension.application.usecase16451
Uses a module listed above itPart of a loopThe module itself
1 campaign.domain.model2 cardprocessing.domain.model3 customeredge.infrastructure.rest4 kyb.domain.model5 libs.approval6 libs.domain.calendar7 libs.domain.money8 libs.fincrime9 libs.governance10 libs.iso2002211 libs.llm12 libs.security13 libs.temporal14 notification.domain.model15 party.domain.model16 pensionfund.domain.model17 pid.domain.model18 account.domain.model19 delegation.domain.model20 domestic.domain.model21 ledger.domain.model22 lending.domain.model23 libs.finance.leg24 libs.observability25 libs.product.ir26 pension.domain.pack27 treasury.domain.model28 agent.application29 libs.persistence.outbox30 pension.domain.model31 risk.domain.model32 treasury.infrastructure.rest33 pension.domain.exit34 pension.domain.onboarding35 risk.domain.curve36 simulation.runner37 pension.application.exit38 pension.application.onboarding39 simulation.scenario40 pension.application.usecasecampaign.domain.model1cardprocessing.domain.model2customeredge.infrastructure.rest3kyb.domain.model4libs.approval5libs.domain.calendar6libs.domain.money7libs.fincrime8libs.governance9libs.iso2002210libs.llm11libs.security12libs.temporal13notification.domain.model14party.domain.model15pensionfund.domain.model16pid.domain.model17account.domain.model18delegation.domain.model19domestic.domain.model20ledger.domain.model21lending.domain.model22libs.finance.leg23libs.observability24libs.product.ir25pension.domain.pack26treasury.domain.model27agent.application28libs.persistence.outbox29pension.domain.model30risk.domain.model31treasury.infrastructure.rest32pension.domain.exit33pension.domain.onboarding34risk.domain.curve35simulation.runner36pension.application.exit37pension.application.onboarding38simulation.scenario39pension.application.usecase405421392221371223712156152421112112716542046139211816451+4109 more modules (most-connected shown)

At a glance — Code Health · 71% · Adequate · gated by D1, D2 ·

At a glance — Architecture · 77% · Strong ·

At a glance — Maturity · 93% · Exemplary ·

At a glance — Readiness · 60% · Adequate · gated by R8 ·

At a glance — Security · 71% · Adequate · gated by D29, D31, D32 ·

At a glance — Domain Modelling · 78% · Adequate · gated by DM2 ·

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

At a glance — Performance · 77% · Strong ·

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
A02:2025 — Security Misconfiguration1530High / Critical
A05:2025 — Injection281High / Critical
A03:2025 — Software Supply Chain Failures84High / Critical
A01:2025 — Broken Access Control8High / Critical
A07:2025 — Authentication Failures4High / Critical

Roadmap

Top priorities: Resolve the 2 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2); Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies; Improve Test Distribution — currently 8.9/10.

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

Do thisHelpsEffortDimension
Resolve the 2 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2).+5.5 ptsLowREDACTED Scanning
Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.+5.4 ptsMediumDependency Hygiene
Improve Test Distribution — currently 8.9/10.+2.4 ptsMediumTest Distribution
Keep implementation types off the public surface (Kotlin: `internal`) so internals can change without breaking consumers.+2.4 ptsMediumLibrary API & versioning
Bump outdated dependencies to current versions to limit upgrade debt.+0.9 ptsMediumDependency Freshness
Resolve the 6 REDACTED finding(s) in Data Compliance (PII/GDPR) — start with REDACTED (2), REDACTED, REDACTED.+0.4 ptsLowData Compliance (PII/GDPR)
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.+0.6 ptsMediumKeyboard semantics
Strengthen data-at-rest protection: vault your keys (AWS KMS / Secrets Manager, GCP KMS / REDACTED Manager, Azure Key Vault, HashiCorp Vault — not a key compiled into the app) and encrypt the store that holds the personal data (SQLCipher, a Realm encryptionKey, field-level AEAD) — partial coverage still leaves gaps.+0.5 ptsMediumData Protection

File quality

Per-file score 0–10 — a quality signature. Of 1552 files carrying findings, judged against the Template bar: 0% slop · 10% mixed · 90% near-clean.

FileScoreBandWorst signal
REDACTED0.0SlopDependency Vulnerabilities: Critical CVE: REDACTED
REDACTED1.6SlopREDACTED Scanning: Leaked secret: REDACTED
REDACTED2.7MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.4MixedSecrets (history): REDACTED: REDACTED
REDACTED4.4MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.4MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.4MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.4MixedIaC & Container Security: Medium IaC: REDACTED
REDACTED4.4MixedIaC & Container Security: Medium IaC: REDACTED
REDACTED4.4MixedIaC & Container Security: Medium IaC: REDACTED
REDACTED4.4MixedIaC & Container Security: Medium IaC: REDACTED
REDACTED4.4MixedIaC & Container Security: Medium IaC: REDACTED
REDACTED4.5MixedIaC & Container Security: Medium IaC: REDACTED
REDACTED4.6MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.6MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.6MixedIaC & Container Security: Medium IaC: REDACTED
REDACTED4.6MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.6MixedIaC & Container Security: Medium IaC: REDACTED

How the grades work

Every finding carries one of four grades. Three say how serious it is. The fourth says this survey could not settle it — and it is a grade, not a gap.

Critical — 205

A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.

Serious — 4351

Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.

Minor — 1236

Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.

Could not be resolved — 8

Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.

Methodology & how to trust this report

This survey 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. All 107 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.9, the weighted average across measured dimensions.

Every figure here is one of two 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. 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.

What we checked — 107 dimensions across the health lenses
D1D2D3D4D5D6D7D9D10D13D14D15D17D19D20D21D24D25D26D27D28D29D30D31D32D34D35D36D37D40D41D42D43D44AC1AC2AC3AC4AC5AC6AC7AX10AX2AX3AX4AX5AX6C1C3C4C5DM1DM10DM11DM12DM2DM6DM9M1M2M3M4P1P10P2P3P4P5P6P7P8PF1PF3R1R10R2R3R4R5R6R7R8R9S1X1X12X13X14X15X16X17X18X19X2X20X21X22X23X24X25X26X27X28X29X3X30X5

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, 5768 of 5792 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 or a scanner, 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
Canine Code Analyzer duplication detector (in-process)Code duplication1.0.0✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.400✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.400✓ 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

Every finding is locatable in findings.md. Run 01a1bf11-a30a-7272-8ed5-0713de2756d2.

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.

  • D7 Architectural Integrity — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. These records DO declare how the decision is enforced; FileSystemAdrInventoryBuilder.ParseEnforcement maps a fixed vocabulary (`prose`, `test`, `analyzer`, `mechanical`, `judgment`, `judgement`, `process`, `not-applicable`) and these values are outside it. Each was therefore treated as Unclassified: counted into the mechanizable set, but excluded from the scored set because nothing claimed it enforceable. That exclusion rests on our word list, not on the repository. Affected ADR(s): docs/adr/0331-bank-owned-synthetic-customer-identity-a-customers-realm-service-account-bound-to-one-synthetic-party.md. You can widen what we reach: no action is needed from this repository — the gap is in our parser. The values above are reported so the vocabulary can be added; declaring `enforcement: analyzer`, `test`, `prose` or `not-applicable` alongside your own grading would settle these ADRs immediately.
  • D10 Test Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The 3,692 test(s) behind this row are the ones the JavaScript/TypeScript census could read, and this repository also carries at least 3,088 test source file(s) (.py, .kt) that it cannot: it reads JavaScript/TypeScript test declarations off disk, so a JUnit/pytest-style suite is invisible to it. Skipped tests, zero-assertion tests and the other quality signals on this row are UNMEASURED in that suite — their absence from the counts above is a gap in this analyzer's language coverage, not a finding that those tests are sound.
  • D11 Test Reliability — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test reliability not scored — the JavaScript/TypeScript suite (vitest via `npm ci --ignore-scripts` in openbank-admin-ui/ (0 tests)) ran but surfaced no test cases to the runner, so flakiness couldn't be exercised.
  • D12 Dependency Hygiene — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — a Gradle build resolved 913 artifact(s) across its subprojects (466 behind a shipped release, reported), but the currency signal was not established over the whole graph, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
  • D14 License Compliance — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares a Python pyproject.toml/requirements.txt (pip/uv/Poetry), but the licence verdict published here was taken over its JVM dependencies. Nothing was read about its Python dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
  • D14 License Compliance — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares package.json, but the licence verdict published here was taken over its JVM dependencies. Nothing was read about its npm dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
  • D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-contributor repository — bus factor is not applicable (1 contributor(s) across 10669 commit(s) sampled, automation and bot accounts excluded). Concentration needs a team to concentrate: with one contributor there is nobody to spread the knowledge to, so there is nothing here for the owner to act on.
  • D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Each ecosystem's manifests (what makes a folder runnable or a published package) need their own proof before D19 judges its units. Until then those folders' READMEs are judged only as documents (boilerplate, structure), never counted as complete.
  • D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This kind did not reach the 95 % precision gate in three adjudicated runs (docs/plans/deterministic-engine/adjudication/D19-sample3-v3.md), so by the pre-registered fallback it publishes no row until a re-measurement shows it does. The candidates are counted here, not reported as findings, and the score does not include them.
  • D21 Naming Consistency — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. D21's deterministic naming rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. Until then its declarations carry no naming verdict this run — this says nothing about whether its names are consistent.
  • D22 Internal API Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is an ADMISSION gap, not an environment fault: it declares a published package (openbank-libs-lending/build.gradle.kts), but no published-package marker D22 reads admitted any project here. D22 DOES collect the public API of every language in this tree, and admits a project only when its manifest makes that ecosystem's publication act in a form the marker recognises — so what is missing is not a collector but an admission rule for the publication act this repository makes, if it makes one. The remedy is a better discriminator for that marker — not a collector, and no change to the scan image can close it. The marker's rules are measured to refuse applications, so one refused repository is the rule working as calibrated; several are the evidence that it is too strict. For npm the surface is what a published package.json's entry points (exports, main, module, types) export, followed through the source; an entry that names build output the tree does not commit (dist/, build/) is not followed back to source, because only a tsconfig outDir/rootDir pair states that mapping and a bundler's input lives in executable configuration this engine does not evaluate.
  • D24 Comment Value — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Each source language's comment syntax, and the code a comment annotates in it, needs its own proof before D24 judges it. Until then those comments are left unread, not counted as clean.
  • D27 Navigability — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Tracing effort is measured over resolved call sites, and all 570 sampled here came from .kt files. This repository's .tsx source is a material share of its production lines and contributed none, so the score above is a verdict about the part that was read. Not a finding that the unread half navigates well — it is unmeasured.
  • D32 Data Compliance (PII/GDPR) — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. `build-logic/src/main/kotlin/openbank.quarkus-service.gradle.kts`, `openbank-account-service/src/main/kotlin/com/openbank/account/application/port/out/ProductRevisionPinMetrics.kt`, `openbank-account-service/src/main/kotlin/com/openbank/account/domain/model/AccountAuthorization.kt`, `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/kafka/PartyEventConsumer.kt`, `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/entity/AccountEntities.kt`, … (+119 more) produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
  • D41 Kernel & Syscall Confinement — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Openbank-infra/gitops/components/envoy-gateway/gateway.yaml:69, openbank-product-catalog/helm/product-catalog/templates/deployment.yaml:5 did not read as a pod spec (a templated manifest such as Helm's that is not YAML until rendered, or a workload whose pod spec this check does not locate), so the seccomp/AppArmor profile in force there was not judged and no row about them can appear on this card.
  • AX2 Stateful singletons — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 50 further occurrence(s) are not listed individually; the score already reflects all 90.
  • AXR1 Runtime accessibility — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via DockerCompose (REDACTED). compose up failed (exit 17 — an image could not be built) — clearing-service Warning pull access denied for openbank/clearing-service, repository does not exist or may require 'docker login': denied: requested access to the resource is denied failed to solve: ResourceExhausted: write /var/lib/docker/overlay2/jcl1egnuf707z20i8yt2xq6p1/diff/openbank-admin-ui/public/lion-quest/game_l02_balcony.webp: no space left on device; runtime evidence skipped.
  • C2 Access Controls — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
  • DM8 Value-object opportunities — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check finds primitive parameters that travel together through several signatures of the domain (a missing value object). Its deterministic rule has not yet shown 95 % precision on adjudicated rows, so the clumps it finds are counted here and not published as findings, and the card carries no score. That is a limit of the analyzer, not a finding about your code.
  • DM9 Scattered domain decisions — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Some of this repository's production types come from a frontend that does not bind comparison operands to the members they read, which arm one needs, and those types were not walked for this dimension. The counts above speak for the languages that declare it.
  • DM9 Scattered domain decisions — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The frontend declares that it computes whether a construction is produced or passed, yet 7233 of 7233 constructions arrived without the answer. Arm two skipped them; it did not clear them.
  • GD1 Unfinished & placeholder code — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby and Scala source only, and this repository's Java, Kotlin, Python is most of its product and is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • IC1 Incompleteness & stubs — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby and Scala source only, and this repository's Kotlin, Python is most of its product and is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • M4 Documentation accuracy — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9), and artefact counts an order of magnitude off. Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
  • R10 Code Duplication — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 423 further occurrence(s) are not listed individually; the score already reflects all 463.
  • R3 Large Files — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 14 further occurrence(s) are not listed individually; the score already reflects all 54.
  • R4 Test Coverage — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 25 further occurrence(s) are not listed individually; the score already reflects all 65.
  • X3 Exception handling — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 38 further occurrence(s) are not listed individually; the score already reflects all 78.
  • X7 Silent fallback defaults — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 11 further occurrence(s) are not listed individually; the score already reflects all 51.

Repo exclusion declarations: 7 pattern(s) declared (.gitattributes linguist-generated/vendored, .editorconfig generated_code) excluded 0 source file(s) from code-quality scoring. Declarations are the repo's own visible statement that a tree is machine-written or vendored — auditable in any diff, honored by GitHub the same way.

Limitations & what we did not check

We assess the repository exactly as committed, and only the repository. By design we do 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 — an in-process token-stream comparison over sliding windows, with type-aware normalization — so 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.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D7 Architectural Integrity: Layering is checked against detected/declared rules — an architecture whose boundaries live in convention or in code review, not in a rule a scanner can read, is not enforced here.
  • D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • D13 REDACTED Scanning: REDACTED 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").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • 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.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
  • D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
  • D21 Naming Consistency: Naming consistency compares each name with the convention its structural peers follow in this repository: it cannot tell whether a consistently used name is a good one, and languages other than C# and TypeScript are not measured.
  • D24 Comment Value: Comment value is measured as redundancy only: a comment that repeats its code's words is found, but a paraphrase in other words, a vague comment, or one the code contradicts is not, and whether a comment is valuable is not claimed. Comments in other scripts or languages, and outside C#, are not judged.
  • D25 ADR Conformance: ADR conformance checks only decisions stated in a checkable form (a ruled-out element, package or dependency, an adr-rules block, a declared delivery status): a decision written only as prose is unverifiable, and decisions never written down are not checked.
  • D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
  • D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
  • 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").
  • D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
  • 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.
  • 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.
  • D40 Network Egress Confinement: Egress confinement is read from committed Kubernetes manifests — a policy applied out-of-band (cluster-default deny, a service mesh, or a cloud firewall/security group off-repo) is invisible, and a present NetworkPolicy is declared config, not proof the cluster admission-controller actually enforces it at runtime.
  • D41 Kernel & Syscall Confinement: Syscall/MAC confinement is read from committed manifests — a profile applied by a cluster-wide PodSecurity default or a mutating webhook off-repo isn't seen, and a declared seccomp/AppArmor profile is config presence, not proof the node's kernel actually loaded and enforced it.
  • D42 Runtime Threat Enforcement: Runtime enforcement is read from committed policy files — a Tetragon/Falco/Kyverno stack installed cluster-wide (Helm release, platform add-on) with no in-repo trace can't be credited, and a committed policy is declared intent, not proof the engine is running and blocking in the live cluster.
  • D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
  • D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a REDACTED (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
  • 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 click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled 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. The two-branch toggle check (a control whose state is conveyed only by which of two mutually exclusive branches renders) reads CONDITIONALS THAT ARE ATTRIBUTES — Vue v-if/v-else/v-show and Alpine x-if/x-show — so the same toggle written as a Svelte {#if} block or a JSX ternary is control flow the markup model never projects as a branch and is not seen at all.
  • 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.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • C3 Audit Trail: This control is scored from in-repo evidence only — a working control configured outside the repository leaves no signal a static scan can credit.
  • C4 Data Retention: This control is scored from in-repo evidence only — its real-world effectiveness, exercised only at runtime, is outside a static scan.
  • C5 Data-Subject Rights: This control is scored from in-repo evidence only — absence of evidence here means the scan found no in-repo trace, not that the control does not exist.
  • DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
  • M4 Documentation accuracy: Documentation accuracy checks links, versions and artefact counts against the tree: other claims (paths, commands, settings, routes) are read but not checked, and it cannot run the onboarding or measure how long a real new joiner takes.
  • 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".
  • P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
  • 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.

Dimensions

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

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

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

Maturity: Documented → Verified → Prevented · effective 3.8 / 10 · rule-coverage 100% · ceiling Prevented

593 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was merge-train.self_test at 410. A further 13 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 NotificationCopyCatalog.render at 36 — they are counted neither in the figure above nor in this dimension's score. 7 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/client/RestDownstreamReadAdapter.kt (RestDownstreamReadAdapter.read at 36), openbank-notification-service/src/main/kotlin/com/openbank/notification/domain/NotificationCopyCatalog.kt (NotificationCopyCatalog.render at 36), openbank-risk-engine/src/main/kotlin/com/openbank/risk/domain/liquidity/Liquidity.kt (Accumulator.glAccount at 19), openbank-admin-ui/src/components/delegations/EffectiveAccess.tsx (EffectiveAccess.isEffectiveAccessPayload at 18), openbank-admin-ui/src/lib/disputes/disputePortfolio.ts (disputePortfolio.isDispute at 18), and 2 more not listed here. They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.

route.GET (cyclomatic 22) · ×2openbank-admin-ui/src/app/api/context/aml-cases/[id]/route.ts:10
route.GET (cyclomatic 17) · ×2openbank-admin-ui/src/app/api/devops/dora/route.ts:57
route.GET (cyclomatic 16) · ×2openbank-admin-ui/src/app/api/context/authorizations/[id]/route.ts:9
merge-train.self_test (cyclomatic 410).github/scripts/merge-train.py:4809
page.ProductStudioPage (cyclomatic 209)openbank-admin-ui/src/app/product-studio/page.tsx:95

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

What to do

  1. Bring the 1 body over 240 down to 240 or less in Cyclomatic Complexity — start with merge-train.self_test (cyclomatic 410). — Refactoring it lifts Cyclomatic Complexity from 3.8 to about 4.5/10.
  2. Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

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

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

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

Maturity: Documented → Verified → Prevented · effective 2.0 / 10 · rule-coverage 100% · ceiling Prevented

884 method(s) exceeded the cognitive complexity threshold of 15; the worst was merge-train.self_test at 424.

route.GET (cognitive 18) · ×2openbank-admin-ui/src/app/api/context/authorizations/[id]/route.ts:9
route.GET (cognitive 17) · ×2openbank-admin-ui/src/app/api/finops/right-sizing/route.ts:93
route.GET (cognitive 16) · ×2openbank-admin-ui/src/app/api/campaigns/[id]/sends/route.ts:17
merge-train.self_test (cognitive 424).github/scripts/merge-train.py:4809
gen-network-policies.main (cognitive 275)openbank-infra/scripts/gen-network-policies.py:520

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

What to do

  1. Bring the 3 bodies over 240 down to 240 or less in Cognitive Complexity — start with merge-train.self_test (cognitive 424), gen-network-policies.main (cognitive 275), run-gates.self_test (cognitive 242). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 3 together lifts Cognitive Complexity from 2.0 to about 2.8/10, projected with the scoring formula itself and assuming each lands exactly at 240; a cleaner split scores higher.
  2. Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

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

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

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

Maturity: Documented → Verified → Prevented · effective 7.9 / 10 · rule-coverage 100% · ceiling Prevented

264 god class(es) detected.

FunctionTooLong: page.NewCampaignPage · ×162openbank-admin-ui/src/app/campaigns/new/page.tsx:148
FileTooLong: scripts/merge-train.py · ×64.github/scripts/merge-train.py
TooManyMethods: CustomerEdgeResource · ×18openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:88
ClassTooLong: LendingService · ×16openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:106
MethodTooLong: BusinessSigningService.event · ×4openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/BusinessSigningService.kt:672

What to do

  1. Resolve the 162 FunctionTooLong finding(s) in God Classes — start with page.tsx (121), REDACTED (4), NotificationsPage.tsx (2). — One of this dimension's main actionable groups (162 warning-level).
  2. Resolve the 64 FileTooLong finding(s) in God Classes — start with page.tsx (21), merge-train.py, CustomerEdgeResource.kt. — One of this dimension's main actionable groups (64 warning-level).
  3. Resolve the 18 TooManyMethods finding(s) in God Classes — start with CustomerEdgeResource.kt, LendingService.kt, TreasuryDealService.kt. — One of this dimension's main actionable groups (18 warning-level).
  4. Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D4 · Code Duplication9.5 / 10Stronggated by 498 serious findings✓ 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: Documented → Verified → Prevented · effective 9.5 / 10 · rule-coverage 100% · ceiling Verified

465 duplicated block group(s) detected. A further 33 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted. 10 of the 498 are in trees this repository does not ship — vendored, example/demo, project-template, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population. Measured on part of this repository only: .tsx (15% of production source) was not exposed to THIS dimension's token comparison and is not in this count; duplication there is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream.

Duplicated block (5 lines × 2) · ×63openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/kafka/DelegationEventConsumer.kt:116
Duplicated block (6 lines × 2) · ×42openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseEvidenceResource.kt:98
Duplicated block (8 lines × 2) · ×32openbank-account-service/src/main/kotlin/com/openbank/account/application/usecase/AccountService.kt:378
Duplicated block (9 lines × 2) · ×28openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/MockModelProvider.kt:96
Duplicated block (7 lines × 2) · ×28openbank-case-coordinator-agent/src/main/kotlin/com/openbank/casecoordinator/infrastructure/persistence/CaseSignalEvidenceRepository.kt:104

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

What to do

  1. Resolve the 63 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with merge-train.py (6), CustomerEdgeResource.kt (2), ComplaintProjectionConsumer.kt (2). — One of this dimension's main actionable groups (63 warning-level).
  2. Resolve the 42 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with AmlCaseEvidenceResource.kt (2), GitHubProposalAdapter.kt (2), CustomerEdgeResource.kt (2). — One of this dimension's main actionable groups (42 warning-level).
  3. Resolve the 32 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with UpstreamClient.kt (2), AccountService.kt, AgentContentSafetyGuard.kt. — One of this dimension's main actionable groups (32 warning-level).
  4. Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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

D5 · Coupling9.1 / 10Stronggated by 10 serious findings✓ Tool-verified

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

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

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

Maturity: Documented → Verified → Prevented · effective 9.1 / 10 · rule-coverage 100% · ceiling Prevented

87 production modules (Gradle+npm), 0 dependency cycle(s), 1 unstable depended-on module(s). Read from the build's own module declarations; edges a convention plugin adds from buildSrc or build-logic are not visible there; 9 module(s) off the main sequence, with abstractness counted on 85 of the 87 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).

Off the main sequence: openbank:openbank-libs-domain · ×9
Unstable project openbank:openbank-sepa-instant

What to do

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

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

D6 · Cohesion (LCOM4)9.6 / 10Stronggated by 42 serious findings✓ Tool-verified

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

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

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

Maturity: Documented → Verified → Prevented · effective 9.6 / 10 · rule-coverage 100% · ceiling Verified

42 of 1173 classes have LCOM4 above 3.

Low cohesion: CardRepositoryImpl (LCOM4 9) · ×42openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardRepositoryImpl.kt:23

What to do

  1. Resolve the 42 Low cohesion finding(s) in Cohesion (LCOM4) — start with CardRepositoryImpl.kt, Persistence.kt, StandingOrderRepositoryImpl.kt. — One of this dimension's main actionable groups (42 warning-level).
  2. Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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

D7 · Architectural Integrity6.0 / 10Adequate✓ Tool-verified

What it measures: Whether the code respects its intended layering / architecture rules.

Method: Enforcement rung (Prevented/Verified/Documented) per checkable ADR via Roslyn, plus dependency cycles via the engine shared with D5/AX3. Deterministic, exact.

Maturity: Documented → Verified → Prevented · effective 6.0 / 10 · rule-coverage 100% · ceiling Prevented

No mechanizable ADR was identified, so enforcement is not measured. Dependency cycles not checked (no project-reference graph; where this repository's language has an import-cycle lens, cycles are reported there).

Classify ADR enforcement: 1. Record Architecture Decisions · ×357docs/adr/0001-record-architecture-decisions.md

What to do

  1. Resolve the 357 Classify ADR enforcement finding(s) in Architectural Integrity — start with 0001-record-architecture-decisions.md, 0002-hexagonal-architecture-per-service.md, 0003-transactional-outbox-for-kafka.md. — One of this dimension's main actionable groups (357 recommendation-level).
  2. Enforce Architectural Integrity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D9 · Test Distribution8.9 / 10Strong✓ Tool-verified

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

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

Maturity: Documented → Verified → Prevented · effective 8.9 / 10 · rule-coverage 100% · ceiling Documented

4082 test methods: 3749 unit, 0 integration, 0 BDD, 333 e2e. The JavaScript/TypeScript suite contributes 3692 `it`/`test` case(s) across 911 test file(s) declaring at least one; its tier split is read from package names and paths only. The Python suite contributes 390 test function(s) across 34 file(s) declaring at least one — every `def test…` in a file pytest or unittest would collect, which is those frameworks' own definition of a case; a parametrize table counts once, so this is a floor. Its tier split is read from file names and paths only.

What to do

  1. Improve Test Distribution — currently 8.9/10. — 4082 test methods: 3749 unit, 0 integration, 0 BDD, 333 e2e. The JavaScript/TypeScript suite contributes 3692 `it`/`test` case(s) across 911 test file(s) declaring at least one; its tier split is read from package names and paths only. The Python suite contributes 390 test function(s) across 34 file(s) declaring at least one — every `def test…` in a file pytest or unittest would collect, which is those frameworks' own definition of a case; a parametrize table counts once, so this is a floor. Its tier split is read from file names and paths only.

Detailed fixes: d9_recommendation.md.

D10 · Test Quality10.0 / 10Stronggated by 2 serious findings✓ Tool-verified

What it measures: Whether the tests truly assert behaviour rather than just running the code.

Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

2 skipped (1 with a documented reason), 0 zero-assertion, 1 racing the wall clock, no mocking-framework packages referenced (hand-written doubles or no mocking) across 3692 tests. Measured on the JavaScript/TypeScript suite only — at least 3,088 test source file(s) (.py, .kt) went unread, so its test quality is unmeasured and is not in these counts.

Skipped test: ${rel} — not mountable: ${CANNOT_MOUNT.get(rel)}openbank-admin-ui/src/test/render-smoke.test.tsx:190
Races the wall clock: treats a timed-out admission as nonfinal and retains the idempotency day for retryopenbank-admin-ui/src/test/flaky-test-hunter-page.test.tsx:155
Mock-dominated test: closes on Escape while idle but not while busy · ×2openbank-admin-ui/src/test/devops-remediation-review-dialog.test.tsx:170
Skipped (documented): (unnamed test)openbank-admin-ui/src/test/bff-tracing.test.ts:113

What to do

  1. Resolve the 2 Mock-dominated test finding(s) in Test Quality — start with devops-remediation-review-dialog.test.tsx, iaops-agent-card.test.tsx. — One of this dimension's main actionable groups (2 recommendation-level).
  2. Resolve the 1 Skipped test finding(s) in Test Quality — start with render-smoke.test.tsx. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 Races the wall clock finding(s) in Test Quality — start with flaky-test-hunter-page.test.tsx. — One of this dimension's main actionable groups (1 warning-level).
  4. Enforce Test Quality in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D13 · REDACTED Scanning5.0 / 10Adequate✓ Tool-verified

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: Documented → Verified → Prevented · effective 5.0 / 10 · rule-coverage 100% · ceiling Prevented

1 secret(s) detected. 3 detection(s) in paths this repository declares as reviewed specimen content (its credential-scanner allowlist) were excluded.

REDACTED

What to do

  1. Resolve the 2 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).

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

D14 · License Compliance10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether the licenses of third-party packages are compatible with your policy.

Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 of 74 declared JVM dependency artifact(s) use a banned license. Licences were resolved from the POMs Maven Central publishes, over the coordinates this repository's 91 Maven/Gradle manifest(s) declare with a version resolvable from the manifest itself — the same declaration-site closure this analysis reads for dependency currency. The JVM has no lockfile a checkout is guaranteed to carry, so this is deliberately NOT the transitive closure. 62 further coordinate(s) are declared with no version at the declaration site — inherited from a parent POM, a BOM or an unresolved Gradle version reference — and are NOT graded: this verdict covers what the checkout pins, not the full transitive graph. ★ COVERAGE OF THIS VERDICT: it grades this repository's JVM dependencies and nothing else. The repository also declares a Python pyproject.toml/requirements.txt (pip/uv/Poetry) and package.json, and the licences of those dependency graphs were NOT read by this pass — a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots9.8 / 10Stronggated by 262 serious findings✓ 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: Documented → Verified → Prevented · effective 9.8 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: .github/scripts/merge-train.py (56×410=22960); .github/scripts/check-test-intelligence-ecosystem.py (48×143=6864); openbank-admin-ui/src/app/sanctions/page.tsx (27×163=4401) Repeated repair below the complexity floor: .github/scripts/check-openapi-enum-vs-domain.py (14 of 25 changes were fixes); REDACTED (7 of 11 changes were fixes); openbank-admin-ui/src/app/layout.tsx (7 of 9 changes were fixes)

Hotspot: .github/scripts/merge-train.py · ×229.github/scripts/merge-train.py:4809
Repeated repair: .github/scripts/check-openapi-enum-vs-domain.py · ×33.github/scripts/check-openapi-enum-vs-domain.py:549

What to do

  1. Resolve the 229 Hotspot finding(s) in Churn × Complexity Hotspots — start with page.tsx (95), REDACTED (12), merge-train.py. — One of this dimension's main actionable groups (229 warning-level).
  2. Resolve the 33 Repeated repair finding(s) in Churn × Complexity Hotspots — start with REDACTED (3), page.tsx (2), check-openapi-enum-vs-domain.py. — One of this dimension's main actionable groups (33 warning-level).

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

D17 · Explicit Debt10.0 / 10Stronggated by 6 serious findings✓ Tool-verified

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

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

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

6 deducted task-comment markers across 492859 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.

TodoComment · ×6openbank-release-steward/src/main/kotlin/com/openbank/releasesteward/infrastructure/adapter/GitHubOpenPrReadAdapter.kt:34

What to do

  1. Resolve the 6 TodoComment finding(s) in Explicit Debt — start with GitHubOpenPrReadAdapter.kt (2), GitHubReadAdapter.kt (2), LoggingStatementDeliveryAdapter.kt. — One of this dimension's main actionable groups (6 warning-level).
  2. Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D19 · Documentation Quality10.0 / 10Exemplary○ Nothing flagged

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

Method: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

1 of 1 documentation facets pass in full. 1106 document(s) read across 3 unit(s).

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.md.

D20 · ADR Quality9.0 / 10Exemplary✓ Tool-verified

What it measures: Whether architecture decisions are recorded well (context, decision, consequences).

Method: Every ADR read by its section structure: nine located rules (a missing Decision, Context or Consequences section, a stale status, two records deciding the same question, a dangling supersede link, a number-only title, a single option, no named cost, no status where the log uses one, no enforcement field where the log adopted one), each a fixed deduction from 10; the score is the mean over evaluated records. Deterministic, no model. Advisory.

Maturity: Documented → Verified → Prevented · effective 9.0 / 10 · rule-coverage 100% · ceiling Documented

357 of 358 evaluated ADRs have a defect readable from the log itself (a missing or empty section, no title, a single option, consequences with no cost, no status, a missing enforcement field, a status the log contradicts, a dangling link, an unlinked second decision on one question, a date that is no calendar day). How well each record argues its case is not measured.

ADR lacks an enforcement field · ×357docs/adr/0001-record-architecture-decisions.md:13detected by adr-integrity

✓ On the Gold path — maintain.

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

D21 · Naming Consistency8.9 / 10Strong✓ Tool-verified

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

Method: Seven vocabulary-free rules (N1-N7) mine each naming convention from the repository and flag a name that breaks a convention its structural peers in the same unit follow; production C# and TypeScript, each its own population. Deterministic, no model, no sample. Advisory.

Maturity: Documented → Verified → Prevented · effective 8.9 / 10 · rule-coverage 100% · ceiling Verified

3 naming inconsistencies among 276 declarations measured against a convention their peers follow.

`baseURL` spells `URL` where 64 names in the project spell it `Url` · ×2openbank-admin-ui/e2e/helpers/auth.ts:31
`traceID` spells `ID` where 209 names in the project spell it `Id`openbank-admin-ui/src/lib/observability/tempo-evidence.ts:4

What to do

  1. Resolve the 2 `baseURL` spells `URL` where 64 names in the project spell it `Url` finding(s) in Naming Consistency — start with auth.ts (2). — One of this dimension's main actionable groups (2 recommendation-level).
  2. Resolve the 1 `traceID` spells `ID` where 209 names in the project spell it `Id` finding(s) in Naming Consistency — start with tempo-evidence.ts. — One of this dimension's main actionable groups (1 recommendation-level).

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

D24 · Comment Value10.0 9.8 / 10Exemplary○ Nothing flagged

What it measures: Whether comments are worth it — explaining WHY (valuable) rather than WHAT (redundant).

Method: Every inline C# comment compared word by word with the identifiers, literals and constructs of the code it annotates (taken from the syntax); a comment whose words that code already contains is redundant, as are closing-brace labels and generator template text. Comments giving a reason or a reference are kept; other scripts and languages are not judged. Deterministic, exhaustive, advisory.

Maturity: Documented → Verified → Prevented · effective 9.8 / 10 · rule-coverage 98% · ceiling Documented

0 of 2334 judged comments only repeat the code they sit on (0.0 %). 81 comment(s) in another language or script were not judged.

doc comments repeat the namesopenbank-admin-ui/src/lib/loyalty/lipaContent.ts:21

✓ On the Gold path — maintain.

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

D25 · ADR Conformance5.3 / 10Adequate✓ Tool-verified

What it measures: Whether the code actually follows the decisions recorded in the project's ADRs.

Method: Each binding ADR read for checkable forms: a backticked element its Decision section rules out, a ruled-out package the manifests declare, a forbidden module dependency, an opt-in adr-rules block, and a declared delivery status the code does not yet carry. A prose decision with no checkable form is unverifiable, neither a finding nor a pass. Deterministic, no model. Advisory.

Maturity: Documented → Verified → Prevented · effective 5.3 / 10 · rule-coverage 100% · ceiling Verified

108 of 228 checkable records are broken by the code or by their own declared delivery (228 of 228 binding records state a rule in checkable form or declare their delivery; prose decisions are unverifiable).

ADR accepted but its delivery is incomplete · ×108docs/adr/0006-asyncapi-for-kafka-topics.md:4detected by adr-delivery

What to do

  1. Resolve the 108 ADR accepted but its delivery is incomplete finding(s) in ADR Conformance — start with 0006-asyncapi-for-kafka-topics.md, 0007-vault-for-secrets-management.md, 0014-openbank-libs-centralization-roadmap.md. — One of this dimension's main actionable groups (108 recommendation-level).
  2. Enforce ADR Conformance in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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

D26 · Project Cohesion4.3 / 10Weak✓ Tool-verified

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

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

Maturity: Documented → Verified → Prevented · effective 4.3 / 10 · rule-coverage 100% · ceiling Documented

25 of 85 build units (Gradle, npm) flagged as possibly oversized/incoherent.

Projects may be oversized for their cohesion

What to do

  1. Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).

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

D27 · Navigability9.9 / 10Exemplary✓ Tool-verified

What it measures: How far you must trace to follow a call — low indirection and co-located slices read easier.

Method: Call indirection (interface hops, cross-namespace calls, slice-locality scaled) over a sampled set of method invocations, size-aware baseline. Sampled; confidence discounted by symbol-resolution gaps. C# also names each pass-through layer (a class whose every public method only forwards its own parameters to one collaborator) as a located finding; the score is not affected.

Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.

Maturity: Documented → Verified → Prevented · effective 9.9 / 10 · rule-coverage 100% · ceiling Documented

34 % of calls cross a namespace and 3 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: small — navigation cost is tolerated. Measured over the .kt source only — this repository's .tsx was not sampled for call sites, so this score covers part of the tree, not all of it.

✓ On the Gold path — maintain.

Detailed fixes: d27_recommendation.md.

D28 · Secrets (history)9.0 / 10Adequategated by 1 critical finding✓ Tool-verified

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

Method: REDACTED scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.

Maturity: Documented → Verified → Prevented · effective 9.0 / 10 · rule-coverage 100% · ceiling Documented

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

REDACTED
REDACTED

What to do

  1. Resolve the 1 REDACTED finding(s) in Secrets (history) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
  2. Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).

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

D29 · Static Analysis (SAST)0.0 / 10Critical✓ Tool-verified

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: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

282 finding(s): 0 critical, 116 high, 158 medium, 8 low. 1 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 112 file(s) — `.github/scripts/auto-deploy-reconcile-lag.sh` (line 287, line 333), `.github/scripts/can-i-deploy-gate.sh` (line 259, line 260), `.github/scripts/check-adr-delivery-scripts.sh` (lines 80–181), `.github/scripts/check-adr-registry.sh` (lines 46–678), `.github/scripts/check-agent-review-happened.sh` (line 54), … (+107 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 36 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

  1. Resolve the 86 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (86). — One of this dimension's main actionable groups (86 issue-level).
  2. Resolve the 11 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (5), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (11 issue-level).
  3. Resolve the 6 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (6 issue-level).

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

D30 · Dependency Vulnerabilities0.0 / 10Critical✓ Tool-verified

What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.

Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05. Advisory since rubric-2026.11.2 (CAI decision 0006): every row is a match against a vulnerability database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

77 finding(s): 4 critical, 50 high, 20 medium, 3 low. 33 package override(s) declared in osv-scanner.toml.

REDACTED
REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 50 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (49), REDACTED. — One of this dimension's main actionable groups (50 issue-level).
  2. Resolve the 20 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (20). — One of this dimension's main actionable groups (20 warning-level).
  3. Resolve the 4 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (4). — One of this dimension's main actionable groups (4 issue-level).

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

D31 · IaC & Container Security0.0 / 10Critical✓ Tool-verified

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

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

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

1530 finding(s): 0 critical, 1 high, 1275 medium, 254 low.

REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 1275 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (318), REDACTED (143), REDACTED (32). — One of this dimension's main actionable groups (1275 warning-level).
  2. Resolve the 1 High IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
  3. Resolve the 254 Low IaC finding(s) in IaC & Container Security — start with REDACTED (28), REDACTED (26), REDACTED (18). — One of this dimension's main actionable groups (254 recommendation-level).

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

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

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

Method: Heuristic PII/GDPR LEAK scan via semgrep across the repo, using our own ruleset: personal data crossing a boundary it should not — reaching a log/console sink, a URL or query string, or unprotected browser storage. Matches map to severity and a 0-10 wide normalizer. A clean sweep is unscored rather than an unearned 10, and is a statement about the leak paths checked only — this dimension does not inventory the personal data a repository holds (the personal-data map and the C1-C5 compliance cards do that), so it never reports that a repository has no personal-data surface. Reported LOUDLY as a measurement gap if the ruleset is missing from the analyzer image. Exhaustive over the leak paths, advisory-leaning; degrades on parse failure.

Maturity: Documented → Verified → Prevented · effective 1.0 / 10 · rule-coverage 100% · ceiling Documented

8 finding(s): 0 critical, 6 high, 2 medium, 0 low. semgrep could not parse 124 file(s) — `build-logic/src/main/kotlin/openbank.quarkus-service.gradle.kts`, `openbank-account-service/src/main/kotlin/com/openbank/account/application/port/out/ProductRevisionPinMetrics.kt`, `openbank-account-service/src/main/kotlin/com/openbank/account/domain/model/AccountAuthorization.kt`, `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/kafka/PartyEventConsumer.kt`, `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/entity/AccountEntities.kt`, … (+119 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.

REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 6 REDACTED finding(s) in Data Compliance (PII/GDPR) — start with REDACTED (2), REDACTED, REDACTED. — One of this dimension's main actionable groups (6 issue-level).
  2. Resolve the 1 REDACTED finding(s) in Data Compliance (PII/GDPR) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 REDACTED finding(s) in Data Compliance (PII/GDPR) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d32_recommendation.md · top locations in Appendix A, every location in findings.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: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

Every significant source file has living knowledge — recently and meaningfully worked. Counted over 2987 of the 4398 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

✓ On the Gold path — maintain.

Detailed fixes: d34_recommendation.md.

D35 · Change Coupling10.0 / 10Stronggated by 3 serious findings✓ 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. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: REDACTED↔page.tsx 90%; PartyPort.kt↔PartyRepositoryImpl.kt 64%; StepEditor.tsx↔Campaign.kt 60%

Change coupling: PartyPort.kt ↔ PartyRepositoryImpl.kt · ×2openbank-party-service/src/main/kotlin/com/openbank/party/application/port/in/PartyPort.kt:1
Change-coupling hub: page.tsx → REDACTED, page.tsx, StepEditor.tsxopenbank-admin-ui/src/app/campaigns/[id]/page.tsx

What to do

  1. Resolve the 2 Change coupling finding(s) in Change Coupling — start with PartyPort.kt, StepEditor.tsx. — One of this dimension's main actionable groups (2 warning-level).
  2. Resolve the 1 Change-coupling hub finding(s) in Change Coupling — start with page.tsx. — One of this dimension's main actionable groups (1 warning-level).

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

D36 · Supply-chain Provenance & Signing7.5 / 10Strong✓ 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: Documented → Verified → Prevented · effective 7.5 / 10 · rule-coverage 100% · ceiling Documented

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

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 3 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (3 warning-level).
  2. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-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: Documented → Verified → Prevented · 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.

D40 · Network Egress Confinement10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether Kubernetes workloads restrict network EGRESS with a NetworkPolicy (or Cilium policy), limiting where a compromised pod can send data or reach a command-and-control server. Presence of committed egress-restricting policy, not runtime enforcement.

Method: Deterministic YAML-manifest inspection (no external tool, no Roslyn — language-agnostic): Kubernetes workloads gate applicability; credits a NetworkPolicy / Cilium policy that restricts egress (policyTypes: [Egress] / egress rules). Reward-leaning (neutral floor climbing to 10, never a deduction — baseline misconfigs stay with D31). Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

Kubernetes workloads are covered by a network policy that restricts egress.

✓ On the Gold path — maintain.

Detailed fixes: d40_recommendation.md.

D41 · Kernel & Syscall Confinement7.8 / 10Strong✓ Tool-verified

What it measures: Whether Kubernetes workloads confine the kernel boundary — a seccomp profile (RuntimeDefault/Localhost) plus an AppArmor/SELinux mandatory-access-control layer — shrinking the syscall attack surface a container escape would use. Presence of committed confinement config, not runtime enforcement.

Method: Deterministic YAML-manifest inspection (no external tool, no Roslyn): on Kubernetes workloads, credits a seccomp profile (RuntimeDefault/Localhost) and an AppArmor/SELinux MAC layer. Reward-leaning (neutral floor climbing to 10); NotApplicable without workloads. Deterministic.

Maturity: Documented → Verified → Prevented · effective 7.8 / 10 · rule-coverage 100% · ceiling Documented

153/174 workload(s) run every container under a seccomp profile; 0/174 declare an AppArmor/SELinux profile.

No seccomp profile · ×21REDACTED:111

What to do

  1. Resolve the 21 No seccomp profile finding(s) in Kernel & Syscall Confinement — start with REDACTED (17), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (21 recommendation-level).

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

D42 · Runtime Threat Enforcement10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the Kubernetes deployment wires runtime threat enforcement — a detection engine (Tetragon/Falco) and/or an admission-control policy gate (Kyverno / OPA Gatekeeper / PodSecurity). Presence of committed policy, not a runtime guarantee.

Method: Deterministic YAML-manifest inspection (no external tool, no Roslyn): on Kubernetes workloads, credits a runtime threat-detection engine (Tetragon TracingPolicy / Falco) and an admission-control policy (Kyverno / OPA Gatekeeper / PodSecurity). Reward-leaning; NotApplicable without workloads. Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

The deployment wires runtime threat detection and an admission-control policy gate.

✓ On the Gold path — maintain.

Detailed fixes: d42_recommendation.md.

D43 · Malicious Dependencies10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Reported apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.

Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. Advisory since rubric-2026.11.2 (CAI decision 0006): the malicious-package feed is a database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No dependency in any ecosystem this repository declares is published as malicious. 33 package override(s) declared in osv-scanner.toml.

✓ On the Gold path — maintain.

Detailed fixes: d43_recommendation.md.

D44 · Platform End-of-Life10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.

Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 21 platform declaration(s) and 208 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.

✓ On the Gold path — maintain.

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

Coverage: Population: image/media elements — img, area, input[type=image], svg, video, object, embed, canvas — across the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and dynamic-attribute elements are skipped. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is NOT read by any producer, so it contributes no element to this population; where such a frontend is present the card discloses it as an analyzer gap rather than scoring around it.

AC2 · Forms & labels7.8 / 10Exemplary✓ 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, a click handler on a plain element names the control it declares, 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.

Coverage: Population: form controls, buttons, links, fieldsets and known UI-library field components in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and spread/dynamic-attribute elements are skipped, so a control whose label arrives through a spread or a runtime expression is deliberately not judged. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. (×2) — openbank-admin-ui/src/app/campaigns/new/page.tsx:1201, openbank-admin-ui/src/app/product-studio/page.tsx:629
  • This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label. — openbank-admin-ui/src/app/cards/disputes/page.tsx:265
  • A fieldset groups related controls but has no <legend> to name the group. Add a <legend> as its first child — or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption's id instead, which names the group without rendering a second one. (×2) — openbank-admin-ui/src/app/document-templates/page.tsx:673, openbank-admin-ui/src/app/pid/page.tsx:338
  • This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id. (×3) — openbank-admin-ui/src/app/sanctions/page.tsx:978, openbank-admin-ui/src/app/system/agent/page.tsx:394, openbank-admin-ui/src/components/cards/ConfirmTransitionDialog.tsx:109

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 structure7.6 / 10Strong✓ 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.

Coverage: Population: the PARSED MARKUP documents (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx). The page-level checks — lang, title, single main landmark — fire ONCE PER FULL DOCUMENT (an <html> root) and never on a partial or component fragment, so a repo of fragments is assessed only on the per-element checks (heading order, table headers, iframe titles, meta-refresh, zoom). Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope). (×6) — openbank-admin-ui/src/app/docs/compliance/page.tsx:297, openbank-admin-ui/src/components/balance-sheet/InstrumentsPanel.tsx:122, openbank-pension-service/src/main/resources/document-templates/pension-annual-statement-cs.hbs:7, …
  • A page with no <title> gives no name in the tab, history or screen-reader page list. Declare it the way this router does — Next App Router `export const metadata = { title }`, React Router/Remix `export function meta`, TanStack Start `head`, or a Helmet/Head component. — openbank-admin-ui/src/app/global-error.tsx:24
  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. (×5) — openbank-admin-ui/src/app/global-error.tsx:24, openbank-infra/web/landing/classic.html:2, openbank-infra/web/landing/pay/v1.html:2, …
  • Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one. (×3) — openbank-infra/web/landing/ai-as-code.html:79, openbank-infra/web/landing/controls-as-code.html:90, openbank-infra/web/landing/product-as-code.html:89

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 semantics3.7 / 10Weak✓ 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 element the repo's own CSS styles `cursor: pointer` without giving it any of the three, no unfocusable element whose only binding is a mouse enter/leave pair or a double-click, 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.

Coverage: Population: elements that pose a keyboard-semantics question, in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) — a non-natively-interactive element carrying a click handler, a double-click or hover enter/leave binding, a pointer-only gesture on a tabindex="0" element, or `cursor: pointer` from the repo's own CSS; an href-less or placeholder-href (#, javascript:) anchor; and any element with a positive tabindex. Natively interactive elements used correctly (<button>, <a href>, form controls) are NOT in the population — there is nothing to judge — so a page of nothing but correct controls gives AC4 nothing to measure. Keyboard reachability is judged from the markup, never from a rendered page. ★ An interactive element declared in a tagged-template (html`…`) or hyperscript frontend is NOT in this population — no producer reads either — so an empty population is reported as an analyzer gap, never as "this repository has no interactive elements".

  • This <tr> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}="0" so the element can receive that focus. (×10) — openbank-admin-ui/src/app/aml/page.tsx:159, openbank-admin-ui/src/app/clearing/page.tsx:125, openbank-admin-ui/src/app/fx/page.tsx:462, …
  • A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler. (×3) — openbank-admin-ui/src/app/docs/lineage/page.tsx:283, openbank-admin-ui/src/components/flow/StageBoard.tsx:178, openbank-admin-ui/src/components/lending/OriginationPipeline.tsx:198
  • This <div> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}="0" so the element can receive that focus. (×2) — openbank-admin-ui/src/app/temporal/page.tsx:866, openbank-admin-ui/src/components/docs/DocsHub.tsx:252
  • This <div role="dialog"> is a modal dialog, but focus is moved into it, but nothing keeps it there: Tab walks out to the page behind, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native <dialog> opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close. — openbank-admin-ui/src/components/cards/IssueCardDialog.tsx:322
  • This <div role="alertdialog"> is a modal dialog, but focus is moved into it, but nothing keeps it there: Tab walks out to the page behind, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native <dialog> opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close. — openbank-admin-ui/src/components/notifications/NotificationsPage.tsx:451
  • A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabIndex={0}. — openbank-admin-ui/src/components/party/CustomerContextGraph.tsx:185

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.

Coverage: Population: elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) that carry a role or an aria-* attribute; roles and token values are checked against the ARIA enums exhaustively within that set. An expression-valued (dynamic) role or aria-* value is skipped rather than guessed, and markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

AC6 · Visual & motion safety7.9 / 10Exemplary✓ Tool-verified

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.

Coverage: Population: styled elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx), plus in-repo <style> blocks, in-repo .css files and CSS-in-JS literals. Colour contrast is computed from LITERAL colour pairs only (hex/rgb/hsl/named, including var() tokens and Tailwind neutral utilities) — computed, runtime-themed and external-CDN colour is never resolved, so this is a partial read of contrast by construction. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • <input> takes keyboard focus, and outline:none/0 in its inline style removes the focus ring with no chance of a :focus replacement (an inline style outranks every stylesheet rule). Keep a visible focus indicator. (×10) — openbank-admin-ui/src/app/aml/page.tsx:126, openbank-admin-ui/src/app/cards/page.tsx:184, openbank-admin-ui/src/app/clearing/page.tsx:99, …
  • This element's Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade. (×2) — openbank-admin-ui/src/app/segments/page.tsx:279, openbank-admin-ui/src/app/segments/page.tsx:363
  • <textarea> takes keyboard focus, and outline:none/0 in its inline style removes the focus ring with no chance of a :focus replacement (an inline style outranks every stylesheet rule). Keep a visible focus indicator. — openbank-admin-ui/src/components/cards/ConfirmTransitionDialog.tsx:112
  • `.overall-banner.is-operational .overall-icon` sets color: #fff on background-color: #1ab286 — 2.7:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet — editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from). — openbank-infra/web/status/styles.css:4
  • `.service-icon` sets color: #1468ef on background-color: #e8f2ff — 4.4:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet — editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from). — openbank-infra/web/status/styles.css:5
  • `.bac nav button[aria-current=page]` sets color: #1f6feb on background-color: #e5eeff — 4.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — openbank-infra/web/landing/bank-as-code.css:65
  • `.chest` sets color: white on background-color: #6366f1 — 4.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — openbank-admin-ui/src/components/agent/AgentIdentity.module.css:111
  • `.ob-skip-link` sets color: #fff on background-color: #a5b4fc — 2.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — openbank-admin-ui/src/app/globals.css:299
  • `.btn-danger` sets color: #fff on background-color: #f87171 — 2.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — openbank-admin-ui/src/app/globals.css:469
  • `.campaign-surface-map-icon` sets color: #635bff on background-color: #eeecff — 4.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — openbank-admin-ui/src/app/globals.css:709
  • `.campaign-contact-rules` sets color: #cbd5e1 on background-color: #f8fafc — 1.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — openbank-admin-ui/src/app/globals.css:730
  • `.campaign-recipe-icon` sets color: #635bff on background-color: #eeecff — 4.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — openbank-admin-ui/src/app/globals.css:750
  • `.campaign-readiness-list [data-state='attention'] > span` sets color: #fcd34d on background-color: #fef3c7 — 1.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — openbank-admin-ui/src/app/globals.css:810
  • `.campaign-desk-heading > span` sets color: #fff on background-color: #a5b4fc — 2.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — openbank-admin-ui/src/app/globals.css:911
  • `[data-tooltip]::after` sets color: #fff on background-color: #f8fafc — 1.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — openbank-admin-ui/src/app/globals.css:1085
  • `.node:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — openbank-admin-ui/src/components/party/CustomerContextGraph.module.css:238
  • `.hero:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — openbank-admin-ui/src/app/privacy/privacy.module.css:9
  • `.quickLink:focus-visible` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — openbank-admin-ui/src/app/dashboard/Dashboard.module.css:349
  • `.panel:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — openbank-admin-ui/src/app/auth/login/login.module.css:50

What to do

  • Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
AC7 · A11y enforcement10.0 / 10Exemplary✓ 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.

Coverage: Population: the repository's own tooling configuration — lint config, test and CI files — NOT the markup. It is read for a configured accessibility checker and an automated accessibility assertion (axe/pa11y/Lighthouse, or a native-toolkit equivalent), and it credits an INVOCATION, never a mention: a licence filename, an import comment or a doc reference earns no rung. Enforcement configured entirely outside the repository leaves no evidence here and cannot be credited.

AX10 · Code composition5.7 / 10Adequate✓ Tool-verified

Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.

Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.

Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.

AX2 · Stateful singletons6.5 / 10Strong✓ Tool-verified

Other · Architecture — Whether singleton services avoid mutable shared instance state that concurrent callers would race on.

Method: Roslyn scan: singleton field mutations unguarded by lock or Interlocked, per type; syntax-based guard detection. Deterministic, traceable per field.

  • `TreasuryCloseParticipationScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 80). — openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseParticipationScheduler.kt:63
  • `FixingScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `registerLiveness` at line 41). — openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/scheduler/FixingScheduler.kt:30
  • `InterestAccrualScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `registerLiveness` at line 65). — openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/scheduler/InterestAccrualScheduler.kt:48
  • `NostroBreakScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `register` at line 51). — openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/scheduler/NostroBreakScheduler.kt:35
  • `PostingIntentReconcileScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `registerLiveness` at line 58). — openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/scheduler/PostingIntentReconcileScheduler.kt:42
  • `SimulatedMarketScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `registerLiveness` at line 41). — openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/scheduler/SimulatedMarketScheduler.kt:30
  • `PaymentWorkerRegistrar` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (workerFactory; e.g. `workerFactory` in `onStart` at line 41). — openbank-transaction-service/src/main/kotlin/com/openbank/transaction/application/workflow/PaymentWorkerRegistrar.kt:23
  • `SwiftBookingAgeGauge` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 53). — openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/observability/SwiftBookingAgeGauge.kt:27
  • `SwiftSettlementMetrics` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (counters; e.g. `counters` in `bindTo` at line 32). — openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/observability/SwiftSettlementMetrics.kt:20
  • `InstitutionTransferResolutionSweeper` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `registerLiveness` at line 55). — openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/scheduler/InstitutionTransferResolutionSweeper.kt:39
  • `SwiftSettlementRedriveScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 42). — openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/scheduler/SwiftSettlementRedriveScheduler.kt:30
  • `PeriodCloseScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `registerLiveness` at line 41). — openbank-statement-service/src/main/kotlin/com/openbank/statement/infrastructure/scheduler/PeriodCloseScheduler.kt:31
  • `StandingOrderExecutionScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 58). — openbank-standing-order-service/src/main/kotlin/com/openbank/standingorder/infrastructure/scheduler/StandingOrderExecutionScheduler.kt:39
  • `SettlementMetricsAdapter` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (registry; e.g. `registry` in `bindTo` at line 77). — openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/observability/SettlementMetricsAdapter.kt:60
  • `SettlementStrandedGauge` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 138). — openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/observability/SettlementStrandedGauge.kt:103
  • `OperatorApprovalPurgeScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness, purged; e.g. `liveness` in `register` at line 50). (×2) — openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/scheduler/OperatorApprovalPurgeScheduler.kt:36, openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/scheduler/OperatorApprovalPurgeScheduler.kt:36
  • `FraudScoringMetrics` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (realOutcomes, syntheticOutcomes, unrecognisedOutcomes; e.g. `realOutcomes` in `bindTo` at line 77). (×2) — openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/observability/FraudScoringMetrics.kt:54, openbank-sepa-instant/src/main/kotlin/com/openbank/sepainstant/infrastructure/observability/FraudScoringMetrics.kt:54
  • `SepaBookingAgeGauge` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 53). — openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/observability/SepaBookingAgeGauge.kt:27
  • `SepaRefundUnsettledAgeGauge` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 63). — openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/observability/SepaRefundUnsettledAgeGauge.kt:28
  • `SepaSettlementMetrics` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (counters; e.g. `counters` in `bindTo` at line 31). — openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/observability/SepaSettlementMetrics.kt:19
  • `SecurityScannerService` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (lastReport; e.g. `lastReport` in `scanAll` at line 35). — openbank-security-scanner/src/main/kotlin/com/openbank/securityscanner/application/SecurityScannerService.kt:20
  • `MandateExpiryScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 36). — openbank-sdd-service/src/main/kotlin/com/openbank/sdd/infrastructure/scheduler/MandateExpiryScheduler.kt:27
  • `DecisionEvidencePurgeScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness, purged; e.g. `liveness` in `register` at line 50). — openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/scheduler/DecisionEvidencePurgeScheduler.kt:36
  • `SanctionsListService` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (refreshUnhealthy, publishUnhealthy; e.g. `refreshUnhealthy` in `refreshOrDrain` at line 253). — openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/application/usecase/SanctionsListService.kt:38
  • `EodSnapshotScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness, createdCounter, replayedCounter; e.g. `liveness` in `onStart` at line 93). — openbank-risk-engine/src/main/kotlin/com/openbank/risk/infrastructure/schedule/EodSnapshotScheduler.kt:69
  • `ReferenceCurveSetScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness, createdCounter; e.g. `liveness` in `onStart` at line 53). — openbank-risk-engine/src/main/kotlin/com/openbank/risk/infrastructure/schedule/ReferenceCurveSetScheduler.kt:37
  • `PensionStateGaugeRefresher` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `register` at line 174). — openbank-pension-service/src/main/kotlin/com/openbank/pension/infrastructure/observability/PensionStateGauges.kt:165
  • `IncentiveClaimScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (claimLiveness, sweepLiveness; e.g. `claimLiveness` in `registerLiveness` at line 46). — openbank-pension-service/src/main/kotlin/com/openbank/pension/infrastructure/scheduler/IncentiveClaimScheduler.kt:34
  • `RecordingStateAgencyGateway` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (sent; e.g. `sent` in `transmit` at line 49). — openbank-pension-service/src/main/kotlin/com/openbank/pension/infrastructure/statecontribution/StateAgencyGateways.kt:46
  • `StateContributionDeadlineScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `register` at line 56). — openbank-pension-service/src/main/kotlin/com/openbank/pension/infrastructure/statecontribution/StateContributionDeadlineScheduler.kt:40
  • `PensionFundStateGaugeRefresher` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `register` at line 244). — openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/observability/PensionFundStateGauges.kt:235
  • `AbandonedRegistrationCleaner` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `registerLiveness` at line 78). — openbank-onboarding-service/src/main/kotlin/com/openbank/onboarding/infrastructure/scheduler/AbandonedRegistrationCleaner.kt:56
  • `DeviceTokenSweepJob` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `registerLiveness` at line 59). — openbank-notification-service/src/main/kotlin/com/openbank/notification/infrastructure/DeviceTokenSweepJob.kt:42
  • `NotificationOutboxDeadLetterJanitorJob` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `registerLiveness` at line 71). — openbank-notification-service/src/main/kotlin/com/openbank/notification/infrastructure/NotificationOutboxDeadLetterJanitorJob.kt:56
  • `LeafExpirySweep` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (expiryLiveness, provisioningLiveness; e.g. `expiryLiveness` in `registerLiveness` at line 48). — openbank-loyalty-service/src/main/kotlin/com/openbank/loyalty/infrastructure/scheduler/LeafExpirySweep.kt:40
  • `OutboxSentRetentionJob` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `registerLiveness` at line 79). — openbank-libs-runtime/src/main/kotlin/com/openbank/libs/persistence/outbox/OutboxSentRetentionJob.kt:54
  • `LendingAdapterBindingVerifier` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (gaugeValues; e.g. `gaugeValues` in `publish` at line 152). — openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/adapter/LendingAdapterBindingVerifier.kt:94
  • `CompliancePackRefresher` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 68). — openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/compliance/CompliancePackRefresher.kt:56

What to do

  • Java/Kotlin: keep container singletons stateless — move per-request data into locals or a request-scoped bean — or back the state with java.util.concurrent types (ConcurrentHashMap, AtomicInteger/AtomicReference), guard it with synchronized / a Lock (Kotlin: withLock), or mark a flag that is only ever overwritten volatile (@Volatile).
AX3 · Project dependency cycles10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).

Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.

AX4 · Dependency direction10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.

Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.

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

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

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

AX6 · Interface segregation10.0 / 10Exemplary✓ Tool-verified

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

Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.

C1 · Data Protection5.5 / 10Adequate✓ Tool-verified

Other · Security — Whether sensitive data is encrypted at rest and in transit and keys are vaulted.

Method: Roslyn plus filesystem scan: encryption presence (EF ColumnEncryption, key-vault references, HTTPS enforcement) and key-derivation KDF detection. Deterministic.

What to do

  • Strengthen data-at-rest protection: vault your keys (AWS KMS / Secrets Manager, GCP KMS / REDACTED Manager, Azure Key Vault, HashiCorp Vault — not a key compiled into the app) and encrypt the store that holds the personal data (SQLCipher, a Realm encryptionKey, field-level AEAD) — partial coverage still leaves gaps.
  • Enforce HTTPS on the server that receives this data: terminate TLS in it (Ktor's sslConnector, Spring's server.ssl and requiresSecure, Netty's SslContextBuilder.forServer) and send Strict-Transport-Security (Ktor's HttpsRedirect), or run it behind a TLS-terminating proxy, so data in transit is always encrypted.
C3 · Audit Trail10.0 / 10Exemplary✓ Tool-verified

Other · Security — Whether changes to sensitive data are recorded (who, what, when) for compliance + incident response.

Method: Roslyn scan: audit-trail mechanism graded (SaveChanges interceptor/immutable AuditLog/[Audited] strong; bare IAuditable/AddAuditing weak). Deterministic.

C4 · Data Retention10.0 / 10Exemplary✓ Tool-verified

Other · Security — Whether data has a defined lifetime — retention periods, TTLs, cleanup jobs (storage limitation).

Method: Roslyn scan: retention/TTL configuration presence in schema; CascadeDelete detected but not scored as retention control. Deterministic, gated by PII presence.

C5 · Data-Subject Rights6.0 / 10Adequate✓ Tool-verified

Other · Security — Whether GDPR data-subject requests are supported in code — erasure, export/portability, consent.

Method: Roslyn scan: GDPR data-subject-rights corroboration (erasure/export/consent vocabulary co-occurring with subject-id store crossing or explicit GDPR pattern). Deterministic, gated by PII.

  • Corroborated rights: erasure ✓ · export ✗ · consent ✓. Each tick means this scan found code in the repository implementing that right — a deletion/anonymisation path for erasure, a data-export or portability path for export, and consent state recorded alongside the personal data it authorises. A ✗ therefore means no such code was recognised HERE, not that the right is unsupported: a capability provided by a platform, a manual runbook, or code spelled in a way this scan does not match is not visible to it. Confirm before treating a cross as a gap; where it is one, the right has to be fulfilled manually.

What to do

  • Implement data export/portability for a data subject (a machine-readable export of their personal data).
DM1 · Aggregate boundaries10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether aggregates reference each other by identity (id) rather than by direct object reference — the core DDD consistency-boundary rule.

Method: Roslyn (DDD-gated): aggregate roots identified by convention; each aggregate field checked for direct references to other aggregates versus id-only. Deterministic, DDD-native.

Coverage: Population: aggregate roots identified by AggregateRoot/IAggregateRoot base/interface NAME convention; reference-by-identity then checked exhaustively within that set — a root not using those names is invisible.

DM10 · One transaction, one aggregate9.7 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether a single operation mutates more than one aggregate root. An aggregate is a consistency boundary, so saving two together fuses them into one — the second's invariants come to depend on the first's transaction, and the pair can no longer be separated. Reads of other aggregates are not counted.

Method: Neutral body surface (DDD-gated): every method body scanned for repository WRITE calls (Add/Update/Save/Remove/Delete/Insert/Store and their async forms), keyed on the ARGUMENT type rather than the repository type — three `IRepository<T>` writes collapse to one repository but are three distinct aggregates. Reads (Get/Find/Load/Query) are excluded, so loading another aggregate for context never counts. Score is offending methods over methods that write at all. Deterministic.

  • `DeathClaimService.notify` saves `DeathClaim`, `TerminationNotice` in a single operation. Each is its own consistency boundary, so committing them together makes the second's invariants depend on the first's transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated — into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event. — openbank-pension-service/src/main/kotlin/com/openbank/pension/application/exit/DeathClaimService.kt:44
  • `OnboardingService.submitAssessment` saves `SuitabilityAssessment`, `OnboardingApplication` in a single operation. Each is its own consistency boundary, so committing them together makes the second's invariants depend on the first's transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated — into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event. — openbank-pension-service/src/main/kotlin/com/openbank/pension/application/onboarding/OnboardingService.kt:219
  • `OnboardingService.reassess` saves `SuitabilityAssessment`, `OnboardingApplication` in a single operation. Each is its own consistency boundary, so committing them together makes the second's invariants depend on the first's transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated — into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event. — openbank-pension-service/src/main/kotlin/com/openbank/pension/application/onboarding/OnboardingService.kt:279
  • `OnboardingService.sign` saves `TransferRequest`, `OnboardingApplication` in a single operation. Each is its own consistency boundary, so committing them together makes the second's invariants depend on the first's transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated — into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event. — openbank-pension-service/src/main/kotlin/com/openbank/pension/application/onboarding/OnboardingService.kt:509

What to do

  • Mutate one aggregate per operation and let the others follow from a domain event — the second aggregate reaching consistency a moment later is the design, not a compromise.
DM11 · Constructible invalid state10.0 / 10Exemplary○ Nothing flagged

Other · Domain Modelling — Whether an aggregate can be constructed in a state its own rules forbid — a public constructor that takes a raw primitive, stores it, and validates nothing, with no factory beside it. A constructor taking only value objects is not counted: each parameter has already validated itself.

Method: Neutral surface (DDD-gated): each non-abstract entity/aggregate checked for a PUBLIC constructor taking at least one RAW PRIMITIVE parameter whose body contains no guard token (throw / Guard. / Ensure. / ArgumentException / CheckRule / an XException.ThrowIf* helper). C#: a static factory beside a public constructor does not exempt it, and a public parameterless constructor followed by public raw-primitive setters that refuse nothing is charged when the type also declares a validating way in (a guarded constructor or a guarding static method returning the type); TypeScript: a static Create/Of/From/New factory exempts the type. A constructor taking only value objects is never charged -- measured: 64 of 87 unguarded public constructors on the C# corpus take value objects only, so ignoring parameter types would be 73% false positives. One finding per entity. Deterministic.

DM12 · Ambient inputs in the domain10.0 / 10Exemplary○ Nothing flagged

Other · Domain Modelling — Whether domain types receive the time and randomness their rules depend on, rather than reading the process clock or a global random source directly — an ambient read makes the rule it feeds untestable at the instant that matters and lets two reads inside one operation disagree.

Method: Roslyn (DDD-gated, C#/VB only): domain-layer types scanned for ambient reads — DateTime/DateTimeOffset.Now/UtcNow/Today, Random.Shared, new Random(), Stopwatch.GetTimestamp — resolved against the semantic model, with a comment/string-stripped token fallback only where resolution fails. Body reads are scored; field/property initialisers are surfaced unscored. Apply/When folds excluded (ES1 owns them). Deterministic, symbol-resolved.

DM2 · Strongly-typed ids3.0 / 10Weak✓ Tool-verified

Other · Domain Modelling — How much of the domain uses strongly-typed ids vs raw Guid/string/int — adoption curve, not all-or-nothing.

Method: Roslyn (DDD-gated): strongly-typed id adoption on domain entities/events; raw Guid/int/string ids counted versus wrapped types. An id wrapper is recognised by VALUE SEMANTICS, not by being a struct — a record struct, a record class (`record ApartmentId(Guid Value)`) or a class declared by a typed-id base (`class MemberId : TypedIdValueBase`) all count, while a plain mutable class (reference equality) and a verb-phrase query record (`GetCustomerById`) do not. Deterministic, adoption percentage.

Coverage: Population: id-like members by *Id/*Key NAME suffix; strongly-typed-ID shape then checked semantically — non-suffixed identifiers are not seen.

  • `ApprovalEvent.resourceId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — openbank-libs-domain/src/main/kotlin/com/openbank/libs/foureyes/ApprovalEvent.kt:35
  • `KybEventPayload.actorId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEventPayloads.kt:37
  • `SpendReserved.idempotencyKey` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — openbank-delegation-service/src/main/kotlin/com/openbank/delegation/domain/event/DelegationEvents.kt:221
  • `ConsentGranted.granteeId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — openbank-consent-service/src/main/kotlin/com/openbank/consent/domain/event/ConsentEvents.kt:20
  • `ConsentRevoked.granteeId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — openbank-consent-service/src/main/kotlin/com/openbank/consent/domain/event/ConsentEvents.kt:74
  • `ConsentSuperseded.granteeId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — openbank-consent-service/src/main/kotlin/com/openbank/consent/domain/event/ConsentEvents.kt:99
  • `ConsentExpired.granteeId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — openbank-consent-service/src/main/kotlin/com/openbank/consent/domain/event/ConsentEvents.kt:114
  • `ConsentRejected.granteeId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — openbank-consent-service/src/main/kotlin/com/openbank/consent/domain/event/ConsentEvents.kt:127
  • `SavingsWithdrawalApproved.approvalId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — openbank-account-service/src/main/kotlin/com/openbank/account/domain/event/AccountEvents.kt:111

What to do

  • Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs.
DM6 · Domain ↔ infrastructure boundary10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether the domain layer stays free of infrastructure dependencies (EF/Marten/HTTP/ASP.NET) — the clean-architecture dependency rule.

Method: Roslyn (DDD-gated): domain-layer types scanned for infrastructure usage in member SIGNATURES and inside method/accessor BODIES — resolved calls and object-creations into EF/Marten/HTTP/Mongo/Redis/message-bus types (not just a namespace allowlist). Deterministic, symbol-resolved, exhaustive over domain-layer bodies, DDD-native.

Coverage: Domain layer identified by NAMESPACE heuristic; infrastructure then resolved by symbol in member SIGNATURES and method/accessor BODIES — rename the layer and the check evaporates.

DM9 · Scattered domain decisions10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether one domain rule is decided — or one measurement produced — in more than one place, rather than living on the type that owns it.

Method: Neutral body surface plus Roslyn (DDD-gated), two arms. DECISION (Roslyn only): a predicate over a domain type's members judged in two or more types, where none of those decisions live on the owning type — operands of comparisons and relational property patterns only, so a member merely passed as an argument is not judged. DERIVATION: a plain all-numeric carrier of ≥2 members, with no base type and exactly one constructor, CONSTRUCTED as the result of a method (returned or assigned, never inline as an argument) in two or more types other than its own — the same measurement produced twice, which centralising the judgement does not fix. DERIVATION runs on every language whose frontend declares the produced-or-passed fact per construction (Roslyn and the Java sidecar today); a target with only the derivation arm carries an engine gap naming the decision arm as not assessed, and a frontend that declares nothing keeps the dimension not measured rather than clean. Single-member rules, test code and generated code are out of population for both. Advisory.

M1 · Documentation (README)8.1 / 10Exemplary✓ 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 README to the 87 of 90 project(s) that lack one — worth up to 1.9 pts.
M2 · Architecture documentation10.0 / 10Exemplary✓ 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.

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○ Nothing flagged

Maturity · Maturity — Whether the project's current-state documentation describes the code that exists.

Method: Every current-state document's checkable claims looked up in the tree (links, versions, and artefact counts an order of magnitude off), plus two README checks: an advertised infrastructure product with no footprint, and a module the CHANGELOG records as removed. Deterministic, no model. Advisory.

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.

P10 · Library API & versioning6.0 / 10Strong✓ Tool-verified

Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.

Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language's code model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.

  • 1497/1584 types (95%) declared in the published library are public. For a library, every public type is a stability contract — keep implementation types off the surface and expose only the intended API.

What to do

  • Keep implementation types off the public surface (Kotlin: `internal`) so internals can change without breaking consumers.
P2 · Observability9.8 / 10Exemplary✓ Tool-verified

Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.

Method: Filesystem/Roslyn scan: structured-logging frameworks (Serilog, NLog), OpenTelemetry, and health-check endpoint patterns. Exhaustive, deterministic.

  • Only 68/73 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `.`, `openbank-admin-ui`, `openbank-document-renderer`, `openbank-libs-testing`, `openbank-products`.

What to do

  • Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
P3 · Security & performance tooling10.0 / 10Exemplary○ Nothing flagged

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.

  • `REDACTED` schedules updates, but no `package-ecosystem` entry covers `pip`, which this tree depends on — so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the `updates:` list. — REDACTED:2

What to do

  • Dependabot is configured but does not watch `pip` — add that `package-ecosystem` entry to REDACTED so those dependencies get the same automatic update and advisory pressure as the ones it already covers.
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.

P5 · DR & Backup10.0 / 10Exemplary✓ Tool-verified

Readiness · Readiness — Whether disaster recovery is planned and codified — backups, geo-recovery, RTO/RPO, persistence guarantees — from IaC + container manifests + docs, never the live cloud.

Method: Filesystem scan: disaster recovery, backup, geo-recovery, RTO/RPO, persistence guarantees from IaC, manifests, and docs. Exhaustive, deterministic, never a live environment.

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.

P7 · Outbound HTTP resilience10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether outbound HTTP calls are wrapped in resilience (retry/timeout/circuit-breaker) so a failing dependency doesn't cascade.

Method: Source scan: outbound HTTP clients and what bounds them — resilience handlers (Polly, AddStandardResilienceHandler) on .NET; on Go, the JVM, Python, JavaScript/TypeScript, Ruby, PHP, Rust, Elixir, Swift, Dart and Erlang, a timeout, deadline, retry or breaker beside each call, or a process-wide client default (a framework-wide deadline such as Drupal core's, Laravel's or actix's awc counts). Exhaustive, deterministic.

P8 · Schema migrations10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether database schema changes go through versioned migrations rather than being auto-created from the model at startup.

Method: Roslyn scan: EF Core DbContext for a versioned migrations directory versus bare EnsureCreated usage; off .NET, a file scan of dependency manifests, migration histories (Flyway, Liquibase, Alembic, Django, Rails, Prisma, TypeORM, Knex/Sequelize, golang-migrate, goose, Laravel, Doctrine, Diesel/sqlx) and schema auto-create in production source or config. Exhaustive, deterministic.

PF1 · Benchmark discipline10.0 / 10Exemplary✓ Tool-verified

Readiness · Performance — Whether the code protects its performance with benchmarks — a benchmark suite, allocation/memory measurement, and (ideally) a CI gate. Presence is credited as a bonus, never a deduction.

Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI; off .NET, the same ladder over Go testing.B, Rust criterion/#[bench]/divan, JMH/kotlinx-benchmark, pytest-benchmark/asv/pyperf, tinybench/mitata/vitest bench/benchmark.js and Swift package-benchmark — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.

PF3 · Async & latency hygiene6.0 / 10Strong✓ Tool-verified

Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.

Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from each language's code model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.

  • `fs.readFileSync` in `junitEvidence` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:86
  • `fs.readFileSync` in `simulationScenarioEvidence` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:168
  • `fs.readFileSync` in `mutations` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:514
  • `fs.writeFileSync` in `main` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:1304
  • `readFileSync` in `loginToken` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:31
  • `readFileSync` in `callback to map` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — openbank-admin-ui/src/lib/docs/bpmn/load.ts:76

What to do

  • TypeScript/JavaScript: use the promise APIs (fs/promises, a promisified child_process.execFile, the async zlib/crypto functions) and await them instead of the *Sync variants.
R1 · Type Safety9.7 / 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.

What to do

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

React / JS · Code Health — Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm over JS/TS tokens, D-386): a block is reported only where its copies still agree on most of their own identifiers and literals, or were renamed as they were pasted but kept most of their constants, and where the copies carry enough code to stand on their own or the copied extent reaches 30 lines — so a re-implementation sharing neither names nor values, and a small pasted declaration, are both found and deliberately not reported, and a clean R10 is not a claim that nothing was copied.

Method: Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm run over JS/TS tokens). Masking finds the candidates; a block is reported when its copies still agree on most of their own identifiers and literals, or when a renamed copy still agrees on most of its constants, AND the copies carry enough code to stand on their own — or when the copied extent reaches 30 lines. So a re-implementation sharing neither names nor values, and a small pasted declaration, are deliberately not counted. Deterministic.

  • 223 duplicated blocks under openbank-admin-ui/src/app/ have copies in at least two of the sibling directories accounts, aml, api, approvals, audit, auth (+51 more sibling(s) not listed) — 109 of them are reported below, and 114 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 223 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 223 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 223 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — openbank-admin-ui/src/app/aml/page.tsx:23
  • 109 duplicated blocks under openbank-admin-ui/src/ have copies in at least two of the sibling directories app, components, lib — 46 of them are reported below, and 63 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 109 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 109 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 109 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — openbank-admin-ui/src/app/kyc/page.tsx:90
  • 40 duplicated blocks under openbank-admin-ui/src/app/api/ have copies in at least two of the sibling directories agent, app-status, approvals, audiences, campaigns, catalog (+28 more sibling(s) not listed) — 32 of them are reported below, and 8 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 40 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 40 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 40 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — openbank-admin-ui/src/app/api/finops/right-sizing/route.ts:61
  • 31 duplicated blocks under openbank-admin-ui/src/lib/ have copies in at least two of the sibling directories accounts, agent-merge-records, aml, approvals, audit, cards (+25 more sibling(s) not listed) — 18 of them are reported below, and 13 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 31 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 31 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 31 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — REDACTED:64
  • 21 duplicated blocks under openbank-admin-ui/src/components/ have copies in at least two of the sibling directories approvals, balance-sheet, cards, closings, delegations, devops (+13 more sibling(s) not listed) — 9 of them are reported below, and 12 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 21 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 21 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 21 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — openbank-admin-ui/src/components/flow/StageBoard.tsx:84
  • 17 duplicated blocks under openbank-admin-ui/src/app/pension/ have copies in at least two of the sibling directories annuity, applications, contracts, funds, holdings, incentives (+4 more sibling(s) not listed) — 9 of them are reported below, and 8 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 17 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 17 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 17 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — openbank-admin-ui/src/app/pension/funds/page.tsx:56
  • 6 duplicated blocks under openbank-admin-ui/src/app/treasury/ have copies in at least two of the sibling directories approvals, counterparties, deals, limits, nostro — 4 of them are reported below, and 2 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 6 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 6 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 6 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — openbank-admin-ui/src/app/treasury/approvals/page.tsx:30
  • 5 of the duplicated blocks reported below have copies in at least two of the sibling directories catalog-reviews, chat, mcp, merge-records, obo-mcp, proposals under openbank-admin-ui/src/app/api/agent/. That concentration is one structural fact, not 5 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 5 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — openbank-admin-ui/src/app/api/agent/chat/route.ts:32
  • openbank-admin-ui/src/app/kyc/page.tsx:90 · openbank-admin-ui/src/components/notifications/NotificationsPage.tsx:147 — the two spans are one implementation copied and then locally edited — 1147 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/app/kyc/page.tsx:90
  • openbank-admin-ui/src/app/balance-sheet/ledger-backfill/page.tsx:246 · openbank-admin-ui/src/app/balance-sheet/ledger-backfill/voids/page.tsx:207 — the two spans are one implementation copied and then locally edited — 1183 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/app/balance-sheet/ledger-backfill/page.tsx:246
  • openbank-admin-ui/src/components/flow/StageBoard.tsx:84 · openbank-admin-ui/src/components/lending/OriginationPipeline.tsx:81 — the two spans are one implementation copied and then locally edited — 1103 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/components/flow/StageBoard.tsx:84
  • openbank-admin-ui/src/app/treasury/approvals/page.tsx:30 · openbank-admin-ui/src/app/treasury/deals/page.tsx:30 — the two spans are one implementation copied and then locally edited — 1054 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/app/treasury/approvals/page.tsx:30
  • openbank-admin-ui/src/app/aml/page.tsx:23 · openbank-admin-ui/src/app/clearing/page.tsx:22 — the two spans are one implementation copied and then locally edited — 1070 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/app/aml/page.tsx:23
  • openbank-admin-ui/src/app/iaops/cases/[caseId]/page.tsx:66 · openbank-admin-ui/src/app/iaops/cases/page.tsx:37 — the two spans are one implementation copied and then locally edited — 746 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/app/iaops/cases/[caseId]/page.tsx:66
  • openbank-admin-ui/src/app/cards/disputes/page.tsx:54 · openbank-admin-ui/src/app/cards/tokens/page.tsx:41 — the two spans are one implementation copied and then locally edited — 579 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/app/cards/disputes/page.tsx:54
  • openbank-admin-ui/src/app/pension/funds/page.tsx:56 · openbank-admin-ui/src/app/pension/strategies/page.tsx:61 — the two spans are one implementation copied and then locally edited — 659 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/app/pension/funds/page.tsx:56
  • openbank-admin-ui/src/app/consents/page.tsx:207 · openbank-admin-ui/src/app/customer-360/page.tsx:142 — the two spans are one implementation copied and then locally edited — 496 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/app/consents/page.tsx:207
  • openbank-admin-ui/src/app/treasury/counterparties/page.tsx:22 · openbank-admin-ui/src/app/treasury/limits/page.tsx:24 — the two spans are one implementation copied and then locally edited — 829 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/app/treasury/counterparties/page.tsx:22
  • openbank-admin-ui/src/app/pension/contracts/[id]/page.tsx:62 · openbank-admin-ui/src/app/pension/holdings/page.tsx:45 — the two spans are one implementation copied and then locally edited — 709 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/app/pension/contracts/[id]/page.tsx:62
  • openbank-admin-ui/scripts/admin-login-synthetic.mjs:7 · openbank-admin-ui/scripts/admin-operator-journey.mjs:20 — the two spans are one implementation copied and then locally edited — 485 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/scripts/admin-login-synthetic.mjs:7
  • openbank-admin-ui/src/app/day-end/page.tsx:231 · openbank-admin-ui/src/app/day-end/page.tsx:681 — the two spans are one implementation copied and then locally edited — 500 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/app/day-end/page.tsx:231
  • openbank-admin-ui/src/app/api/finops/right-sizing/route.ts:61 · openbank-admin-ui/src/app/api/temporal/status/route.ts:45 — the two spans are one implementation copied and then locally edited — 380 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/app/api/finops/right-sizing/route.ts:61
  • openbank-admin-ui/src/app/onboarding/page.tsx:278 · openbank-admin-ui/src/app/parties/page.tsx:263 — the two spans are one implementation copied and then locally edited — 445 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/app/onboarding/page.tsx:278
  • openbank-admin-ui/src/app/infrastructure/page.tsx:392 · openbank-admin-ui/src/app/infrastructure/page.tsx:443 — the two spans are one implementation copied and then locally edited — 480 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/app/infrastructure/page.tsx:392
  • REDACTED:43 · REDACTED:44 — 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. — REDACTED:43
  • REDACTED:31 · REDACTED:28 — 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. — REDACTED:31
  • openbank-admin-ui/src/app/iaops/agents/[agentId]/page.tsx:147 · openbank-admin-ui/src/app/iaops/cases/[caseId]/page.tsx:96 — the two spans are one implementation copied and then locally edited — 299 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/app/iaops/agents/[agentId]/page.tsx:147
  • openbank-admin-ui/scripts/generate-infra-lifecycle.mjs:22 · REDACTED:21 — 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. — openbank-admin-ui/scripts/generate-infra-lifecycle.mjs:22
  • REDACTED:14 · REDACTED:23 — 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. — REDACTED:14
  • openbank-admin-ui/src/app/api/context/complaints/[reference]/route.ts:9 · openbank-admin-ui/src/app/api/context/incidents/[reference]/impact/route.ts:9 — 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. — openbank-admin-ui/src/app/api/context/complaints/[reference]/route.ts:9
  • openbank-admin-ui/src/app/balance-sheet/ledger-backfill/page.tsx:126 · openbank-admin-ui/src/app/balance-sheet/ledger-backfill/voids/page.tsx:140 — 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. — openbank-admin-ui/src/app/balance-sheet/ledger-backfill/page.tsx:126
  • openbank-admin-ui/src/app/business-onboarding/page.tsx:455 · openbank-admin-ui/src/app/identity-cases/page.tsx:343 — 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. — openbank-admin-ui/src/app/business-onboarding/page.tsx:455
  • openbank-admin-ui/src/app/api/campaigns/[id]/journey/route.ts:23 · openbank-admin-ui/src/app/api/segments/route.ts:22 — 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. — openbank-admin-ui/src/app/api/campaigns/[id]/journey/route.ts:23
  • openbank-admin-ui/src/app/payments/page.tsx:504 · openbank-admin-ui/src/app/payments/page.tsx:568 — 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. — openbank-admin-ui/src/app/payments/page.tsx:504
  • openbank-admin-ui/src/components/campaigns/StepEditor.tsx:167 · openbank-admin-ui/src/components/campaigns/StepEditor.tsx:220 — all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — openbank-admin-ui/src/components/campaigns/StepEditor.tsx:167
  • openbank-admin-ui/src/lib/api.ts:177 · openbank-admin-ui/src/lib/api.ts:238 — the two spans are one implementation copied and then locally edited — 139 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/lib/api.ts:177
  • openbank-admin-ui/src/app/payments/page.tsx:846 · openbank-admin-ui/src/app/payments/page.tsx:983 — all 2 copies are in the same file, 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. — openbank-admin-ui/src/app/payments/page.tsx:846
  • openbank-admin-ui/src/lib/context/amlCaseEvidence.ts:18 · openbank-admin-ui/src/lib/context/authorityHistory.ts:17 — the two spans are one implementation copied and then locally edited — 236 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — openbank-admin-ui/src/lib/context/amlCaseEvidence.ts:18
  • openbank-admin-ui/src/app/communication/[personaId]/page.tsx:87 · openbank-admin-ui/src/app/communication/page.tsx:97 — 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. — openbank-admin-ui/src/app/communication/[personaId]/page.tsx:87
  • openbank-admin-ui/src/components/balance-sheet/api.ts:40 · openbank-admin-ui/src/components/pension/api.ts:44 — 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. — openbank-admin-ui/src/components/balance-sheet/api.ts:40

What to do

  • Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R2 · Cyclomatic Complexity6.0 / 10Adequate✓ 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.

  • CampaignDetailPage has cyclomatic complexity 103 and cognitive complexity 88; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/app/campaigns/[id]/page.tsx:174
  • ProductStudioPage has cyclomatic complexity 86 and cognitive complexity 72; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/app/product-studio/page.tsx:95
  • CreditRiskConsole has cyclomatic complexity 83 and cognitive complexity 74; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/app/lending/risk/page.tsx:110
  • validClusterTopology has cyclomatic complexity 81 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:254
  • validServiceGraph has cyclomatic complexity 76 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:124
  • PaymentsContent has cyclomatic complexity 75 and cognitive complexity 72; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/app/payments/page.tsx:295
  • ProductDetailPanel has cyclomatic complexity 69 and cognitive complexity 61; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/app/product-catalog/page.tsx:116
  • NewDeal has cyclomatic complexity 63 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/app/treasury/deals/new/page.tsx:41
  • NewCampaignPage has cyclomatic complexity 61 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/app/campaigns/new/page.tsx:148
  • GameCatalogPage has cyclomatic complexity 61 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/app/loyalty/game/page.tsx:35
  • (anonymous) has cyclomatic complexity 60 and cognitive complexity 61; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:165
  • TemporalPage has cyclomatic complexity 59 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/app/temporal/page.tsx:259
  • FinOpsContent has cyclomatic complexity 57 and cognitive complexity 55; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/app/finops/page.tsx:228
  • SanctionsPage has cyclomatic complexity 57 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/app/sanctions/page.tsx:207
  • LifecycleStrip has cyclomatic complexity 51 and cognitive complexity 47; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/components/infra/LifecycleStrip.tsx:67
  • validSecurityGraph has cyclomatic complexity 51 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:220
  • buildCustomerGraph has cyclomatic complexity 50 and cognitive complexity 67; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/lib/context/customerGraph.ts:330
  • LoyaltyPage has cyclomatic complexity 49 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/app/loyalty/page.tsx:42
  • OperationalEvidence has cyclomatic complexity 48 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/components/observability/OperationalEvidence.tsx:47
  • appEvidence has cyclomatic complexity 48 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — openbank-admin-ui/src/lib/agent-merge-records/types.ts:80

What to do

  • Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files7.3 / 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.

  • openbank-admin-ui/src/app/campaigns/new/page.tsx has 1219 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/campaigns/new/page.tsx:1
  • openbank-admin-ui/src/app/payments/page.tsx has 1201 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/payments/page.tsx:1
  • openbank-admin-ui/src/app/campaigns/[id]/page.tsx has 1160 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/campaigns/[id]/page.tsx:1
  • openbank-admin-ui/src/app/sanctions/page.tsx has 1151 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/sanctions/page.tsx:1
  • openbank-admin-ui/src/app/finops/page.tsx has 1139 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/finops/page.tsx:1
  • openbank-admin-ui/src/app/docs/service-map/page.tsx has 1086 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/docs/service-map/page.tsx:1
  • openbank-admin-ui/src/app/document-templates/page.tsx has 1047 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/document-templates/page.tsx:1
  • openbank-admin-ui/src/app/day-end/page.tsx has 973 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/day-end/page.tsx:1
  • openbank-admin-ui/src/app/docs/api/page.tsx has 947 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/docs/api/page.tsx:1
  • openbank-admin-ui/src/app/merchants/page.tsx has 939 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/merchants/page.tsx:1
  • openbank-admin-ui/src/app/regulatory/page.tsx has 925 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/regulatory/page.tsx:1
  • openbank-admin-ui/src/app/loyalty/game/page.tsx has 920 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/loyalty/game/page.tsx:1
  • openbank-admin-ui/src/app/product-catalog/page.tsx has 901 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/product-catalog/page.tsx:1
  • openbank-admin-ui/src/app/temporal/page.tsx has 855 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/temporal/page.tsx:1
  • openbank-admin-ui/src/app/iaops/page.tsx has 831 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/iaops/page.tsx:1
  • openbank-admin-ui/src/app/fx/page.tsx has 807 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/fx/page.tsx:1
  • openbank-admin-ui/src/app/product-studio/page.tsx has 686 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/product-studio/page.tsx:1
  • openbank-admin-ui/src/app/api/approvals/pending/route.ts has 626 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/api/approvals/pending/route.ts:1
  • openbank-admin-ui/src/app/pid/page.tsx has 626 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/pid/page.tsx:1
  • openbank-admin-ui/src/components/cards/IssueCardDialog.tsx has 626 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/components/cards/IssueCardDialog.tsx:1
  • openbank-admin-ui/src/app/devops/sdlc/page.tsx has 607 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/devops/sdlc/page.tsx:1
  • openbank-admin-ui/src/app/security/excellence/page.tsx has 607 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/security/excellence/page.tsx:1
  • openbank-admin-ui/src/app/parties/[id]/page.tsx has 591 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/parties/[id]/page.tsx:1
  • openbank-admin-ui/src/app/docs/bcp/page.tsx has 583 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/docs/bcp/page.tsx:1
  • openbank-admin-ui/src/app/approvals/page.tsx has 581 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/approvals/page.tsx:1
  • openbank-admin-ui/src/app/loyalty/page.tsx has 576 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/loyalty/page.tsx:1
  • openbank-admin-ui/src/app/campaigns/page.tsx has 571 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/campaigns/page.tsx:1
  • openbank-admin-ui/src/app/devops/page.tsx has 565 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/devops/page.tsx:1
  • openbank-admin-ui/src/app/api/test-intelligence/route.ts has 545 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/api/test-intelligence/route.ts:1
  • openbank-admin-ui/src/app/business-onboarding/page.tsx has 544 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/business-onboarding/page.tsx:1
  • openbank-admin-ui/src/components/campaigns/JourneyEditor.tsx has 498 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/components/campaigns/JourneyEditor.tsx:1
  • openbank-admin-ui/src/lib/context/customerGraph.ts has 488 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/lib/context/customerGraph.ts:1
  • openbank-admin-ui/src/app/identity-cases/page.tsx has 487 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/identity-cases/page.tsx:1
  • openbank-admin-ui/src/lib/auth/roles.ts has 483 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/lib/auth/roles.ts:1
  • openbank-admin-ui/src/components/notifications/NotificationsPage.tsx has 480 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/components/notifications/NotificationsPage.tsx:1
  • openbank-admin-ui/src/app/infrastructure/page.tsx has 477 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/infrastructure/page.tsx:1
  • openbank-admin-ui/src/app/system/config/page.tsx has 467 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/system/config/page.tsx:1
  • openbank-admin-ui/src/app/security/page.tsx has 466 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/security/page.tsx:1
  • openbank-admin-ui/src/app/communication/edit/[personaKey]/page.tsx has 464 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/app/communication/edit/[personaKey]/page.tsx:1
  • openbank-admin-ui/src/components/campaigns/StepEditor.tsx has 464 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — openbank-admin-ui/src/components/campaigns/StepEditor.tsx:1

What to do

  • Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage9.1 / 10Exemplary✓ 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. (×40) — openbank-admin-ui/scripts/generate-service-graph.mjs:1, openbank-admin-ui/scripts/generate-security-graph.mjs:1, openbank-admin-ui/scripts/admin-operator-journey.mjs:1, …

What to do

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

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

Method: npm dependency staleness from manifest/registry metadata (a maturity signal; JS/npm CVEs are scored separately in D30, which answers dependency vulnerabilities for every ecosystem). Deterministic.

What to do

  • Bump outdated dependencies to current versions to limit upgrade debt.
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 Code8.4 / 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.

  • Nothing imports this binding — it is safe to review for removal. (×29) — openbank-admin-ui/src/components/balance-sheet/contracts.ts:133, openbank-admin-ui/src/components/treasury/contracts.ts:25, openbank-admin-ui/src/components/treasury/contracts.ts:135, …
  • This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it. (×3) — openbank-admin-ui/src/app/api/iaops/kill-switch/route.ts:25, openbank-admin-ui/src/app/fx/page.tsx:21, openbank-admin-ui/src/lib/catalog-offer-selection.ts:8

What to do

  • Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene0.0 / 10Critical✓ 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.

  • Imported but not declared in any reachable package.json — installs work only by hoisting accident. (×2) — openbank-admin-ui/e2e/helpers/auth.ts:15, openbank-admin-ui/src/test/katex-trust.test.ts:6
  • Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it — but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json. — openbank-admin-ui/src/lib/telemetry/glitchtip.ts:6
  • Declared in openbank-admin-ui/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×3)
  • Only test files import it (first: openbank-admin-ui/src/test/mermaid-labels.test.ts:6) — move it to devDependencies. — openbank-admin-ui/package.json:52

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.

S1 · Web-Security Posture10.0 / 10Exemplary○ Nothing flagged

Other · Security — Only what this repository's own non-C# files could be read for was assessed — and because this repository commits the configuration that serves its own HTTP surface, that configuration could be read in full for the security response headers it sets. Nothing else in this dimension was assessed: the transport, cookie, input-validation and crypto controls are read from a source model that was not loaded for this repository’s language, so their absence here is not a finding about this repository.

Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. On a repository with no .NET source it reads JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Elixir source itself (test, vendored, generated and minified paths not) for the arms that hold whether or not the code serves HTTP: a weak hash or cipher, key material fixed in the source, a TLS client that accepts any certificate, and (JavaScript/TypeScript, Ruby, Scala, Rust and Elixir) an obsolete TLS version; the server controls are not assessed there, and a Dart, Ruby, Scala, Rust or Elixir repository that serves no HTTP of its own is N/A on them. Deterministic.

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

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

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

X12 · Unreachable branch10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.

Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.

X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.

Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.

X14 · Bypassable address classification10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.

Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.

X15 · Unvalidated length from an untrusted reader10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.

Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. Deterministic, provable per finding. Advisory.

X16 · Unfloored truncation loop10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.

Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.

X17 · Uncapped recursion over a caller-supplied document1.4 / 10Critical✓ Tool-verified

Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.

Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.

  • `toValue` is public and takes `node: JsonNode` from its caller, and it calls itself at line 35 with a piece of `node` (and at line 36) — the function is not `tailrec`, so every call is a real frame — and nowhere in `toValue` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `toValue` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`. — openbank-product-catalog/src/main/kotlin/com/openbank/productcatalog/infrastructure/catalog/CatalogJson.kt:35
  • `canonicalBytes` is public, takes a document from its caller (line 56) and hands it to `canonical`, which calls itself at line 157 with a piece of `node` (and at line 161) — the function is not `tailrec`, so every call is a real frame — and nowhere in `canonical` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `canonical` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`. — openbank-product-catalog/src/main/kotlin/com/openbank/productcatalog/infrastructure/catalog/CatalogJson.kt:157
  • `mask` is public, takes a document from its caller (line 50) and hands it to `maskNode`, which calls itself at line 55 with a piece of `node` — the function is not `tailrec`, so every call is a real frame — and nowhere in `maskNode` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `maskNode` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`. — openbank-mcp-service/src/main/kotlin/com/openbank/mcp/application/McpPiiMasker.kt:55
  • `ProposedOnly.enforce` is public, takes a document from its caller (line 46) and hands it to `ProposedOnly.collectStatuses`, which calls itself at line 67 with a piece of `node` (and at line 71) — the function is not `tailrec`, so every call is a real frame — and nowhere in `ProposedOnly.collectStatuses` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `ProposedOnly.collectStatuses` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`. — openbank-mcp-service/src/main/kotlin/com/openbank/mcp/application/ProposedOnly.kt:67
  • `image_names` is public and takes `value: object` from its caller, and it calls itself at line 48 (`image_names`) with a piece of `value` (and at line 51) — and nowhere in `image_names` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `image_names` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-infra/scripts/check-cnpg-postgres-minor-floor.py:48
  • `flatten` is public, takes a document from its caller (line 141) and hands it to `_components`, which calls itself at line 137 (`_components`) with a piece of `res` — and nowhere in `_components` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_components` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-infra/scripts/cloud-finops-collect.py:137
  • `withCatalogFieldValue` is exported, takes a document from its caller (line 76) and hands it to `setAtPath`, which calls itself at line 88 (`setAtPath`) with a piece of `source` — and nowhere in `setAtPath` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `setAtPath` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/catalog-schema-form.ts:88
  • `diffCatalogDocuments` is exported and takes `before: unknown` from its caller, and it calls itself at line 32 (`diffCatalogDocuments`) with a piece of `before` (and at line 41) — and nowhere in `diffCatalogDocuments` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `diffCatalogDocuments` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/catalog-structural-diff.ts:32
  • `parseMapHealth` is exported, takes a document from its caller (line 31) and hands it to `text`, which calls itself at line 39 (`text`) with a piece of `value` (and at line 40, line 41, line 59, line 60, line 61, line 62, line 74, line 78, line 82, line 85, line 88, line 91) — and nowhere in `text` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `text` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/governance/service-map-evidence.ts:39
  • `parseServiceMapGraph` is exported, takes a document from its caller (line 69) and hands it to `count`, which calls itself at line 78 (`count`) with a piece of `value` (and at line 79) — and nowhere in `count` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `count` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/governance/service-map-evidence.ts:78
  • `parseMapHealth` is exported, takes a document from its caller (line 31) and hands it to `port`, which calls itself at line 35 (`port`) with a piece of `value` — and nowhere in `port` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `port` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/governance/service-map-evidence.ts:35
  • `parseFeeSchedule` is exported, takes a document from its caller (line 47) and hands it to `optionalString`, which calls itself at line 41 (`optionalString`) with a piece of `value` (and at line 42, line 43, line 62, line 63) — and nowhere in `optionalString` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `optionalString` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/fees/feeScheduleContract.ts:41
  • `parseCustomer360Evidence` is exported, takes a document from its caller (line 32) and hands it to `isString`, which calls itself at line 39 (`isString`) with a piece of `value` (and at line 41, line 45, line 46, line 48) — and nowhere in `isString` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isString` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/customer360/evidence.ts:39
  • `parseCustomer360Evidence` is exported, takes a document from its caller (line 32) and hands it to `isTimestamp`, which calls itself at line 42 (`isTimestamp`) with a piece of `value` — and nowhere in `isTimestamp` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isTimestamp` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/customer360/evidence.ts:42
  • `parseAccounts` is exported, takes a document from its caller (line 227) and hands it to `text`, which calls itself at line 217 (`text`) with a piece of `row` — and nowhere in `text` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `text` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/context/customerGraph.ts:217
  • `isCloseRun` is exported, takes a document from its caller (line 99) and hands it to `isUuid`, which calls itself at line 101 (`isUuid`) with a piece of `value` (and at line 137, line 138, line 139) — and nowhere in `isUuid` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isUuid` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/closings/evidence.ts:101
  • `parseReconciliationReport` is exported, takes a document from its caller (line 82) and hands it to `isDate`, which calls itself at line 141 (`isDate`) with a piece of `value` (and at line 142) — and nowhere in `isDate` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isDate` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/closings/evidence.ts:141
  • `parseReconciliationReport` is exported, takes a document from its caller (line 82) and hands it to `isInstant`, which calls itself at line 110 (`isInstant`) with a piece of `value` (and at line 111, line 145) — and nowhere in `isInstant` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isInstant` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/closings/evidence.ts:110
  • `isCloseRun` is exported, takes a document from its caller (line 99) and hands it to `isNullableDate`, which calls itself at line 104 (`isNullableDate`) with a piece of `value` (and at line 105) — and nowhere in `isNullableDate` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isNullableDate` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/closings/evidence.ts:104
  • `parseReconciliationReport` is exported, takes a document from its caller (line 82) and hands it to `isAmount`, which calls itself at line 75 (`isAmount`) with a piece of `value` (and at line 76, line 77, line 79) — and nowhere in `isAmount` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isAmount` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/closings/evidence.ts:75
  • `isCloseRun` is exported, takes a document from its caller (line 99) and hands it to `isCount`, which calls itself at line 106 (`isCount`) with a piece of `value` (and at line 107, line 108, line 109) — and nowhere in `isCount` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isCount` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/closings/evidence.ts:106
  • `parseAmlCases` is exported, takes a document from its caller (line 36) and hands it to `optionalString`, which calls itself at line 42 (`optionalString`) with a piece of `value` (and at line 47, line 48, line 49) — and nowhere in `optionalString` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `optionalString` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/aml/amlCaseContract.ts:42
  • `parseAmlCases` is exported, takes a document from its caller (line 36) and hands it to `optionalInstant`, which calls itself at line 50 (`optionalInstant`) with a piece of `value` — and nowhere in `optionalInstant` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `optionalInstant` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — openbank-admin-ui/src/lib/aml/amlCaseContract.ts:50

What to do

  • Each finding names the externally-callable member that accepts the document and the self-call that descends, and states that no depth parameter or counter exists anywhere in the walk. Confirm from the two, then thread a depth argument through the walk and reject documents past a fixed maximum, or rewrite it with an explicit stack.
X18 · Disposal-pattern correctness10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.

Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.

X19 · Unrestored process-global state10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.

Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.

X2 · Cancellation propagation9.4 / 10Exemplary✓ Tool-verified

Other · Code Health — Whether async functions that make a cancellable request accept or pass on an AbortSignal (adoption curve).

Method: Roslyn scan: every async method (excluding framework-fixed overrides/Blazor handlers) checked for CancellationToken parameter presence. Deterministic, adoption percentage. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same question: every named async function that itself makes a request an AbortSignal can cancel (global `fetch`, axios and its file-local instances, ky, ofetch) counts, and it is compliant when its parameters or body name a signal or it hands one of its own parameters to the request as options; signatures a framework fixes (JSX event handlers, route and lifecycle exports, request-first handlers, `override`, `'use server'` modules, TanStack `mutationFn`) are exempt unless they take a signal. Deterministic, adoption percentage.

  • Only 191/213 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up — a page navigated away from, an unmounted component, a timed-out job. Take a `signal` (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
  • `refresh` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-infra/web/status/app.js:133
  • `fetchAllServiceConfigSnapshots` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/lib/api.ts:18
  • `fetchAllGovernanceManifests` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/lib/api.ts:42
  • `getJson` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. (×2) — openbank-admin-ui/src/lib/services/resourceClient.ts:10, openbank-admin-ui/src/app/lending/risk/page.tsx:77
  • `fetchChangelog` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/lib/docs/releases.ts:102
  • `fetchReleaseNotes` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/lib/docs/releases.ts:162
  • `requestRotation` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/lib/auth/authOptions.ts:155
  • `postJson` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/components/treasury/api.ts:42
  • `postNostroStatement` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/components/treasury/api.ts:87
  • `sendJson` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. (×2) — openbank-admin-ui/src/components/pension/api.ts:34, openbank-admin-ui/src/components/balance-sheet/api.ts:29
  • `load` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/components/agent/MergeRecordsSection.tsx:36
  • `loadLedgerEntry` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/app/treasury/deals/[id]/page.tsx:36
  • `fetchReadinessReport` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/app/system/readiness/page.tsx:22
  • `mcpCall` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/app/system/agent/page.tsx:39
  • `run` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/app/services/page.tsx:107
  • `remove` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/app/merchants/page.tsx:178
  • `removeLogo` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/app/merchants/page.tsx:234
  • `createSession` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/app/api/agent/obo-mcp/route.ts:62
  • `bindSession` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/app/api/agent/obo-mcp/route.ts:74
  • `oboToken` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — openbank-admin-ui/src/app/api/agent/obo-mcp/route.ts:84

What to do

  • Thread an AbortSignal through async functions that make requests, so the work stops when its caller gives up.
X20 · Mistyped argument guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether an argument guard throws the exception its own condition describes — a guard that rejects a value for being EMPTY and reports it as `NullPointerException` (Java, Kotlin, Scala), `ArgumentError.notNull` (Dart) or `ArgumentNullException` (F#'s `nullArg`) tells the caller a parameter was null when it provably was not.

Method: Roslyn syntax: `throw new ArgumentNullException(nameof(p))` statements controlled by an `if`, whose condition is read for a test that is true of a NON-null `p` — an emptiness test that dereferences it (`p.Count == 0`, `!p.Any()`) or a BCL predicate documented true of the empty value (`string.IsNullOrEmpty(p)`). Deterministic, provable per finding. Advisory.

X21 · Side-effecting pattern guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.

Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.

X22 · Contradicted release guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a method that TAKES a lock or semaphore and gives it back from a flag-guarded `finally` returns the value that flag implies — reporting success while the guard hands the primitive back admits a second caller the exclusion was there to keep out, and reporting failure while the guard keeps it leaves nothing to ever give it back. Also whether a `finally` that gives the primitive back unconditionally can run in a state where the method does not hold it: after a timed wait whose result was discarded, after an acquire inside the `try` that can fail, after the body already released it, or never, because a `return` left between the acquire and the `try`.

Method: Roslyn syntax: `try` statements whose `finally` releases a synchronisation primitive under a bare local-bool guard, where the method also TOOK that same primitive before the `try`, checked for a `return` of a bool literal whose value disagrees with the flag state the method's own straight-line assignments put it in. Deterministic, provable per finding. Advisory.

X23 · Unguarded diagnostic materialisation10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.

Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.

X24 · Document value interpolated into markup unescaped10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.

Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. On a repository with no .NET source it reads JavaScript/TypeScript off the token stream with the same rule: a DOM read of raw document text (`getAttribute`, `textContent`, `innerText`, `nodeValue`) is the source, propagated through local bindings and string composition, and judged at template-literal and concatenation holes in the same two delimited markup positions; escapers and validating conditions cut it, and documentation-site, test, vendored and minified scripts are not read. Deterministic, provable per finding. Advisory.

X25 · Inert configuration knob10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.

Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.

X26 · Unsynchronised callback handoff10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value handed from a callback to the body that waits on it crosses on something built to be crossed — a `Queue<T>`/`List<T>`/`Dictionary<K,V>` written inside an event handler and read back outside it is mutated by two flows at once, and the semaphore or completion source beside it orders how MANY items exist while leaving the collection's own head, tail and backing array unprotected.

Method: Roslyn syntax: method, accessor, local-function and lambda bodies that declare BOTH a non-thread-safe generic collection (`Queue`/`Stack`/`List`/`Dictionary`/`HashSet`/`Sorted*`/`LinkedList`) and a synchronisation primitive (`SemaphoreSlim`/`TaskCompletionSource`/`ManualResetEvent(Slim)`/`AutoResetEvent`/`CountdownEvent`) as locals, then read for a `+=`-registered lambda that raises that primitive while the body outside every lambda waits on it — and, in that scope, a mutating call on the collection inside the lambda paired with a mention of it outside. Any `lock` in the scope abstains it. On a repository with no .NET source the same handoff is read in Java off the engine’s own token stream (test source sets, vendored and demonstration paths not): an `ArrayList`/`LinkedList`/`ArrayDeque`/`PriorityQueue`/`Hash*`/`LinkedHash*`/`Tree*` local and a `CountDownLatch`/`Semaphore`/`CompletableFuture` local, a lambda or anonymous class that raises the primitive and mutates the collection, and a wait outside it; any `synchronized` or `lock()` abstains the body. Because each of those primitives orders what the callback wrote before raising it, only a touch that provably overlaps the callback is convicted: one after the registration and before the next wait, or one in a loop registered-before, waiting on every pass and not declaring the collection. Deterministic, provable per finding. Advisory.

X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether an enhanced `for` leaves the collection it is walking alone — a body that adds to or removes from the very collection the loop is iterating invalidates the fail-fast iterator it is holding, so the next `next()` throws `ConcurrentModificationException` and the remaining elements are never seen. Whether a `for` loop leaves the `dict`, `set` or `deque` it is walking alone — CPython's iterators over those check that the collection has not changed size since the loop began, so a body that removes from (or empties) the very collection the loop is walking makes the next step raise `RuntimeError: dictionary changed size during iteration` and the remaining items are never seen. Whether a `for (x in c)` or `c.forEach { … }` leaves the collection it is walking alone — a `mutableListOf`/`ArrayList`, `mutableMapOf`/`HashMap` or `mutableSetOf`/`HashSet` is a `java.util` collection on the JVM and is walked by its own fail-fast iterator, so a body that adds to or removes from the very collection the loop is walking makes the next step throw `ConcurrentModificationException` and the remaining elements are never seen.

Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.

X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.

Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.

X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.

Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.

X3 · Exception handling6.9 / 10Strong✓ Tool-verified

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

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

  • `catch (e: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×7) — openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/client/SchemeGatewayAdapter.kt:163, openbank-security-scanner/src/main/kotlin/com/openbank/securityscanner/application/SecurityScannerService.kt:70, openbank-libs-runtime/src/main/kotlin/com/openbank/libs/warmup/ResourceTypeWarmup.kt:92, …
  • An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×26) — openbank-security-scanner/src/main/kotlin/com/openbank/securityscanner/application/SecurityScannerService.kt:165, openbank-security-scanner/src/main/kotlin/com/openbank/securityscanner/application/SecurityScannerService.kt:216, openbank-security-scanner/src/main/kotlin/com/openbank/securityscanner/application/SecurityScannerService.kt:242, …
  • `catch (_: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×2) — openbank-security-scanner/src/main/kotlin/com/openbank/securityscanner/application/SecurityScannerService.kt:172, openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/ratelimit/RateLimitFilter.kt:65
  • `catch (e: Throwable)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — openbank-libs-runtime/src/main/kotlin/com/openbank/libs/warmup/HibernateReactiveWarmup.kt:78
  • `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×2) — openbank-infra/scripts/check-db-migration.py:101, openbank-infra/scripts/finops-tier-classifier.py:173
  • `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it. (×2) — openbank-admin-ui/src/components/layout/Header.tsx:95, openbank-admin-ui/src/components/governance/CatalogDriftBanner.tsx:43

What to do

  • Swallowed exception (caught, then discarded)
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.

Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.

X5 · Nullable reference types9.9 / 10Exemplary✓ Tool-verified

Other · Code Health — Whether Kotlin's null safety is not undermined by not-null assertions — `String` cannot hold null and `String?` must be checked before use in every Kotlin module, and each `!!` is a run-time `NullPointerException` the author has told the compiler cannot happen.

Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.

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 Health71%Adequate — gated by D1, D2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture77%StrongSolid.
Maturity93%ExemplaryStrongest area.
Readiness60%Adequate — gated by R8Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security71%Adequate — gated by D29, D31, D32Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Domain Modelling78%Adequate — gated by DM2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Accessibility71%Adequate — gated by AC4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance77%StrongSolid.
Unscored — 3 check(s) recorded observations but carry no score

These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.

  • X10 Duplicated predicate — 25 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X6 Hand-rolled structured-format parsing — 7 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X7 Silent fallback defaults — 40 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not included — 33 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 — Not applicable: CDI injects normal-scoped beans through client proxies, and a @Dependent bean belongs to the bean it is injected into.
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX8 Test isolation — no test/production split to check
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • AXR1 Runtime accessibility — compose up failed (exit 17 — an image could not be built) — clearing-service Warning pull access denied for openbank/clearing-service, repository does not exist or may require 'docker login': denied: requested access to the resource is denied failed to solve: ResourceExhausted: write /var/lib/docker/overlay2/jcl1egnuf707z20i8yt2xq6p1/diff/openbank-admin-ui/public/lion-quest/game_l02_balcony.webp: no space left on device; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
  • 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.
  • D11 Test Reliability — No tests discovered
  • D12 Dependency Hygiene — Not scored — a Gradle build resolved 913 artifact(s) across its subprojects (466 behind a shipped release, reported), but the currency signal was not established over the whole graph, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
  • D16 Bus Factor — single-contributor repository — bus factor is not applicable
  • 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.
  • D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
  • D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ sibling projects each declaring an entity of their own or taking another project's integration events. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. 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"]`.
  • 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.
  • D8 Code Coverage — Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured — the vitest suite in openbank-admin-ui/ ran and not one test passed (Errors 754 errors), so the coverage report describes the failed run, not the code. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository's maintainers can perform; once it passes, the real number is measured on the next scan. Alternatively, commit the lcov/Cobertura report your CI produces and it is read without a re-run.
  • DM3 Integration-event coupling — no integration events detected — coupling check not applicable
  • DM4 Rich vs anemic model — no data-bearing entities detected — rich-vs-anemic model not assessable
  • DM5 Encapsulated state — no domain entities found — DM5 grades how entities protect their state, and this repository declares none
  • DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
  • DM8 Value-object opportunities — not scored — the deterministic rule found 0 candidate clump(s); its rows are withheld until it has a measured precision of 95 % (a sample of fewer than 10 rows cannot show one)
  • ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
  • GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
  • 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 — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
  • P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (JaCoCo XML — the Gradle `jacocoTestReport` task) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
  • PF2 Allocation hygiene — Not scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
  • R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
  • SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X4 Structured logging — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Kotlin was read, and it logs through none that an assembled message defeats: Android's `Log` and Timber, java.util.logging and log4j-api-kotlin take one finished message (as log4net does in C#), or it makes no call through a named logger at all. Calls made through SLF4J, log4j 2 or kotlin-logging (`LoggerFactory.getLogger`, `KotlinLogging.logger {}`) would be judged.
  • X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.

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.

Critical — 205 finding(s)
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 61 more in this group — see findings.md.
D30 · Dependency Vulnerabilities · High CVE · ×50
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 25 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
AC4 · Keyboard semantics · Hover-only interaction on <tr> · ×10
  • Hover-only interaction on <tr> openbank-admin-ui/src/app/aml/page.tsx:159 — This <tr> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}="0" so the element can receive that focus.
  • Hover-only interaction on <tr> openbank-admin-ui/src/app/clearing/page.tsx:125 — This <tr> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}="0" so the element can receive that focus.
  • Hover-only interaction on <tr> openbank-admin-ui/src/app/fx/page.tsx:462 — This <tr> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}="0" so the element can receive that focus.
  • Hover-only interaction on <tr> openbank-admin-ui/src/app/fx/page.tsx:510 — This <tr> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}="0" so the element can receive that focus.
  • Hover-only interaction on <tr> openbank-admin-ui/src/app/fx/page.tsx:589 — This <tr> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}="0" so the element can receive that focus.
  • Hover-only interaction on <tr> openbank-admin-ui/src/app/fx/page.tsx:829 — This <tr> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}="0" so the element can receive that focus.
  • Hover-only interaction on <tr> openbank-admin-ui/src/app/interest/page.tsx:222 — This <tr> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}="0" so the element can receive that focus.
  • Hover-only interaction on <tr> openbank-admin-ui/src/app/payments/page.tsx:769 — This <tr> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}="0" so the element can receive that focus.
  • Hover-only interaction on <tr> openbank-admin-ui/src/app/sanctions/page.tsx:738 — This <tr> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}="0" so the element can receive that focus.
  • Hover-only interaction on <tr> openbank-admin-ui/src/app/standing-orders/page.tsx:131 — This <tr> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}="0" so the element can receive that focus.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D32 · Data Compliance (PII/GDPR) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
AC4 · Keyboard semantics · Click handler on a non-interactive <g> · ×4
  • Click handler on a non-interactive <g> openbank-admin-ui/src/app/docs/lineage/page.tsx:283 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler.
  • Click handler on a non-interactive <g> openbank-admin-ui/src/components/flow/StageBoard.tsx:178 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler.
  • Click handler on a non-interactive <g> openbank-admin-ui/src/components/lending/OriginationPipeline.tsx:198 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabIndex={0} + a key handler.
  • Click handler on a non-interactive <g> openbank-admin-ui/src/components/party/CustomerContextGraph.tsx:185 — A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabIndex={0}.
D30 · Dependency Vulnerabilities · Critical CVE · ×4
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
AC2 · Forms & labels · <label> that labels no control · ×3
  • <label> that labels no control openbank-admin-ui/src/app/sanctions/page.tsx:978 — This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control openbank-admin-ui/src/app/system/agent/page.tsx:394 — This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control openbank-admin-ui/src/components/cards/ConfirmTransitionDialog.tsx:109 — This <label> has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label htmlFor="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
AC2 · Forms & labels · <input> without a programmatic label · ×2
  • <input> without a programmatic label openbank-admin-ui/src/app/campaigns/new/page.tsx:1201 — This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <input> without a programmatic label openbank-admin-ui/src/app/cards/disputes/page.tsx:265 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label.
AC4 · Keyboard semantics · Hover-only interaction on <div> · ×2
  • Hover-only interaction on <div> openbank-admin-ui/src/app/temporal/page.tsx:866 — This <div> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}="0" so the element can receive that focus.
  • Hover-only interaction on <div> openbank-admin-ui/src/components/docs/DocsHub.tsx:252 — This <div> binds mouse-enter and mouse-leave and nothing else — no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}="0" so the element can receive that focus.
D13 · REDACTED Scanning · Leaked secret · ×2
  • REDACTED
  • REDACTED
AC2 · Forms & labels · <textarea> without a programmatic label · ×1
  • <textarea> without a programmatic label openbank-admin-ui/src/app/product-studio/page.tsx:629 — This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
AC3 · Page structure · Document without a <title> · ×1
  • Document without a <title> openbank-admin-ui/src/app/global-error.tsx:24 — A page with no <title> gives no name in the tab, history or screen-reader page list. Declare it the way this router does — Next App Router `export const metadata = { title }`, React Router/Remix `export function meta`, TanStack Start `head`, or a Helmet/Head component.
D28 · Secrets (history) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D31 · IaC & Container Security · High IaC · ×1
  • REDACTED
R8 · Dependency Hygiene · Unlisted import '@auth/core' · ×1
  • Unlisted import '@auth/core' openbank-admin-ui/e2e/helpers/auth.ts:15 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
R8 · Dependency Hygiene · Unlisted import 'katex' · ×1
  • Unlisted import 'katex' openbank-admin-ui/src/test/katex-trust.test.ts:6 — Imported but not declared in any reachable package.json — installs work only by hoisting accident.
Serious — 4351 finding(s)
D31 · IaC & Container Security · Medium IaC · ×1275
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 1250 more in this group — see findings.md.
D15 · Churn × Complexity Hotspots · Hotspot · ×229
  • Hotspot: .github/scripts/merge-train.py .github/scripts/merge-train.py:4809 — .github/scripts/merge-train.py changed 56 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 410 in merge-train.self_test at line 4809. 20 of those changes were fix/bug commits, and the other 36 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- .github/scripts/merge-train.py`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: .github/scripts/check-test-intelligence-ecosystem.py .github/scripts/check-test-intelligence-ecosystem.py:1006 — .github/scripts/check-test-intelligence-ecosystem.py changed 48 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 143 in check-test-intelligence-ecosystem.check at line 1006. 19 of those changes were fix/bug commits, and the other 29 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- .github/scripts/check-test-intelligence-ecosystem.py`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/sanctions/page.tsx openbank-admin-ui/src/app/sanctions/page.tsx:207 — openbank-admin-ui/src/app/sanctions/page.tsx changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 163 in page.SanctionsPage at line 207. 16 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/sanctions/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/campaigns/new/page.tsx openbank-admin-ui/src/app/campaigns/new/page.tsx:148 — openbank-admin-ui/src/app/campaigns/new/page.tsx changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 183 in page.NewCampaignPage at line 148. 2 of those changes were fix/bug commits, and the other 21 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/campaigns/new/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/payments/page.tsx openbank-admin-ui/src/app/payments/page.tsx:295 — openbank-admin-ui/src/app/payments/page.tsx changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 205 in page.PaymentsContent at line 295. 8 of those changes were fix/bug commits, and the other 12 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/payments/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/product-studio/page.tsx openbank-admin-ui/src/app/product-studio/page.tsx:95 — openbank-admin-ui/src/app/product-studio/page.tsx changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 209 in page.ProductStudioPage at line 95. 3 of those changes were fix/bug commits, and the other 12 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/product-studio/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/campaigns/[id]/page.tsx openbank-admin-ui/src/app/campaigns/[id]/page.tsx:174 — openbank-admin-ui/src/app/campaigns/[id]/page.tsx changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 171 in page.CampaignDetailPage at line 174. 3 of those changes were fix/bug commits, and the other 13 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/campaigns/[id]/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: .github/scripts/collect-test-run-evidence.py .github/scripts/collect-test-run-evidence.py:110 — .github/scripts/collect-test-run-evidence.py changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 76 in collect-test-run-evidence.validate_envelope at line 110. 10 of those changes were fix/bug commits, and the other 20 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- .github/scripts/collect-test-run-evidence.py`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/docs/service-map/page.tsx openbank-admin-ui/src/app/docs/service-map/page.tsx:329 — openbank-admin-ui/src/app/docs/service-map/page.tsx changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 185 in page.ServiceMapPage at line 329. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/docs/service-map/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: REDACTED REDACTED:1111 — REDACTED changed 39 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in collect-test-intelligence.main at line 1111. 12 of those changes were fix/bug commits, and the other 27 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- REDACTED`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/components/layout/Sidebar.tsx openbank-admin-ui/src/components/layout/Sidebar.tsx:20 — openbank-admin-ui/src/components/layout/Sidebar.tsx changed 49 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in Sidebar.Sidebar at line 20. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/components/layout/Sidebar.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/finops/page.tsx openbank-admin-ui/src/app/finops/page.tsx:228 — openbank-admin-ui/src/app/finops/page.tsx changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 130 in page.FinOpsContent at line 228. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/finops/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/product-catalog/page.tsx openbank-admin-ui/src/app/product-catalog/page.tsx:437 — openbank-admin-ui/src/app/product-catalog/page.tsx changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 92 in page.ProductCatalogPage at line 437. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/product-catalog/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/iaops/page.tsx openbank-admin-ui/src/app/iaops/page.tsx:166 — openbank-admin-ui/src/app/iaops/page.tsx changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 72 in page.IAOpsContent at line 166. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/iaops/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/fx/page.tsx openbank-admin-ui/src/app/fx/page.tsx:142 — openbank-admin-ui/src/app/fx/page.tsx changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 114 in page.FxPage at line 142. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/fx/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: .github/scripts/check-security-checklist.py .github/scripts/check-security-checklist.py:902 — .github/scripts/check-security-checklist.py changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 119 in check-security-checklist.self_test at line 902. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- .github/scripts/check-security-checklist.py`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/approvals/page.tsx openbank-admin-ui/src/app/approvals/page.tsx:61 — openbank-admin-ui/src/app/approvals/page.tsx changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 70 in page.ApprovalsPage at line 61. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/approvals/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-infra/scripts/gen-network-policies.py openbank-infra/scripts/gen-network-policies.py:520 — openbank-infra/scripts/gen-network-policies.py changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 140 in gen-network-policies.main at line 520. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-infra/scripts/gen-network-policies.py`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/regulatory/page.tsx openbank-admin-ui/src/app/regulatory/page.tsx:415 — openbank-admin-ui/src/app/regulatory/page.tsx changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in page.RegulatoryPage at line 415. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/regulatory/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: .github/scripts/run-gates.py .github/scripts/run-gates.py:1159 — .github/scripts/run-gates.py changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 152 in run-gates.self_test at line 1159. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- .github/scripts/run-gates.py`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/transactions/page.tsx openbank-admin-ui/src/app/transactions/page.tsx:57 — openbank-admin-ui/src/app/transactions/page.tsx changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 91 in page.TransactionsPage at line 57. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/transactions/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/docs/bcp/page.tsx openbank-admin-ui/src/app/docs/bcp/page.tsx:74 — openbank-admin-ui/src/app/docs/bcp/page.tsx changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 117 in page.BcpPage at line 74. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/docs/bcp/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/document-templates/page.tsx openbank-admin-ui/src/app/document-templates/page.tsx:194 — openbank-admin-ui/src/app/document-templates/page.tsx changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 85 in page.DocumentTemplatesPage at line 194. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/document-templates/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/docs/api/page.tsx openbank-admin-ui/src/app/docs/api/page.tsx:418 — openbank-admin-ui/src/app/docs/api/page.tsx changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 96 in page.ApiCatalogPage at line 418. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/docs/api/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: openbank-admin-ui/src/app/dashboard/page.tsx openbank-admin-ui/src/app/dashboard/page.tsx:62 — openbank-admin-ui/src/app/dashboard/page.tsx changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in page.DashboardPage at line 62. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/dashboard/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • + 204 more in this group — see findings.md.
D3 · God Classes · FunctionTooLong · ×162
  • FunctionTooLong: page.NewCampaignPage openbank-admin-ui/src/app/campaigns/new/page.tsx:148 — FunctionTooLong — NewCampaignPage runs 929 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 829 over it, 9.29× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.FinOpsContent openbank-admin-ui/src/app/finops/page.tsx:228 — FunctionTooLong — FinOpsContent runs 853 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 753 over it, 8.53× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.SanctionsPage openbank-admin-ui/src/app/sanctions/page.tsx:207 — FunctionTooLong — SanctionsPage runs 816 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 716 over it, 8.16× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.CampaignDetailPage openbank-admin-ui/src/app/campaigns/[id]/page.tsx:174 — FunctionTooLong — CampaignDetailPage runs 781 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 681 over it, 7.81× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.GameCatalogPage openbank-admin-ui/src/app/loyalty/game/page.tsx:35 — FunctionTooLong — GameCatalogPage runs 778 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 678 over it, 7.78× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.FxPage openbank-admin-ui/src/app/fx/page.tsx:142 — FunctionTooLong — FxPage runs 617 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 517 over it, 6.17× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.IAOpsContent openbank-admin-ui/src/app/iaops/page.tsx:166 — FunctionTooLong — IAOpsContent runs 617 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 517 over it, 6.17× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.TemporalPage openbank-admin-ui/src/app/temporal/page.tsx:259 — FunctionTooLong — TemporalPage runs 568 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 468 over it, 5.68× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.ProductStudioPage openbank-admin-ui/src/app/product-studio/page.tsx:95 — FunctionTooLong — ProductStudioPage runs 547 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 447 over it, 5.47× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.PidPage openbank-admin-ui/src/app/pid/page.tsx:54 — FunctionTooLong — PidPage runs 534 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 434 over it, 5.34× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.LoyaltyPage openbank-admin-ui/src/app/loyalty/page.tsx:42 — FunctionTooLong — LoyaltyPage runs 494 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 394 over it, 4.94× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.ApiCatalogPage openbank-admin-ui/src/app/docs/api/page.tsx:418 — FunctionTooLong — ApiCatalogPage runs 480 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 380 over it, 4.80× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.MerchantsPage openbank-admin-ui/src/app/merchants/page.tsx:77 — FunctionTooLong — MerchantsPage runs 462 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 362 over it, 4.62× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.BcpPage openbank-admin-ui/src/app/docs/bcp/page.tsx:74 — FunctionTooLong — BcpPage runs 456 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 356 over it, 4.56× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: IssueCardDialog.IssueCardDialog openbank-admin-ui/src/components/cards/IssueCardDialog.tsx:107 — FunctionTooLong — IssueCardDialog runs 455 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 355 over it, 4.55× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.ProductCatalogPage openbank-admin-ui/src/app/product-catalog/page.tsx:437 — FunctionTooLong — ProductCatalogPage runs 451 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 351 over it, 4.51× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.CampaignsPage openbank-admin-ui/src/app/campaigns/page.tsx:104 — FunctionTooLong — CampaignsPage runs 427 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 327 over it, 4.27× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.ApprovalsPage openbank-admin-ui/src/app/approvals/page.tsx:61 — FunctionTooLong — ApprovalsPage runs 393 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 293 over it, 3.93× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: StepEditor.StepEditor openbank-admin-ui/src/components/campaigns/StepEditor.tsx:22 — FunctionTooLong — StepEditor runs 381 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 281 over it, 3.81× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.TransactionsPage openbank-admin-ui/src/app/transactions/page.tsx:57 — FunctionTooLong — TransactionsPage runs 370 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 270 over it, 3.70× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.CommunicationStyleEditorPage openbank-admin-ui/src/app/communication/edit/[personaKey]/page.tsx:56 — FunctionTooLong — CommunicationStyleEditorPage runs 368 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 268 over it, 3.68× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.InfrastructurePage openbank-admin-ui/src/app/infrastructure/page.tsx:79 — FunctionTooLong — InfrastructurePage runs 367 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 267 over it, 3.67× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.SecurityPage openbank-admin-ui/src/app/security/page.tsx:52 — FunctionTooLong — SecurityPage runs 363 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 263 over it, 3.63× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: page.EomPanel openbank-admin-ui/src/app/day-end/page.tsx:404 — FunctionTooLong — EomPanel runs 354 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 254 over it, 3.54× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: JourneyEditor.JourneyEditor openbank-admin-ui/src/components/campaigns/JourneyEditor.tsx:106 — FunctionTooLong — JourneyEditor runs 353 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 253 over it, 3.53× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • + 137 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED · ×64
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 39 more in this group — see findings.md.
D3 · God Classes · FileTooLong · ×64
  • FileTooLong: scripts/merge-train.py .github/scripts/merge-train.py — FileTooLong — 6654 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 6154 over it, 13.31× the bar. 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: rest/CustomerEdgeResource.kt openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt — FileTooLong — 3948 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3448 over it, 7.90× the bar. 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: scripts/check-security-checklist.py .github/scripts/check-security-checklist.py — FileTooLong — 1337 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 837 over it, 2.67× the bar. 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: usecase/LendingService.kt openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt — FileTooLong — 1169 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: LendingService (106-1871). The bar is 500 significant lines; this is 669 over it, 2.34× the bar. 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: scripts/run-gates.py .github/scripts/run-gates.py — FileTooLong — 1158 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 658 over it, 2.32× the bar. 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: domain/ProductSeed.kt openbank-product-catalog/src/main/kotlin/com/openbank/productcatalog/domain/ProductSeed.kt — FileTooLong — 1106 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 606 over it, 2.21× the bar. 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: payments/page.tsx openbank-admin-ui/src/app/payments/page.tsx — FileTooLong — 1044 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 544 over it, 2.09× the bar. 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: finops/page.tsx openbank-admin-ui/src/app/finops/page.tsx — FileTooLong — 1034 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: FinOpsContent (228-1178). The bar is 500 significant lines; this is 534 over it, 2.07× the bar. 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: new/page.tsx openbank-admin-ui/src/app/campaigns/new/page.tsx — FileTooLong — 1019 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: NewCampaignPage (148-1277). The bar is 500 significant lines; this is 519 over it, 2.04× the bar. 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: sanctions/page.tsx openbank-admin-ui/src/app/sanctions/page.tsx — FileTooLong — 983 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: SanctionsPage (207-1209). The bar is 500 significant lines; this is 483 over it, 1.97× the bar. 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: scripts/check-threat-model-claims.py .github/scripts/check-threat-model-claims.py — FileTooLong — 969 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 469 over it, 1.94× the bar. 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: [id]/page.tsx openbank-admin-ui/src/app/campaigns/[id]/page.tsx — FileTooLong — 967 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: CampaignDetailPage (174-1149). The bar is 500 significant lines; this is 467 over it, 1.93× the bar. 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: service-map/page.tsx openbank-admin-ui/src/app/docs/service-map/page.tsx — FileTooLong — 918 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 418 over it, 1.84× the bar. 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: document-templates/page.tsx openbank-admin-ui/src/app/document-templates/page.tsx — FileTooLong — 859 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 359 over it, 1.72× the bar. 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: day-end/page.tsx openbank-admin-ui/src/app/day-end/page.tsx — FileTooLong — 844 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 344 over it, 1.69× the bar. 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: persistence/Persistence.kt openbank-campaign-service/src/main/kotlin/com/openbank/campaign/infrastructure/persistence/Persistence.kt — FileTooLong — 831 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 331 over it, 1.66× the bar. 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: product-catalog/page.tsx openbank-admin-ui/src/app/product-catalog/page.tsx — FileTooLong — 810 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 310 over it, 1.62× the bar. 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: game/page.tsx openbank-admin-ui/src/app/loyalty/game/page.tsx — FileTooLong — 807 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: GameCatalogPage (35-922). The bar is 500 significant lines; this is 307 over it, 1.61× the bar. 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: scripts/auto-update-armed-prs.py .github/scripts/auto-update-armed-prs.py — FileTooLong — 806 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 306 over it, 1.61× the bar. 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: usecase/TreasuryDealService.kt openbank-treasury-service/src/main/kotlin/com/openbank/treasury/application/usecase/TreasuryDealService.kt — FileTooLong — 805 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: TreasuryDealService (99-1289). The bar is 500 significant lines; this is 305 over it, 1.61× the bar. 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: api/page.tsx openbank-admin-ui/src/app/docs/api/page.tsx — FileTooLong — 780 significant lines (blank, comment-only and punctuation-only lines excluded), about 62% of them inside a single declaration: ApiCatalogPage (418-1006). The bar is 500 significant lines; this is 280 over it, 1.56× the bar. 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: merchants/page.tsx openbank-admin-ui/src/app/merchants/page.tsx — FileTooLong — 766 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: MerchantsPage (77-643). The bar is 500 significant lines; this is 266 over it, 1.53× the bar. 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: usecase/BusinessSigningService.kt openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/BusinessSigningService.kt — FileTooLong — 763 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: BusinessSigningService (114-1018). The bar is 500 significant lines; this is 263 over it, 1.53× the bar. 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: scripts/check-api-contract.py .github/scripts/check-api-contract.py — FileTooLong — 758 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 258 over it, 1.52× the bar. 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: scripts/generate-service-runbooks.py openbank-infra/scripts/generate-service-runbooks.py — FileTooLong — 757 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 257 over it, 1.51× the bar. 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.
  • + 39 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×63
  • Duplicated block (5 lines × 2) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/kafka/DelegationEventConsumer.kt:116 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/kafka/DelegationEventConsumer.kt:116-120 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/kafka/CardDelegationEventConsumer.kt:77-81 — 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 `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/kafka/DelegationEventConsumer.kt:116` 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) openbank-campaign-service/src/main/kotlin/com/openbank/campaign/application/usecase/CampaignContentExperimentQuery.kt:98 — openbank-campaign-service/src/main/kotlin/com/openbank/campaign/application/usecase/CampaignContentExperimentQuery.kt:98-102 | openbank-campaign-service/src/main/kotlin/com/openbank/campaign/application/usecase/CampaignExperimentQuery.kt:116-120 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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) openbank-campaign-service/src/main/kotlin/com/openbank/campaign/infrastructure/rest/CampaignContentExperimentResource.kt:24 — openbank-campaign-service/src/main/kotlin/com/openbank/campaign/infrastructure/rest/CampaignContentExperimentResource.kt:24-28 | openbank-campaign-service/src/main/kotlin/com/openbank/campaign/infrastructure/rest/CampaignExperimentResource.kt:24-28 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-campaign-service/src/main/kotlin/com/openbank/campaign/infrastructure/rest/CampaignContentExperimentResource.kt:24` 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) openbank-campaign-service/src/main/kotlin/com/openbank/campaign/infrastructure/segment/SilverSegmentEvaluator.kt:61 — openbank-campaign-service/src/main/kotlin/com/openbank/campaign/infrastructure/segment/SilverSegmentEvaluator.kt:61-65 | openbank-campaign-service/src/main/kotlin/com/openbank/campaign/infrastructure/segment/SilverSegmentEvaluator.kt:134-138 — 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 `openbank-campaign-service/src/main/kotlin/com/openbank/campaign/infrastructure/segment/SilverSegmentEvaluator.kt:61` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (5 lines × 2) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerDelegationResource.kt:311 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerDelegationResource.kt:311-315 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerDelegationResource.kt:360-364 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerDelegationResource.kt:316` calls `remove` and `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerDelegationResource.kt:365` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (5 lines × 2) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1003 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1003-1007 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1064-1068 — 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 `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1003` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/AccountServiceClient.kt:80 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/AccountServiceClient.kt:80-84 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/client/AccountServiceClient.kt:63-67 — 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 `openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/AccountServiceClient.kt:80` 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) openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/C7300Mapper.kt:105 — openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/C7300Mapper.kt:105-109 | openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/C7400Mapper.kt:105-109 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/C7400Mapper.kt:104` calls `checkCap`, `checkNotNull` and `openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/C7300Mapper.kt:104` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (5 lines × 2) openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/CloseJobRunRepository.kt:65 — openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/CloseJobRunRepository.kt:65-69 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseEvidenceRepository.kt:56-60 — before extracting anything, compare `openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/CloseJobRunRepository.kt` and `openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseEvidenceRepository.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/CloseJobRunRepository.kt:65` 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 first that the copies are not typed on the same thing: `InFlightRun` names `com.openbank.lending.application.port.out.InFlightRun` in one and `com.openbank.treasury.application.port.out.InFlightRun` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (5 lines × 2) openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/observability/PensionFundStateGauges.kt:89 — openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/observability/PensionFundStateGauges.kt:89-93 | openbank-pension-service/src/main/kotlin/com/openbank/pension/infrastructure/observability/PensionStateGauges.kt:67-71 — 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) openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/nostro/NostroStatementRepositoryImpl.kt:92 — openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/nostro/NostroStatementRepositoryImpl.kt:92-96 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/portfolio/PortfolioStatementRepositoryImpl.kt:150-154 — 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 `openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/nostro/NostroStatementRepositoryImpl.kt: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 (5 lines × 2) openbank-pension-service/src/main/kotlin/com/openbank/pension/infrastructure/rest/ExceptionMappers.kt:20 — openbank-pension-service/src/main/kotlin/com/openbank/pension/infrastructure/rest/ExceptionMappers.kt:20-24 | openbank-wealth-service/src/main/kotlin/com/openbank/wealth/infrastructure/rest/ExceptionMappers.kt:24-28 — 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) openbank-agent-service/src/main/kotlin/com/openbank/agent/application/AgentChatService.kt:480 — openbank-agent-service/src/main/kotlin/com/openbank/agent/application/AgentChatService.kt:480-484 | openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/mcp/McpEndpoint.kt:301-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 (5 lines × 2) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/ProductShadowRepositoryImpl.kt:174 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/ProductShadowRepositoryImpl.kt:174-178 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/ProductShadowRepositoryImpl.kt:115-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. Note first that the copies are not typed on the same thing: `ProductShadowInputEntity` names `com.openbank.billing.infrastructure.persistence.entity.ProductShadowInputEntity` in one and `com.openbank.interest.infrastructure.persistence.entity.ProductShadowInputEntity` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (5 lines × 2) openbank-consent-service/src/main/kotlin/com/openbank/consent/domain/model/Suppression.kt:56 — openbank-consent-service/src/main/kotlin/com/openbank/consent/domain/model/Suppression.kt:56-60 | openbank-libs-runtime/src/main/kotlin/com/openbank/libs/contact/ContactPolicy.kt:73-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.
  • Duplicated block (5 lines × 2) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseEvidenceResource.kt:154 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseEvidenceResource.kt:154-158 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AuthorityHistoryResource.kt:75-79 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (5 lines × 2) openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GitHubProposalAdapter.kt:142 — openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GitHubProposalAdapter.kt:142-146 | openbank-devops-agent/src/main/kotlin/com/openbank/devops/infrastructure/adapter/RemediationProposalAdapter.kt:100-105 — before extracting anything, compare `openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GitHubProposalAdapter.kt` and `openbank-devops-agent/src/main/kotlin/com/openbank/devops/infrastructure/adapter/RemediationProposalAdapter.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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) openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/rest/ActionConfirmResource.kt:139 — openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/rest/ActionConfirmResource.kt:139-143 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/rest/CopilotChatResource.kt:83-87 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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) openbank-kyb-service/src/main/kotlin/com/openbank/kyb/infrastructure/SecureInvitationTokens.kt:20 — openbank-kyb-service/src/main/kotlin/com/openbank/kyb/infrastructure/SecureInvitationTokens.kt:20-24 | openbank-referral-service/src/main/kotlin/com/openbank/referral/application/ReferralService.kt:347-351 — 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 (5 lines × 2) openbank-libs-domain/src/main/kotlin/com/openbank/libs/identity/MatchKey.kt:29 — openbank-libs-domain/src/main/kotlin/com/openbank/libs/identity/MatchKey.kt:29-33 | openbank-pid-service/src/main/kotlin/com/openbank/pid/domain/identity/ProbabilisticMatcher.kt:169-173 — 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) openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/FundReportingResource.kt:51 — openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/FundReportingResource.kt:51-55 | openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/LegacyFundReportingResource.kt:51-55 — before extracting anything, compare `openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/FundReportingResource.kt` and `openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/LegacyFundReportingResource.kt` as WHOLE FILES: 88% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/FundReportingResource.kt:51` 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (5 lines × 2) openbank-pension-service/src/main/kotlin/com/openbank/pension/application/exit/PayoutService.kt:297 — openbank-pension-service/src/main/kotlin/com/openbank/pension/application/exit/PayoutService.kt:297-301 | openbank-pension-service/src/main/kotlin/com/openbank/pension/application/exit/TerminationService.kt:120-124 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (5 lines × 2) openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:197 — openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:197-201 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt:200-204 — before extracting anything, compare `openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt` and `openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind `entity` to `ScaOperatorApprovalEntity` in one and `SettlementOperatorApprovalEntity` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (5 lines × 2) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ComplaintProjectionConsumer.kt:49 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ComplaintProjectionConsumer.kt:49-53 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/DomesticPaymentProjectionConsumer.kt:50-54 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ComplaintProjectionConsumer.kt:49` 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) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ComplaintProjectionConsumer.kt:56 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ComplaintProjectionConsumer.kt:56-60 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/IncidentProjectionConsumer.kt:53-57 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ComplaintProjectionConsumer.kt: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.
  • + 38 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED · ×48
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 23 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×42
  • Duplicated block (6 lines × 2) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseEvidenceResource.kt:98 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseEvidenceResource.kt:98-103 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseEvidenceResource.kt:147-152 — 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 `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseEvidenceResource.kt:98` 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) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextAuditCommitmentRelay.kt:92 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextAuditCommitmentRelay.kt:92-97 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextDisclosureCommitmentRelay.kt:94-99 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextAuditCommitmentRelay.kt:92` 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) openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GitHubProposalAdapter.kt:135 — openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GitHubProposalAdapter.kt:135-140 | openbank-devops-agent/src/main/kotlin/com/openbank/devops/infrastructure/adapter/RemediationProposalAdapter.kt:93-98 — before extracting anything, compare `openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GitHubProposalAdapter.kt` and `openbank-devops-agent/src/main/kotlin/com/openbank/devops/infrastructure/adapter/RemediationProposalAdapter.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (6 lines × 2) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/onboarding/OnboardingResumeService.kt:224 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/onboarding/OnboardingResumeService.kt:224-229 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:6587-6592 — 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 `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/onboarding/OnboardingResumeService.kt:224` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:3107 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:3107-3112 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:3477-3482 — 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 `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:3107` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:546 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:546-551 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:615-620 — 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 `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:546` 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) openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/kafka/KafkaFraudOutboxEventPublisher.kt:32 — openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/kafka/KafkaFraudOutboxEventPublisher.kt:32-37 | openbank-sdd-service/src/main/kotlin/com/openbank/sdd/infrastructure/kafka/KafkaSddOutboxEventPublisher.kt:38-43 — before extracting anything, compare `openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/kafka/KafkaFraudOutboxEventPublisher.kt` and `openbank-sdd-service/src/main/kotlin/com/openbank/sdd/infrastructure/kafka/KafkaSddOutboxEventPublisher.kt` as WHOLE FILES: 89% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/kafka/KafkaFraudOutboxEventPublisher.kt:32` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/security/FxScopeIdentityAugmentor.kt:37 — openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/security/FxScopeIdentityAugmentor.kt:37-42 | openbank-product-catalog/src/main/kotlin/com/openbank/productcatalog/infrastructure/security/CatalogScopeIdentityAugmentor.kt:59-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. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/security/FxScopeIdentityAugmentor.kt:37` 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) openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/kafka/KafkaInterestOutboxEventPublisher.kt:50 — openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/kafka/KafkaInterestOutboxEventPublisher.kt:50-55 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/messaging/KafkaLedgerOutboxEventPublisher.kt:44-49 — 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 `openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/kafka/KafkaInterestOutboxEventPublisher.kt:50` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/LedgerBackfillResource.kt:119 — openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/LedgerBackfillResource.kt:119-124 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/LedgerBackfillVoidResource.kt:133-138 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/LedgerBackfillResource.kt: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 (6 lines × 2) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/toolkit/ProductToolkit.kt:262 — openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/toolkit/ProductToolkit.kt:262-267 | openbank-libs-testing/src/main/kotlin/com/openbank/libs/testing/product/GoldenScenario.kt:90-95 — 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 `openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/toolkit/ProductToolkit.kt:262` 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) openbank-notification-service/src/main/kotlin/com/openbank/notification/application/OversightWebhook.kt:94 — openbank-notification-service/src/main/kotlin/com/openbank/notification/application/OversightWebhook.kt:94-99 | openbank-statement-service/src/main/kotlin/com/openbank/statement/application/usecase/CloseOrchestrator.kt:269-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 `openbank-notification-service/src/main/kotlin/com/openbank/notification/application/OversightWebhook.kt:94` 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) openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/persistence/repository/SanctionsEntryRepositoryImpl.kt:131 — openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/persistence/repository/SanctionsEntryRepositoryImpl.kt:131-136 | openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/persistence/repository/SanctionsEntryRepositoryImpl.kt:182-187 — 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 `openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/persistence/repository/SanctionsEntryRepositoryImpl.kt:131` 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) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/DelegationProjectionRepositoryImpl.kt:70 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/DelegationProjectionRepositoryImpl.kt:70-75 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardDelegationProjectionRepositoryImpl.kt:69-74 — 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) openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt:151 — openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt:151-156 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/application/ModelGateway.kt:186-191 — before extracting anything, compare `openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt` and `openbank-copilot-service/src/main/kotlin/com/openbank/copilot/application/ModelGateway.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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 first that the copies are not typed on the same thing: `ModelRequest` names `com.openbank.agent.domain.model.ModelRequest` in one and `com.openbank.copilot.domain.model.ModelRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (6 lines × 2) openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/kafka/KafkaAmlOutboxEventPublisher.kt:58 — openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/kafka/KafkaAmlOutboxEventPublisher.kt:58-63 | openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/kafka/KafkaSanctionsOutboxEventPublisher.kt:52-57 — 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) openbank-billing-service/src/main/kotlin/com/openbank/billing/application/usecase/ProductShadowService.kt:85 — openbank-billing-service/src/main/kotlin/com/openbank/billing/application/usecase/ProductShadowService.kt:85-90 | openbank-interest-service/src/main/kotlin/com/openbank/interest/application/usecase/ProductShadowService.kt:94-99 — 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 first that the copies are not typed on the same thing: `CancellationException` names `kotlin.coroutines.cancellation.CancellationException` in one and `kotlinx.coroutines.CancellationException` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (6 lines × 2) openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/client/FraudScoringAdapter.kt:132 — openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/client/FraudScoringAdapter.kt:132-137 | openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/client/TransactionLedgerPostingAdapter.kt:162-167 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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) openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GitHubProposalAdapter.kt:148 — openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GitHubProposalAdapter.kt:148-153 | openbank-devops-agent/src/main/kotlin/com/openbank/devops/infrastructure/adapter/RemediationProposalAdapter.kt:107-112 — before extracting anything, compare `openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GitHubProposalAdapter.kt` and `openbank-devops-agent/src/main/kotlin/com/openbank/devops/infrastructure/adapter/RemediationProposalAdapter.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/application/usecase/DomesticPaymentService.kt:350 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/application/usecase/DomesticPaymentService.kt:350-355 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/application/usecase/SepaPaymentService.kt:219-224 — 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) openbank-kyc-service/src/main/kotlin/com/openbank/kyc/infrastructure/observability/OrphanedPartyGauge.kt:125 — openbank-kyc-service/src/main/kotlin/com/openbank/kyc/infrastructure/observability/OrphanedPartyGauge.kt:125-130 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/servicing/ProvisioningCycleScheduler.kt:117-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.
  • Duplicated block (6 lines × 2) openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:95 — openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:95-100 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt:97-102 — before extracting anything, compare `openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt` and `openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 2) openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:127 — openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:127-132 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt:129-134 — before extracting anything, compare `openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt` and `openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 2) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseEvidenceResource.kt:47 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseEvidenceResource.kt:47-52 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseEvidenceResource.kt:114-119 — 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 (6 lines × 2) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:2608 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:2608-2613 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:4706-4711 — 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.
  • + 17 more in this group — see findings.md.
D6 · Cohesion (LCOM4) · Low cohesion · ×42
  • Low cohesion: CardRepositoryImpl (LCOM4 9) openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardRepositoryImpl.kt:23 — CardRepositoryImpl's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: PanacheSendLogRepository (LCOM4 9) openbank-campaign-service/src/main/kotlin/com/openbank/campaign/infrastructure/persistence/Persistence.kt:679 — PanacheSendLogRepository's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: StandingOrderRepositoryImpl (LCOM4 7) openbank-standing-order-service/src/main/kotlin/com/openbank/standingorder/infrastructure/persistence/repository/StandingOrderRepositoryImpl.kt:24 — StandingOrderRepositoryImpl's methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: LeafLedgerRepositoryImpl (LCOM4 6) openbank-loyalty-service/src/main/kotlin/com/openbank/loyalty/infrastructure/persistence/repository/LeafLedgerRepositoryImpl.kt:39 — LeafLedgerRepositoryImpl's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: DelegationRepositoryImpl (LCOM4 6) openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/persistence/repository/DelegationRepositoryImpl.kt:27 — DelegationRepositoryImpl's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: TransactionOutboxRepositoryImpl (LCOM4 5) openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/persistence/repository/TransactionOutboxRepositoryImpl.kt:27 — TransactionOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: StandingOrderOutboxRepositoryImpl (LCOM4 5) openbank-standing-order-service/src/main/kotlin/com/openbank/standingorder/infrastructure/persistence/repository/StandingOrderOutboxRepositoryImpl.kt:26 — StandingOrderOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: SettlementOutboxRepositoryImpl (LCOM4 5) openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/persistence/SettlementOutboxRepositoryImpl.kt:26 — SettlementOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: SepaPaymentOutboxRepositoryImpl (LCOM4 5) openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/persistence/repository/SepaPaymentOutboxRepositoryImpl.kt:27 — SepaPaymentOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: ScaOutboxRepositoryImpl (LCOM4 5) openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/persistence/repository/ScaOutboxRepositoryImpl.kt:26 — ScaOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: SanctionsOutboxRepositoryImpl (LCOM4 5) openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/persistence/repository/SanctionsOutboxRepositoryImpl.kt:26 — SanctionsOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: SanctionsRepositoryImpl (LCOM4 5) openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/persistence/repository/SanctionsRepositoryImpl.kt:26 — SanctionsRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: LendingOutboxRepositoryImpl (LCOM4 5) openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LendingOutboxRepositoryImpl.kt:27 — LendingOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: LedgerOutboxRepositoryImpl (LCOM4 5) openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/LedgerOutboxRepositoryImpl.kt:27 — LedgerOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: InterestOutboxRepositoryImpl (LCOM4 5) openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/InterestOutboxRepositoryImpl.kt:27 — InterestOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: FxOutboxRepositoryImpl (LCOM4 5) openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/persistence/repository/FxOutboxRepositoryImpl.kt:26 — FxOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: FraudOutboxRepositoryImpl (LCOM4 5) openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/persistence/FraudOutboxRepositoryImpl.kt:32 — FraudOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: DomesticPaymentOutboxRepositoryImpl (LCOM4 5) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt:27 — DomesticPaymentOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: DocumentResource (LCOM4 5) openbank-document-service/src/main/kotlin/com/openbank/document/infrastructure/rest/DocumentResource.kt:47 — DocumentResource's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: DelegationOutboxRepositoryImpl (LCOM4 5) openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/persistence/repository/DelegationOutboxRepositoryImpl.kt:27 — DelegationOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: ConsentOutboxRepositoryImpl (LCOM4 5) openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/persistence/repository/ConsentOutboxRepositoryImpl.kt:26 — ConsentOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: ConsentRepositoryImpl (LCOM4 5) openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/persistence/repository/ConsentRepositoryImpl.kt:23 — ConsentRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CardProcessingOutboxRepositoryImpl (LCOM4 5) openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:28 — CardProcessingOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CardOutboxRepositoryImpl (LCOM4 5) openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt:27 — CardOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: BalanceOutboxRepositoryImpl (LCOM4 5) openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt:26 — BalanceOutboxRepositoryImpl's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • + 17 more in this group — see findings.md.
AX2 · Stateful singletons · Stateful singleton · ×40
  • Stateful singleton: TreasuryCloseParticipationScheduler openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseParticipationScheduler.kt:63 — `TreasuryCloseParticipationScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 80).
  • Stateful singleton: FixingScheduler openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/scheduler/FixingScheduler.kt:30 — `FixingScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `registerLiveness` at line 41).
  • Stateful singleton: InterestAccrualScheduler openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/scheduler/InterestAccrualScheduler.kt:48 — `InterestAccrualScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `registerLiveness` at line 65).
  • Stateful singleton: NostroBreakScheduler openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/scheduler/NostroBreakScheduler.kt:35 — `NostroBreakScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `register` at line 51).
  • Stateful singleton: PostingIntentReconcileScheduler openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/scheduler/PostingIntentReconcileScheduler.kt:42 — `PostingIntentReconcileScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `registerLiveness` at line 58).
  • Stateful singleton: SimulatedMarketScheduler openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/scheduler/SimulatedMarketScheduler.kt:30 — `SimulatedMarketScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `registerLiveness` at line 41).
  • Stateful singleton: PaymentWorkerRegistrar openbank-transaction-service/src/main/kotlin/com/openbank/transaction/application/workflow/PaymentWorkerRegistrar.kt:23 — `PaymentWorkerRegistrar` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (workerFactory; e.g. `workerFactory` in `onStart` at line 41).
  • Stateful singleton: SwiftBookingAgeGauge openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/observability/SwiftBookingAgeGauge.kt:27 — `SwiftBookingAgeGauge` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 53).
  • Stateful singleton: SwiftSettlementMetrics openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/observability/SwiftSettlementMetrics.kt:20 — `SwiftSettlementMetrics` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (counters; e.g. `counters` in `bindTo` at line 32).
  • Stateful singleton: InstitutionTransferResolutionSweeper openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/scheduler/InstitutionTransferResolutionSweeper.kt:39 — `InstitutionTransferResolutionSweeper` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `registerLiveness` at line 55).
  • Stateful singleton: SwiftSettlementRedriveScheduler openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/scheduler/SwiftSettlementRedriveScheduler.kt:30 — `SwiftSettlementRedriveScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 42).
  • Stateful singleton: PeriodCloseScheduler openbank-statement-service/src/main/kotlin/com/openbank/statement/infrastructure/scheduler/PeriodCloseScheduler.kt:31 — `PeriodCloseScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `registerLiveness` at line 41).
  • Stateful singleton: StandingOrderExecutionScheduler openbank-standing-order-service/src/main/kotlin/com/openbank/standingorder/infrastructure/scheduler/StandingOrderExecutionScheduler.kt:39 — `StandingOrderExecutionScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 58).
  • Stateful singleton: SettlementMetricsAdapter openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/observability/SettlementMetricsAdapter.kt:60 — `SettlementMetricsAdapter` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (registry; e.g. `registry` in `bindTo` at line 77).
  • Stateful singleton: SettlementStrandedGauge openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/observability/SettlementStrandedGauge.kt:103 — `SettlementStrandedGauge` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 138).
  • Stateful singleton: OperatorApprovalPurgeScheduler openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/scheduler/OperatorApprovalPurgeScheduler.kt:36 — `OperatorApprovalPurgeScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness, purged; e.g. `liveness` in `register` at line 50).
  • Stateful singleton: FraudScoringMetrics openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/observability/FraudScoringMetrics.kt:54 — `FraudScoringMetrics` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (realOutcomes, syntheticOutcomes, unrecognisedOutcomes; e.g. `realOutcomes` in `bindTo` at line 77).
  • Stateful singleton: SepaBookingAgeGauge openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/observability/SepaBookingAgeGauge.kt:27 — `SepaBookingAgeGauge` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 53).
  • Stateful singleton: SepaRefundUnsettledAgeGauge openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/observability/SepaRefundUnsettledAgeGauge.kt:28 — `SepaRefundUnsettledAgeGauge` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 63).
  • Stateful singleton: SepaSettlementMetrics openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/observability/SepaSettlementMetrics.kt:19 — `SepaSettlementMetrics` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (counters; e.g. `counters` in `bindTo` at line 31).
  • Stateful singleton: FraudScoringMetrics openbank-sepa-instant/src/main/kotlin/com/openbank/sepainstant/infrastructure/observability/FraudScoringMetrics.kt:54 — `FraudScoringMetrics` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (realOutcomes, syntheticOutcomes, unrecognisedOutcomes; e.g. `realOutcomes` in `bindTo` at line 77).
  • Stateful singleton: SecurityScannerService openbank-security-scanner/src/main/kotlin/com/openbank/securityscanner/application/SecurityScannerService.kt:20 — `SecurityScannerService` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (lastReport; e.g. `lastReport` in `scanAll` at line 35).
  • Stateful singleton: MandateExpiryScheduler openbank-sdd-service/src/main/kotlin/com/openbank/sdd/infrastructure/scheduler/MandateExpiryScheduler.kt:27 — `MandateExpiryScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness; e.g. `liveness` in `onStart` at line 36).
  • Stateful singleton: DecisionEvidencePurgeScheduler openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/scheduler/DecisionEvidencePurgeScheduler.kt:36 — `DecisionEvidencePurgeScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness, purged; e.g. `liveness` in `register` at line 50).
  • Stateful singleton: OperatorApprovalPurgeScheduler openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/scheduler/OperatorApprovalPurgeScheduler.kt:36 — `OperatorApprovalPurgeScheduler` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (liveness, purged; e.g. `liveness` in `register` at line 50).
  • + 15 more in this group — see findings.md.
R4 · Test Coverage · No test reaches this file · ×40
  • No test reaches this file openbank-admin-ui/scripts/generate-service-graph.mjs:1 — 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.
  • No test reaches this file openbank-admin-ui/scripts/generate-security-graph.mjs:1 — 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.
  • No test reaches this file openbank-admin-ui/scripts/admin-operator-journey.mjs:1 — 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.
  • No test reaches this file openbank-admin-ui/scripts/generate-events.mjs:1 — 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.
  • No test reaches this file openbank-admin-ui/scripts/generate-infra-lifecycle.mjs:1 — 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.
  • No test reaches this file openbank-infra/web/status/app.js:1 — 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.
  • No test reaches this file openbank-admin-ui/scripts/admin-login-synthetic.mjs:1 — 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.
  • No test reaches this file openbank-infra/web/landing/main.js:1 — 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.
  • No test reaches this file openbank-admin-ui/scripts/approval-inbox-fixture.mjs:1 — 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.
  • No test reaches this file openbank-admin-ui/scripts/generate-origination-graph.mjs:1 — 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.
  • No test reaches this file openbank-admin-ui/scripts/collect-dora.mjs:1 — 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.
  • No test reaches this file REDACTED:1 — 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.
  • No test reaches this file openbank-admin-ui/scripts/collect-aws-costs.mjs:1 — 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.
  • No test reaches this file REDACTED:1 — 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.
  • No test reaches this file openbank-admin-ui/scripts/collect-test-results.mjs:1 — 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.
  • No test reaches this file openbank-admin-ui/otel-bootstrap.cjs:1 — 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.
  • No test reaches this file openbank-admin-ui/scripts/approval-inbox-auth-synthetic.mjs:1 — 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.
  • No test reaches this file REDACTED:1 — 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.
  • No test reaches this file openbank-admin-ui/scripts/generate-card-capabilities.mjs:1 — 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.
  • No test reaches this file REDACTED:1 — 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.
  • No test reaches this file REDACTED:1 — 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.
  • No test reaches this file openbank-infra/web/landing/platform.js:1 — 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.
  • No test reaches this file openbank-admin-ui/src/app/api/campaigns/[id]/sends/route.ts:1 — 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.
  • No test reaches this file REDACTED:1 — 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.
  • No test reaches this file openbank-admin-ui/src/app/api/iaops/kill-switch/route.ts:1 — 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.
  • + 15 more in this group — see findings.md.
D15 · Churn × Complexity Hotspots · Repeated repair · ×33
  • Repeated repair: .github/scripts/check-openapi-enum-vs-domain.py .github/scripts/check-openapi-enum-vs-domain.py:549 — .github/scripts/check-openapi-enum-vs-domain.py changed 25 times in last 90 days and 14 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 11 (its worst body is check-openapi-enum-vs-domain.main at line 549), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(fraud): share the financial-crime vocabulary in openbank-libs-fincrime (#13770)”; “fix(pid): publish the NATURAL_PERSON party type the service actually accepts (#9932)”; “fix(ci): correct the lending origination baseline reason — it asked for a breaking change (#9865)”; “fix(gates): stop the enum gate ending a spec enum at the first comment (#9838)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- .github/scripts/check-openapi-enum-vs-domain.py`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: REDACTED REDACTED:290 — REDACTED changed 11 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 7 (its worst body is discovery.resolveServiceInSnapshot at line 290), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(admin-ui): derive business domains from canonical governance (#14953)”; “fix(admin-ui): tolerate slow fleet documentation probes and discover agent namespaces (#14168)”; “fix(admin-ui): refresh operational evidence and restore source-backed views (#13391)”; “fix(admin-ui): join Test Intelligence to the running commit behind one cached snapshot (#13203)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- REDACTED`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-admin-ui/src/app/layout.tsx openbank-admin-ui/src/app/layout.tsx:30 — openbank-admin-ui/src/app/layout.tsx changed 9 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 4 (its worst body is layout.RootLayout at line 30), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(admin-ui,mcp-service): align remaining domain consumers (#15040)”; “fix(admin-ui): seed sidebar roles from the session cookie to paint operator nav in one pass (#14319)”; “fix(infra): improve public portal metadata and contrast (#12279)”; “fix(admin-ui): harden and accelerate operator workflows (#10138)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/layout.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-interest-service/src/main/kotlin/com/openbank/interest/application/usecase/InterestService.kt openbank-interest-service/src/main/kotlin/com/openbank/interest/application/usecase/InterestService.kt:128 — openbank-interest-service/src/main/kotlin/com/openbank/interest/application/usecase/InterestService.kt changed 10 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 5 (its worst body is InterestService.accrue at line 128), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ledger): capture source-linked journal history snapshots with idempotent capture (#13763)”; “fix(interest): compute ACT_ACT and THIRTY_360 accruals with a kernel DayCount; fix small-principal amortization (#11671)”; “fix(interest): book late capitalizations forward and keep ledger 4xx out of the breaker (#10487)”; “fix(interest): recover capitalization claims stranded by a failed ledger post (#10470)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-interest-service/src/main/kotlin/com/openbank/interest/application/usecase/InterestService.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/F0101Mapper.kt openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/F0101Mapper.kt:30 — openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/F0101Mapper.kt changed 8 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 1 (its worst body is F0101Mapper.map at line 30), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(finrep): classify ADR-0344 instrument accounts (#14290)”; “fix(finrep): map ČNB, lombard and nostro overdraft to FINREP sub-lines (#13602)”; “fix(finrep): classify treasury GL codes in the FINREP allowlist and F01/F02 mappers (#13146)”; “fix(regulatory): complete FINREP and COREP previews (#7296)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/F0101Mapper.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/F0102Mapper.kt openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/F0102Mapper.kt:17 — openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/F0102Mapper.kt changed 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 1 (its worst body is F0102Mapper.map at line 17), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(finrep): classify ADR-0344 instrument accounts (#14290)”; “fix(finrep): verify balance sheet datapoint ids (#14147)”; “fix(finrep): map ČNB, lombard and nostro overdraft to FINREP sub-lines (#13602)”; “fix(finrep): classify treasury GL codes in the FINREP allowlist and F01/F02 mappers (#13146)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/F0102Mapper.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/domain/model/FlakyTestModels.kt openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/domain/model/FlakyTestModels.kt:145 — openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/domain/model/FlakyTestModels.kt changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 1 (its worst body is TestIntelligenceAnalysisRequest.requireComponents at line 145), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(flaky-test-hunter): clear CI cliffs and recognize recorder policy sources (#14373)”; “fix(flaky-test-hunter): drop the inputless weekly sweep and open real tracking issues (#13155)”; “fix(flaky-test-hunter): reject a null array element with 400 instead of 500 (#7994)”; “fix(test-intelligence): expose deterministic fleet gaps”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/domain/model/FlakyTestModels.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-libs-runtime/src/main/kotlin/com/openbank/libs/api/error/CommonExceptionMappers.kt openbank-libs-runtime/src/main/kotlin/com/openbank/libs/api/error/CommonExceptionMappers.kt:265 — openbank-libs-runtime/src/main/kotlin/com/openbank/libs/api/error/CommonExceptionMappers.kt changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 6 (its worst body is WebApplicationExceptionMapper.toResponse at line 265), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(libs): classify a truncated multipart body as 400, not 500 (#14790)”; “fix(libs): sanitise audit log fields, drop inbound synthetic baggage, stop echoing internal messages (#11679)”; “fix(libs): remove duplicate UnauthorizedException mappers; add unused 404/409 bases (#10923)”; “fix(libs): render a 401 as the standard envelope fleet-wide, from one @Provider (#9025)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-libs-runtime/src/main/kotlin/com/openbank/libs/api/error/CommonExceptionMappers.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-clearing-service/src/main/kotlin/com/openbank/clearing/application/usecase/ClearingService.kt openbank-clearing-service/src/main/kotlin/com/openbank/clearing/application/usecase/ClearingService.kt:99 — openbank-clearing-service/src/main/kotlin/com/openbank/clearing/application/usecase/ClearingService.kt changed 8 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 3 (its worst body is ClearingService.isPaymentUniqueViolation at line 99), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(clearing): clear each rail's own items and fit every cycle id (#12035)”; “fix(clearing): net and settle each currency in its own batch (#12003)”; “fix(clearing): replay-safe payment submit + ADR-0298 natural-key idempotency (#8351) (#9402)”; “fix(clearing): announce an empty clearing cycle instead of settling it silently (#8844)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-clearing-service/src/main/kotlin/com/openbank/clearing/application/usecase/ClearingService.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/F0200Mapper.kt openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/F0200Mapper.kt:41 — openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/F0200Mapper.kt changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 1 (its worst body is F0200Mapper.map at line 41), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(finrep): classify ADR-0344 instrument accounts (#14290)”; “fix(finrep): classify treasury GL codes in the FINREP allowlist and F01/F02 mappers (#13146)”; “fix(regulatory): complete FINREP and COREP previews (#7296)”; “fix(finrep): expose official coverage gaps (#7070)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/F0200Mapper.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: REDACTED REDACTED:185 — REDACTED changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 10 (its worst body is route.fromDiscovery at line 185), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(admin-ui): derive business domains from canonical governance (#14953)”; “fix(admin-ui): refresh operational evidence and restore source-backed views (#13391)”; “fix(admin-ui): isolate operational evidence and enforce delivery boundaries (#13372)”; “fix(admin-ui): preserve health identity across namespaces (#13356)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- REDACTED`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/F0103Mapper.kt openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/F0103Mapper.kt:17 — openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/F0103Mapper.kt changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 1 (its worst body is F0103Mapper.map at line 17), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(finrep): classify ADR-0344 instrument accounts (#14290)”; “fix(finrep): verify balance sheet datapoint ids (#14147)”; “fix(finrep): map ČNB, lombard and nostro overdraft to FINREP sub-lines (#13602)”; “fix(regulatory): complete FINREP and COREP previews (#7296)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/F0103Mapper.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-admin-ui/src/components/layout/AppProviders.tsx openbank-admin-ui/src/components/layout/AppProviders.tsx:24 — openbank-admin-ui/src/components/layout/AppProviders.tsx changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 3 (its worst body is AppProviders.AppProviders at line 24), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(admin-ui,mcp-service): align remaining domain consumers (#15040)”; “fix(admin-ui): seed sidebar roles from the session cookie to paint operator nav in one pass (#14319)”; “fix(admin-ui): harden and accelerate operator workflows (#10138)”; “fix(admin-ui): synchronize document language (#8021)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/components/layout/AppProviders.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/rest/ExceptionMappers.kt openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/rest/ExceptionMappers.kt:39 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/rest/ExceptionMappers.kt changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 1 (its worst body is AccountNotEmptyExceptionMapper.toResponse at line 39), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(libs): remove duplicate UnauthorizedException mappers; add unused 404/409 bases (#10923)”; “fix(account): render security-abort 401/403 as JSON + replay the anonymous pact (#8852)”; “fix(account): map screening outcomes to 503/422 without leaking the match (#8512) (#8712)”; “fix(account): revoking an unknown authorization answers 404, not 500 (#8466)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/rest/ExceptionMappers.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-finrep-service/src/main/kotlin/com/openbank/finrep/application/usecase/FinrepService.kt openbank-finrep-service/src/main/kotlin/com/openbank/finrep/application/usecase/FinrepService.kt:76 — openbank-finrep-service/src/main/kotlin/com/openbank/finrep/application/usecase/FinrepService.kt changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 6 (its worst body is FinrepService.trialBalance at line 76), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(finrep): report balances, not one month's movements (#12505)”; “fix(regulatory): show actual values before first close (#7228)”; “fix(finrep): expose official coverage gaps (#7070)”; “fix(finrep): align previews with EBA 4.2 (#7046)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-finrep-service/src/main/kotlin/com/openbank/finrep/application/usecase/FinrepService.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-clearing-service/src/main/kotlin/com/openbank/clearing/infrastructure/persistence/repository/ClearingRepositories.kt openbank-clearing-service/src/main/kotlin/com/openbank/clearing/infrastructure/persistence/repository/ClearingRepositories.kt:220 — openbank-clearing-service/src/main/kotlin/com/openbank/clearing/infrastructure/persistence/repository/ClearingRepositories.kt changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 3 (its worst body is ClearingItemRepositoryImpl.countPendingOutside at line 220), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(clearing): clear each rail's own items and fit every cycle id (#12035)”; “fix(clearing): net and settle each currency in its own batch (#12003)”; “fix(clearing): announce an empty clearing cycle instead of settling it silently (#8844)”; “fix(clearing): settle commits batch, items and outbox row in one transaction (#8509) (#8621)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-clearing-service/src/main/kotlin/com/openbank/clearing/infrastructure/persistence/repository/ClearingRepositories.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-admin-ui/scripts/generate-catalog.mjs openbank-admin-ui/scripts/generate-catalog.mjs:70 — openbank-admin-ui/scripts/generate-catalog.mjs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 5 (its worst body is generate-catalog.readOpenapi at line 70), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(admin-ui): derive business domains from canonical governance (#14953)”; “fix(admin-ui): derive complete inventory and Kafka versions from source evidence (#13466)”; “fix(admin-ui): derive the service registry from the catalog instead of eight hand-kept lists (#12487)”; “fix(docs): keep every runnable service documentation current (#11989)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/scripts/generate-catalog.mjs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/application/usecase/SanctionsService.kt openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/application/usecase/SanctionsService.kt:63 — openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/application/usecase/SanctionsService.kt changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 9 (its worst body is SanctionsService.performScreening at line 63), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(account,sanctions): bind whitelist retry to subject identity (#14160)”; “fix(sanctions,party,libs-runtime,ci): fleet-fuzz findings — null listTypes 500, malformed multipart 500, fuzz-env pepper (#8942)”; “fix(sanctions): reject an unrecognised listTypes entry instead of silently narrowing the screen (#8715)”; “fix(psd2,sanctions): a null JSON array element is a 400, not a 500 (#7867) (#8003)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/application/usecase/SanctionsService.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/client/SettlementAdapter.kt openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/client/SettlementAdapter.kt:47 — openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/client/SettlementAdapter.kt changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 10 (its worst body is SettlementAdapter.settle at line 47), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(swift): re-drive an accepted MT103 whose settlement booking is unproven (#13696)”; “fix(swift): settle only a COMPLETED 201 that matches the request (#13622)”; “fix(swift): send valueDate as ISO so MT103 settlement can book (#13232)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/client/SettlementAdapter.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-admin-ui/src/app/observability/stack/page.tsx openbank-admin-ui/src/app/observability/stack/page.tsx:286 — openbank-admin-ui/src/app/observability/stack/page.tsx changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 7 (its worst body is page.SvgBox at line 286), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(admin-ui): read published platform declarations independently of images (#13591)”; “fix(admin-ui): derive platform versions from infra sources instead of literals (#12469)”; “fix(admin-ui): white text on an accent fill, and three tone-as-text leftovers (#9906)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/observability/stack/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-admin-ui/src/lib/services/docs.ts openbank-admin-ui/src/lib/services/docs.ts:114 — openbank-admin-ui/src/lib/services/docs.ts changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 13 (its worst body is docs.indexFromBundle at line 114), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(admin-ui): tolerate slow fleet documentation probes and discover agent namespaces (#14168)”; “fix(admin-ui): refresh operational evidence and restore source-backed views (#13391)”; “fix(admin-ui): derive the service registry from the catalog instead of eight hand-kept lists (#12487)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/lib/services/docs.ts`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-psd2-service/src/main/kotlin/com/openbank/psd2/infrastructure/rest/filter/EidasMtlsFilter.kt openbank-psd2-service/src/main/kotlin/com/openbank/psd2/infrastructure/rest/filter/EidasMtlsFilter.kt:48 — openbank-psd2-service/src/main/kotlin/com/openbank/psd2/infrastructure/rest/filter/EidasMtlsFilter.kt changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 9 (its worst body is EidasMtlsFilter.filter at line 48), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(psd2): distinguish TPP registry denial from an outage (#14201)”; “fix(psd2): offload eIDAS/QSEAL filter blocking work off the IO thread (#11346)”; “fix(psd2): normalise the leading slash so the eIDAS, QSEAL and deprecation filters run (#11008)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-psd2-service/src/main/kotlin/com/openbank/psd2/infrastructure/rest/filter/EidasMtlsFilter.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/servicing/ProvisioningCycleScheduler.kt openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/servicing/ProvisioningCycleScheduler.kt:229 — openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/servicing/ProvisioningCycleScheduler.kt changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 5 (its worst body is ProvisioningCycleScheduler.recordCloseEvidence at line 229), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(lending): record provisioning-cycle attempts across restart and rollover (#12315)”; “fix(lending): verify provisioning coverage without truncating the cycle (#9903)”; “fix(lending): preserve credit risk evidence and reconcile allowances (#9466)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/servicing/ProvisioningCycleScheduler.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-admin-ui/src/app/docs/control-tower/page.tsx openbank-admin-ui/src/app/docs/control-tower/page.tsx:29 — openbank-admin-ui/src/app/docs/control-tower/page.tsx changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 11 (its worst body is page.ControlTowerPage at line 29), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(admin-ui): refresh operational evidence and restore source-backed views (#13391)”; “fix(admin-ui): bring hardcoded badge and toggle colours to AA (#9870)”; “fix(admin-ui): stop status badges rendering tone colour as text below AA (#9854)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/app/docs/control-tower/page.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: openbank-admin-ui/src/lib/test-intelligence-freshness.ts openbank-admin-ui/src/lib/test-intelligence-freshness.ts:11 — openbank-admin-ui/src/lib/test-intelligence-freshness.ts changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 9 (its worst body is test-intelligence-freshness.runtimeFreshnessState at line 11), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(admin-ui): refresh operational evidence and restore source-backed views (#13391)”; “fix(admin-ui): age required test controls (#8092)”; “fix(admin-ui): require observed execution evidence (#8028)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-11 06:03:09 +00:00' --until='2026-11-09 06:03:09 +00:00' --full-history --no-merges -- openbank-admin-ui/src/lib/test-intelligence-freshness.ts`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • + 8 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×32
  • Duplicated block (8 lines × 2) openbank-account-service/src/main/kotlin/com/openbank/account/application/usecase/AccountService.kt:378 — openbank-account-service/src/main/kotlin/com/openbank/account/application/usecase/AccountService.kt:378-385 | openbank-account-service/src/main/kotlin/com/openbank/account/application/usecase/AccountService.kt:394-401 — 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 `openbank-account-service/src/main/kotlin/com/openbank/account/application/usecase/AccountService.kt:378` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) openbank-agent-service/src/main/kotlin/com/openbank/agent/application/AgentContentSafetyGuard.kt:72 — openbank-agent-service/src/main/kotlin/com/openbank/agent/application/AgentContentSafetyGuard.kt:72-79 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/application/ContentSafetyGuard.kt:75-84 — 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 `openbank-agent-service/src/main/kotlin/com/openbank/agent/application/AgentContentSafetyGuard.kt:72` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (8 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:186 — openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:186-193 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt:341-348 — before extracting anything, compare `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt` and `openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:186` 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) openbank-aml-service/src/main/kotlin/com/openbank/aml/application/usecase/AmlCaseService.kt:47 — openbank-aml-service/src/main/kotlin/com/openbank/aml/application/usecase/AmlCaseService.kt:47-54 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/application/usecase/SepaPaymentService.kt:100-107 — 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 `openbank-aml-service/src/main/kotlin/com/openbank/aml/application/usecase/AmlCaseService.kt:47` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (8 lines × 2) openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:56 — openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:56-63 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/repository/TreasuryOutboxRepositoryImpl.kt:55-62 — before extracting anything, compare `openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt` and `openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/repository/TreasuryOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt: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 (8 lines × 2) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt:95 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt:95-102 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentRailProjectionConsumer.kt:96-103 — before extracting anything, compare `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt` and `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentRailProjectionConsumer.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt: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 (8 lines × 2) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:295 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:295-302 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:588-595 — 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 `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:295` 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) openbank-kyc-service/src/main/kotlin/com/openbank/kyc/application/KycService.kt:396 — openbank-kyc-service/src/main/kotlin/com/openbank/kyc/application/KycService.kt:396-403 | openbank-kyc-service/src/main/kotlin/com/openbank/kyc/application/KycService.kt:462-469 — 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 `openbank-kyc-service/src/main/kotlin/com/openbank/kyc/application/KycService.kt:396` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (8 lines × 2) openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LedgerBackfillService.kt:152 — openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LedgerBackfillService.kt:152-159 | openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LedgerBackfillVoidService.kt:163-170 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (8 lines × 2) openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:1313 — openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:1313-1320 | openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:1461-1468 — 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 `openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:1313` 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) openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LedgerBackfillRequestRepositoryImpl.kt:76 — openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LedgerBackfillRequestRepositoryImpl.kt:76-83 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LedgerBackfillVoidRequestRepositoryImpl.kt:76-83 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (8 lines × 2) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/ProductIrParser.kt:81 — openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/ProductIrParser.kt:81-88 | openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/ProductIrParser.kt:111-118 — 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 `openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/ProductIrParser.kt:81` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/ProductIrParser.kt:119` calls `matches`, `BigDecimal` and `openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/ProductIrParser.kt:89` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (8 lines × 2) openbank-pension-service/src/main/kotlin/com/openbank/pension/application/onboarding/OnboardingService.kt:225 — openbank-pension-service/src/main/kotlin/com/openbank/pension/application/onboarding/OnboardingService.kt:225-232 | openbank-pension-service/src/main/kotlin/com/openbank/pension/application/onboarding/OnboardingService.kt:285-292 — 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 `openbank-pension-service/src/main/kotlin/com/openbank/pension/application/onboarding/OnboardingService.kt:225` 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) openbank-psd2-service/src/main/kotlin/com/openbank/psd2/application/usecase/Psd2Services.kt:229 — openbank-psd2-service/src/main/kotlin/com/openbank/psd2/application/usecase/Psd2Services.kt:229-236 | openbank-psd2-service/src/main/kotlin/com/openbank/psd2/application/usecase/Psd2Services.kt:243-250 — 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 `openbank-psd2-service/src/main/kotlin/com/openbank/psd2/application/usecase/Psd2Services.kt:229` 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) openbank-campaign-service/src/main/kotlin/com/openbank/campaign/application/usecase/CampaignService.kt:266 — openbank-campaign-service/src/main/kotlin/com/openbank/campaign/application/usecase/CampaignService.kt:266-273 | openbank-campaign-service/src/main/kotlin/com/openbank/campaign/application/usecase/TriggeredEnrolmentService.kt:59-66 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (8 lines × 2) openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/rest/AccountingDayResource.kt:133 — openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/rest/AccountingDayResource.kt:133-140 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/rest/ClosedPeriodResource.kt:209-216 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (8 lines × 2) openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/rest/ClosedPeriodResource.kt:218 — openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/rest/ClosedPeriodResource.kt:218-225 | openbank-tax-reporting-service/src/main/kotlin/com/openbank/tax/infrastructure/rest/TaxFilingResource.kt:144-151 — 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 (8 lines × 2) openbank-libs-fincrime/src/main/kotlin/com/openbank/libs/fincrime/pack/CountPackJson.kt:90 — openbank-libs-fincrime/src/main/kotlin/com/openbank/libs/fincrime/pack/CountPackJson.kt:90-97 | openbank-libs-fincrime/src/main/kotlin/com/openbank/libs/fincrime/vocabulary/FincrimeVocabularyJson.kt:58-65 — 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 (8 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt:112 — openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt:112-119 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/application/ModelGateway.kt:147-154 — before extracting anything, compare `openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt` and `openbank-copilot-service/src/main/kotlin/com/openbank/copilot/application/ModelGateway.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt:112` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 first that the copies are not typed on the same thing: `Sensitivity` names `com.openbank.agent.domain.model.Sensitivity` in one and `com.openbank.copilot.domain.model.Sensitivity` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (8 lines × 2) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:426 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:426-433 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:523-530 — 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 `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:426` 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) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextPersistence.kt:450 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextPersistence.kt:450-457 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextPersistence.kt:470-477 — 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 `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextPersistence.kt:450` 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) .github/scripts/check-alert-metric-emitted.py:142 — .github/scripts/check-alert-metric-emitted.py:142-149 | .github/scripts/check-dashboard-metric-emitted.py:98-105 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (8 lines × 2) .github/scripts/check-configproperty-supplied.py:148 — .github/scripts/check-configproperty-supplied.py:148-155 | .github/scripts/check-extension-bean-config.py:82-89 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `.github/scripts/check-extension-bean-config.py:91` calls `setdefault`, `set` and `.github/scripts/check-configproperty-supplied.py:157` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (8 lines × 2) .github/scripts/check-jaxrs-path-prefix-leading-slash.py:177 — .github/scripts/check-jaxrs-path-prefix-leading-slash.py:177-184 | .github/scripts/check-raw-http-client.py:97-104 — before extracting anything, compare `.github/scripts/check-jaxrs-path-prefix-leading-slash.py` and `.github/scripts/check-raw-http-client.py` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) .github/scripts/check-journey-catalog.py:630 — .github/scripts/check-journey-catalog.py:630-637 | .github/scripts/check-journey-coverage.py:229-236 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • + 7 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×28
  • Duplicated block (9 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/MockModelProvider.kt:96 — openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/MockModelProvider.kt:96-104 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/MockModelProvider.kt:123-131 — 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 `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/MockModelProvider.kt:96` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 first that the copies are not typed on the same thing: `ModelResponse` names `com.openbank.agent.domain.model.ModelResponse` in one and `com.openbank.copilot.domain.model.ModelResponse` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (9 lines × 2) openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/application/usecase/CardDisputeService.kt:124 — openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/application/usecase/CardDisputeService.kt:124-132 | openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/application/usecase/CardDisputeService.kt:377-385 — 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 `openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/application/usecase/CardDisputeService.kt:124` 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) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1858 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1858-1866 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1937-1945 — 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 `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1858` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/OnboardingResource.kt:117 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/OnboardingResource.kt:117-125 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/OnboardingResource.kt:205-213 — 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 `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/OnboardingResource.kt:117` 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) REDACTED:81 — REDACTED:81-89 | REDACTED:167-175 — 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) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/application/workflow/DomesticPaymentActivitiesImpl.kt:112 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/application/workflow/DomesticPaymentActivitiesImpl.kt:112-120 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/application/workflow/SepaPaymentActivitiesImpl.kt:94-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.
  • Duplicated block (9 lines × 2) openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:547 — openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:547-555 | openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:579-587 — 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 `openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:547` 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) openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/TerminationService.kt:64 — openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/TerminationService.kt:64-72 | openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/TerminationService.kt:164-172 — 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 `openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/TerminationService.kt:64` 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) openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/Dtos.kt:58 — openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/Dtos.kt:58-66 | openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/Dtos.kt:104-112 — 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 `openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/Dtos.kt:58` 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) openbank-risk-engine/src/main/kotlin/com/openbank/risk/infrastructure/rest/CapitalDtos.kt:173 — openbank-risk-engine/src/main/kotlin/com/openbank/risk/infrastructure/rest/CapitalDtos.kt:173-181 | openbank-risk-engine/src/main/kotlin/com/openbank/risk/infrastructure/rest/LiquidityDtos.kt:195-203 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (9 lines × 2) openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SwiftScenario.kt:174 — openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SwiftScenario.kt:174-182 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SwiftScenario.kt:211-219 — 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 `openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SwiftScenario.kt:174` 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) openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/rest/TransactionCategoryResource.kt:76 — openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/rest/TransactionCategoryResource.kt:76-84 | openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/rest/TransactionCategoryResource.kt:104-112 — 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) openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LedgerBackfillRequestRepositoryImpl.kt:64 — openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LedgerBackfillRequestRepositoryImpl.kt:64-72 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LedgerBackfillVoidRequestRepositoryImpl.kt:64-72 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (9 lines × 2) openbank-party-service/src/main/kotlin/com/openbank/party/infrastructure/gdpr/GdprAggregationAdapter.kt:61 — openbank-party-service/src/main/kotlin/com/openbank/party/infrastructure/gdpr/GdprAggregationAdapter.kt:61-69 | openbank-party-service/src/main/kotlin/com/openbank/party/infrastructure/gdpr/PortabilityAggregationAdapter.kt:119-127 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-party-service/src/main/kotlin/com/openbank/party/infrastructure/gdpr/GdprAggregationAdapter.kt:61` 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) openbank-party-service/src/main/kotlin/com/openbank/party/application/usecase/PartyService.kt:520 — openbank-party-service/src/main/kotlin/com/openbank/party/application/usecase/PartyService.kt:520-528 | openbank-party-service/src/main/kotlin/com/openbank/party/application/usecase/PartyService.kt:538-546 — 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 `openbank-party-service/src/main/kotlin/com/openbank/party/application/usecase/PartyService.kt:520` 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (9 lines × 2) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerPensionChangeResource.kt:426 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerPensionChangeResource.kt:426-434 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerPensionTransferResource.kt:264-272 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 2) .github/scripts/agent-review-scope.py:148 — .github/scripts/agent-review-scope.py:148-156 | .github/scripts/check-advisory-finding-staleness.py:192-200 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (9 lines × 2) .github/scripts/check-alert-metric-emitted.py:296 — .github/scripts/check-alert-metric-emitted.py:296-304 | .github/scripts/check-dashboard-metric-emitted.py:249-257 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (9 lines × 2) .github/scripts/check-authz-pdp-parity.py:152 — .github/scripts/check-authz-pdp-parity.py:152-160 | .github/scripts/check-nonnull-jaxrs-params.py:126-134 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `.github/scripts/check-authz-pdp-parity.py: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 (9 lines × 2) .github/scripts/check-event-consumer-liveness.py:111 — .github/scripts/check-event-consumer-liveness.py:111-119 | .github/scripts/check-governance-lineage.py:162-170 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (9 lines × 2) .github/scripts/check-gate-selftest-declaration.py:308 — .github/scripts/check-gate-selftest-declaration.py:308-318 | .github/scripts/check-gate-subject-floor.py:302-310 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (9 lines × 2) .github/scripts/check-gitops-duplicate-resources.py:104 — .github/scripts/check-gitops-duplicate-resources.py:104-112 | .github/scripts/check-gitops-duplicate-resources.py:151-159 — 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) .github/scripts/check-kafka-deployment-wiring.py:85 — .github/scripts/check-kafka-deployment-wiring.py:85-93 | .github/scripts/check-probe-port-listener.py:129-142 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (9 lines × 2) .github/scripts/check-outbox-claim-sql.py:154 — .github/scripts/check-outbox-claim-sql.py:154-162 | .github/scripts/check-outbox-conformance-it.py:141-149 — before extracting anything, compare `.github/scripts/check-outbox-claim-sql.py` and `.github/scripts/check-outbox-conformance-it.py` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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) .github/scripts/check-raw-http-client.py:35 — .github/scripts/check-raw-http-client.py:35-43 | .github/scripts/check-resilience-profile.py:47-55 — before extracting anything, compare `.github/scripts/check-raw-http-client.py` and `.github/scripts/check-resilience-profile.py` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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.
  • + 3 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×28
  • Duplicated block (7 lines × 2) openbank-case-coordinator-agent/src/main/kotlin/com/openbank/casecoordinator/infrastructure/persistence/CaseSignalEvidenceRepository.kt:104 — openbank-case-coordinator-agent/src/main/kotlin/com/openbank/casecoordinator/infrastructure/persistence/CaseSignalEvidenceRepository.kt:104-110 | openbank-case-coordinator-agent/src/main/kotlin/com/openbank/casecoordinator/infrastructure/workflow/CaseActivitiesImpl.kt:211-217 — 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 `openbank-case-coordinator-agent/src/main/kotlin/com/openbank/casecoordinator/infrastructure/persistence/CaseSignalEvidenceRepository.kt:104` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseHistoryRepository.kt:182 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseHistoryRepository.kt:182-188 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AuthorityHistoryRepository.kt:124-130 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (7 lines × 2) openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/C7300Mapper.kt:123 — openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/C7300Mapper.kt:123-129 | openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/C7400Mapper.kt:133-139 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/C7300Mapper.kt:123` 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) openbank-incentive-service/src/main/kotlin/com/openbank/incentive/infrastructure/messaging/KafkaIncentiveOutboxEventPublisher.kt:20 — openbank-incentive-service/src/main/kotlin/com/openbank/incentive/infrastructure/messaging/KafkaIncentiveOutboxEventPublisher.kt:20-26 | openbank-security-scanner/src/main/kotlin/com/openbank/securityscanner/infrastructure/KafkaIctIncidentOutboxPublisher.kt:24-30 — before extracting anything, compare `openbank-incentive-service/src/main/kotlin/com/openbank/incentive/infrastructure/messaging/KafkaIncentiveOutboxEventPublisher.kt` and `openbank-security-scanner/src/main/kotlin/com/openbank/securityscanner/infrastructure/KafkaIctIncidentOutboxPublisher.kt` as WHOLE FILES: 82% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-incentive-service/src/main/kotlin/com/openbank/incentive/infrastructure/messaging/KafkaIncentiveOutboxEventPublisher.kt:20` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) openbank-pid-service/src/main/kotlin/com/openbank/pid/domain/identity/ProbabilisticMatcher.kt:182 — openbank-pid-service/src/main/kotlin/com/openbank/pid/domain/identity/ProbabilisticMatcher.kt:182-188 | openbank-vop-service/src/main/kotlin/com/openbank/vop/domain/match/VopNameMatchPolicy.kt:209-215 — 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 `openbank-pid-service/src/main/kotlin/com/openbank/pid/domain/identity/ProbabilisticMatcher.kt:182` 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) openbank-statement-service/src/main/kotlin/com/openbank/statement/application/usecase/StatementRestatementService.kt:67 — openbank-statement-service/src/main/kotlin/com/openbank/statement/application/usecase/StatementRestatementService.kt:67-73 | openbank-statement-service/src/main/kotlin/com/openbank/statement/application/usecase/StatementService.kt:160-166 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (7 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/application/PromptInjectionGuard.kt:107 — openbank-agent-service/src/main/kotlin/com/openbank/agent/application/PromptInjectionGuard.kt:107-113 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/application/PromptInjectionGuard.kt:87-93 — 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 (7 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/MockModelProvider.kt:86 — openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/MockModelProvider.kt:86-92 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/MockModelProvider.kt:113-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. Note first that the copies are not typed on the same thing: `ModelDescriptor` names `com.openbank.agent.domain.model.ModelDescriptor` in one and `com.openbank.copilot.domain.model.ModelDescriptor` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (7 lines × 2) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/observability/DomesticPaymentStrandedGauge.kt:108 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/observability/DomesticPaymentStrandedGauge.kt:108-114 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/observability/SettlementStrandedGauge.kt:142-148 — 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 first that the copies are not typed on the same thing: the declarations holding them bind `status` to `DomesticPaymentStatus` in one and `SettlementStatus` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (7 lines × 2) openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/CloseJobRunRepository.kt:30 — openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/CloseJobRunRepository.kt:30-36 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseEvidenceRepository.kt:29-35 — before extracting anything, compare `openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/CloseJobRunRepository.kt` and `openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseEvidenceRepository.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 2) openbank-risk-engine/src/main/kotlin/com/openbank/risk/infrastructure/persistence/PgCurveSetRepository.kt:61 — openbank-risk-engine/src/main/kotlin/com/openbank/risk/infrastructure/persistence/PgCurveSetRepository.kt:61-67 | openbank-risk-engine/src/main/kotlin/com/openbank/risk/infrastructure/persistence/PgSnapshotRepository.kt:211-217 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (7 lines × 2) openbank-tax-reporting-service/src/main/kotlin/com/openbank/tax/infrastructure/returns/crsfatca/CrsFatcaReturnDataAdapter.kt:77 — openbank-tax-reporting-service/src/main/kotlin/com/openbank/tax/infrastructure/returns/crsfatca/CrsFatcaReturnDataAdapter.kt:77-83 | openbank-tax-reporting-service/src/main/kotlin/com/openbank/tax/infrastructure/returns/pension/PensionReturnDataAdapter.kt:50-56 — 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) openbank-libs-runtime/src/main/kotlin/com/openbank/libs/llm/LlamaGuardContentSafetyAdapter.kt:69 — openbank-libs-runtime/src/main/kotlin/com/openbank/libs/llm/LlamaGuardContentSafetyAdapter.kt:69-76 | openbank-libs-runtime/src/main/kotlin/com/openbank/libs/llm/OpenAiCompatibleEmbeddingAdapter.kt:58-64 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-libs-runtime/src/main/kotlin/com/openbank/libs/llm/LlamaGuardContentSafetyAdapter.kt: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. 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) openbank-communication-service/src/main/kotlin/com/openbank/communication/infrastructure/persistence/CommunicationPersistence.kt:212 — openbank-communication-service/src/main/kotlin/com/openbank/communication/infrastructure/persistence/CommunicationPersistence.kt:212-218 | openbank-communication-service/src/main/kotlin/com/openbank/communication/infrastructure/persistence/CommunicationPersistence.kt:269-275 — 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 `openbank-communication-service/src/main/kotlin/com/openbank/communication/infrastructure/persistence/CommunicationPersistence.kt:212` 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) openbank-libs-domain/src/main/kotlin/com/openbank/libs/audit/AuditChain.kt:214 — openbank-libs-domain/src/main/kotlin/com/openbank/libs/audit/AuditChain.kt:214-220 | openbank-notification-service/src/main/kotlin/com/openbank/notification/application/OversightWebhook.kt:90-96 — 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 `openbank-libs-domain/src/main/kotlin/com/openbank/libs/audit/AuditChain.kt:214` 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) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:5061 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:5061-5067 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:5422-5428 — 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 `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:5061` 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) openbank-agent-service/src/main/kotlin/com/openbank/agent/application/AgentIdentityBinding.kt:35 — openbank-agent-service/src/main/kotlin/com/openbank/agent/application/AgentIdentityBinding.kt:35-41 | openbank-case-coordinator-agent/src/main/kotlin/com/openbank/casecoordinator/application/CaseCapabilityGate.kt:57-63 — 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) .github/scripts/check-audit-money-path-subscription.py:451 — .github/scripts/check-audit-money-path-subscription.py:451-457 | .github/scripts/check-kafka-deployment-wiring.py:188-194 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `.github/scripts/check-audit-money-path-subscription.py:451` 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) .github/scripts/check-duplicate-test-files.py:166 — .github/scripts/check-duplicate-test-files.py:166-172 | .github/scripts/check-dynamic-db-roles-declared.py:265-271 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (7 lines × 2) .github/scripts/check-event-contract-code-agreement.py:590 — .github/scripts/check-event-contract-code-agreement.py:590-596 | .github/scripts/check-idempotency-contract-parity.py:133-139 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (7 lines × 2) .github/scripts/check-oidc-tls-verification-profile.py:317 — .github/scripts/check-oidc-tls-verification-profile.py:317-323 | .github/scripts/check-ruleset-bypass-actors.py:513-519 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (7 lines × 2) .github/scripts/check-podmonitor-namespace-coverage.py:283 — .github/scripts/check-podmonitor-namespace-coverage.py:283-289 | .github/scripts/check-podmonitor-namespace-coverage.py:341-347 — 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 (7 lines × 2) .github/scripts/check-product-ir-run-limits.py:300 — .github/scripts/check-product-ir-run-limits.py:300-306 | .github/scripts/check-product-revision-pinned.py:460-466 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (7 lines × 2) .github/scripts/check-source-service-convention.py:208 — .github/scripts/check-source-service-convention.py:208-214 | .github/scripts/check-source-service-convention.py:220-226 — 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 (7 lines × 2) .github/scripts/merge-train.py:5563 — .github/scripts/merge-train.py:5563-5569 | .github/scripts/merge-train.py:6395-6402 — 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.
  • + 3 more in this group — see findings.md.
X3 · Exception handling · Swallowed exception (empty catch) · ×28
  • Swallowed exception (empty catch) openbank-security-scanner/src/main/kotlin/com/openbank/securityscanner/application/SecurityScannerService.kt:165 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-security-scanner/src/main/kotlin/com/openbank/securityscanner/application/SecurityScannerService.kt:216 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-security-scanner/src/main/kotlin/com/openbank/securityscanner/application/SecurityScannerService.kt:242 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-infra/web/landing/main.js:82 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-infra/web/landing/main.js:115 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) REDACTED:378 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/lib/theme/useTheme.ts:64 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) REDACTED:105 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/lib/services/domainOwnership.ts:30 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/lib/services/rowHandoff.ts:23 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/lib/services/rowHandoff.ts:43 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/lib/services/useCheckLog.ts:67 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/lib/governance/docs.ts:97 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/lib/governance/docs.ts:122 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/lib/governance/flags.ts:139 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/lib/evidence/contentSource.ts:103 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/lib/consents/consentContract.ts:101 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/lib/cards/money.ts:85 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/lib/cards/money.ts:111 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/components/ui/HumanReference.tsx:40 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/components/search/CommandPalette.tsx:51 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/components/reporting/WarehouseDashboard.tsx:55 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/components/layout/Header.tsx:95 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/components/layout/Header.tsx:334 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) openbank-admin-ui/src/components/insights/ContextualInsights.tsx:165 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • + 3 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED · ×26
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 1 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×25
  • Duplicated block (10 lines × 2) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/kafka/DelegationEventConsumer.kt:97 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/kafka/DelegationEventConsumer.kt:97-106 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/kafka/CardDelegationEventConsumer.kt:65-74 — 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 `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/kafka/DelegationEventConsumer.kt: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 (10 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt:56 — openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt:56-65 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/application/ModelGateway.kt:57-66 — before extracting anything, compare `openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt` and `openbank-copilot-service/src/main/kotlin/com/openbank/copilot/application/ModelGateway.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt: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. Note first that the copies are not typed on the same thing: `ModelDescriptor` names `com.openbank.agent.domain.model.ModelDescriptor` in one and `com.openbank.copilot.domain.model.ModelDescriptor` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openbank-copilot-service/src/main/kotlin/com/openbank/copilot/application/ModelGateway.kt:69` calls `mapOf`, `defaultModel`, `ModelDescriptor` and `openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt:66` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (10 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:75 — openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:75-84 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt:89-98 — before extracting anything, compare `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt` and `openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:75` 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) openbank-analytics-sink/src/main/kotlin/com/openbank/analytics/application/AnalyticsConsumer.kt:195 — openbank-analytics-sink/src/main/kotlin/com/openbank/analytics/application/AnalyticsConsumer.kt:195-204 | openbank-audit-service/src/main/kotlin/com/openbank/audit/application/AuditConsumer.kt: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. 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) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/scheduler/BillingCloseJobs.kt:41 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/scheduler/BillingCloseJobs.kt:41-50 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/servicing/LendingCloseJobs.kt:69-78 — 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) openbank-pid-service/src/main/kotlin/com/openbank/pid/domain/identity/ProbabilisticMatcher.kt:189 — openbank-pid-service/src/main/kotlin/com/openbank/pid/domain/identity/ProbabilisticMatcher.kt:189-198 | openbank-vop-service/src/main/kotlin/com/openbank/vop/domain/match/VopNameMatchPolicy.kt:216-225 — 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 `openbank-pid-service/src/main/kotlin/com/openbank/pid/domain/identity/ProbabilisticMatcher.kt:189` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:116 — openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:116-125 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt:118-127 — before extracting anything, compare `openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt` and `openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 2) openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:141 — openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:141-150 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt:143-152 — before extracting anything, compare `openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt` and `openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:141` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 first that the copies are not typed on the same thing: the declarations holding them bind `change` to `(ScaOperatorApprovalEntity, OffsetDateTime` in one and `(SettlementOperatorApprovalEntity, OffsetDateTime` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (10 lines × 2) openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/rest/MerchantLogoResource.kt:139 — openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/rest/MerchantLogoResource.kt:139-148 | openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/rest/MerchantLogoResource.kt:224-233 — 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 `openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/rest/MerchantLogoResource.kt:139` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) openbank-notification-service/src/main/kotlin/com/openbank/notification/infrastructure/kafka/ConsentNotificationConsumer.kt:77 — openbank-notification-service/src/main/kotlin/com/openbank/notification/infrastructure/kafka/ConsentNotificationConsumer.kt:77-86 | openbank-notification-service/src/main/kotlin/com/openbank/notification/infrastructure/kafka/KycNotificationConsumer.kt:69-78 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (10 lines × 2) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextAuditCommitmentRelay.kt:80 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextAuditCommitmentRelay.kt:80-89 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextDisclosureCommitmentRelay.kt:82-91 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextAuditCommitmentRelay.kt:80` 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) .github/scripts/check-agent-pr-guard.py:330 — .github/scripts/check-agent-pr-guard.py:330-339 | .github/scripts/check-agent-pr-guard.py:555-564 — 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `.github/scripts/check-agent-pr-guard.py:553` calls `_is_sha`, `Undetermined` and `.github/scripts/check-agent-pr-guard.py:329` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (10 lines × 2) .github/scripts/check-alert-window-vs-subject-period.py:217 — .github/scripts/check-alert-window-vs-subject-period.py:217-226 | .github/scripts/check-critical-alert-egress.py:173-182 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (10 lines × 2) .github/scripts/check-authz-enforce-money-path.py:180 — .github/scripts/check-authz-enforce-money-path.py:180-189 | .github/scripts/check-authz-pdp-parity.py:285-294 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (10 lines × 2) .github/scripts/check-datasource-pool-self-heal.py:250 — .github/scripts/check-datasource-pool-self-heal.py:250-259 | .github/scripts/check-rest-client-timeouts.py:263-272 — before extracting anything, compare `.github/scripts/check-datasource-pool-self-heal.py` and `.github/scripts/check-rest-client-timeouts.py` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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) .github/scripts/check-extension-bean-config.py:228 — .github/scripts/check-extension-bean-config.py:228-237 | .github/scripts/check-opa-sidecar-bundle-shape.py:237-246 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `.github/scripts/check-opa-sidecar-bundle-shape.py:247` calls `subjects` and `.github/scripts/check-extension-bean-config.py:238` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (10 lines × 2) .github/scripts/check-main-red-watch.py:798 — .github/scripts/check-main-red-watch.py:798-807 | .github/scripts/check-main-red-watch.py:812-821 — 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 `.github/scripts/check-main-red-watch.py:798` 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) .github/scripts/check-no-epoch-instant-default.py:123 — .github/scripts/check-no-epoch-instant-default.py:123-132 | .github/scripts/check-no-runblocking-in-scheduled.py:224-238 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `.github/scripts/check-no-epoch-instant-default.py:123` 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) .github/scripts/check-nonnull-jaxrs-params.py:362 — .github/scripts/check-nonnull-jaxrs-params.py:362-371 | .github/scripts/check-raw-colour-literal-ratchet.py:137-146 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `.github/scripts/check-raw-colour-literal-ratchet.py:136` calls `add_argument` and `.github/scripts/check-nonnull-jaxrs-params.py:361` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (10 lines × 2) .github/scripts/check-single-replica-rollout-strategy.py:316 — .github/scripts/check-single-replica-rollout-strategy.py:316-325 | .github/scripts/check-single-replica-rollout-strategy.py:339-348 — 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 `.github/scripts/check-single-replica-rollout-strategy.py:316` 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) .github/scripts/check-synthetic-customer-identity.py:65 — .github/scripts/check-synthetic-customer-identity.py:65-74 | .github/scripts/check-synthetic-customer-identity.py:78-87 — 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) .github/scripts/deploy-window.py:173 — .github/scripts/deploy-window.py:173-182 | .github/scripts/deploy-window.py:194-203 — 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) .github/scripts/gen-ai-governance-snapshot.py:87 — .github/scripts/gen-ai-governance-snapshot.py:87-96 | .github/scripts/gen-ai-governance-snapshot.py:121-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.
  • Duplicated block (10 lines × 2) .github/scripts/merge-train.py:5742 — .github/scripts/merge-train.py:5742-5751 | .github/scripts/merge-train.py:5769-5778 — 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 `.github/scripts/merge-train.py:5742` 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) .github/scripts/run-gates.py:1316 — .github/scripts/run-gates.py:1316-1325 | .github/scripts/run-gates.py:1417-1426 — 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 `.github/scripts/run-gates.py:1316` 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.
X17 · Uncapped recursion over a caller-supplied document · Recursive walk over a caller-supplied document has no depth cap · ×23
  • Recursive walk over a caller-supplied document has no depth cap openbank-product-catalog/src/main/kotlin/com/openbank/productcatalog/infrastructure/catalog/CatalogJson.kt:35 — `toValue` is public and takes `node: JsonNode` from its caller, and it calls itself at line 35 with a piece of `node` (and at line 36) — the function is not `tailrec`, so every call is a real frame — and nowhere in `toValue` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `toValue` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`.
  • Recursive walk over a caller-supplied document has no depth cap openbank-product-catalog/src/main/kotlin/com/openbank/productcatalog/infrastructure/catalog/CatalogJson.kt:157 — `canonicalBytes` is public, takes a document from its caller (line 56) and hands it to `canonical`, which calls itself at line 157 with a piece of `node` (and at line 161) — the function is not `tailrec`, so every call is a real frame — and nowhere in `canonical` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `canonical` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`.
  • Recursive walk over a caller-supplied document has no depth cap openbank-mcp-service/src/main/kotlin/com/openbank/mcp/application/McpPiiMasker.kt:55 — `mask` is public, takes a document from its caller (line 50) and hands it to `maskNode`, which calls itself at line 55 with a piece of `node` — the function is not `tailrec`, so every call is a real frame — and nowhere in `maskNode` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `maskNode` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`.
  • Recursive walk over a caller-supplied document has no depth cap openbank-mcp-service/src/main/kotlin/com/openbank/mcp/application/ProposedOnly.kt:67 — `ProposedOnly.enforce` is public, takes a document from its caller (line 46) and hands it to `ProposedOnly.collectStatuses`, which calls itself at line 67 with a piece of `node` (and at line 71) — the function is not `tailrec`, so every call is a real frame — and nowhere in `ProposedOnly.collectStatuses` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25; Android's threads are smaller). kotlinx.serialization's `parseToJsonElement` accepts nested arrays to any depth and Android's built-in `org.json` sets no limit, while Jackson 2.15+ stops at 1,000 — on a cold JVM past the point the walk fails; Gson 2.12+ and Moshi stop at 255. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (e: Exception)` around the call does not stop it, and on Android an uncaught one ends the process. Thread a depth argument through `ProposedOnly.collectStatuses` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack or a `DeepRecursiveFunction`.
  • Recursive walk over a caller-supplied document has no depth cap openbank-infra/scripts/check-cnpg-postgres-minor-floor.py:48 — `image_names` is public and takes `value: object` from its caller, and it calls itself at line 48 (`image_names`) with a piece of `value` (and at line 51) — and nowhere in `image_names` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `image_names` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-infra/scripts/cloud-finops-collect.py:137 — `flatten` is public, takes a document from its caller (line 141) and hands it to `_components`, which calls itself at line 137 (`_components`) with a piece of `res` — and nowhere in `_components` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_components` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/catalog-schema-form.ts:88 — `withCatalogFieldValue` is exported, takes a document from its caller (line 76) and hands it to `setAtPath`, which calls itself at line 88 (`setAtPath`) with a piece of `source` — and nowhere in `setAtPath` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `setAtPath` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/catalog-structural-diff.ts:32 — `diffCatalogDocuments` is exported and takes `before: unknown` from its caller, and it calls itself at line 32 (`diffCatalogDocuments`) with a piece of `before` (and at line 41) — and nowhere in `diffCatalogDocuments` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `diffCatalogDocuments` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/governance/service-map-evidence.ts:39 — `parseMapHealth` is exported, takes a document from its caller (line 31) and hands it to `text`, which calls itself at line 39 (`text`) with a piece of `value` (and at line 40, line 41, line 59, line 60, line 61, line 62, line 74, line 78, line 82, line 85, line 88, line 91) — and nowhere in `text` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `text` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/governance/service-map-evidence.ts:78 — `parseServiceMapGraph` is exported, takes a document from its caller (line 69) and hands it to `count`, which calls itself at line 78 (`count`) with a piece of `value` (and at line 79) — and nowhere in `count` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `count` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/governance/service-map-evidence.ts:35 — `parseMapHealth` is exported, takes a document from its caller (line 31) and hands it to `port`, which calls itself at line 35 (`port`) with a piece of `value` — and nowhere in `port` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `port` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/fees/feeScheduleContract.ts:41 — `parseFeeSchedule` is exported, takes a document from its caller (line 47) and hands it to `optionalString`, which calls itself at line 41 (`optionalString`) with a piece of `value` (and at line 42, line 43, line 62, line 63) — and nowhere in `optionalString` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `optionalString` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/customer360/evidence.ts:39 — `parseCustomer360Evidence` is exported, takes a document from its caller (line 32) and hands it to `isString`, which calls itself at line 39 (`isString`) with a piece of `value` (and at line 41, line 45, line 46, line 48) — and nowhere in `isString` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isString` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/customer360/evidence.ts:42 — `parseCustomer360Evidence` is exported, takes a document from its caller (line 32) and hands it to `isTimestamp`, which calls itself at line 42 (`isTimestamp`) with a piece of `value` — and nowhere in `isTimestamp` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isTimestamp` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/context/customerGraph.ts:217 — `parseAccounts` is exported, takes a document from its caller (line 227) and hands it to `text`, which calls itself at line 217 (`text`) with a piece of `row` — and nowhere in `text` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `text` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/closings/evidence.ts:101 — `isCloseRun` is exported, takes a document from its caller (line 99) and hands it to `isUuid`, which calls itself at line 101 (`isUuid`) with a piece of `value` (and at line 137, line 138, line 139) — and nowhere in `isUuid` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isUuid` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/closings/evidence.ts:141 — `parseReconciliationReport` is exported, takes a document from its caller (line 82) and hands it to `isDate`, which calls itself at line 141 (`isDate`) with a piece of `value` (and at line 142) — and nowhere in `isDate` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isDate` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/closings/evidence.ts:110 — `parseReconciliationReport` is exported, takes a document from its caller (line 82) and hands it to `isInstant`, which calls itself at line 110 (`isInstant`) with a piece of `value` (and at line 111, line 145) — and nowhere in `isInstant` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isInstant` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/closings/evidence.ts:104 — `isCloseRun` is exported, takes a document from its caller (line 99) and hands it to `isNullableDate`, which calls itself at line 104 (`isNullableDate`) with a piece of `value` (and at line 105) — and nowhere in `isNullableDate` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isNullableDate` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/closings/evidence.ts:75 — `parseReconciliationReport` is exported, takes a document from its caller (line 82) and hands it to `isAmount`, which calls itself at line 75 (`isAmount`) with a piece of `value` (and at line 76, line 77, line 79) — and nowhere in `isAmount` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isAmount` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/closings/evidence.ts:106 — `isCloseRun` is exported, takes a document from its caller (line 99) and hands it to `isCount`, which calls itself at line 106 (`isCount`) with a piece of `value` (and at line 107, line 108, line 109) — and nowhere in `isCount` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `isCount` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/aml/amlCaseContract.ts:42 — `parseAmlCases` is exported, takes a document from its caller (line 36) and hands it to `optionalString`, which calls itself at line 42 (`optionalString`) with a piece of `value` (and at line 47, line 48, line 49) — and nowhere in `optionalString` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `optionalString` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
  • Recursive walk over a caller-supplied document has no depth cap openbank-admin-ui/src/lib/aml/amlCaseContract.ts:50 — `parseAmlCases` is exported, takes a document from its caller (line 36) and hands it to `optionalInstant`, which calls itself at line 50 (`optionalInstant`) with a piece of `value` — and nowhere in `optionalInstant` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: `JSON.parse` accepts any depth, so a 100,000-byte body — inside Express's default 100kb limit — parses to 50,000 levels, and a walk like this one throws `RangeError: Maximum call stack size exceeded` long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any `try` — an event handler, a timer, a promise nobody awaits — takes the Node process down with every other request in flight. Thread a depth argument through `optionalInstant` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
X2 · Cancellation propagation · Async function without AbortSignal · ×22
  • Async function without AbortSignal: refresh openbank-infra/web/status/app.js:133 — `refresh` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: fetchAllServiceConfigSnapshots openbank-admin-ui/src/lib/api.ts:18 — `fetchAllServiceConfigSnapshots` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: fetchAllGovernanceManifests openbank-admin-ui/src/lib/api.ts:42 — `fetchAllGovernanceManifests` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: getJson openbank-admin-ui/src/lib/services/resourceClient.ts:10 — `getJson` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: fetchChangelog openbank-admin-ui/src/lib/docs/releases.ts:102 — `fetchChangelog` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: fetchReleaseNotes openbank-admin-ui/src/lib/docs/releases.ts:162 — `fetchReleaseNotes` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: requestRotation openbank-admin-ui/src/lib/auth/authOptions.ts:155 — `requestRotation` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: postJson openbank-admin-ui/src/components/treasury/api.ts:42 — `postJson` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: postNostroStatement openbank-admin-ui/src/components/treasury/api.ts:87 — `postNostroStatement` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: sendJson openbank-admin-ui/src/components/pension/api.ts:34 — `sendJson` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: sendJson openbank-admin-ui/src/components/balance-sheet/api.ts:29 — `sendJson` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: load openbank-admin-ui/src/components/agent/MergeRecordsSection.tsx:36 — `load` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: loadLedgerEntry openbank-admin-ui/src/app/treasury/deals/[id]/page.tsx:36 — `loadLedgerEntry` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: fetchReadinessReport openbank-admin-ui/src/app/system/readiness/page.tsx:22 — `fetchReadinessReport` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: mcpCall openbank-admin-ui/src/app/system/agent/page.tsx:39 — `mcpCall` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: run openbank-admin-ui/src/app/services/page.tsx:107 — `run` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: remove openbank-admin-ui/src/app/merchants/page.tsx:178 — `remove` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: removeLogo openbank-admin-ui/src/app/merchants/page.tsx:234 — `removeLogo` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: getJson openbank-admin-ui/src/app/lending/risk/page.tsx:77 — `getJson` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: createSession openbank-admin-ui/src/app/api/agent/obo-mcp/route.ts:62 — `createSession` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: bindSession openbank-admin-ui/src/app/api/agent/obo-mcp/route.ts:74 — `bindSession` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: oboToken openbank-admin-ui/src/app/api/agent/obo-mcp/route.ts:84 — `oboToken` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
D30 · Dependency Vulnerabilities · Medium CVE · ×20
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×19
  • Duplicated block (12 lines × 2) openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/kafka/PartyEventConsumer.kt:64 — openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/kafka/PartyEventConsumer.kt:64-75 | openbank-kyc-service/src/main/kotlin/com/openbank/kyc/infrastructure/kafka/PartyEventConsumer.kt:70-81 — 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 `openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/kafka/PartyEventConsumer.kt:64` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openbank-kyc-service/src/main/kotlin/com/openbank/kyc/infrastructure/kafka/PartyEventConsumer.kt:82` calls `handleAmlProfileDeclared` and `openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/kafka/PartyEventConsumer.kt:76` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (12 lines × 2) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ComplaintProjectionConsumer.kt:171 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ComplaintProjectionConsumer.kt:171-182 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/DomesticPaymentProjectionConsumer.kt:140-151 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ComplaintProjectionConsumer.kt:171` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt:79 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt:79-90 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentRailProjectionConsumer.kt:80-91 — before extracting anything, compare `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt` and `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentRailProjectionConsumer.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt:79` 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 first that the copies are not typed on the same thing: the declarations holding them bind `parse` to `(JsonNode) -> BookingProjectionEvent?` in one and `(JsonNode) -> RailProjectionEvent?` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (12 lines × 2) openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GovernanceReadAdapter.kt:51 — openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GovernanceReadAdapter.kt:51-62 | openbank-governance-auditor/src/main/kotlin/com/openbank/govaudit/infrastructure/adapter/GovernanceRulesReadAdapter.kt:91-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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (12 lines × 2) openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/rest/LedgerResource.kt:467 — openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/rest/LedgerResource.kt:467-478 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/rest/YearCloseResource.kt:179-190 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/rest/LedgerResource.kt:467` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) openbank-psd2-service/src/main/kotlin/com/openbank/psd2/infrastructure/rest/AisResource.kt:74 — openbank-psd2-service/src/main/kotlin/com/openbank/psd2/infrastructure/rest/AisResource.kt:74-85 | openbank-psd2-service/src/main/kotlin/com/openbank/psd2/infrastructure/rest/BerlinAisResource.kt:82-93 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (12 lines × 2) openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:177 — openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:177-189 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SwiftScenario.kt:168-179 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:177` 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) openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SddCollectionScenario.kt:121 — openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SddCollectionScenario.kt:121-132 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/StandingOrderScenario.kt:111-122 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SddCollectionScenario.kt:121` 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) openbank-statement-service/src/main/kotlin/com/openbank/statement/infrastructure/persistence/repository/StatementOutboxRepositoryImpl.kt:28 — openbank-statement-service/src/main/kotlin/com/openbank/statement/infrastructure/persistence/repository/StatementOutboxRepositoryImpl.kt:28-39 | openbank-statement-service/src/main/kotlin/com/openbank/statement/infrastructure/persistence/repository/StatementPeriodRepositoryImpl.kt:174-185 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (12 lines × 2) openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardAuthorizationRepositoryImpl.kt:258 — openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardAuthorizationRepositoryImpl.kt:258-269 | openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/ClearingPostingRepositoryImpl.kt:127-138 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (12 lines × 2) openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceRepositoryImpl.kt:73 — openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceRepositoryImpl.kt:73-84 | openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceRepositoryImpl.kt:93-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 `openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceRepositoryImpl.kt:73` 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) .github/scripts/check-asyncapi-doc-discriminator.py:120 — .github/scripts/check-asyncapi-doc-discriminator.py:120-131 | .github/scripts/library_dependency_graph.py:39-50 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `.github/scripts/check-asyncapi-doc-discriminator.py:120` 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) .github/scripts/check-eso-crd-api-version.py:225 — .github/scripts/check-eso-crd-api-version.py:225-236 | .github/scripts/check-untrusted-pg-extension.py:210-221 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (12 lines × 2) .github/scripts/check-idempotency-contract-parity.py:177 — .github/scripts/check-idempotency-contract-parity.py:177-188 | .github/scripts/check-openapi-route-conformance.py:191-202 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (12 lines × 2) .github/scripts/check-jaxrs-path-prefix-leading-slash.py:148 — .github/scripts/check-jaxrs-path-prefix-leading-slash.py:148-159 | .github/scripts/check-resilience-profile.py:173-184 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (12 lines × 2) .github/scripts/check-kafka-acl-coverage.py:271 — .github/scripts/check-kafka-acl-coverage.py:271-282 | .github/scripts/check-kafka-deployment-wiring.py:180-191 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `.github/scripts/check-kafka-acl-coverage.py:271` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `.github/scripts/check-kafka-deployment-wiring.py:192` calls `subjects` and `.github/scripts/check-kafka-acl-coverage.py:283` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (12 lines × 2) .github/scripts/check-litellm-model-costs.py:116 — .github/scripts/check-litellm-model-costs.py:116-127 | .github/scripts/check-scheduler-cron-syntax.py:203-214 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (12 lines × 2) .github/scripts/check-realm-devci-artifact-parity.py:244 — .github/scripts/check-realm-devci-artifact-parity.py:244-255 | .github/scripts/check-realm-import-parity.py:316-327 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (12 lines × 2) .github/scripts/list-recorded-flakes.py:42 — .github/scripts/list-recorded-flakes.py:42-53 | .github/scripts/record-rerun-flake.py:354-365 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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.
D3 · God Classes · TooManyMethods · ×18
  • TooManyMethods: CustomerEdgeResource openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:88 — TooManyMethods — 208 methods. The bar is 30 methods; this is 178 over it, 6.93× the bar. 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: LendingService openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:106 — TooManyMethods — 66 methods. The bar is 30 methods; this is 36 over it, 2.20× the bar. 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: TreasuryDealService openbank-treasury-service/src/main/kotlin/com/openbank/treasury/application/usecase/TreasuryDealService.kt:99 — TooManyMethods — 58 methods. The bar is 30 methods; this is 28 over it, 1.93× the bar. 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: OnboardingService openbank-pension-service/src/main/kotlin/com/openbank/pension/application/onboarding/OnboardingService.kt:90 — TooManyMethods — 46 methods. The bar is 30 methods; this is 16 over it, 1.53× the bar. 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: CustomerPensionResource openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerPensionResource.kt:63 — TooManyMethods — 42 methods. The bar is 30 methods; this is 12 over it, 1.40× the bar. 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: InterestService openbank-interest-service/src/main/kotlin/com/openbank/interest/application/usecase/InterestService.kt:60 — TooManyMethods — 42 methods. The bar is 30 methods; this is 12 over it, 1.40× the bar. 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: DomainMetrics openbank-libs-runtime/src/main/kotlin/com/openbank/libs/observability/DomainMetrics.kt:52 — TooManyMethods — 41 methods. The bar is 30 methods; this is 11 over it, 1.37× the bar. 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: LendingResource openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/LendingResource.kt:67 — TooManyMethods — 39 methods. The bar is 30 methods; this is 9 over it, 1.30× the bar. 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: PostgresGenericCatalogRepository openbank-product-catalog/src/main/kotlin/com/openbank/productcatalog/infrastructure/persistence/PostgresGenericCatalogRepository.kt:37 — TooManyMethods — 38 methods. The bar is 30 methods; this is 8 over it, 1.27× the bar. 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: TreasuryResource openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/rest/TreasuryResource.kt:63 — TooManyMethods — 37 methods. The bar is 30 methods; this is 7 over it, 1.23× the bar. 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: DealRepositoryImpl openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/repository/DealRepositoryImpl.kt:131 — TooManyMethods — 36 methods. The bar is 30 methods; this is 6 over it, 1.20× the bar. 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: DelegationService openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/DelegationService.kt:105 — TooManyMethods — 35 methods. The bar is 30 methods; this is 5 over it, 1.17× the bar. 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: PartyService openbank-party-service/src/main/kotlin/com/openbank/party/application/usecase/PartyService.kt:119 — TooManyMethods — 34 methods. The bar is 30 methods; this is 4 over it, 1.13× the bar. Most of these members implement in.PartyUseCase (30 of 34 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: PanachePensionFundStore openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/persistence/PanachePensionFundStore.kt:46 — TooManyMethods — 34 methods. The bar is 30 methods; this is 4 over it, 1.13× the bar. 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: BusinessSigningService openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/BusinessSigningService.kt:114 — TooManyMethods — 33 methods. The bar is 30 methods; this is 3 over it, 1.10× the bar. 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: GenericCatalogService openbank-product-catalog/src/main/kotlin/com/openbank/productcatalog/application/GenericCatalogService.kt:59 — TooManyMethods — 33 methods. The bar is 30 methods; this is 3 over it, 1.10× the bar. 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: CustomerPensionChangeResource openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerPensionChangeResource.kt:42 — TooManyMethods — 32 methods. The bar is 30 methods; this is 2 over it, 1.07× the bar. 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: UpstreamClient openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:58 — TooManyMethods — 31 methods. The bar is 30 methods; this is 1 over it, 1.03× the bar. 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.
D3 · God Classes · ClassTooLong · ×16
  • ClassTooLong: LendingService openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:106 — ClassTooLong — 1085 significant lines (blank, comment-only and punctuation-only lines excluded), 66 methods. The bar is 400 significant lines; this is 685 over it, 2.71× the bar. 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.
  • ClassTooLong: TreasuryDealService openbank-treasury-service/src/main/kotlin/com/openbank/treasury/application/usecase/TreasuryDealService.kt:99 — ClassTooLong — 732 significant lines (blank, comment-only and punctuation-only lines excluded), 58 methods. The bar is 400 significant lines; this is 332 over it, 1.83× the bar. 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.
  • ClassTooLong: BusinessSigningService openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/BusinessSigningService.kt:114 — ClassTooLong — 688 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 288 over it, 1.72× the bar. 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.
  • ClassTooLong: OnboardingService openbank-pension-service/src/main/kotlin/com/openbank/pension/application/onboarding/OnboardingService.kt:90 — ClassTooLong — 529 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 129 over it, 1.32× the bar. 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.
  • ClassTooLong: InterestService openbank-interest-service/src/main/kotlin/com/openbank/interest/application/usecase/InterestService.kt:60 — ClassTooLong — 505 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 105 over it, 1.26× the bar. 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.
  • ClassTooLong: PostgresGenericCatalogRepository openbank-product-catalog/src/main/kotlin/com/openbank/productcatalog/infrastructure/persistence/PostgresGenericCatalogRepository.kt:37 — ClassTooLong — 503 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 103 over it, 1.26× the bar. 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.
  • ClassTooLong: NotificationConsumer openbank-notification-service/src/main/kotlin/com/openbank/notification/application/NotificationConsumer.kt:75 — ClassTooLong — 498 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 98 over it, 1.25× the bar. 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.
  • ClassTooLong: DealRepositoryImpl openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/repository/DealRepositoryImpl.kt:131 — ClassTooLong — 459 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 59 over it, 1.15× the bar. 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.
  • ClassTooLong: LendingResource openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/LendingResource.kt:67 — ClassTooLong — 455 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 55 over it, 1.14× the bar. 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.
  • ClassTooLong: McpToolRegistry openbank-agent-service/src/main/kotlin/com/openbank/agent/application/McpToolRegistry.kt:39 — ClassTooLong — 455 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 55 over it, 1.14× the bar. 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.
  • ClassTooLong: IssueCardDialog openbank-admin-ui/src/components/cards/IssueCardDialog.tsx:1 — ClassTooLong — 455 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 55 over it, 1.14× the bar. 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.
  • ClassTooLong: CustomerPensionResource openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerPensionResource.kt:63 — ClassTooLong — 453 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 53 over it, 1.13× the bar. 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.
  • ClassTooLong: DelegationService openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/DelegationService.kt:105 — ClassTooLong — 450 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 50 over it, 1.13× the bar. 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.
  • ClassTooLong: NoPostingRuleException openbank-treasury-service/src/main/kotlin/com/openbank/treasury/domain/model/PostingMatrix.kt:102 — ClassTooLong — 417 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 17 over it, 1.04× the bar. 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.
  • ClassTooLong: FourEyesViolationException openbank-treasury-service/src/main/kotlin/com/openbank/treasury/domain/model/Deal.kt:155 — ClassTooLong — 412 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 12 over it, 1.03× the bar. 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.
  • ClassTooLong: TreasuryResource openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/rest/TreasuryResource.kt:63 — ClassTooLong — 402 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 2 over it, 1.01× the bar. 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.
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×14
  • Members sharing a duplicated core (4 members, 50+ identical tokens) openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/AuthzPolicyAuditorWorkflowImpl.kt:34 — openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/AuthzPolicyAuditorWorkflowImpl.kt:34-62 | openbank-docs-truth-agent/src/main/kotlin/com/openbank/docstruth/application/workflow/DocsTruthWorkflowImpl.kt:34-62 | openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/application/workflow/FlakyTestHunterWorkflowImpl.kt:34-62 | openbank-release-steward/src/main/kotlin/com/openbank/releasesteward/application/workflow/ReleaseStewardWorkflowImpl.kt:34-63 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt:32 — openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt:32-41 | openbank-docs-truth-agent/src/main/kotlin/com/openbank/docstruth/application/workflow/DiagnoseAndProposeActivityImpl.kt:37-46 | openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/application/workflow/DiagnoseAndProposeActivityImpl.kt:56-65 | openbank-release-steward/src/main/kotlin/com/openbank/releasesteward/application/workflow/DiagnoseAndProposeActivityImpl.kt:32-41 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt:48 — openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt:48-85 | openbank-docs-truth-agent/src/main/kotlin/com/openbank/docstruth/application/workflow/DiagnoseAndProposeActivityImpl.kt:53-89 | openbank-governance-auditor/src/main/kotlin/com/openbank/govaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt:46-82 | openbank-release-steward/src/main/kotlin/com/openbank/releasesteward/application/workflow/DiagnoseAndProposeActivityImpl.kt:48-84 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/BillingOutboxRepositoryImpl.kt:190 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/BillingOutboxRepositoryImpl.kt:190-207 | openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/persistence/FraudOutboxRepositoryImpl.kt:100-117 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/InterestOutboxRepositoryImpl.kt:134-151 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/LedgerOutboxRepositoryImpl.kt:132-149 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt:41 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt:41-51 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/CloseJobRunRepository.kt:20-30 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/CloseJobRunRepository.kt:38-48 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseEvidenceRepository.kt:37-47 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt:73 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt:73-81 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/CloseJobRunRepository.kt:40-48 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/CloseJobRunRepository.kt:85-93 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseEvidenceRepository.kt:102-110 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:49 — openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:49-63 | openbank-incentive-service/src/main/kotlin/com/openbank/incentive/infrastructure/persistence/IncentivePersistence.kt:159-175 | openbank-security-scanner/src/main/kotlin/com/openbank/security/infrastructure/persistence/repository/IctIncidentOutboxRepositoryImpl.kt:70-84 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/repository/TreasuryOutboxRepositoryImpl.kt:48-62 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/observability/FraudScoringMetrics.kt:77 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/observability/FraudScoringMetrics.kt:77-90 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/observability/FraudScoringMetrics.kt:77-90 | openbank-sepa-instant/src/main/kotlin/com/openbank/sepainstant/infrastructure/observability/FraudScoringMetrics.kt:77-90 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/observability/FraudScoringMetrics.kt:77-90 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt:82 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt:82-96 | openbank-security-scanner/src/main/kotlin/com/openbank/security/infrastructure/persistence/repository/IctIncidentOutboxRepositoryImpl.kt:41-53 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/persistence/repository/SepaPaymentOutboxRepositoryImpl.kt:82-96 | openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/persistence/repository/TransactionOutboxRepositoryImpl.kt:85-99 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:515 — openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:515-563 | openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:566-593 | openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:669-694 | openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:700-729 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) .github/scripts/check-approval-store-redis-host.py:154 — .github/scripts/check-approval-store-redis-host.py:154-171 | .github/scripts/check-entity-column-names.py:180-200 | .github/scripts/check-jaxrs-path-hijack.py:158-174 | .github/scripts/check-provider-type-classpath.py:188-202 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) .github/scripts/check-audit-money-path-subscription.py:139 — .github/scripts/check-audit-money-path-subscription.py:139-146 | .github/scripts/check-kafka-acl-coverage.py:85-92 | .github/scripts/check-kafka-deployment-wiring.py:60-67 | .github/scripts/check-source-service-presence.py:153-160 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) .github/scripts/check-authz-pdp-parity.py:123 — .github/scripts/check-authz-pdp-parity.py:123-167 | .github/scripts/check-nonnull-jaxrs-params.py:96-140 | .github/scripts/check-outbox-has-writer.py:208-264 | .github/scripts/check-pact-twin-state-parity.py:44-92 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) .github/scripts/check-kafka-acl-coverage.py:135 — .github/scripts/check-kafka-acl-coverage.py:135-158 | .github/scripts/check-kafka-deployment-wiring.py:85-108 | .github/scripts/check-oidc-client-secret-wiring.py:162-184 | .github/scripts/check-probe-port-listener.py:129-149 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×13
  • Duplicated block (11 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:167 — openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:167-177 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt:325-335 — before extracting anything, compare `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt` and `openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt: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 (11 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/rest/AgentMergeRecordResource.kt:163 — openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/rest/AgentMergeRecordResource.kt:163-173 | openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/rest/AgentMergeRecordResource.kt:187-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 `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/rest/AgentMergeRecordResource.kt:163` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/rest/AgentMergeRecordResource.kt:186` calls `requireNotNull` and `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/rest/AgentMergeRecordResource.kt:162` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/application/usecase/CardDisputeService.kt:209 — openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/application/usecase/CardDisputeService.kt:209-219 | openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/application/usecase/CardTokenService.kt:253-263 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/application/usecase/CardDisputeService.kt:209` 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) openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/client/SanctionsScreeningAdapter.kt:43 — openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/client/SanctionsScreeningAdapter.kt:43-53 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/client/SanctionsScreeningAdapter.kt:43-53 — before extracting anything, compare `openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/client/SanctionsScreeningAdapter.kt` and `openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/client/SanctionsScreeningAdapter.kt` as WHOLE FILES: 92% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (11 lines × 2) openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LedgerBackfillRequestRepositoryImpl.kt:50 — openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LedgerBackfillRequestRepositoryImpl.kt:50-60 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LedgerBackfillVoidRequestRepositoryImpl.kt:50-60 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (11 lines × 2) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/rest/ExceptionMappers.kt:48 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/rest/ExceptionMappers.kt:48-58 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/rest/ExceptionMappers.kt:32-42 — 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) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseHistoryRepository.kt:119 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseHistoryRepository.kt:119-130 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AuthorityHistoryRepository.kt:67-77 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseHistoryRepository.kt:119` 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `evidence` to `AmlCaseObservation` in one and `AuthorityEvidence` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (11 lines × 2) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/client/BillingJournalFactory.kt:79 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/client/BillingJournalFactory.kt:79-89 | openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/client/BillingJournalFactory.kt:144-154 — 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 `openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/client/BillingJournalFactory.kt:79` 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 (11 lines × 2) .github/scripts/check-advisory-finding-staleness.py:113 — .github/scripts/check-advisory-finding-staleness.py:113-123 | .github/scripts/check-gate-lifecycle-metadata.py:257-267 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (11 lines × 2) .github/scripts/check-idempotency-coverage.py:285 — .github/scripts/check-idempotency-coverage.py:285-296 | .github/scripts/check-money-path-pact-coverage.py:151-161 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `.github/scripts/check-idempotency-coverage.py:285` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `.github/scripts/check-idempotency-coverage.py:297` calls `sum` and `.github/scripts/check-money-path-pact-coverage.py:162` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) .github/scripts/check-object-store-blobs-migration.py:196 — .github/scripts/check-object-store-blobs-migration.py:196-206 | .github/scripts/check-probe-port-listener.py:297-307 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `.github/scripts/check-probe-port-listener.py:308` calls `subjects` and `.github/scripts/check-object-store-blobs-migration.py:207` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) openbank-infra/scripts/gen-network-policies.py:601 — openbank-infra/scripts/gen-network-policies.py:601-611 | openbank-infra/scripts/gen-network-policies.py:630-640 — 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 (11 lines × 2) .github/scripts/check-idempotency-contract-parity.py:113 — .github/scripts/check-idempotency-contract-parity.py:113-123 | .github/scripts/check-openapi-route-conformance.py:111-121 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×12
  • Swallowed exception (caught, then discarded) openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/client/SchemeGatewayAdapter.kt:163 — `catch (e: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) openbank-security-scanner/src/main/kotlin/com/openbank/securityscanner/application/SecurityScannerService.kt:70 — `catch (e: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) openbank-security-scanner/src/main/kotlin/com/openbank/securityscanner/application/SecurityScannerService.kt:172 — `catch (_: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) openbank-libs-runtime/src/main/kotlin/com/openbank/libs/warmup/HibernateReactiveWarmup.kt:78 — `catch (e: Throwable)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) openbank-libs-runtime/src/main/kotlin/com/openbank/libs/warmup/ResourceTypeWarmup.kt:92 — `catch (e: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) openbank-infra/scripts/check-db-migration.py:101 — `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) openbank-infra/scripts/finops-tier-classifier.py:173 — `except Exception` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/client/BusinessSigningClients.kt:98 — `catch (e: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/client/BusinessSigningClients.kt:106 — `catch (e: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/BusinessSigningService.kt:900 — `catch (e: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/BusinessSigningService.kt:905 — `catch (e: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/ratelimit/RateLimitFilter.kt:65 — `catch (_: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
AC6 · Visual & motion safety · Focus outline removed inline · ×11
  • Focus outline removed inline openbank-admin-ui/src/app/aml/page.tsx:126 — <input> takes keyboard focus, and outline:none/0 in its inline style removes the focus ring with no chance of a :focus replacement (an inline style outranks every stylesheet rule). Keep a visible focus indicator.
  • Focus outline removed inline openbank-admin-ui/src/app/cards/page.tsx:184 — <input> takes keyboard focus, and outline:none/0 in its inline style removes the focus ring with no chance of a :focus replacement (an inline style outranks every stylesheet rule). Keep a visible focus indicator.
  • Focus outline removed inline openbank-admin-ui/src/app/clearing/page.tsx:99 — <input> takes keyboard focus, and outline:none/0 in its inline style removes the focus ring with no chance of a :focus replacement (an inline style outranks every stylesheet rule). Keep a visible focus indicator.
  • Focus outline removed inline openbank-admin-ui/src/app/interest/page.tsx:191 — <input> takes keyboard focus, and outline:none/0 in its inline style removes the focus ring with no chance of a :focus replacement (an inline style outranks every stylesheet rule). Keep a visible focus indicator.
  • Focus outline removed inline openbank-admin-ui/src/app/payments/page.tsx:732 — <input> takes keyboard focus, and outline:none/0 in its inline style removes the focus ring with no chance of a :focus replacement (an inline style outranks every stylesheet rule). Keep a visible focus indicator.
  • Focus outline removed inline openbank-admin-ui/src/app/sanctions/page.tsx:709 — <input> takes keyboard focus, and outline:none/0 in its inline style removes the focus ring with no chance of a :focus replacement (an inline style outranks every stylesheet rule). Keep a visible focus indicator.
  • Focus outline removed inline openbank-admin-ui/src/app/sanctions/page.tsx:950 — <input> takes keyboard focus, and outline:none/0 in its inline style removes the focus ring with no chance of a :focus replacement (an inline style outranks every stylesheet rule). Keep a visible focus indicator.
  • Focus outline removed inline openbank-admin-ui/src/app/standing-orders/page.tsx:107 — <input> takes keyboard focus, and outline:none/0 in its inline style removes the focus ring with no chance of a :focus replacement (an inline style outranks every stylesheet rule). Keep a visible focus indicator.
  • Focus outline removed inline openbank-admin-ui/src/app/swift/page.tsx:110 — <input> takes keyboard focus, and outline:none/0 in its inline style removes the focus ring with no chance of a :focus replacement (an inline style outranks every stylesheet rule). Keep a visible focus indicator.
  • Focus outline removed inline openbank-admin-ui/src/components/cards/ConfirmTransitionDialog.tsx:112 — <textarea> takes keyboard focus, and outline:none/0 in its inline style removes the focus ring with no chance of a :focus replacement (an inline style outranks every stylesheet rule). Keep a visible focus indicator.
  • Focus outline removed inline openbank-admin-ui/src/components/search/CommandPalette.tsx:251 — <input> takes keyboard focus, and outline:none/0 in its inline style removes the focus ring with no chance of a :focus replacement (an inline style outranks every stylesheet rule). Keep a visible focus indicator.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×11
  • Duplicated block (13 lines × 2) openbank-account-service/src/main/kotlin/com/openbank/account/application/usecase/AccountService.kt:283 — openbank-account-service/src/main/kotlin/com/openbank/account/application/usecase/AccountService.kt:283-295 | openbank-account-service/src/main/kotlin/com/openbank/account/application/usecase/AccountService.kt:313-325 — 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 (13 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:230 — openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:230-242 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt:378-390 — before extracting anything, compare `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt` and `openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:230` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 first that the copies are not typed on the same thing: `ModelResponse` names `com.openbank.agent.domain.model.ModelResponse` in one and `com.openbank.copilot.domain.model.ModelResponse` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (13 lines × 2) openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/crypto/OpenBaoTransitDekUnwrapper.kt:93 — openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/crypto/OpenBaoTransitDekUnwrapper.kt:93-105 | openbank-document-service/src/main/kotlin/com/openbank/document/infrastructure/render/OpenBaoClientSignatureAdapter.kt:193-205 — 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 `openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/crypto/OpenBaoTransitDekUnwrapper.kt:93` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (13 lines × 2) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextAuditCommitment.kt:31 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextAuditCommitment.kt:31-43 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextDisclosureCommitment.kt:27-39 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextAuditCommitment.kt:31` 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) openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/servicing/LendingCloseParticipationScheduler.kt:125 — openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/servicing/LendingCloseParticipationScheduler.kt:125-137 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseParticipationScheduler.kt:119-131 — before extracting anything, compare `openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/servicing/LendingCloseParticipationScheduler.kt` and `openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseParticipationScheduler.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/servicing/LendingCloseParticipationScheduler.kt:125` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) openbank-sca-service/src/main/kotlin/com/openbank/sca/application/usecase/OperatorApprovalRetention.kt:47 — openbank-sca-service/src/main/kotlin/com/openbank/sca/application/usecase/OperatorApprovalRetention.kt:47-59 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/application/usecase/OperatorApprovalRetention.kt:47-59 — 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 (13 lines × 2) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt:227 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt:227-241 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentRailProjectionConsumer.kt:221-233 — before extracting anything, compare `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt` and `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentRailProjectionConsumer.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (13 lines × 2) openbank-libs-runtime/src/main/kotlin/com/openbank/libs/persistence/outbox/PanacheOutboxEntity.kt:67 — openbank-libs-runtime/src/main/kotlin/com/openbank/libs/persistence/outbox/PanacheOutboxEntity.kt:67-79 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/repository/TreasuryOutboxRepositoryImpl.kt:106-118 — 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) openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/persistence/entity/ScaOperatorApprovalEntity.kt:65 — openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/persistence/entity/ScaOperatorApprovalEntity.kt:65-77 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/persistence/entity/SettlementOperatorApprovalEntity.kt:65-77 — before extracting anything, compare `openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/persistence/entity/ScaOperatorApprovalEntity.kt` and `openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/persistence/entity/SettlementOperatorApprovalEntity.kt` as WHOLE FILES: 95% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (13 lines × 2) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/client/BillingJournalFactory.kt:91 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/client/BillingJournalFactory.kt:91-103 | openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/client/BillingJournalFactory.kt:156-168 — 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 `openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/client/BillingJournalFactory.kt: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) .github/scripts/check-datasource-pool-self-heal.py:47 — .github/scripts/check-datasource-pool-self-heal.py:47-59 | .github/scripts/check-rest-client-timeouts.py:66-78 — before extracting anything, compare `.github/scripts/check-datasource-pool-self-heal.py` and `.github/scripts/check-rest-client-timeouts.py` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (14 lines × 2) · ×9
  • Duplicated block (14 lines × 2) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/adapter/RestCatalogRevisionIrPort.kt:49 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/adapter/RestCatalogRevisionIrPort.kt:49-62 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/adapter/RestCatalogRevisionIrPort.kt:51-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. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/adapter/RestCatalogRevisionIrPort.kt:49` 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 first that the copies are not typed on the same thing: `CatalogRevisionMismatchException` names `com.openbank.billing.application.port.out.CatalogRevisionMismatchException` in one and `com.openbank.interest.application.port.out.CatalogRevisionMismatchException` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (14 lines × 2) openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/kafka/PartyEventConsumer.kt:37 — openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/kafka/PartyEventConsumer.kt:37-50 | openbank-notification-service/src/main/kotlin/com/openbank/notification/infrastructure/kafka/PartyErasureConsumer.kt:40-53 — 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 (14 lines × 2) openbank-case-coordinator-agent/src/main/kotlin/com/openbank/casecoordinator/infrastructure/persistence/CaseSignalEvidenceRepository.kt:90 — openbank-case-coordinator-agent/src/main/kotlin/com/openbank/casecoordinator/infrastructure/persistence/CaseSignalEvidenceRepository.kt:90-103 | openbank-case-coordinator-agent/src/main/kotlin/com/openbank/casecoordinator/infrastructure/workflow/CaseActivitiesImpl.kt:197-210 — 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 `openbank-case-coordinator-agent/src/main/kotlin/com/openbank/casecoordinator/infrastructure/persistence/CaseSignalEvidenceRepository.kt:90` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (14 lines × 2) openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GitHubProposalAdapter.kt:166 — openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GitHubProposalAdapter.kt:166-179 | openbank-devops-agent/src/main/kotlin/com/openbank/devops/infrastructure/adapter/RemediationProposalAdapter.kt:128-141 — before extracting anything, compare `openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GitHubProposalAdapter.kt` and `openbank-devops-agent/src/main/kotlin/com/openbank/devops/infrastructure/adapter/RemediationProposalAdapter.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (14 lines × 2) openbank-fx-service/src/main/kotlin/com/openbank/fx/application/workflow/FxActivitiesImpl.kt:72 — openbank-fx-service/src/main/kotlin/com/openbank/fx/application/workflow/FxActivitiesImpl.kt:72-85 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/application/workflow/SepaPaymentActivitiesImpl.kt:104-117 — 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 `openbank-fx-service/src/main/kotlin/com/openbank/fx/application/workflow/FxActivitiesImpl.kt:72` 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) openbank-ledger-service/src/main/kotlin/com/openbank/ledger/domain/model/ClosedPeriod.kt:111 — openbank-ledger-service/src/main/kotlin/com/openbank/ledger/domain/model/ClosedPeriod.kt:111-124 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/domain/model/YearClose.kt:61-74 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-ledger-service/src/main/kotlin/com/openbank/ledger/domain/model/ClosedPeriod.kt:111` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/application/workflow/DomesticPaymentActivitiesImpl.kt:511 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/application/workflow/DomesticPaymentActivitiesImpl.kt:511-525 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/application/workflow/SepaPaymentActivitiesImpl.kt:331-344 — 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 `openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/application/workflow/DomesticPaymentActivitiesImpl.kt:511` 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 first that the copies are not typed on the same thing: `OpenAmlCaseCommand` names `com.openbank.domestic.application.port.out.OpenAmlCaseCommand` in one and `com.openbank.sepa.application.port.out.OpenAmlCaseCommand` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (14 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/AgentContentSafetyProducer.kt:59 — openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/AgentContentSafetyProducer.kt:59-72 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/ContentSafetyProducer.kt:63-76 — 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 `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/AgentContentSafetyProducer.kt:59` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (14 lines × 2) .github/scripts/check-bench-alloc-baseline.py:387 — .github/scripts/check-bench-alloc-baseline.py:387-400 | .github/scripts/check-bench-alloc-baseline.py:415-428 — 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.
D5 · Coupling · Off the main sequence · ×9
  • Off the main sequence: openbank:openbank-libs-domain — openbank:openbank-libs-domain: abstractness 0.08, instability 0.00, distance 0.92 — zone of pain — concrete and depended on by 39 project(s), so it's rigid to change.
  • Off the main sequence: openbank:openbank-libs-runtime — openbank:openbank-libs-runtime: abstractness 0.07, instability 0.03, distance 0.90 — zone of pain — concrete and depended on by 34 project(s), so it's rigid to change.
  • Off the main sequence: openbank:openbank-client-transaction — openbank:openbank-client-transaction: abstractness 0.11, instability 0.00, distance 0.89 — zone of pain — concrete and depended on by 5 project(s), so it's rigid to change.
  • Off the main sequence: openbank:openbank-libs-temporal — openbank:openbank-libs-temporal: abstractness 0.13, instability 0.00, distance 0.88 — zone of pain — concrete and depended on by 15 project(s), so it's rigid to change.
  • Off the main sequence: openbank:openbank-client-account — openbank:openbank-client-account: abstractness 0.14, instability 0.00, distance 0.86 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
  • Off the main sequence: openbank:openbank-libs-iso20022 — openbank:openbank-libs-iso20022: abstractness 0.01, instability 0.20, distance 0.79 — zone of pain — concrete and depended on by 4 project(s), so it's rigid to change.
  • Off the main sequence: openbank:openbank-libs-finance — openbank:openbank-libs-finance: abstractness 0.10, instability 0.14, distance 0.76 — zone of pain — concrete and depended on by 6 project(s), so it's rigid to change.
  • Off the main sequence: openbank:openbank-libs-lending — openbank:openbank-libs-lending: abstractness 0.04, instability 0.25, distance 0.71 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
  • Off the main sequence: openbank:openbank-libs-fincrime — openbank:openbank-libs-fincrime: abstractness 0.04, instability 0.25, distance 0.71 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×8
  • Duplicated block (7 lines × 3) openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:55 — openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:55-61 | openbank-security-scanner/src/main/kotlin/com/openbank/security/infrastructure/persistence/repository/IctIncidentOutboxRepositoryImpl.kt:76-82 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/repository/TreasuryOutboxRepositoryImpl.kt:54-60 — before extracting anything, compare `openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt` and `openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/repository/TreasuryOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:55` 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 × 3) openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:183 — openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:183-189 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/StandingOrderScenario.kt:116-122 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SwiftScenario.kt:173-179 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
  • Duplicated block (7 lines × 3) openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/kafka/PartyEventConsumer.kt:41 — openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/kafka/PartyEventConsumer.kt:41-47 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/kafka/PartyErasureConsumer.kt:87-94 | openbank-notification-service/src/main/kotlin/com/openbank/notification/infrastructure/kafka/PartyErasureConsumer.kt:44-50 — 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 `openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/kafka/PartyEventConsumer.kt:41` 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 × 3) openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/scheduler/DecisionEvidencePurgeScheduler.kt:67 — openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/scheduler/DecisionEvidencePurgeScheduler.kt:67-73 | openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/scheduler/OperatorApprovalPurgeScheduler.kt:67-73 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/scheduler/OperatorApprovalPurgeScheduler.kt:69-75 — 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 (7 lines × 3) .github/scripts/check-advisory-finding-staleness.py:65 — .github/scripts/check-advisory-finding-staleness.py:65-71 | .github/scripts/check-gate-lifecycle-metadata.py:212-218 | .github/scripts/check-gate-subject-floor.py:236-242 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (7 lines × 3) .github/scripts/check-nonnull-jaxrs-params.py:360 — .github/scripts/check-nonnull-jaxrs-params.py:360-368 | .github/scripts/check-outbox-claim-sql.py:155-161 | .github/scripts/check-outbox-conformance-it.py:142-148 — before extracting anything, compare `.github/scripts/check-outbox-claim-sql.py` and `.github/scripts/check-outbox-conformance-it.py` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 × 3) .github/scripts/check-oidc-tls-verification-profile.py:329 — .github/scripts/check-oidc-tls-verification-profile.py:329-335 | .github/scripts/check-rego-service-account-profile-scope.py:209-215 | .github/scripts/check-security-txt.py:169-175 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, 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 (7 lines × 3) .github/scripts/merge-train.py:6432 — .github/scripts/merge-train.py:6432-6438 | .github/scripts/merge-train.py:6441-6447 | .github/scripts/merge-train.py:6450-6456 — 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 `.github/scripts/merge-train.py:6432` 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 · Members sharing a duplicated core (5 members, 50+ identical tokens) · ×7
  • Members sharing a duplicated core (5 members, 50+ identical tokens) openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/rest/AmlCaseResource.kt:79 — openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/rest/AmlCaseResource.kt:79-137 | openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/rest/ConsentResource.kt:81-136 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/IdempotentSubmit.kt:53-81 | openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/rest/ScaResource.kt:262-306 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/rest/SepaPaymentResource.kt:80-144 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/LedgerOutboxEventPublisher.kt:157 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/LedgerOutboxEventPublisher.kt:157-165 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/kafka/KafkaCardOutboxEventPublisher.kt:34-42 | openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/kafka/KafkaCardProcessingOutboxEventPublisher.kt:30-38 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/kafka/KafkaInterestOutboxEventPublisher.kt:47-55 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/messaging/KafkaLedgerOutboxEventPublisher.kt:41-49 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/messaging/KafkaDelegationOutboxEventPublisher.kt:117 — openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/messaging/KafkaDelegationOutboxEventPublisher.kt:117-125 | openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/kafka/KafkaFraudOutboxEventPublisher.kt:66-74 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/kafka/KafkaInterestOutboxEventPublisher.kt:84-92 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/messaging/KafkaLedgerOutboxEventPublisher.kt:78-86 | openbank-sdd-service/src/main/kotlin/com/openbank/sdd/infrastructure/kafka/KafkaSddOutboxEventPublisher.kt:72-80 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:146 — openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:146-213 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SddCollectionScenario.kt:77-145 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/StandingOrderScenario.kt:62-140 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SwiftScenario.kt:129-191 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SwiftScenario.kt:206-235 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) .github/scripts/check-alert-metric-emitted.py:140 — .github/scripts/check-alert-metric-emitted.py:140-163 | .github/scripts/check-alert-metric-emitted.py:167-183 | .github/scripts/check-dashboard-metric-emitted.py:96-117 | .github/scripts/check-dashboard-metric-emitted.py:141-157 | .github/scripts/check-oidc-client-secret-wiring.py:144-158 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) .github/scripts/check-hibernate-sequence-guard.py:299 — .github/scripts/check-hibernate-sequence-guard.py:299-311 | .github/scripts/check-ledger-instance-switches.py:284-298 | .github/scripts/check-principal-name-trust.py:164-176 | .github/scripts/check-synthetic-customer-identity.py:264-278 | .github/scripts/check-xml-factory-hardened.py:103-115 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) .github/scripts/check-jaxrs-path-prefix-leading-slash.py:273 — .github/scripts/check-jaxrs-path-prefix-leading-slash.py:273-286 | .github/scripts/check-raw-http-client.py:139-152 | .github/scripts/check-resilience-profile.py:334-347 | .github/scripts/pact-reconcile-deployed-records.py:167-241 | openbank-infra/scripts/check-cnpg-backup-declared.py:200-223 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×7
  • Duplicated block (16 lines × 2) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/DelegationProjectionRepositoryImpl.kt:53 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/DelegationProjectionRepositoryImpl.kt:53-68 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardDelegationProjectionRepositoryImpl.kt:52-67 — 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 (16 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt:133 — openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt:133-148 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/application/ModelGateway.kt:168-183 — before extracting anything, compare `openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt` and `openbank-copilot-service/src/main/kotlin/com/openbank/copilot/application/ModelGateway.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt:133` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (16 lines × 2) openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt:78 — openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt:78-93 | openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/infrastructure/persistence/PostgresFindingRepository.kt:78-93 — before extracting anything, compare `openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt` and `openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/infrastructure/persistence/PostgresFindingRepository.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt: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.
  • Duplicated block (16 lines × 2) openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceRepositoryImpl.kt:53 — openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceRepositoryImpl.kt:53-68 | openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceRepositoryImpl.kt:274-289 — 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 `openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceRepositoryImpl.kt:53` 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 (16 lines × 2) openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/rest/DelegationResource.kt:140 — openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/rest/DelegationResource.kt:140-155 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/rest/DelegationResource.kt:198-213 — 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 (16 lines × 2) openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/LegacyPositionClassificationResource.kt:53 — openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/LegacyPositionClassificationResource.kt:53-68 | openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/PositionClassificationResource.kt:56-71 — before extracting anything, compare `openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/LegacyPositionClassificationResource.kt` and `openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/PositionClassificationResource.kt` as WHOLE FILES: 86% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (16 lines × 2) openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:78 — openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:78-93 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt:80-95 — before extracting anything, compare `openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt` and `openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:78` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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.
AC3 · Page structure · Data table has no header cells · ×6
  • Data table has no header cells openbank-admin-ui/src/app/docs/compliance/page.tsx:297 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells openbank-admin-ui/src/components/balance-sheet/InstrumentsPanel.tsx:122 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells openbank-pension-service/src/main/resources/document-templates/pension-annual-statement-cs.hbs:7 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells openbank-pension-service/src/main/resources/document-templates/pension-annual-statement-en.hbs:7 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells openbank-pension-service/src/main/resources/document-templates/pension-tax-certificate-cs.hbs:7 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
  • Data table has no header cells openbank-pension-service/src/main/resources/document-templates/pension-tax-certificate-en.hbs:7 — A <table> with data cells but no <th> gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as <th> (with a scope).
D17 · Explicit Debt · TodoComment · ×6
  • TodoComment openbank-release-steward/src/main/kotlin/com/openbank/releasesteward/infrastructure/adapter/GitHubOpenPrReadAdapter.kt:34 — // TODO(ADR-0165): GitHub App installation token; GET /repos/{owner}/{repo}/pulls
  • TodoComment openbank-release-steward/src/main/kotlin/com/openbank/releasesteward/infrastructure/adapter/GitHubOpenPrReadAdapter.kt:42 — // TODO(ADR-0165): GET /repos/{owner}/{repo}/contents/{service}main/resources/
  • TodoComment openbank-governance-auditor/src/main/kotlin/com/openbank/govaudit/infrastructure/adapter/GitHubReadAdapter.kt:34 — // TODO(ADR-0164): GitHub App installation token; GET /repos/{owner}/{repo}/pulls
  • TodoComment openbank-governance-auditor/src/main/kotlin/com/openbank/govaudit/infrastructure/adapter/GitHubReadAdapter.kt:43 — // TODO(ADR-0164): GET /repos/{owner}/{repo}/contents/docs/threat-models/{service}.md
  • TodoComment openbank-document-service/src/main/kotlin/com/openbank/document/infrastructure/delivery/LoggingStatementDeliveryAdapter.kt:12 — // TODO(ADR-0248): replace with a real delivery channel (email/postal) — phase-1 stub only.
  • TodoComment openbank-document-service/src/main/kotlin/com/openbank/document/application/usecase/DocumentTemplateService.kt:46 — // TODO(ADR-0162): emit DocumentTemplatePublished to the outbox on publish once template-scoped
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×6
  • Duplicated block (17 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/application/AgentContentSafetyGuard.kt:85 — openbank-agent-service/src/main/kotlin/com/openbank/agent/application/AgentContentSafetyGuard.kt:85-101 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/application/ContentSafetyGuard.kt:90-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 `openbank-agent-service/src/main/kotlin/com/openbank/agent/application/AgentContentSafetyGuard.kt:85` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (17 lines × 2) openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt:59 — openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt:59-75 | openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/infrastructure/persistence/PostgresFindingRepository.kt:59-75 — before extracting anything, compare `openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt` and `openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/infrastructure/persistence/PostgresFindingRepository.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (17 lines × 2) openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/PanacheJournalRepository.kt:183 — openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/PanacheJournalRepository.kt:183-199 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/PanacheJournalRepository.kt:211-227 — 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 `openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/PanacheJournalRepository.kt:183` 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) openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt:136 — openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt:136-153 | openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:95-111 — before extracting anything, compare `openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt` and `openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt:136` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) .github/scripts/check-gh-repo-context.py:241 — .github/scripts/check-gh-repo-context.py:241-257 | .github/scripts/check-gradle-user-home-isolation.py:231-247 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (17 lines × 2) .github/scripts/check-outbox-has-writer.py:188 — .github/scripts/check-outbox-has-writer.py:188-204 | .github/scripts/check-synthetic-outbox-taint.py:66-82 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `.github/scripts/check-outbox-has-writer.py:188` 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 (15 lines × 2) · ×6
  • Duplicated block (15 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt:92 — openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt:92-106 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/application/ModelGateway.kt:127-141 — before extracting anything, compare `openbank-agent-service/src/main/kotlin/com/openbank/agent/application/ModelGateway.kt` and `openbank-copilot-service/src/main/kotlin/com/openbank/copilot/application/ModelGateway.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: `ModelProvider` names `com.openbank.agent.application.port.out.ModelProvider` in one and `com.openbank.copilot.application.port.out.ModelProvider` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (15 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:147 — openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:147-161 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt:301-315 — before extracting anything, compare `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt` and `openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt: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. Note first that the copies are not typed on the same thing: `ChatRole` names `com.openbank.agent.domain.model.ChatRole` in one and `com.openbank.copilot.domain.model.ChatRole` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (15 lines × 2) openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/rest/ExceptionMappers.kt:247 — openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/rest/ExceptionMappers.kt:247-261 | openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/rest/ExceptionMappers.kt:29-43 — 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (15 lines × 2) openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/ContractUnitResource.kt:52 — openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/ContractUnitResource.kt:52-66 | openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/LegacyContractUnitResource.kt:55-69 — before extracting anything, compare `openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/ContractUnitResource.kt` and `openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/LegacyContractUnitResource.kt` as WHOLE FILES: 89% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (15 lines × 2) openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:62 — openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:62-76 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt:64-78 — before extracting anything, compare `openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt` and `openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt: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 (15 lines × 2) openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:296 — openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:296-310 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SwiftScenario.kt:250-264 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:296` 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) · ×6
  • Duplicated block (8 lines × 3) openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/PrometheusQueryAdapter.kt:66 — openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/PrometheusQueryAdapter.kt:66-73 | openbank-devops-agent/src/main/kotlin/com/openbank/devops/infrastructure/adapter/PrometheusQueryAdapter.kt:46-53 | openbank-finops-agent/src/main/kotlin/com/openbank/finops/infrastructure/adapter/PrometheusQueryAdapter.kt:66-73 — before extracting anything, compare `openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/PrometheusQueryAdapter.kt` and `openbank-devops-agent/src/main/kotlin/com/openbank/devops/infrastructure/adapter/PrometheusQueryAdapter.kt` as WHOLE FILES: 88% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 3) openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:183 — openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:183-190 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SwiftScenario.kt:173-180 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SwiftScenario.kt:210-217 — 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 (8 lines × 3) openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/FundReportingResource.kt:57 — openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/FundReportingResource.kt:57-64 | openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/LegacyFundReportingResource.kt:57-64 | openbank-pension-service/src/main/kotlin/com/openbank/pension/infrastructure/reporting/ParticipantReportingResource.kt:67-74 — before extracting anything, compare `openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/FundReportingResource.kt` and `openbank-pension-fund-service/src/main/kotlin/com/openbank/pensionfund/infrastructure/rest/LegacyFundReportingResource.kt` as WHOLE FILES: 88% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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) REDACTED:82 — REDACTED:82-89 | REDACTED:168-175 | REDACTED:212-219 — 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 `REDACTED:82` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) .github/scripts/check-alert-metric-emitted.py:169 — .github/scripts/check-alert-metric-emitted.py:169-176 | .github/scripts/check-dashboard-metric-emitted.py:143-150 | .github/scripts/check-oidc-client-secret-wiring.py:146-153 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, 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 (8 lines × 3) .github/scripts/check-jaxrs-path-prefix-leading-slash.py:137 — .github/scripts/check-jaxrs-path-prefix-leading-slash.py:137-144 | .github/scripts/check-raw-http-client.py:60-67 | .github/scripts/check-resilience-profile.py:162-169 — before extracting anything, compare `.github/scripts/check-jaxrs-path-prefix-leading-slash.py` and `.github/scripts/check-raw-http-client.py` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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.
PF3 · Async & latency hygiene · Sync-over-async blocking · ×6
  • Sync-over-async blocking REDACTED:86 — `fs.readFileSync` in `junitEvidence` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking REDACTED:168 — `fs.readFileSync` in `simulationScenarioEvidence` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking REDACTED:514 — `fs.readFileSync` in `mutations` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking REDACTED:1304 — `fs.writeFileSync` in `main` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking REDACTED:31 — `readFileSync` in `loginToken` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking openbank-admin-ui/src/lib/docs/bpmn/load.ts:76 — `readFileSync` in `callback to map` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
AC3 · Page structure · Page without a main landmark · ×5
  • Page without a main landmark openbank-admin-ui/src/app/global-error.tsx:24 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark openbank-infra/web/landing/classic.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark openbank-infra/web/landing/pay/v1.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark openbank-infra/web/landing/pay/v1/9998.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark openbank-infra/web/landing/pay/v1/9999.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
D29 · Static Analysis (SAST) · REDACTED · ×5
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×5
  • Duplicated block (20 lines × 2) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/shadow/ProductShadowWiring.kt:85 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/shadow/ProductShadowWiring.kt:85-104 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/shadow/ProductShadowWiring.kt:87-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.
  • Duplicated block (20 lines × 2) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt:104 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt:104-123 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentRailProjectionConsumer.kt:105-124 — before extracting anything, compare `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt` and `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentRailProjectionConsumer.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt:104` 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 (20 lines × 2) openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:171 — openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:171-190 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt:173-192 — before extracting anything, compare `openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt` and `openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:171` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/approval/PostgresApprovalStore.kt:195` calls `toInstant` and `openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/approval/PostgresApprovalStore.kt:193` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (20 lines × 2) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/application/workflow/DomesticPaymentActivitiesImpl.kt:253 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/application/workflow/DomesticPaymentActivitiesImpl.kt:253-274 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/application/workflow/SepaPaymentActivitiesImpl.kt:191-210 — 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 `openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/application/workflow/DomesticPaymentActivitiesImpl.kt:253` 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 (20 lines × 2) .github/scripts/check-outbox-claim-sql.py:62 — .github/scripts/check-outbox-claim-sql.py:62-81 | .github/scripts/check-outbox-conformance-it.py:57-76 — before extracting anything, compare `.github/scripts/check-outbox-claim-sql.py` and `.github/scripts/check-outbox-conformance-it.py` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (6 lines × 3) · ×5
  • Duplicated block (6 lines × 3) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/LedgerOutboxEventPublisher.kt:160 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/LedgerOutboxEventPublisher.kt:160-165 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/kafka/KafkaCardOutboxEventPublisher.kt:37-42 | openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/kafka/KafkaCardProcessingOutboxEventPublisher.kt:33-38 — 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 `openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/LedgerOutboxEventPublisher.kt:160` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/C7200Mapper.kt:100 — openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/C7200Mapper.kt:100-105 | openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/C7300Mapper.kt:123-129 | openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/C7400Mapper.kt:133-139 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-finrep-service/src/main/kotlin/com/openbank/finrep/domain/mapper/C7200Mapper.kt:100` 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 × 3) openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DomesticClearingScenario.kt:205 — openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DomesticClearingScenario.kt:205-210 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SctInstSettlementScenario.kt:227-232 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SepaSettlementScenario.kt:197-202 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DomesticClearingScenario.kt:212` calls `storePayment` and `openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SepaSettlementScenario.kt:203` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (6 lines × 3) .github/scripts/check-product-ir-version-lifecycle.py:210 — .github/scripts/check-product-ir-version-lifecycle.py:210-215 | .github/scripts/check-product-ir-version-lifecycle.py:216-221 | .github/scripts/check-product-ir-version-lifecycle.py:233-238 — 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.
  • Duplicated block (6 lines × 3) .github/scripts/rewrite-reconcile-image-pins.py:17 — .github/scripts/rewrite-reconcile-image-pins.py:17-22 | .github/scripts/verify-reconcile-image-map.py:18-23 | perf/scripts/verify-payment-ledger.py:38-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. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
D4 · Code Duplication · Duplicated block (12 lines × 3) · ×5
  • Duplicated block (12 lines × 3) openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceMovementPortImpl.kt:140 — openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceMovementPortImpl.kt:140-151 | openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceRepositoryImpl.kt:161-172 | openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/LedgerProjectionPortImpl.kt:162-173 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
  • Duplicated block (12 lines × 3) openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/persistence/FraudOutboxRepositoryImpl.kt:87 — openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/persistence/FraudOutboxRepositoryImpl.kt:87-98 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/InterestOutboxRepositoryImpl.kt:90-101 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/LedgerOutboxRepositoryImpl.kt:113-124 — before extracting anything, compare `openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/persistence/FraudOutboxRepositoryImpl.kt` and `openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/InterestOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 3) .github/scripts/check-alert-metric-emitted.py:142 — .github/scripts/check-alert-metric-emitted.py:142-153 | .github/scripts/check-alert-metric-emitted.py:169-180 | .github/scripts/check-dashboard-metric-emitted.py:143-154 — 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. 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 × 3) .github/scripts/check-jaxrs-path-prefix-leading-slash.py:275 — .github/scripts/check-jaxrs-path-prefix-leading-slash.py:275-286 | .github/scripts/check-raw-http-client.py:141-152 | .github/scripts/check-resilience-profile.py:336-347 — before extracting anything, compare `.github/scripts/check-jaxrs-path-prefix-leading-slash.py` and `.github/scripts/check-raw-http-client.py` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 × 3) .github/scripts/run-gates.py:1321 — .github/scripts/run-gates.py:1321-1332 | .github/scripts/run-gates.py:1360-1371 | .github/scripts/run-gates.py:1385-1396 — 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 `.github/scripts/run-gates.py:1321` 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.
AC6 · Visual & motion safety · Focus outline removed in CSS without a · ×4
  • Focus outline removed in CSS without a :focus replacement openbank-admin-ui/src/components/party/CustomerContextGraph.module.css:238 — `.node:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement openbank-admin-ui/src/app/privacy/privacy.module.css:9 — `.hero:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement openbank-admin-ui/src/app/dashboard/Dashboard.module.css:349 — `.quickLink:focus-visible` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement openbank-admin-ui/src/app/auth/login/login.module.css:50 — `.panel:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
D3 · God Classes · MethodTooLong · ×4
  • MethodTooLong: BusinessSigningService.event openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/BusinessSigningService.kt:672 — MethodTooLong — event runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: AgentChatService.chatLoop openbank-agent-service/src/main/kotlin/com/openbank/agent/application/AgentChatService.kt:199 — MethodTooLong — chatLoop runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SecurityScannerService.scanService openbank-security-scanner/src/main/kotlin/com/openbank/securityscanner/application/SecurityScannerService.kt:57 — MethodTooLong — scanService runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: PartyService.createParty openbank-pid-service/src/main/kotlin/com/openbank/pid/application/usecase/PartyService.kt:44 — MethodTooLong — createParty runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×4
  • Duplicated block (21 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:92 — openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:92-112 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt:106-126 — before extracting anything, compare `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt` and `openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt: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 (21 lines × 2) openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:301 — openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:301-321 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/PaymentScenario.kt:117-137 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:301` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (21 lines × 2) .github/scripts/check-accounting-clock.py:128 — .github/scripts/check-accounting-clock.py:128-148 | .github/scripts/check-ai-act-high-risk-inventory.py:100-120 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (21 lines × 2) .github/scripts/gen-agents-opa-data.py:133 — .github/scripts/gen-agents-opa-data.py:133-153 | .github/scripts/gen-rules-opa-data.py:95-115 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `.github/scripts/gen-agents-opa-data.py:133` 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 (6–7 lines × 2) · ×4
  • Duplicated block (6–7 lines × 2) openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/crypto/OpenBaoTransitDekUnwrapper.kt:112 — openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/crypto/OpenBaoTransitDekUnwrapper.kt:112-118 | openbank-document-service/src/main/kotlin/com/openbank/document/infrastructure/render/OpenBaoClientSignatureAdapter.kt:213-218 — 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 `openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/crypto/OpenBaoTransitDekUnwrapper.kt:112` 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–7 lines × 2) .github/scripts/check-raw-http-client.py:99 — .github/scripts/check-raw-http-client.py:99-104 | .github/scripts/check-realm-devci-artifact-parity.py:252-258 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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–7 lines × 2) .github/scripts/deploy-window.py:503 — .github/scripts/deploy-window.py:503-508 | .github/scripts/deploy-window.py:510-516 — 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 `.github/scripts/deploy-window.py:503` 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–7 lines × 2) .github/scripts/detect-auto-deploy-stuck.py:320 — .github/scripts/detect-auto-deploy-stuck.py:320-325 | .github/scripts/detect-auto-deploy-stuck.py:327-333 — 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 `.github/scripts/detect-auto-deploy-stuck.py: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.
DM10 · One transaction, one aggregate · One operation mutates 2 aggregates · ×4
  • One operation mutates 2 aggregates: DeathClaimService.notify openbank-pension-service/src/main/kotlin/com/openbank/pension/application/exit/DeathClaimService.kt:44 — `DeathClaimService.notify` saves `DeathClaim`, `TerminationNotice` in a single operation. Each is its own consistency boundary, so committing them together makes the second's invariants depend on the first's transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated — into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event.
  • One operation mutates 2 aggregates: OnboardingService.submitAssessment openbank-pension-service/src/main/kotlin/com/openbank/pension/application/onboarding/OnboardingService.kt:219 — `OnboardingService.submitAssessment` saves `SuitabilityAssessment`, `OnboardingApplication` in a single operation. Each is its own consistency boundary, so committing them together makes the second's invariants depend on the first's transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated — into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event.
  • One operation mutates 2 aggregates: OnboardingService.reassess openbank-pension-service/src/main/kotlin/com/openbank/pension/application/onboarding/OnboardingService.kt:279 — `OnboardingService.reassess` saves `SuitabilityAssessment`, `OnboardingApplication` in a single operation. Each is its own consistency boundary, so committing them together makes the second's invariants depend on the first's transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated — into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event.
  • One operation mutates 2 aggregates: OnboardingService.sign openbank-pension-service/src/main/kotlin/com/openbank/pension/application/onboarding/OnboardingService.kt:509 — `OnboardingService.sign` saves `TransferRequest`, `OnboardingApplication` in a single operation. Each is its own consistency boundary, so committing them together makes the second's invariants depend on the first's transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated — into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event.
AC3 · Page structure · Heading level jumps from h1 to h3 · ×3
  • Heading level jumps from h1 to h3 openbank-infra/web/landing/ai-as-code.html:79 — Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one.
  • Heading level jumps from h1 to h3 openbank-infra/web/landing/controls-as-code.html:90 — Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one.
  • Heading level jumps from h1 to h3 openbank-infra/web/landing/product-as-code.html:89 — Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (4.0 · ×3
  • Low contrast colour pair in CSS (4.0:1) openbank-infra/web/landing/bank-as-code.css:65 — `.bac nav button[aria-current=page]` sets color: #1f6feb on background-color: #e5eeff — 4.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (4.0:1) openbank-admin-ui/src/app/globals.css:709 — `.campaign-surface-map-icon` sets color: #635bff on background-color: #eeecff — 4.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (4.0:1) openbank-admin-ui/src/app/globals.css:750 — `.campaign-recipe-icon` sets color: #635bff on background-color: #eeecff — 4.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
D29 · Static Analysis (SAST) · REDACTED · ×3
  • REDACTED
  • REDACTED
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (13–15 lines × 2) · ×3
  • Duplicated block (13–15 lines × 2) openbank-statement-service/src/main/kotlin/com/openbank/statement/infrastructure/persistence/repository/StatementPeriodRepositoryImpl.kt:51 — openbank-statement-service/src/main/kotlin/com/openbank/statement/infrastructure/persistence/repository/StatementPeriodRepositoryImpl.kt:51-65 | openbank-statement-service/src/main/kotlin/com/openbank/statement/infrastructure/persistence/repository/StatementPeriodRepositoryImpl.kt:77-89 — 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 `openbank-statement-service/src/main/kotlin/com/openbank/statement/infrastructure/persistence/repository/StatementPeriodRepositoryImpl.kt:51` 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–15 lines × 2) .github/scripts/check-journey-catalog.py:672 — .github/scripts/check-journey-catalog.py:672-686 | .github/scripts/check-journey-coverage.py:250-262 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (13–15 lines × 2) .github/scripts/check-outbox-conformance-it.py:125 — .github/scripts/check-outbox-conformance-it.py:125-137 | .github/scripts/check-outbox-sent-retention.py:180-194 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×3
  • Duplicated block (14 lines × 3) openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:299 — openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:299-312 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/PaymentScenario.kt:115-128 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SwiftScenario.kt:253-266 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:299` 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 × 3) .github/scripts/check-gate-lifecycle-metadata.py:325 — .github/scripts/check-gate-lifecycle-metadata.py:325-338 | .github/scripts/check-gate-selftest-declaration.py:325-338 | .github/scripts/check-gate-subject-floor.py:314-327 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, 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 (14 lines × 3) .github/scripts/check-gate-script-registration.py:111 — .github/scripts/check-gate-script-registration.py:111-124 | .github/scripts/check-git-fixture-hermetic.py:69-82 | .github/scripts/check-test-script-reachability.py:73-86 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, 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.
D4 · Code Duplication · Duplicated block (11–13 lines × 2) · ×3
  • Duplicated block (11–13 lines × 2) openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/CustomerIntakeResource.kt:138 — openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/CustomerIntakeResource.kt:138-150 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/CustomerQuoteResource.kt:132-142 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/CustomerIntakeResource.kt: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. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/CustomerIntakeResource.kt:134` calls `fromString`, `getOrNull`, `error` and `openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/CustomerQuoteResource.kt:131` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11–13 lines × 2) .github/scripts/check-clickhouse-migration-configmap-sync.py:288 — .github/scripts/check-clickhouse-migration-configmap-sync.py:288-298 | .github/scripts/check-incoming-dlq-wiring.py:412-424 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (11–13 lines × 2) .github/scripts/check-idempotency-contract-parity.py:498 — .github/scripts/check-idempotency-contract-parity.py:498-508 | .github/scripts/check-openapi-route-conformance.py:445-457 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `.github/scripts/check-openapi-route-conformance.py:445` 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 (11–12 lines × 2) · ×3
  • Duplicated block (11–12 lines × 2) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextPersistence.kt:607 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextPersistence.kt:607-618 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextPersistence.kt:636-646 — 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 `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ContextPersistence.kt:607` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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–12 lines × 2) openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/FxConversionScenario.kt:136 — openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/FxConversionScenario.kt:136-147 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/FxConversionScenario.kt:154-164 — 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 `openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/FxConversionScenario.kt:136` 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–12 lines × 2) .github/scripts/merge-train.py:4878 — .github/scripts/merge-train.py:4878-4888 | .github/scripts/merge-train.py:4929-4940 — 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 `.github/scripts/merge-train.py:4878` 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 (10 lines × 4) · ×3
  • Duplicated block (10 lines × 4) openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt:32 — openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt:32-41 | openbank-docs-truth-agent/src/main/kotlin/com/openbank/docstruth/application/workflow/DiagnoseAndProposeActivityImpl.kt:37-46 | openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/application/workflow/DiagnoseAndProposeActivityImpl.kt:56-65 | openbank-release-steward/src/main/kotlin/com/openbank/releasesteward/application/workflow/DiagnoseAndProposeActivityImpl.kt:32-41 — before extracting anything, compare `openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt` and `openbank-docs-truth-agent/src/main/kotlin/com/openbank/docstruth/application/workflow/DiagnoseAndProposeActivityImpl.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: `FindingStatus` names `com.openbank.authzaudit.domain.model.FindingStatus` in one and `com.openbank.docstruth.domain.model.FindingStatus` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (10 lines × 4) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/client/LedgerCloseParticipationClient.kt:61 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/client/LedgerCloseParticipationClient.kt:61-70 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/client/LedgerCloseParticipationClient.kt:57-66 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/client/LedgerCloseParticipationClient.kt:57-66 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/LedgerCloseParticipationClient.kt:58-67 — before extracting anything, compare `openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/client/LedgerCloseParticipationClient.kt` and `openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/client/LedgerCloseParticipationClient.kt` as WHOLE FILES: 89% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 4) .github/scripts/check-libs-annotations-implemented.py:346 — .github/scripts/check-libs-annotations-implemented.py:346-355 | .github/scripts/check-test-intelligence-ecosystem.py:1150-1160 | .github/scripts/check-test-intelligence-ecosystem.py:1175-1190 | .github/scripts/check-test-intelligence-ecosystem.py:1197-1213 — there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `.github/scripts/check-libs-annotations-implemented.py:346` 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 (10 lines × 3) · ×3
  • Duplicated block (10 lines × 3) openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/PaymentScenario.kt:114 — openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/PaymentScenario.kt:114-123 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SddCollectionScenario.kt:221-230 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/StandingOrderScenario.kt:211-220 — before extracting anything, compare `openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/PaymentScenario.kt` and `openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/StandingOrderScenario.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/PaymentScenario.kt: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.
  • Duplicated block (10 lines × 3) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/SchemeGatewayAdapter.kt:151 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/SchemeGatewayAdapter.kt:151-160 | openbank-sepa-instant/src/main/kotlin/com/openbank/sepainstant/infrastructure/client/SchemeGatewayAdapter.kt:75-84 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/client/SchemeGatewayAdapter.kt:110-120 — 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 `openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/SchemeGatewayAdapter.kt:151` 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 (10 lines × 3) .github/scripts/check-entity-column-names.py:167 — .github/scripts/check-entity-column-names.py:167-176 | .github/scripts/check-jaxrs-path-hijack.py:145-154 | .github/scripts/check-provider-type-classpath.py:175-184 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, 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.
D4 · Code Duplication · Duplicated block (6 lines × 4) · ×3
  • Duplicated block (6 lines × 4) openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:54 — openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:54-59 | openbank-incentive-service/src/main/kotlin/com/openbank/incentive/infrastructure/persistence/IncentivePersistence.kt:165-170 | openbank-security-scanner/src/main/kotlin/com/openbank/security/infrastructure/persistence/repository/IctIncidentOutboxRepositoryImpl.kt:75-80 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/repository/TreasuryOutboxRepositoryImpl.kt:53-58 — before extracting anything, compare `openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt` and `openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/repository/TreasuryOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:54` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openbank-incentive-service/src/main/kotlin/com/openbank/incentive/infrastructure/persistence/IncentivePersistence.kt:171` calls `setParameter` and `openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:60` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (6 lines × 4) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt:53 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt:53-58 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/CloseJobRunRepository.kt:32-37 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/CloseJobRunRepository.kt:58-63 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseEvidenceRepository.kt:49-54 — before extracting anything, compare `openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt` and `openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/CloseJobRunRepository.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 4) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/observability/FraudScoringMetrics.kt:92 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/observability/FraudScoringMetrics.kt:92-97 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/observability/FraudScoringMetrics.kt:92-97 | openbank-sepa-instant/src/main/kotlin/com/openbank/sepainstant/infrastructure/observability/FraudScoringMetrics.kt:92-97 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/observability/FraudScoringMetrics.kt:92-97 — before extracting anything, compare `openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/observability/FraudScoringMetrics.kt` and `openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/observability/FraudScoringMetrics.kt` as WHOLE FILES: 93% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 5) · ×3
  • Duplicated block (5 lines × 5) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/LedgerOutboxEventPublisher.kt:159 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/LedgerOutboxEventPublisher.kt:159-163 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/kafka/KafkaCardOutboxEventPublisher.kt:36-40 | openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/kafka/KafkaCardProcessingOutboxEventPublisher.kt:32-36 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/kafka/KafkaInterestOutboxEventPublisher.kt:49-53 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/messaging/KafkaLedgerOutboxEventPublisher.kt:43-47 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times.
  • Duplicated block (5 lines × 5) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt:83 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt:83-87 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/CloseJobRunRepository.kt:50-54 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/CloseJobRunRepository.kt:95-99 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseEvidenceRepository.kt:112-116 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/intent/PostingIntentRepository.kt:256-260 — before extracting anything, compare `openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt` and `openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/CloseJobRunRepository.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 5) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ComplaintProjectionConsumer.kt:184 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ComplaintProjectionConsumer.kt:184-188 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/DomesticPaymentProjectionConsumer.kt:153-157 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/IncidentProjectionConsumer.kt:194-198 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt:186-190 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentRailProjectionConsumer.kt:175-179 — before extracting anything, compare `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentBookingProjectionConsumer.kt` and `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/PaymentRailProjectionConsumer.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/ComplaintProjectionConsumer.kt:191` calls `require` and `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/DomesticPaymentProjectionConsumer.kt:160` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (5 lines × 3) · ×3
  • Duplicated block (5 lines × 3) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:906 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:906-910 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1148-1152 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1389-1393 — 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 `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:906` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (5 lines × 3) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/observability/DomesticBookingAgeGauge.kt:64 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/observability/DomesticBookingAgeGauge.kt:64-68 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/observability/SepaBookingAgeGauge.kt:64-68 | openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/observability/SwiftBookingAgeGauge.kt:64-68 — 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. 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 × 3) .github/scripts/check-agent-case-schema.py:208 — .github/scripts/check-agent-case-schema.py:208-212 | .github/scripts/check-agent-virtual-keys.py:112-116 | .github/scripts/check-litellm-model-costs.py:108-112 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
D4 · Code Duplication · Duplicated block (8–9 lines × 2) · ×3
  • Duplicated block (8–9 lines × 2) .github/scripts/check-cnpg-scrape-coverage.py:793 — .github/scripts/check-cnpg-scrape-coverage.py:793-800 | .github/scripts/check-cnpg-scrape-coverage.py:841-849 — 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 `.github/scripts/check-cnpg-scrape-coverage.py:793` 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–9 lines × 2) .github/scripts/check-idempotency-contract-parity.py:215 — .github/scripts/check-idempotency-contract-parity.py:215-223 | .github/scripts/check-openapi-route-conformance.py:237-244 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (8–9 lines × 2) openbank-infra/scripts/check-finops-tiers.py:58 — openbank-infra/scripts/check-finops-tiers.py:58-66 | openbank-infra/scripts/finops-tier-classifier.py:71-78 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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.
R10 · Code Duplication · Duplicated block (25 lines × 2 locations) · ×3
  • Duplicated block (25 lines × 2 locations) openbank-admin-ui/src/app/api/context/complaints/[reference]/route.ts:9 — openbank-admin-ui/src/app/api/context/complaints/[reference]/route.ts:9 · openbank-admin-ui/src/app/api/context/incidents/[reference]/impact/route.ts:9 — 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.
  • Duplicated block (25 lines × 2 locations) openbank-admin-ui/src/app/balance-sheet/ledger-backfill/page.tsx:126 — openbank-admin-ui/src/app/balance-sheet/ledger-backfill/page.tsx:126 · openbank-admin-ui/src/app/balance-sheet/ledger-backfill/voids/page.tsx:140 — 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.
  • Duplicated block (25 lines × 2 locations) openbank-admin-ui/src/app/business-onboarding/page.tsx:455 — openbank-admin-ui/src/app/business-onboarding/page.tsx:455 · openbank-admin-ui/src/app/identity-cases/page.tsx:343 — 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.
AC2 · Forms & labels · <fieldset> without a <legend> · ×2
  • <fieldset> without a <legend> openbank-admin-ui/src/app/document-templates/page.tsx:673 — A fieldset groups related controls but has no <legend> to name the group. Add a <legend> as its first child — or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption's id instead, which names the group without rendering a second one.
  • <fieldset> without a <legend> openbank-admin-ui/src/app/pid/page.tsx:338 — A fieldset groups related controls but has no <legend> to name the group. Add a <legend> as its first child — or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption's id instead, which names the group without rendering a second one.
AC4 · Keyboard semantics · Modal dialog does not manage focus · ×2
  • Modal dialog does not manage focus openbank-admin-ui/src/components/cards/IssueCardDialog.tsx:322 — This <div role="dialog"> is a modal dialog, but focus is moved into it, but nothing keeps it there: Tab walks out to the page behind, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native <dialog> opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close.
  • Modal dialog does not manage focus openbank-admin-ui/src/components/notifications/NotificationsPage.tsx:451 — This <div role="alertdialog"> is a modal dialog, but focus is moved into it, but nothing keeps it there: Tab walks out to the page behind, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native <dialog> opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close.
AC6 · Visual & motion safety · Low contrast Tailwind colour pair (3.8 · ×2
  • Low contrast Tailwind colour pair (3.8:1) openbank-admin-ui/src/app/segments/page.tsx:279 — This element's Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade.
  • Low contrast Tailwind colour pair (3.8:1) openbank-admin-ui/src/app/segments/page.tsx:363 — This element's Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (4.4 · ×2
  • Low contrast colour pair in CSS (4.4:1) openbank-infra/web/status/styles.css:5 — `.service-icon` sets color: #1468ef on background-color: #e8f2ff — 4.4:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet — editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from).
  • Low contrast colour pair in CSS (4.4:1) openbank-admin-ui/src/components/agent/AgentIdentity.module.css:111 — `.chest` sets color: white on background-color: #6366f1 — 4.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (2.0 · ×2
  • Low contrast colour pair in CSS (2.0:1) openbank-admin-ui/src/app/globals.css:299 — `.ob-skip-link` sets color: #fff on background-color: #a5b4fc — 2.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
  • Low contrast colour pair in CSS (2.0:1) openbank-admin-ui/src/app/globals.css:911 — `.campaign-desk-heading > span` sets color: #fff on background-color: #a5b4fc — 2.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
D1 · Cyclomatic Complexity · route.GET (cyclomatic 22) · ×2
  • route.GET (cyclomatic 22) openbank-admin-ui/src/app/api/context/aml-cases/[id]/route.ts:10 — route.GET has cyclomatic complexity 22 (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.
  • route.GET (cyclomatic 22) REDACTED:31 — route.GET has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 10 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 98, 48). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · route.GET (cyclomatic 17) · ×2
  • route.GET (cyclomatic 17) openbank-admin-ui/src/app/api/devops/dora/route.ts:57 — route.GET 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.
  • route.GET (cyclomatic 17) openbank-admin-ui/src/app/api/fx/rates/route.ts:141 — route.GET 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 · route.GET (cyclomatic 16) · ×2
  • route.GET (cyclomatic 16) openbank-admin-ui/src/app/api/context/authorizations/[id]/route.ts:9 — route.GET 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.
  • route.GET (cyclomatic 16) REDACTED:137 — route.GET 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 · route.GET (cognitive 18) · ×2
  • route.GET (cognitive 18) openbank-admin-ui/src/app/api/context/authorizations/[id]/route.ts:9 — route.GET has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 3, boolean chains 2, loops 2, ternaries 1 (2 pts) (nesting depth added 3). 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.
  • route.GET (cognitive 18) openbank-admin-ui/src/app/api/disputes/route.ts:20 — route.GET has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 2, error handling 2 (nesting depth added 5). Of this number, 15 points are the body's own statements and 3 belong to one function literal inside it that branches. 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 · route.GET (cognitive 17) · ×2
  • route.GET (cognitive 17) openbank-admin-ui/src/app/api/finops/right-sizing/route.ts:93 — route.GET has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 12, boolean chains 3, if/else 2. Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 188, 162, 221). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
  • route.GET (cognitive 17) openbank-admin-ui/src/app/api/fx/rates/route.ts:141 — route.GET has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 13 (14 pts), boolean chains 3 (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 · route.GET (cognitive 16) · ×2
  • route.GET (cognitive 16) openbank-admin-ui/src/app/api/campaigns/[id]/sends/route.ts:17 — route.GET has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 3 (4 pts), boolean chains 1, error handling 1, loops 1 (nesting depth added 7). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • route.GET (cognitive 16) openbank-admin-ui/src/app/api/finops/resources/route.ts:49 — route.GET has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 11 (14 pts), boolean chains 1, if/else 1 (nesting depth added 3). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 93, 79). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D35 · Change Coupling · Change coupling · ×2
  • Change coupling: PartyPort.kt ↔ PartyRepositoryImpl.kt openbank-party-service/src/main/kotlin/com/openbank/party/application/port/in/PartyPort.kt:1 — `openbank-party-service/src/main/kotlin/com/openbank/party/application/port/in/PartyPort.kt` and `openbank-party-service/src/main/kotlin/com/openbank/party/infrastructure/persistence/repository/PartyRepositoryImpl.kt` change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) 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. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `84d9bfac` feat(party): store the customer's personal AML profile (#10202); `f478d04f` feat(party): classify synthetic canary parties (#6730); `9c936211` feat(payees): server-synced saved payees (TOP-10 #5) (#5154) — run `git show` on any of them.
  • Change coupling: StepEditor.tsx ↔ Campaign.kt openbank-admin-ui/src/components/campaigns/StepEditor.tsx:1 — `openbank-admin-ui/src/components/campaigns/StepEditor.tsx` and `openbank-campaign-service/src/main/kotlin/com/openbank/campaign/domain/model/Campaign.kt` change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) 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. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `2f9aa3e6` feat(campaign): add app story campaign surface (#4771); `3296001b` feat(campaign): add explicit decision sources (#4690); `60b86bb4` feat(campaign): let makers revise drafts (#4667) — run `git show` on any of them.
D4 · Code Duplication · Members sharing a duplicated core (7 members, 50+ identical tokens) · ×2
  • Members sharing a duplicated core (7 members, 50+ identical tokens) openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt:31 — openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt:31-40 | openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/persistence/PostgresFindingRepository.kt:31-40 | openbank-devops-agent/src/main/kotlin/com/openbank/devops/infrastructure/persistence/PostgresFindingRepository.kt:61-70 | openbank-docs-truth-agent/src/main/kotlin/com/openbank/docstruth/infrastructure/persistence/PostgresFindingRepository.kt:31-40 | openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/infrastructure/persistence/PostgresFindingRepository.kt:31-40 | openbank-governance-auditor/src/main/kotlin/com/openbank/govaudit/infrastructure/persistence/PostgresFindingRepository.kt:31-40 | openbank-release-steward/src/main/kotlin/com/openbank/releasesteward/infrastructure/persistence/PostgresFindingRepository.kt:31-40 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt:42 — openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt:42-47 | openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/persistence/PostgresFindingRepository.kt:42-47 | openbank-devops-agent/src/main/kotlin/com/openbank/devops/infrastructure/persistence/PostgresFindingRepository.kt:72-77 | openbank-docs-truth-agent/src/main/kotlin/com/openbank/docstruth/infrastructure/persistence/PostgresFindingRepository.kt:42-47 | openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/infrastructure/persistence/PostgresFindingRepository.kt:42-47 | openbank-governance-auditor/src/main/kotlin/com/openbank/govaudit/infrastructure/persistence/PostgresFindingRepository.kt:42-47 | openbank-release-steward/src/main/kotlin/com/openbank/releasesteward/infrastructure/persistence/PostgresFindingRepository.kt:42-47 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
D4 · Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) · ×2
  • Members sharing a duplicated core (6 members, 50+ identical tokens) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:33 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:33-39 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt:34-40 | openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:35-41 | openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/persistence/FraudOutboxRepositoryImpl.kt:39-45 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/persistence/repository/FxOutboxRepositoryImpl.kt:33-39 | openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/persistence/repository/SanctionsOutboxRepositoryImpl.kt:33-39 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:370 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:370-385 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:409-423 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:426-441 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:444-459 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:489-503 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:523-538 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×2
  • Duplicated block (22 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:115 — openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:115-136 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt:129-150 — before extracting anything, compare `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt` and `openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:115` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (22 lines × 2) openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:201 — openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:201-222 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt:354-375 — before extracting anything, compare `openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt` and `openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: `ToolInvocation` names `com.openbank.agent.domain.model.ToolInvocation` in one and `com.openbank.copilot.domain.model.ToolInvocation` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×2
  • Duplicated block (19 lines × 2) openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/rest/AmlCaseResource.kt:90 — openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/rest/AmlCaseResource.kt:90-108 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/rest/SepaPaymentResource.kt:96-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 `openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/rest/AmlCaseResource.kt:90` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/rest/SepaPaymentResource.kt:95` calls `toCommand` and `openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/rest/AmlCaseResource.kt:89` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (19 lines × 2) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/AmlCaseAdapter.kt:56 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/AmlCaseAdapter.kt:56-74 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/client/AmlCaseAdapter.kt:58-76 — 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 `openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/AmlCaseAdapter.kt:56` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 first that the copies are not typed on the same thing: `OpenAmlCaseCommand` names `com.openbank.domestic.application.port.out.OpenAmlCaseCommand` in one and `com.openbank.sepa.application.port.out.OpenAmlCaseCommand` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (15 lines × 3) · ×2
  • Duplicated block (15 lines × 3) openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:309 — openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:309-323 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/PaymentScenario.kt:125-139 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/StandingOrderScenario.kt:222-236 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:309` 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 (15 lines × 3) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/FraudScoringAdapter.kt:45 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/FraudScoringAdapter.kt:45-59 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/client/FraudScoringAdapter.kt:45-59 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/client/FraudScoringAdapter.kt:52-66 — before extracting anything, compare `openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/FraudScoringAdapter.kt` and `openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/client/FraudScoringAdapter.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: `FraudScoreCommand` names `com.openbank.domestic.application.port.out.FraudScoreCommand` in one and `com.openbank.fx.application.port.out.FraudScoreCommand` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (13 lines × 3) · ×2
  • Duplicated block (13 lines × 3) openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/PrometheusQueryAdapter.kt:101 — openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/PrometheusQueryAdapter.kt:101-113 | openbank-devops-agent/src/main/kotlin/com/openbank/devops/infrastructure/adapter/PrometheusQueryAdapter.kt:63-75 | openbank-finops-agent/src/main/kotlin/com/openbank/finops/infrastructure/adapter/PrometheusQueryAdapter.kt:83-95 — before extracting anything, compare `openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/PrometheusQueryAdapter.kt` and `openbank-devops-agent/src/main/kotlin/com/openbank/devops/infrastructure/adapter/PrometheusQueryAdapter.kt` as WHOLE FILES: 88% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/PrometheusQueryAdapter.kt:101` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (13 lines × 3) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt:84 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt:84-96 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/persistence/repository/SepaPaymentOutboxRepositoryImpl.kt:84-96 | openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/persistence/repository/TransactionOutboxRepositoryImpl.kt:87-99 — before extracting anything, compare `openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt` and `openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/persistence/repository/SepaPaymentOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt:84` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (12–13 lines × 2) · ×2
  • Duplicated block (12–13 lines × 2) openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/PanacheClosedPeriodRepository.kt:77 — openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/PanacheClosedPeriodRepository.kt:77-89 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/PanacheYearCloseRepository.kt:41-52 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/PanacheClosedPeriodRepository.kt:77` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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–13 lines × 2) .github/scripts/check-gate-observability-declarations.py:206 — .github/scripts/check-gate-observability-declarations.py:206-218 | .github/scripts/check-gate-observability-declarations.py:228-239 — 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 `.github/scripts/check-gate-observability-declarations.py:206` 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 (11 lines × 5) · ×2
  • Duplicated block (11 lines × 5) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:82 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:82-92 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt:116-126 | openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:75-85 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/persistence/repository/FxOutboxRepositoryImpl.kt:82-92 | openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/persistence/repository/SanctionsOutboxRepositoryImpl.kt:82-92 — before extracting anything, compare `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt` and `openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:82` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 5) .github/scripts/check-accounting-clock.py:250 — .github/scripts/check-accounting-clock.py:250-260 | .github/scripts/check-evals-registry.py:224-234 | .github/scripts/check-event-contract-coverage.py:153-163 | .github/scripts/check-prompt-registry.py:210-220 | openbank-infra/scripts/check-threat-models.py:245-255 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 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 (10–11 lines × 2) · ×2
  • Duplicated block (10–11 lines × 2) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseEvidenceResource.kt:134 — openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseEvidenceResource.kt:134-144 | openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AuthorityHistoryResource.kt:58-67 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseEvidenceResource.kt:134` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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–11 lines × 2) openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GovernanceReadAdapter.kt:72 — openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GovernanceReadAdapter.kt:72-82 | openbank-governance-auditor/src/main/kotlin/com/openbank/govaudit/infrastructure/adapter/GovernanceRulesReadAdapter.kt:112-121 — 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 `openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/adapter/GovernanceReadAdapter.kt:72` 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 (8 lines × 4) · ×2
  • Duplicated block (8 lines × 4) openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:547 — openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:547-554 | openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:578-586 | openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:679-687 | openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:714-722 — 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 `openbank-lending-service/src/main/kotlin/com/openbank/lending/application/usecase/LendingService.kt:547` 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 × 4) .github/scripts/check-audit-money-path-subscription.py:139 — .github/scripts/check-audit-money-path-subscription.py:139-146 | .github/scripts/check-kafka-acl-coverage.py:85-92 | .github/scripts/check-kafka-deployment-wiring.py:60-67 | .github/scripts/check-source-service-presence.py:153-160 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (7 lines × 13) · ×2
  • Duplicated block (7 lines × 13) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:95 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:95-101 | openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt:95-101 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt:129-135 | openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:88-94 | openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/persistence/repository/ConsentOutboxRepositoryImpl.kt:95-101 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/persistence/repository/DelegationOutboxRepositoryImpl.kt:87-93 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/persistence/repository/FxOutboxRepositoryImpl.kt:95-101 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LendingOutboxRepositoryImpl.kt:98-104 | openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/persistence/repository/SanctionsOutboxRepositoryImpl.kt:95-101 | openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/persistence/repository/ScaOutboxRepositoryImpl.kt:93-99 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/persistence/SettlementOutboxRepositoryImpl.kt:83-89 | openbank-standing-order-service/src/main/kotlin/com/openbank/standingorder/infrastructure/persistence/repository/StandingOrderOutboxRepositoryImpl.kt:95-101 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/repository/TreasuryOutboxRepositoryImpl.kt:80-86 — before extracting anything, compare `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt` and `openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:95` 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 × 13) openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt:33 — openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt:33-39 | openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/BillingOutboxRepositoryImpl.kt:50-56 | openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/persistence/repository/ConsentOutboxRepositoryImpl.kt:33-39 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/persistence/repository/DelegationOutboxRepositoryImpl.kt:34-40 | openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt:35-41 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/InterestOutboxRepositoryImpl.kt:34-40 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LendingOutboxRepositoryImpl.kt:36-42 | openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/persistence/repository/ScaOutboxRepositoryImpl.kt:31-37 | openbank-security-scanner/src/main/kotlin/com/openbank/security/infrastructure/persistence/repository/IctIncidentOutboxRepositoryImpl.kt:29-35 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/persistence/repository/SepaPaymentOutboxRepositoryImpl.kt:66-72 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/persistence/SettlementOutboxRepositoryImpl.kt:35-41 | openbank-standing-order-service/src/main/kotlin/com/openbank/standingorder/infrastructure/persistence/repository/StandingOrderOutboxRepositoryImpl.kt:33-39 | openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/persistence/repository/TransactionOutboxRepositoryImpl.kt:38-44 — before extracting anything, compare `openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt` and `openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/BillingOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt:31` calls `persistInTransaction`, `persist`, `toEntity` and `openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/persistence/repository/ScaOutboxRepositoryImpl.kt:29` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (11 lines × 3) · ×2
  • Duplicated block (11 lines × 3) openbank-dispute-service/src/main/kotlin/com/openbank/dispute/infrastructure/persistence/repository/ComplaintRepositoryImpl.kt:84 — openbank-dispute-service/src/main/kotlin/com/openbank/dispute/infrastructure/persistence/repository/ComplaintRepositoryImpl.kt:84-94 | openbank-dispute-service/src/main/kotlin/com/openbank/dispute/infrastructure/persistence/repository/DisputeOutboxRepositoryImpl.kt:35-45 | openbank-dispute-service/src/main/kotlin/com/openbank/dispute/infrastructure/persistence/repository/DisputeRepositories.kt:96-106 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
  • Duplicated block (11 lines × 3) .github/scripts/check-jaxrs-path-prefix-leading-slash.py:163 — .github/scripts/check-jaxrs-path-prefix-leading-slash.py:163-173 | .github/scripts/check-raw-http-client.py:83-93 | .github/scripts/check-resilience-profile.py:188-198 — before extracting anything, compare `.github/scripts/check-jaxrs-path-prefix-leading-slash.py` and `.github/scripts/check-raw-http-client.py` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (14 lines × 4) · ×2
  • Duplicated block (14 lines × 4) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/scheduler/BillingCloseParticipationScheduler.kt:81 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/scheduler/BillingCloseParticipationScheduler.kt:81-94 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/scheduler/InterestCloseParticipationScheduler.kt:72-88 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/servicing/LendingCloseParticipationScheduler.kt:96-109 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseParticipationScheduler.kt:90-103 — before extracting anything, compare `openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/servicing/LendingCloseParticipationScheduler.kt` and `openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseParticipationScheduler.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (14 lines × 4) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/BillingOutboxRepositoryImpl.kt:194 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/BillingOutboxRepositoryImpl.kt:194-207 | openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/persistence/FraudOutboxRepositoryImpl.kt:104-117 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/InterestOutboxRepositoryImpl.kt:138-151 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/LedgerOutboxRepositoryImpl.kt:136-149 — before extracting anything, compare `openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/BillingOutboxRepositoryImpl.kt` and `openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/persistence/FraudOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/BillingOutboxRepositoryImpl.kt:194` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
D4 · Code Duplication · Duplicated block (18–20 lines × 2) · ×2
  • Duplicated block (18–20 lines × 2) .github/scripts/check-agent-pr-guard.py:743 — .github/scripts/check-agent-pr-guard.py:743-760 | .github/scripts/check-pr-file-overlap.py:323-342 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (18–20 lines × 2) .github/scripts/check-no-allow-all-pdp-in-main.py:112 — .github/scripts/check-no-allow-all-pdp-in-main.py:112-131 | .github/scripts/check-no-allow-all-pdp-in-main.py:334-351 — 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.
D4 · Code Duplication · Duplicated block (16–17 lines × 2) · ×2
  • Duplicated block (16–17 lines × 2) .github/scripts/check-authz-pdp-parity.py:133 — .github/scripts/check-authz-pdp-parity.py:133-149 | .github/scripts/check-nonnull-jaxrs-params.py:105-120 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (16–17 lines × 2) openbank-infra/scripts/settlement-real-services-e2e.py:786 — openbank-infra/scripts/settlement-real-services-e2e.py:786-801 | openbank-infra/scripts/settlement-real-services-e2e.py:1014-1030 — 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 `openbank-infra/scripts/settlement-real-services-e2e.py:786` 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 (12–14 lines × 2) · ×2
  • Duplicated block (12–14 lines × 2) .github/scripts/check-gate-selftest-declaration.py:342 — .github/scripts/check-gate-selftest-declaration.py:342-355 | .github/scripts/check-gate-subject-floor.py:331-342 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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 (12–14 lines × 2) .github/scripts/merge-train.py:7040 — .github/scripts/merge-train.py:7040-7053 | .github/scripts/merge-train.py:7064-7075 — 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.
D4 · Code Duplication · Duplicated block (9–10 lines × 2) · ×2
  • Duplicated block (9–10 lines × 2) .github/scripts/verify-successful-service-ci.py:829 — .github/scripts/verify-successful-service-ci.py:829-838 | .github/scripts/verify-successful-service-ci.py:854-862 — 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 `.github/scripts/verify-successful-service-ci.py:829` 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 (9–10 lines × 2) openbank-infra/scripts/settlement-real-services-e2e.py:976 — openbank-infra/scripts/settlement-real-services-e2e.py:976-985 | openbank-infra/scripts/settlement-real-services-e2e.py:993-1001 — 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.
D4 · Code Duplication · Duplicated block (4–7 lines × 3) · ×2
  • Duplicated block (4–7 lines × 3) .github/scripts/check-evals-registry.py:164 — .github/scripts/check-evals-registry.py:164-170 | .github/scripts/check-prompt-registry.py:162-168 | .github/scripts/validate-flags.py:201-204 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
  • Duplicated block (4–7 lines × 3) .github/scripts/merge-train.py:5691 — .github/scripts/merge-train.py:5691-5700 | .github/scripts/merge-train.py:5723-5729 | .github/scripts/merge-train.py:5940-5943 — 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.
R10 · Code Duplication · Duplicated block (26 lines × 2 locations) · ×2
  • Duplicated block (26 lines × 2 locations) openbank-admin-ui/scripts/generate-infra-lifecycle.mjs:22 — openbank-admin-ui/scripts/generate-infra-lifecycle.mjs:22 · REDACTED:21 — 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.
  • Duplicated block (26 lines × 2 locations) REDACTED:14 — REDACTED:14 · REDACTED:23 — 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.
R10 · Code Duplication · Duplicated block (23 lines × 2 locations) · ×2
  • Duplicated block (23 lines × 2 locations) openbank-admin-ui/src/app/api/campaigns/[id]/journey/route.ts:23 — openbank-admin-ui/src/app/api/campaigns/[id]/journey/route.ts:23 · openbank-admin-ui/src/app/api/segments/route.ts:22 — 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.
  • Duplicated block (23 lines × 2 locations) openbank-admin-ui/src/app/payments/page.tsx:504 — openbank-admin-ui/src/app/payments/page.tsx:504 · openbank-admin-ui/src/app/payments/page.tsx:568 — 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.
R10 · Code Duplication · Duplicated block (20 lines × 2 locations) · ×2
  • Duplicated block (20 lines × 2 locations) openbank-admin-ui/src/app/communication/[personaId]/page.tsx:87 — openbank-admin-ui/src/app/communication/[personaId]/page.tsx:87 · openbank-admin-ui/src/app/communication/page.tsx:97 — 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.
  • Duplicated block (20 lines × 2 locations) openbank-admin-ui/src/components/balance-sheet/api.ts:40 — openbank-admin-ui/src/components/balance-sheet/api.ts:40 · openbank-admin-ui/src/components/pension/api.ts:44 — 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.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (2.7 · ×1
  • Low contrast colour pair in CSS (2.7:1) openbank-infra/web/status/styles.css:4 — `.overall-banner.is-operational .overall-icon` sets color: #fff on background-color: #1ab286 — 2.7:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet — editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from).
AC6 · Visual & motion safety · Low contrast colour pair in CSS (2.8 · ×1
  • Low contrast colour pair in CSS (2.8:1) openbank-admin-ui/src/app/globals.css:469 — `.btn-danger` sets color: #fff on background-color: #f87171 — 2.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (1.4 · ×1
  • Low contrast colour pair in CSS (1.4:1) openbank-admin-ui/src/app/globals.css:730 — `.campaign-contact-rules` sets color: #cbd5e1 on background-color: #f8fafc — 1.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (1.3 · ×1
  • Low contrast colour pair in CSS (1.3:1) openbank-admin-ui/src/app/globals.css:810 — `.campaign-readiness-list [data-state='attention'] > span` sets color: #fcd34d on background-color: #fef3c7 — 1.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (1.0 · ×1
  • Low contrast colour pair in CSS (1.0:1) openbank-admin-ui/src/app/globals.css:1085 — `[data-tooltip]::after` sets color: #fff on background-color: #f8fafc — 1.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
D1 · Cyclomatic Complexity · merge-train.self_test (cyclomatic 410) · ×1
  • merge-train.self_test (cyclomatic 410) .github/scripts/merge-train.py:4809 — merge-train.self_test has cyclomatic complexity 410 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.ProductStudioPage (cyclomatic 209) · ×1
  • page.ProductStudioPage (cyclomatic 209) openbank-admin-ui/src/app/product-studio/page.tsx:95 — page.ProductStudioPage has cyclomatic complexity 209 (threshold 15). Of this number, 88 points are the body's own statements and 121 belong to 48 function items inside it that branch. 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 · page.PaymentsContent (cyclomatic 205) · ×1
  • page.PaymentsContent (cyclomatic 205) openbank-admin-ui/src/app/payments/page.tsx:295 — page.PaymentsContent has cyclomatic complexity 205 (threshold 15). Of this number, 83 points are the body's own statements and 122 belong to 34 function items inside it that branch. 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 · page.ServiceMapPage (cyclomatic 185) · ×1
  • page.ServiceMapPage (cyclomatic 185) openbank-admin-ui/src/app/docs/service-map/page.tsx:329 — page.ServiceMapPage has cyclomatic complexity 185 (threshold 15). Of this number, 41 points are the body's own statements and 144 belong to 36 function items inside it that branch. 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 · page.NewCampaignPage (cyclomatic 183) · ×1
  • page.NewCampaignPage (cyclomatic 183) openbank-admin-ui/src/app/campaigns/new/page.tsx:148 — page.NewCampaignPage has cyclomatic complexity 183 (threshold 15). Of this number, 61 points are the body's own statements and 122 belong to 37 function items inside it that branch. 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 · page.CampaignDetailPage (cyclomatic 171) · ×1
  • page.CampaignDetailPage (cyclomatic 171) openbank-admin-ui/src/app/campaigns/[id]/page.tsx:174 — page.CampaignDetailPage has cyclomatic complexity 171 (threshold 15). Of this number, 88 points are the body's own statements and 83 belong to 28 function items inside it that branch. 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 · page.SanctionsPage (cyclomatic 163) · ×1
  • page.SanctionsPage (cyclomatic 163) openbank-admin-ui/src/app/sanctions/page.tsx:207 — page.SanctionsPage has cyclomatic complexity 163 (threshold 15). Of this number, 68 points are the body's own statements and 95 belong to 31 function items inside it that branch. 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 · run-gates.self_test (cyclomatic 152) · ×1
  • run-gates.self_test (cyclomatic 152) .github/scripts/run-gates.py:1159 — run-gates.self_test has cyclomatic complexity 152 (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 · page.GameCatalogPage (cyclomatic 151) · ×1
  • page.GameCatalogPage (cyclomatic 151) openbank-admin-ui/src/app/loyalty/game/page.tsx:35 — page.GameCatalogPage has cyclomatic complexity 151 (threshold 15). Of this number, 51 points are the body's own statements and 100 belong to 45 function items inside it that branch. 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 · gen-network-policies.main (cyclomatic 140) · ×1
  • gen-network-policies.main (cyclomatic 140) openbank-infra/scripts/gen-network-policies.py:520 — gen-network-policies.main has cyclomatic complexity 140 (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 · page.FinOpsContent (cyclomatic 130) · ×1
  • page.FinOpsContent (cyclomatic 130) openbank-admin-ui/src/app/finops/page.tsx:228 — page.FinOpsContent has cyclomatic complexity 130 (threshold 15). Of this number, 63 points are the body's own statements and 67 belong to 13 function literals inside it that branch. 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 · check-security-checklist.self_test (cyclomatic 119) · ×1
  • check-security-checklist.self_test (cyclomatic 119) .github/scripts/check-security-checklist.py:902 — check-security-checklist.self_test has cyclomatic complexity 119 (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 · page.FxPage (cyclomatic 114) · ×1
  • page.FxPage (cyclomatic 114) openbank-admin-ui/src/app/fx/page.tsx:142 — page.FxPage has cyclomatic complexity 114 (threshold 15). Of this number, 42 points are the body's own statements and 72 belong to 19 function items inside it that branch. 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 · page.CreditRiskConsole (cyclomatic 108) · ×1
  • page.CreditRiskConsole (cyclomatic 108) openbank-admin-ui/src/app/lending/risk/page.tsx:110 — page.CreditRiskConsole has cyclomatic complexity 108 (threshold 15). Of this number, 75 points are the body's own statements and 33 belong to 13 function items inside it that branch. 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 · merge-train.mode_settle (cyclomatic 98) · ×1
  • merge-train.mode_settle (cyclomatic 98) .github/scripts/merge-train.py:2648 — merge-train.mode_settle has cyclomatic complexity 98 (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 · page.ApiCatalogPage (cyclomatic 96) · ×1
  • page.ApiCatalogPage (cyclomatic 96) openbank-admin-ui/src/app/docs/api/page.tsx:418 — page.ApiCatalogPage has cyclomatic complexity 96 (threshold 15). Of this number, 25 points are the body's own statements and 71 belong to 23 function items inside it that branch. 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 · page.LineageFlowPage (cyclomatic 92) · ×1
  • page.LineageFlowPage (cyclomatic 92) openbank-admin-ui/src/app/docs/lineage/page.tsx:60 — page.LineageFlowPage has cyclomatic complexity 92 (threshold 15). Of this number, 31 points are the body's own statements and 61 belong to 16 function items inside it that branch. 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 · page.ProductCatalogPage (cyclomatic 92) · ×1
  • page.ProductCatalogPage (cyclomatic 92) openbank-admin-ui/src/app/product-catalog/page.tsx:437 — page.ProductCatalogPage has cyclomatic complexity 92 (threshold 15). Of this number, 40 points are the body's own statements and 52 belong to 19 function items inside it that branch. 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 · IssueCardDialog.IssueCardDialog (cyclomatic 92) · ×1
  • IssueCardDialog.IssueCardDialog (cyclomatic 92) openbank-admin-ui/src/components/cards/IssueCardDialog.tsx:107 — IssueCardDialog.IssueCardDialog has cyclomatic complexity 92 (threshold 15). Of this number, 41 points are the body's own statements and 51 belong to 11 function items inside it that branch. 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 · page.ProductDetailPanel (cyclomatic 86) · ×1
  • page.ProductDetailPanel (cyclomatic 86) openbank-admin-ui/src/app/product-catalog/page.tsx:116 — page.ProductDetailPanel has cyclomatic complexity 86 (threshold 15). Of this number, 70 points are the body's own statements and 16 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.DocumentTemplatesPage (cyclomatic 85) · ×1
  • page.DocumentTemplatesPage (cyclomatic 85) openbank-admin-ui/src/app/document-templates/page.tsx:194 — page.DocumentTemplatesPage has cyclomatic complexity 85 (threshold 15). Of this number, 40 points are the body's own statements and 45 belong to 26 function items inside it that branch. 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 · contentSnapshot.validClusterTopology (cyclomatic 83) · ×1
  • contentSnapshot.validClusterTopology (cyclomatic 83) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:254 — contentSnapshot.validClusterTopology has cyclomatic complexity 83 (threshold 15). Of this number, 81 points are the body's own statements and 2 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.MerchantsPage (cyclomatic 82) · ×1
  • page.MerchantsPage (cyclomatic 82) openbank-admin-ui/src/app/merchants/page.tsx:77 — page.MerchantsPage has cyclomatic complexity 82 (threshold 15). Of this number, 31 points are the body's own statements and 51 belong to 14 function items inside it that branch. 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 · page.ServicesDocsOverviewPage (cyclomatic 82) · ×1
  • page.ServicesDocsOverviewPage (cyclomatic 82) openbank-admin-ui/src/app/services/page.tsx:90 — page.ServicesDocsOverviewPage has cyclomatic complexity 82 (threshold 15). Of this number, 30 points are the body's own statements and 52 belong to 9 function items inside it that branch. 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 · page.CampaignsPage (cyclomatic 80) · ×1
  • page.CampaignsPage (cyclomatic 80) openbank-admin-ui/src/app/campaigns/page.tsx:104 — page.CampaignsPage has cyclomatic complexity 80 (threshold 15). Of this number, 50 points are the body's own statements and 30 belong to 14 function items inside it that branch. 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 · page.SecurityPage (cyclomatic 80) · ×1
  • page.SecurityPage (cyclomatic 80) openbank-admin-ui/src/app/security/page.tsx:52 — page.SecurityPage has cyclomatic complexity 80 (threshold 15). Of this number, 33 points are the body's own statements and 47 belong to 19 function items inside it that branch. 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 · page.NewDeal (cyclomatic 80) · ×1
  • page.NewDeal (cyclomatic 80) openbank-admin-ui/src/app/treasury/deals/new/page.tsx:41 — page.NewDeal has cyclomatic complexity 80 (threshold 15). Of this number, 63 points are the body's own statements and 17 belong to 8 function items inside it that branch. 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 · page.CommunicationStyleEditorPage (cyclomatic 78) · ×1
  • page.CommunicationStyleEditorPage (cyclomatic 78) openbank-admin-ui/src/app/communication/edit/[personaKey]/page.tsx:56 — page.CommunicationStyleEditorPage has cyclomatic complexity 78 (threshold 15). Of this number, 39 points are the body's own statements and 39 belong to 10 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · CommandPalette.OpenCommandPalette (cyclomatic 78) · ×1
  • CommandPalette.OpenCommandPalette (cyclomatic 78) openbank-admin-ui/src/components/search/CommandPalette.tsx:65 — CommandPalette.OpenCommandPalette has cyclomatic complexity 78 (threshold 15). Of this number, 30 points are the body's own statements and 48 belong to 20 function items inside it that branch. 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 · page.ReportingPage (cyclomatic 77) · ×1
  • page.ReportingPage (cyclomatic 77) openbank-admin-ui/src/app/reporting/page.tsx:47 — page.ReportingPage has cyclomatic complexity 77 (threshold 15). Of this number, 39 points are the body's own statements and 38 belong to 8 function literals inside it that branch. 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 · contentSnapshot.validServiceGraph (cyclomatic 72) · ×1
  • contentSnapshot.validServiceGraph (cyclomatic 72) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:124 — contentSnapshot.validServiceGraph has cyclomatic complexity 72 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.IAOpsContent (cyclomatic 72) · ×1
  • page.IAOpsContent (cyclomatic 72) openbank-admin-ui/src/app/iaops/page.tsx:166 — page.IAOpsContent has cyclomatic complexity 72 (threshold 15). Of this number, 29 points are the body's own statements and 43 belong to 10 function items inside it that branch. 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 · page.DashboardPage (cyclomatic 71) · ×1
  • page.DashboardPage (cyclomatic 71) openbank-admin-ui/src/app/dashboard/page.tsx:62 — page.DashboardPage has cyclomatic complexity 71 (threshold 15). Of this number, 19 points are the body's own statements and 52 belong to 8 function literals inside it that branch. 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 · page.InfraTopologyPage (cyclomatic 71) · ×1
  • page.InfraTopologyPage (cyclomatic 71) openbank-admin-ui/src/app/infrastructure/topology/page.tsx:190 — page.InfraTopologyPage has cyclomatic complexity 71 (threshold 15). Of this number, 20 points are the body's own statements and 51 belong to 17 function items inside it that branch. 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 · check-capacity-profile.validate (cyclomatic 70) · ×1
  • check-capacity-profile.validate (cyclomatic 70) .github/scripts/check-capacity-profile.py:72 — check-capacity-profile.validate has cyclomatic complexity 70 (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 · page.ApprovalsPage (cyclomatic 70) · ×1
  • page.ApprovalsPage (cyclomatic 70) openbank-admin-ui/src/app/approvals/page.tsx:61 — page.ApprovalsPage has cyclomatic complexity 70 (threshold 15). Of this number, 30 points are the body's own statements and 40 belong to 13 function items inside it that branch. 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 · page.PartiesPage (cyclomatic 69) · ×1
  • page.PartiesPage (cyclomatic 69) openbank-admin-ui/src/app/parties/page.tsx:28 — page.PartiesPage has cyclomatic complexity 69 (threshold 15). Of this number, 39 points are the body's own statements and 30 belong to 7 function literals inside it that branch. 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 · check-asyncapi-doc-discriminator.streams_topics (cyclomatic 65) · ×1
  • check-asyncapi-doc-discriminator.streams_topics (cyclomatic 65) .github/scripts/check-asyncapi-doc-discriminator.py:104 — check-asyncapi-doc-discriminator.streams_topics has cyclomatic complexity 65 (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 · page.LoyaltyPage (cyclomatic 63) · ×1
  • page.LoyaltyPage (cyclomatic 63) openbank-admin-ui/src/app/loyalty/page.tsx:42 — page.LoyaltyPage has cyclomatic complexity 63 (threshold 15). Of this number, 50 points are the body's own statements and 13 belong to 8 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-cnpg-update-resilience.check (cyclomatic 62) · ×1
  • check-cnpg-update-resilience.check (cyclomatic 62) .github/scripts/check-cnpg-update-resilience.py:186 — check-cnpg-update-resilience.check has cyclomatic complexity 62 (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 · check-realm-template-importable.check_realm (cyclomatic 62) · ×1
  • check-realm-template-importable.check_realm (cyclomatic 62) .github/scripts/check-realm-template-importable.py:169 — check-realm-template-importable.check_realm has cyclomatic complexity 62 (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 · page.EomPanel (cyclomatic 62) · ×1
  • page.EomPanel (cyclomatic 62) openbank-admin-ui/src/app/day-end/page.tsx:404 — page.EomPanel has cyclomatic complexity 62 (threshold 15). Of this number, 22 points are the body's own statements and 40 belong to 14 function items inside it that branch. 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 · page.LendingPage (cyclomatic 62) · ×1
  • page.LendingPage (cyclomatic 62) openbank-admin-ui/src/app/lending/page.tsx:98 — page.LendingPage has cyclomatic complexity 62 (threshold 15). Of this number, 32 points are the body's own statements and 30 belong to 13 function items inside it that branch. 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 · page.RegulatoryPage (cyclomatic 62) · ×1
  • page.RegulatoryPage (cyclomatic 62) openbank-admin-ui/src/app/regulatory/page.tsx:415 — page.RegulatoryPage has cyclomatic complexity 62 (threshold 15). Of this number, 27 points are the body's own statements and 35 belong to 15 function items inside it that branch. 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 · page.ServiceConfigPage (cyclomatic 62) · ×1
  • page.ServiceConfigPage (cyclomatic 62) openbank-admin-ui/src/app/system/config/page.tsx:74 — page.ServiceConfigPage has cyclomatic complexity 62 (threshold 15). Most of this is not in the body itself: 14 of the 62 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 196, 84, 283, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · LifecycleStrip.LifecycleStrip (cyclomatic 62) · ×1
  • LifecycleStrip.LifecycleStrip (cyclomatic 62) openbank-admin-ui/src/components/infra/LifecycleStrip.tsx:67 — LifecycleStrip.LifecycleStrip has cyclomatic complexity 62 (threshold 15). Of this number, 49 points are the body's own statements and 13 belong to one function item inside it that branches. 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 · page.SnapshotIrrbb (cyclomatic 61) · ×1
  • page.SnapshotIrrbb (cyclomatic 61) openbank-admin-ui/src/app/balance-sheet/snapshots/[id]/irrbb/page.tsx:58 — page.SnapshotIrrbb has cyclomatic complexity 61 (threshold 15). Of this number, 44 points are the body's own statements and 17 belong to 5 function literals inside it that branch. 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 · check-event-contract-code-agreement.check_contract (cyclomatic 59) · ×1
  • check-event-contract-code-agreement.check_contract (cyclomatic 59) .github/scripts/check-event-contract-code-agreement.py:624 — check-event-contract-code-agreement.check_contract has cyclomatic complexity 59 (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 · CustomerContextGraph.CustomerContextGraph (cyclomatic 59) · ×1
  • CustomerContextGraph.CustomerContextGraph (cyclomatic 59) openbank-admin-ui/src/components/party/CustomerContextGraph.tsx:37 — CustomerContextGraph.CustomerContextGraph has cyclomatic complexity 59 (threshold 15). Of this number, 17 points are the body's own statements and 42 belong to 9 function literals inside it that branch. 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 · page.DevOpsContent (cyclomatic 57) · ×1
  • page.DevOpsContent (cyclomatic 57) openbank-admin-ui/src/app/devops/page.tsx:204 — page.DevOpsContent has cyclomatic complexity 57 (threshold 15). Of this number, 30 points are the body's own statements and 27 belong to 9 function literals inside it that branch. 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 · page.IaopsCaseThreadPage (cyclomatic 57) · ×1
  • page.IaopsCaseThreadPage (cyclomatic 57) openbank-admin-ui/src/app/iaops/cases/[caseId]/page.tsx:83 — page.IaopsCaseThreadPage has cyclomatic complexity 57 (threshold 15). Of this number, 25 points are the body's own statements and 32 belong to 5 function literals inside it that branch. 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 · page.TemporalPage (cyclomatic 57) · ×1
  • page.TemporalPage (cyclomatic 57) openbank-admin-ui/src/app/temporal/page.tsx:259 — page.TemporalPage has cyclomatic complexity 57 (threshold 15). Of this number, 48 points are the body's own statements and 9 belong to 4 function literals inside it that branch. 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 · gen-ai-governance-snapshot.validate_curated (cyclomatic 56) · ×1
  • gen-ai-governance-snapshot.validate_curated (cyclomatic 56) .github/scripts/gen-ai-governance-snapshot.py:80 — gen-ai-governance-snapshot.validate_curated has cyclomatic complexity 56 (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 · NotificationsPage.NotificationsContent (cyclomatic 56) · ×1
  • NotificationsPage.NotificationsContent (cyclomatic 56) openbank-admin-ui/src/components/notifications/NotificationsPage.tsx:80 — NotificationsPage.NotificationsContent has cyclomatic complexity 56 (threshold 15). Of this number, 25 points are the body's own statements and 31 belong to 6 function literals inside it that branch. 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 · contentSnapshot.validSecurityGraph (cyclomatic 55) · ×1
  • contentSnapshot.validSecurityGraph (cyclomatic 55) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:220 — contentSnapshot.validSecurityGraph has cyclomatic complexity 55 (threshold 15). Of this number, 54 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · credential-inventory.self_test (cyclomatic 54) · ×1
  • credential-inventory.self_test (cyclomatic 54) .github/scripts/credential-inventory.py:449 — credential-inventory.self_test has cyclomatic complexity 54 (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 · page.AuditPage (cyclomatic 54) · ×1
  • page.AuditPage (cyclomatic 54) openbank-admin-ui/src/app/audit/page.tsx:28 — page.AuditPage has cyclomatic complexity 54 (threshold 15). Of this number, 28 points are the body's own statements and 26 belong to 7 function items inside it that branch. 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 · page.KycPage (cyclomatic 54) · ×1
  • page.KycPage (cyclomatic 54) openbank-admin-ui/src/app/kyc/page.tsx:22 — page.KycPage has cyclomatic complexity 54 (threshold 15). Of this number, 30 points are the body's own statements and 24 belong to 3 function literals inside it that branch. 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 · OperatorApprovalWorkbench.OperatorApprovalWorkbench (cyclomatic 53) · ×1
  • OperatorApprovalWorkbench.OperatorApprovalWorkbench (cyclomatic 53) openbank-admin-ui/src/components/approvals/OperatorApprovalWorkbench.tsx:44 — OperatorApprovalWorkbench.OperatorApprovalWorkbench has cyclomatic complexity 53 (threshold 15). Of this number, 29 points are the body's own statements and 24 belong to 5 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-journey-catalog.check (cyclomatic 52) · ×1
  • check-journey-catalog.check (cyclomatic 52) .github/scripts/check-journey-catalog.py:256 — check-journey-catalog.check has cyclomatic complexity 52 (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 · page.LedgerPage (cyclomatic 52) · ×1
  • page.LedgerPage (cyclomatic 52) openbank-admin-ui/src/app/ledger/page.tsx:35 — page.LedgerPage has cyclomatic complexity 52 (threshold 15). Of this number, 28 points are the body's own statements and 24 belong to 7 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · QualityGateHealthPanel.QualityGateHealthPanel (cyclomatic 52) · ×1
  • QualityGateHealthPanel.QualityGateHealthPanel (cyclomatic 52) openbank-admin-ui/src/components/devops/QualityGateHealthPanel.tsx:105 — QualityGateHealthPanel.QualityGateHealthPanel has cyclomatic complexity 52 (threshold 15). Of this number, 18 points are the body's own statements and 34 belong to 4 function items inside it that branch. 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 · page.CardDetailPage (cyclomatic 51) · ×1
  • page.CardDetailPage (cyclomatic 51) openbank-admin-ui/src/app/cards/[id]/page.tsx:76 — page.CardDetailPage has cyclomatic complexity 51 (threshold 15). Of this number, 36 points are the body's own statements and 15 belong to 10 function items inside it that branch. 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 · record-agent-merge.execute (cyclomatic 50) · ×1
  • record-agent-merge.execute (cyclomatic 50) .github/scripts/record-agent-merge.py:331 — record-agent-merge.execute has cyclomatic complexity 50 (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 · page.InfrastructurePage (cyclomatic 50) · ×1
  • page.InfrastructurePage (cyclomatic 50) openbank-admin-ui/src/app/infrastructure/page.tsx:79 — page.InfrastructurePage has cyclomatic complexity 50 (threshold 15). Of this number, 27 points are the body's own statements and 23 belong to 9 function literals inside it that branch. 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 · InstrumentsPanel.InstrumentsPanel (cyclomatic 50) · ×1
  • InstrumentsPanel.InstrumentsPanel (cyclomatic 50) openbank-admin-ui/src/components/balance-sheet/InstrumentsPanel.tsx:36 — InstrumentsPanel.InstrumentsPanel has cyclomatic complexity 50 (threshold 15). Most of this is not in the body itself: 13 of the 50 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 134, a function literal at line 68, a function literal at line 206, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · StepEditor.StepEditor (cyclomatic 50) · ×1
  • StepEditor.StepEditor (cyclomatic 50) openbank-admin-ui/src/components/campaigns/StepEditor.tsx:22 — StepEditor.StepEditor has cyclomatic complexity 50 (threshold 15). Of this number, 20 points are the body's own statements and 30 belong to 11 function items inside it that branch. 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 · Header.Header (cyclomatic 50) · ×1
  • Header.Header (cyclomatic 50) openbank-admin-ui/src/components/layout/Header.tsx:25 — Header.Header has cyclomatic complexity 50 (threshold 15). Of this number, 24 points are the body's own statements and 26 belong to 16 function items inside it that branch. 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 · customerGraph.buildCustomerGraph (cyclomatic 50) · ×1
  • customerGraph.buildCustomerGraph (cyclomatic 50) openbank-admin-ui/src/lib/context/customerGraph.ts:330 — customerGraph.buildCustomerGraph has cyclomatic complexity 50 (threshold 15). Of this number, 48 points are the body's own statements and 2 belong to 2 function items inside it that branch. 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 · check-readiness-attestations.check (cyclomatic 49) · ×1
  • check-readiness-attestations.check (cyclomatic 49) .github/scripts/check-readiness-attestations.py:296 — check-readiness-attestations.check 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 · pact-reconcile-verifications.self_test (cyclomatic 49) · ×1
  • pact-reconcile-verifications.self_test (cyclomatic 49) .github/scripts/pact-reconcile-verifications.py:648 — pact-reconcile-verifications.self_test 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 · route.GET (cyclomatic 49) · ×1
  • route.GET (cyclomatic 49) REDACTED:153 — route.GET has cyclomatic complexity 49 (threshold 15). Most of this is not in the body itself: 3 of the 49 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 165, 170). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · page.BcpPage (cyclomatic 49) · ×1
  • page.BcpPage (cyclomatic 49) openbank-admin-ui/src/app/docs/bcp/page.tsx:74 — page.BcpPage 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. This shape REPEATS in the file: one other method here (page.BcpPage::fetchHealth) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · page.SegmentsPage (cyclomatic 49) · ×1
  • page.SegmentsPage (cyclomatic 49) openbank-admin-ui/src/app/segments/page.tsx:31 — page.SegmentsPage has cyclomatic complexity 49 (threshold 15). Of this number, 17 points are the body's own statements and 32 belong to 13 function items inside it that branch. 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 · merge-train.judge_strict_carriers (cyclomatic 48) · ×1
  • merge-train.judge_strict_carriers (cyclomatic 48) .github/scripts/merge-train.py:3685 — merge-train.judge_strict_carriers has cyclomatic complexity 48 (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 · merge_authorization_proof.app_authorization (cyclomatic 48) · ×1
  • merge_authorization_proof.app_authorization (cyclomatic 48) .github/scripts/merge_authorization_proof.py:116 — merge_authorization_proof.app_authorization has cyclomatic complexity 48 (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 · page.AccountDetailPage (cyclomatic 48) · ×1
  • page.AccountDetailPage (cyclomatic 48) openbank-admin-ui/src/app/accounts/[id]/page.tsx:29 — page.AccountDetailPage has cyclomatic complexity 48 (threshold 15). Of this number, 19 points are the body's own statements and 29 belong to 4 function items inside it that branch. 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 · page.LedgerBackfill (cyclomatic 48) · ×1
  • page.LedgerBackfill (cyclomatic 48) openbank-admin-ui/src/app/balance-sheet/ledger-backfill/page.tsx:50 — page.LedgerBackfill has cyclomatic complexity 48 (threshold 15). Of this number, 18 points are the body's own statements and 30 belong to 9 function items inside it that branch. 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 · page.LedgerBackfillVoid (cyclomatic 48) · ×1
  • page.LedgerBackfillVoid (cyclomatic 48) openbank-admin-ui/src/app/balance-sheet/ledger-backfill/voids/page.tsx:56 — page.LedgerBackfillVoid has cyclomatic complexity 48 (threshold 15). Of this number, 17 points are the body's own statements and 31 belong to 10 function items inside it that branch. 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 · page.DealDetail (cyclomatic 48) · ×1
  • page.DealDetail (cyclomatic 48) openbank-admin-ui/src/app/treasury/deals/[id]/page.tsx:57 — page.DealDetail has cyclomatic complexity 48 (threshold 15). Of this number, 28 points are the body's own statements and 20 belong to 9 function items inside it that branch. 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 · page.CompliancePacksPage (cyclomatic 47) · ×1
  • page.CompliancePacksPage (cyclomatic 47) openbank-admin-ui/src/app/lending/compliance-packs/page.tsx:59 — page.CompliancePacksPage has cyclomatic complexity 47 (threshold 15). Of this number, 28 points are the body's own statements and 19 belong to 10 function items inside it that branch. 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 · DelegationAuditTimeline.DelegationAuditTimeline (cyclomatic 47) · ×1
  • DelegationAuditTimeline.DelegationAuditTimeline (cyclomatic 47) openbank-admin-ui/src/components/delegations/DelegationAuditTimeline.tsx:183 — DelegationAuditTimeline.DelegationAuditTimeline has cyclomatic complexity 47 (threshold 15). Of this number, 29 points are the body's own statements and 18 belong to 3 function literals inside it that branch. 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 · types.appEvidence (cyclomatic 47) · ×1
  • types.appEvidence (cyclomatic 47) openbank-admin-ui/src/lib/agent-merge-records/types.ts:80 — types.appEvidence has cyclomatic complexity 47 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-security-checklist.decide (cyclomatic 46) · ×1
  • check-security-checklist.decide (cyclomatic 46) .github/scripts/check-security-checklist.py:323 — check-security-checklist.decide has cyclomatic complexity 46 (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 · check-stateful-not-on-spot.check (cyclomatic 46) · ×1
  • check-stateful-not-on-spot.check (cyclomatic 46) .github/scripts/check-stateful-not-on-spot.py:269 — check-stateful-not-on-spot.check has cyclomatic complexity 46 (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 · page.CardsPage (cyclomatic 46) · ×1
  • page.CardsPage (cyclomatic 46) openbank-admin-ui/src/app/cards/page.tsx:40 — page.CardsPage has cyclomatic complexity 46 (threshold 15). Of this number, 17 points are the body's own statements and 29 belong to 11 function items inside it that branch. 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 · page.ConsentsPage (cyclomatic 46) · ×1
  • page.ConsentsPage (cyclomatic 46) openbank-admin-ui/src/app/consents/page.tsx:29 — page.ConsentsPage has cyclomatic complexity 46 (threshold 15). Of this number, 29 points are the body's own statements and 17 belong to 5 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.DelegationsPage (cyclomatic 46) · ×1
  • page.DelegationsPage (cyclomatic 46) openbank-admin-ui/src/app/delegations/page.tsx:51 — page.DelegationsPage has cyclomatic complexity 46 (threshold 15). Of this number, 23 points are the body's own statements and 23 belong to 8 function literals inside it that branch. 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 · page.TransactionsPage (cyclomatic 46) · ×1
  • page.TransactionsPage (cyclomatic 46) openbank-admin-ui/src/app/transactions/page.tsx:57 — page.TransactionsPage has cyclomatic complexity 46 (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. This shape REPEATS in the file: one other method here (page.TransactionsPage::search) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · RegulatoryPeriodPanel.RegulatoryPeriodPanel (cyclomatic 46) · ×1
  • RegulatoryPeriodPanel.RegulatoryPeriodPanel (cyclomatic 46) openbank-admin-ui/src/components/closings/RegulatoryPeriodPanel.tsx:51 — RegulatoryPeriodPanel.RegulatoryPeriodPanel has cyclomatic complexity 46 (threshold 15). Of this number, 33 points are the body's own statements and 13 belong to 3 function literals inside it that branch. 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 · check-ruleset-context-parity.self_test (cyclomatic 45) · ×1
  • check-ruleset-context-parity.self_test (cyclomatic 45) .github/scripts/check-ruleset-context-parity.py:387 — check-ruleset-context-parity.self_test has cyclomatic complexity 45 (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 · page.TemporalFlowPage (cyclomatic 45) · ×1
  • page.TemporalFlowPage (cyclomatic 45) openbank-admin-ui/src/app/temporal/flow/page.tsx:39 — page.TemporalFlowPage has cyclomatic complexity 45 (threshold 15). Of this number, 24 points are the body's own statements and 21 belong to 6 function items inside it that branch. 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 · AgentDock.AgentDock (cyclomatic 45) · ×1
  • AgentDock.AgentDock (cyclomatic 45) openbank-admin-ui/src/components/agent/AgentDock.tsx:44 — AgentDock.AgentDock has cyclomatic complexity 45 (threshold 15). Of this number, 17 points are the body's own statements and 28 belong to 9 function items inside it that branch. 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 · auto-update-armed-prs.read_reservation (cyclomatic 44) · ×1
  • auto-update-armed-prs.read_reservation (cyclomatic 44) .github/scripts/auto-update-armed-prs.py:651 — auto-update-armed-prs.read_reservation has cyclomatic complexity 44 (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 · merge-train.strict_lane (cyclomatic 44) · ×1
  • merge-train.strict_lane (cyclomatic 44) .github/scripts/merge-train.py:3387 — merge-train.strict_lane has cyclomatic complexity 44 (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 · m2m-shared-client-denylist.main (cyclomatic 44) · ×1
  • m2m-shared-client-denylist.main (cyclomatic 44) openbank-infra/scripts/m2m-shared-client-denylist.py:386 — m2m-shared-client-denylist.main has cyclomatic complexity 44 (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 · page.ClusterDossierPage (cyclomatic 44) · ×1
  • page.ClusterDossierPage (cyclomatic 44) openbank-admin-ui/src/app/docs/cluster/page.tsx:162 — page.ClusterDossierPage has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 8 of the 44 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 173, 290, 328, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · CurveUploadForm.CurveUploadForm (cyclomatic 44) · ×1
  • CurveUploadForm.CurveUploadForm (cyclomatic 44) openbank-admin-ui/src/components/balance-sheet/CurveUploadForm.tsx:29 — CurveUploadForm.CurveUploadForm has cyclomatic complexity 44 (threshold 15). Of this number, 25 points are the body's own statements and 19 belong to 10 function items inside it that branch. 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 · contentSnapshot.validCatalog (cyclomatic 43) · ×1
  • contentSnapshot.validCatalog (cyclomatic 43) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:90 — contentSnapshot.validCatalog has cyclomatic complexity 43 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · generate-app-status.deriveCapabilityStatus (cyclomatic 43) · ×1
  • generate-app-status.deriveCapabilityStatus (cyclomatic 43) openbank-admin-ui/scripts/generate-app-status.mjs:161 — generate-app-status.deriveCapabilityStatus has cyclomatic complexity 43 (threshold 15). Of this number, 42 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.Customer360Page (cyclomatic 43) · ×1
  • page.Customer360Page (cyclomatic 43) openbank-admin-ui/src/app/customer-360/page.tsx:37 — page.Customer360Page has cyclomatic complexity 43 (threshold 15). Of this number, 29 points are the body's own statements and 14 belong to 3 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.BcpPage · ×1
  • page.BcpPage::fetchHealth (cyclomatic 43) openbank-admin-ui/src/app/docs/bcp/page.tsx:96 — page.BcpPage::fetchHealth 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. This shape REPEATS in the file: one other method here (page.BcpPage) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · page.OnboardingPage (cyclomatic 43) · ×1
  • page.OnboardingPage (cyclomatic 43) openbank-admin-ui/src/app/onboarding/page.tsx:63 — page.OnboardingPage has cyclomatic complexity 43 (threshold 15). Of this number, 18 points are the body's own statements and 25 belong to 8 function literals inside it that branch. 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 · page.Strategies (cyclomatic 43) · ×1
  • page.Strategies (cyclomatic 43) openbank-admin-ui/src/app/pension/strategies/page.tsx:47 — page.Strategies has cyclomatic complexity 43 (threshold 15). Of this number, 17 points are the body's own statements and 26 belong to 10 function items inside it that branch. 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 · page.SecurityExcellencePage (cyclomatic 43) · ×1
  • page.SecurityExcellencePage (cyclomatic 43) openbank-admin-ui/src/app/security/excellence/page.tsx:426 — page.SecurityExcellencePage has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 12 of the 43 points are its own statements and the rest belongs to 11 function items inside it that branch (reasonLabel, a function literal at line 608, a function literal at line 437, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · run-gates.load (cyclomatic 42) · ×1
  • run-gates.load (cyclomatic 42) .github/scripts/run-gates.py:177 — run-gates.load has cyclomatic complexity 42 (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 · readinessSnapshot.isReadinessSnapshot (cyclomatic 42) · ×1
  • readinessSnapshot.isReadinessSnapshot (cyclomatic 42) openbank-admin-ui/src/lib/evidence/readinessSnapshot.ts:70 — readinessSnapshot.isReadinessSnapshot has cyclomatic complexity 42 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.ServiceCard (cyclomatic 42) · ×1
  • page.ServiceCard (cyclomatic 42) openbank-admin-ui/src/app/system/health/page.tsx:197 — page.ServiceCard has cyclomatic complexity 42 (threshold 15). Of this number, 41 points are the body's own statements and 1 belongs to one function literal inside it that branches. 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 · Sidebar.Sidebar (cyclomatic 42) · ×1
  • Sidebar.Sidebar (cyclomatic 42) openbank-admin-ui/src/components/layout/Sidebar.tsx:20 — Sidebar.Sidebar has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 11 of the 42 points are its own statements and the rest belongs to 15 function literals inside it that branch (lines 135, 130, 101, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · gateHealthSnapshot.validateGateHealthSnapshotData (cyclomatic 42) · ×1
  • gateHealthSnapshot.validateGateHealthSnapshotData (cyclomatic 42) openbank-admin-ui/src/lib/evidence/gateHealthSnapshot.ts:62 — gateHealthSnapshot.validateGateHealthSnapshotData has cyclomatic complexity 42 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · service-map-evidence.parseServiceMapGraph (cyclomatic 42) · ×1
  • service-map-evidence.parseServiceMapGraph (cyclomatic 42) openbank-admin-ui/src/lib/governance/service-map-evidence.ts:69 — service-map-evidence.parseServiceMapGraph has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 12 of the 42 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 76, 72, 81, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · check-product-ir-run-limits.check_document (cyclomatic 41) · ×1
  • check-product-ir-run-limits.check_document (cyclomatic 41) .github/scripts/check-product-ir-run-limits.py:80 — check-product-ir-run-limits.check_document has cyclomatic complexity 41 (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 · check-service-build-results.verify (cyclomatic 41) · ×1
  • check-service-build-results.verify (cyclomatic 41) .github/scripts/check-service-build-results.py:43 — check-service-build-results.verify has cyclomatic complexity 41 (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 · check-workflow-supply-chain.findings (cyclomatic 41) · ×1
  • check-workflow-supply-chain.findings (cyclomatic 41) .github/scripts/check-workflow-supply-chain.py:64 — check-workflow-supply-chain.findings has cyclomatic complexity 41 (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 · contentSnapshot.validComplianceYaml (cyclomatic 41) · ×1
  • contentSnapshot.validComplianceYaml (cyclomatic 41) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:312 — contentSnapshot.validComplianceYaml has cyclomatic complexity 41 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.IncidentsPage (cyclomatic 41) · ×1
  • page.IncidentsPage (cyclomatic 41) openbank-admin-ui/src/app/security/incidents/page.tsx:29 — page.IncidentsPage has cyclomatic complexity 41 (threshold 15). Of this number, 23 points are the body's own statements and 18 belong to 4 function literals inside it that branch. 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 · check-incluster-hostnames.gitops_facts (cyclomatic 40) · ×1
  • check-incluster-hostnames.gitops_facts (cyclomatic 40) .github/scripts/check-incluster-hostnames.py:288 — check-incluster-hostnames.gitops_facts 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 · fuzz_response_isolation.before_load_schema (cyclomatic 40) · ×1
  • fuzz_response_isolation.before_load_schema (cyclomatic 40) .github/scripts/fuzz_response_isolation.py:10 — fuzz_response_isolation.before_load_schema 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 · page.MessagesTab (cyclomatic 40) · ×1
  • page.MessagesTab (cyclomatic 40) openbank-admin-ui/src/app/parties/[id]/page.tsx:339 — page.MessagesTab has cyclomatic complexity 40 (threshold 15). Of this number, 20 points are the body's own statements and 20 belong to 8 function items inside it that branch. 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 · OperationalEvidence.OperationalEvidence (cyclomatic 40) · ×1
  • OperationalEvidence.OperationalEvidence (cyclomatic 40) openbank-admin-ui/src/components/observability/OperationalEvidence.tsx:47 — OperationalEvidence.OperationalEvidence has cyclomatic complexity 40 (threshold 15). Of this number, 33 points are the body's own statements and 7 belong to 5 function literals inside it that branch. 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 · auto-update-armed-prs.self_test (cyclomatic 39) · ×1
  • auto-update-armed-prs.self_test (cyclomatic 39) .github/scripts/auto-update-armed-prs.py:214 — auto-update-armed-prs.self_test has cyclomatic complexity 39 (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 · check-admin-ui-evidence-plan.validate_ui_stream (cyclomatic 39) · ×1
  • check-admin-ui-evidence-plan.validate_ui_stream (cyclomatic 39) .github/scripts/check-admin-ui-evidence-plan.py:67 — check-admin-ui-evidence-plan.validate_ui_stream has cyclomatic complexity 39 (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 · check-cnpg-scrape-coverage.self_test (cyclomatic 39) · ×1
  • check-cnpg-scrape-coverage.self_test (cyclomatic 39) .github/scripts/check-cnpg-scrape-coverage.py:752 — check-cnpg-scrape-coverage.self_test has cyclomatic complexity 39 (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 · gen-eu-ai-act.main (cyclomatic 39) · ×1
  • gen-eu-ai-act.main (cyclomatic 39) .github/scripts/gen-eu-ai-act.py:98 — gen-eu-ai-act.main has cyclomatic complexity 39 (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 · merge-train.qualifies (cyclomatic 39) · ×1
  • merge-train.qualifies (cyclomatic 39) .github/scripts/merge-train.py:724 — merge-train.qualifies has cyclomatic complexity 39 (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 · merge-train.live_candidates (cyclomatic 39) · ×1
  • merge-train.live_candidates (cyclomatic 39) .github/scripts/merge-train.py:2207 — merge-train.live_candidates has cyclomatic complexity 39 (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 · pact-reconcile-verifications.main (cyclomatic 39) · ×1
  • pact-reconcile-verifications.main (cyclomatic 39) .github/scripts/pact-reconcile-verifications.py:469 — pact-reconcile-verifications.main has cyclomatic complexity 39 (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 · page.NewAccountPage (cyclomatic 39) · ×1
  • page.NewAccountPage (cyclomatic 39) openbank-admin-ui/src/app/accounts/new/page.tsx:24 — page.NewAccountPage has cyclomatic complexity 39 (threshold 15). Of this number, 22 points are the body's own statements and 17 belong to 5 function items inside it that branch. 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 · page.ServiceDocsPage (cyclomatic 39) · ×1
  • page.ServiceDocsPage (cyclomatic 39) openbank-admin-ui/src/app/services/[name]/docs/[[...slug]]/page.tsx:55 — page.ServiceDocsPage has cyclomatic complexity 39 (threshold 15). Of this number, 29 points are the body's own statements and 10 belong to 4 function items inside it that branch. 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 · check-api-contract.main (cyclomatic 38) · ×1
  • check-api-contract.main (cyclomatic 38) .github/scripts/check-api-contract.py:1024 — check-api-contract.main has cyclomatic complexity 38 (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 · check-authz-pdp-parity.main (cyclomatic 38) · ×1
  • check-authz-pdp-parity.main (cyclomatic 38) .github/scripts/check-authz-pdp-parity.py:364 — check-authz-pdp-parity.main has cyclomatic complexity 38 (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 · check-oidc-tls-verification-profile.gitops_findings (cyclomatic 38) · ×1
  • check-oidc-tls-verification-profile.gitops_findings (cyclomatic 38) .github/scripts/check-oidc-tls-verification-profile.py:118 — check-oidc-tls-verification-profile.gitops_findings has cyclomatic complexity 38 (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 · JourneyCanvas.JourneyCanvas (cyclomatic 38) · ×1
  • JourneyCanvas.JourneyCanvas (cyclomatic 38) openbank-admin-ui/src/components/campaigns/JourneyCanvas.tsx:86 — JourneyCanvas.JourneyCanvas has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 11 of the 38 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 248, delayLabel, conditionLabel, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · check-honeytoken-wiring.scan (cyclomatic 37) · ×1
  • check-honeytoken-wiring.scan (cyclomatic 37) .github/scripts/check-honeytoken-wiring.py:206 — check-honeytoken-wiring.scan has cyclomatic complexity 37 (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 · check-security-checklist.run (cyclomatic 37) · ×1
  • check-security-checklist.run (cyclomatic 37) .github/scripts/check-security-checklist.py:662 — check-security-checklist.run has cyclomatic complexity 37 (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 · HttpFixture.route (cyclomatic 37) · ×1
  • HttpFixture.route (cyclomatic 37) .github/scripts/merge-train.py:4302 — HttpFixture.route has cyclomatic complexity 37 (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 · page.IdentityCasesPage (cyclomatic 37) · ×1
  • page.IdentityCasesPage (cyclomatic 37) openbank-admin-ui/src/app/identity-cases/page.tsx:328 — page.IdentityCasesPage has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 7 of the 37 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 338, activeCaseLabel, candidateLabel, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · page.OnboardingAnalyticsPage (cyclomatic 37) · ×1
  • page.OnboardingAnalyticsPage (cyclomatic 37) openbank-admin-ui/src/app/onboarding/analytics/page.tsx:51 — page.OnboardingAnalyticsPage has cyclomatic complexity 37 (threshold 15). Of this number, 24 points are the body's own statements and 13 belong to 3 function literals inside it that branch. 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 · ContextAssignmentAdministration.ContextAssignmentAdministration (cyclomatic 37) · ×1
  • ContextAssignmentAdministration.ContextAssignmentAdministration (cyclomatic 37) openbank-admin-ui/src/components/context/ContextAssignmentAdministration.tsx:14 — ContextAssignmentAdministration.ContextAssignmentAdministration has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 11 of the 37 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 30, propose, a function literal at line 102, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · BpmnView.ProcessLayerMap (cyclomatic 37) · ×1
  • BpmnView.ProcessLayerMap (cyclomatic 37) openbank-admin-ui/src/components/docs/BpmnView.tsx:149 — BpmnView.ProcessLayerMap has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 3 of the 37 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 162, 249, 296, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · PartySearch.PartySearch (cyclomatic 37) · ×1
  • PartySearch.PartySearch (cyclomatic 37) openbank-admin-ui/src/components/party/PartySearch.tsx:68 — PartySearch.PartySearch has cyclomatic complexity 37 (threshold 15). Of this number, 21 points are the body's own statements and 16 belong to 3 function items inside it that branch. 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 · check-service-application-readiness.check_component (cyclomatic 36) · ×1
  • check-service-application-readiness.check_component (cyclomatic 36) .github/scripts/check-service-application-readiness.py:233 — check-service-application-readiness.check_component 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 · page.SnapshotDetail (cyclomatic 36) · ×1
  • page.SnapshotDetail (cyclomatic 36) openbank-admin-ui/src/app/balance-sheet/snapshots/[id]/page.tsx:57 — page.SnapshotDetail has cyclomatic complexity 36 (threshold 15). Of this number, 25 points are the body's own statements and 11 belong to 4 function literals inside it that branch. 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 · page.ApplicationFlowPage (cyclomatic 36) · ×1
  • page.ApplicationFlowPage (cyclomatic 36) openbank-admin-ui/src/app/lending/applications/[id]/page.tsx:75 — page.ApplicationFlowPage has cyclomatic complexity 36 (threshold 15). Of this number, 23 points are the body's own statements and 13 belong to 5 function items inside it that branch. 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 · FxTrendChart.FxTrendChart (cyclomatic 36) · ×1
  • FxTrendChart.FxTrendChart (cyclomatic 36) openbank-admin-ui/src/components/fx/FxTrendChart.tsx:38 — FxTrendChart.FxTrendChart has cyclomatic complexity 36 (threshold 15). Of this number, 30 points are the body's own statements and 6 belong to 5 function literals inside it that branch. 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 · graph.parseContextNeighborhood (cyclomatic 36) · ×1
  • graph.parseContextNeighborhood (cyclomatic 36) openbank-admin-ui/src/lib/context/graph.ts:44 — graph.parseContextNeighborhood has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 15 of the 36 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 49, 60). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · check-alert-window-vs-subject-period.main (cyclomatic 35) · ×1
  • check-alert-window-vs-subject-period.main (cyclomatic 35) .github/scripts/check-alert-window-vs-subject-period.py:357 — check-alert-window-vs-subject-period.main has cyclomatic complexity 35 (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 · run-gates.execute (cyclomatic 35) · ×1
  • run-gates.execute (cyclomatic 35) .github/scripts/run-gates.py:588 — run-gates.execute has cyclomatic complexity 35 (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 · ScenePreview.ScenePreview (cyclomatic 35) · ×1
  • ScenePreview.ScenePreview (cyclomatic 35) openbank-admin-ui/src/app/loyalty/game/ScenePreview.tsx:17 — ScenePreview.ScenePreview has cyclomatic complexity 35 (threshold 15). Of this number, 17 points are the body's own statements and 18 belong to 6 function items inside it that branch. 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 · page.TraceExplorerPage (cyclomatic 35) · ×1
  • page.TraceExplorerPage (cyclomatic 35) openbank-admin-ui/src/app/observability/traces/page.tsx:35 — page.TraceExplorerPage has cyclomatic complexity 35 (threshold 15). Of this number, 23 points are the body's own statements and 12 belong to 3 function literals inside it that branch. 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 · page.Funds (cyclomatic 35) · ×1
  • page.Funds (cyclomatic 35) openbank-admin-ui/src/app/pension/funds/page.tsx:41 — page.Funds has cyclomatic complexity 35 (threshold 15). Of this number, 16 points are the body's own statements and 19 belong to 7 function items inside it that branch. 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 · page.parseServiceConfigSnapshot (cyclomatic 35) · ×1
  • page.parseServiceConfigSnapshot (cyclomatic 35) openbank-admin-ui/src/app/system/config/page.tsx:25 — page.parseServiceConfigSnapshot has cyclomatic complexity 35 (threshold 15). Of this number, 34 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · JourneyEditor.JourneyEditor (cyclomatic 35) · ×1
  • JourneyEditor.JourneyEditor (cyclomatic 35) openbank-admin-ui/src/components/campaigns/JourneyEditor.tsx:106 — JourneyEditor.JourneyEditor has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 14 of the 35 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 314, conditionLabel, delayLabel, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · check-fleet-release-evidence.check_fleet (cyclomatic 34) · ×1
  • check-fleet-release-evidence.check_fleet (cyclomatic 34) .github/scripts/check-fleet-release-evidence.py:147 — check-fleet-release-evidence.check_fleet has cyclomatic complexity 34 (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 · check-ledger-instance-switches.check (cyclomatic 34) · ×1
  • check-ledger-instance-switches.check (cyclomatic 34) .github/scripts/check-ledger-instance-switches.py:132 — check-ledger-instance-switches.check has cyclomatic complexity 34 (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 · readiness_fuzz_evidence.verify_fuzz_ops (cyclomatic 34) · ×1
  • readiness_fuzz_evidence.verify_fuzz_ops (cyclomatic 34) .github/scripts/readiness_fuzz_evidence.py:40 — readiness_fuzz_evidence.verify_fuzz_ops has cyclomatic complexity 34 (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 · page.AccountsPage (cyclomatic 34) · ×1
  • page.AccountsPage (cyclomatic 34) openbank-admin-ui/src/app/accounts/page.tsx:47 — page.AccountsPage has cyclomatic complexity 34 (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. This shape REPEATS in the file: one other method here (page.AccountsPage::search) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · page.EodPanel (cyclomatic 34) · ×1
  • page.EodPanel (cyclomatic 34) openbank-admin-ui/src/app/day-end/page.tsx:118 — page.EodPanel has cyclomatic complexity 34 (threshold 15). Of this number, 20 points are the body's own statements and 14 belong to 5 function items inside it that branch. 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 · page.ScreenFeedbackPage (cyclomatic 34) · ×1
  • page.ScreenFeedbackPage (cyclomatic 34) openbank-admin-ui/src/app/feedback/page.tsx:46 — page.ScreenFeedbackPage has cyclomatic complexity 34 (threshold 15). Of this number, 31 points are the body's own statements and 3 belong to 3 function items inside it that branch. 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 · page.AgentDetailContent (cyclomatic 34) · ×1
  • page.AgentDetailContent (cyclomatic 34) openbank-admin-ui/src/app/iaops/agents/[agentId]/page.tsx:140 — page.AgentDetailContent has cyclomatic complexity 34 (threshold 15). Of this number, 26 points are the body's own statements and 8 belong to 2 function literals inside it that branch. 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 · page.AgentPage (cyclomatic 34) · ×1
  • page.AgentPage (cyclomatic 34) openbank-admin-ui/src/app/system/agent/page.tsx:56 — page.AgentPage has cyclomatic complexity 34 (threshold 15). Of this number, 27 points are the body's own statements and 7 belong to 4 function literals inside it that branch. 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 · page.SystemHealthPage (cyclomatic 34) · ×1
  • page.SystemHealthPage (cyclomatic 34) openbank-admin-ui/src/app/system/health/page.tsx:23 — page.SystemHealthPage has cyclomatic complexity 34 (threshold 15). Of this number, 19 points are the body's own statements and 15 belong to 6 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · SanctionsImportService.importOfacSdn (cyclomatic 33) · ×1
  • SanctionsImportService.importOfacSdn (cyclomatic 33) REDACTED:249 — SanctionsImportService.importOfacSdn has cyclomatic complexity 33 (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 · check-merged-past-red-check.check_declaration (cyclomatic 33) · ×1
  • check-merged-past-red-check.check_declaration (cyclomatic 33) .github/scripts/check-merged-past-red-check.py:345 — check-merged-past-red-check.check_declaration 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 · verify-release-evidence-manifest.verify (cyclomatic 33) · ×1
  • verify-release-evidence-manifest.verify (cyclomatic 33) .github/scripts/verify-release-evidence-manifest.py:13 — verify-release-evidence-manifest.verify has cyclomatic complexity 33 (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 · contentSnapshot.validGovernance (cyclomatic 33) · ×1
  • contentSnapshot.validGovernance (cyclomatic 33) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:182 — contentSnapshot.validGovernance has cyclomatic complexity 33 (threshold 15). Of this number, 32 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.AmlPage (cyclomatic 33) · ×1
  • page.AmlPage (cyclomatic 33) openbank-admin-ui/src/app/aml/page.tsx:19 — page.AmlPage has cyclomatic complexity 33 (threshold 15). Of this number, 21 points are the body's own statements and 12 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · route.GET (cyclomatic 33) · ×1
  • route.GET (cyclomatic 33) openbank-admin-ui/src/app/api/customer-360/[partyId]/route.ts:110 — route.GET has cyclomatic complexity 33 (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 · page.CustomerAppDossierPage (cyclomatic 33) · ×1
  • page.CustomerAppDossierPage (cyclomatic 33) openbank-admin-ui/src/app/docs/customer-app/page.tsx:83 — page.CustomerAppDossierPage has cyclomatic complexity 33 (threshold 15). Of this number, 19 points are the body's own statements and 14 belong to 11 function items inside it that branch. 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 · page.InterestPage (cyclomatic 33) · ×1
  • page.InterestPage (cyclomatic 33) openbank-admin-ui/src/app/interest/page.tsx:45 — page.InterestPage has cyclomatic complexity 33 (threshold 15). Of this number, 29 points are the body's own statements and 4 belong to 2 function literals inside it that branch. 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 · page.TransactionsPage · ×1
  • page.TransactionsPage::search (cyclomatic 33) openbank-admin-ui/src/app/transactions/page.tsx:132 — page.TransactionsPage::search 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. This shape REPEATS in the file: one other method here (page.TransactionsPage) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · SbomViewer.SbomViewer (cyclomatic 33) · ×1
  • SbomViewer.SbomViewer (cyclomatic 33) openbank-admin-ui/src/components/sbom/SbomViewer.tsx:53 — SbomViewer.SbomViewer has cyclomatic complexity 33 (threshold 15). Of this number, 19 points are the body's own statements and 14 belong to 9 function literals inside it that branch. 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 · classify-pact-drift-scope._classify (cyclomatic 32) · ×1
  • classify-pact-drift-scope._classify (cyclomatic 32) .github/scripts/classify-pact-drift-scope.py:163 — classify-pact-drift-scope._classify 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 · check-cnpg-scrape-coverage.discover_clusters (cyclomatic 31) · ×1
  • check-cnpg-scrape-coverage.discover_clusters (cyclomatic 31) .github/scripts/check-cnpg-scrape-coverage.py:171 — check-cnpg-scrape-coverage.discover_clusters has cyclomatic complexity 31 (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 · merge_pr_policy.premerge_policy_context (cyclomatic 31) · ×1
  • merge_pr_policy.premerge_policy_context (cyclomatic 31) .github/scripts/merge_pr_policy.py:117 — merge_pr_policy.premerge_policy_context has cyclomatic complexity 31 (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 · page.StandingOrdersPage (cyclomatic 31) · ×1
  • page.StandingOrdersPage (cyclomatic 31) openbank-admin-ui/src/app/standing-orders/page.tsx:28 — page.StandingOrdersPage has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 13 of the 31 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 130, 44, 93). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · merge_authorization_proof.pr_request_observation (cyclomatic 30) · ×1
  • merge_authorization_proof.pr_request_observation (cyclomatic 30) .github/scripts/merge_authorization_proof.py:256 — merge_authorization_proof.pr_request_observation 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 · verify-capacity-evidence.parse_manifest (cyclomatic 30) · ×1
  • verify-capacity-evidence.parse_manifest (cyclomatic 30) .github/scripts/verify-capacity-evidence.py:120 — verify-capacity-evidence.parse_manifest has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · contentSnapshot.isAdminUiContentSnapshot (cyclomatic 30) · ×1
  • contentSnapshot.isAdminUiContentSnapshot (cyclomatic 30) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:373 — contentSnapshot.isAdminUiContentSnapshot has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.RepresentationPanel (cyclomatic 30) · ×1
  • page.RepresentationPanel (cyclomatic 30) openbank-admin-ui/src/app/business-onboarding/page.tsx:249 — page.RepresentationPanel has cyclomatic complexity 30 (threshold 15). Of this number, 21 points are the body's own statements and 9 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.MethodDetailView (cyclomatic 30) · ×1
  • page.MethodDetailView (cyclomatic 30) openbank-admin-ui/src/app/docs/api/page.tsx:307 — page.MethodDetailView has cyclomatic complexity 30 (threshold 15). Of this number, 17 points are the body's own statements and 13 belong to 2 function literals inside it that branch. 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 · page.SddPage (cyclomatic 30) · ×1
  • page.SddPage (cyclomatic 30) openbank-admin-ui/src/app/sdd/page.tsx:24 — page.SddPage has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 11 of the 30 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 34, 150, 125). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · page.SwiftDetailPage (cyclomatic 30) · ×1
  • page.SwiftDetailPage (cyclomatic 30) openbank-admin-ui/src/app/swift/[id]/page.tsx:20 — page.SwiftDetailPage has cyclomatic complexity 30 (threshold 15). Of this number, 17 points are the body's own statements and 13 belong to one function literal inside it that branches. 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 · evidence.parseOnboardingRecordPage (cyclomatic 30) · ×1
  • evidence.parseOnboardingRecordPage (cyclomatic 30) openbank-admin-ui/src/lib/onboarding/evidence.ts:56 — evidence.parseOnboardingRecordPage has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · kpiContract.parseSecurityKpis (cyclomatic 30) · ×1
  • kpiContract.parseSecurityKpis (cyclomatic 30) openbank-admin-ui/src/lib/security/kpiContract.ts:37 — kpiContract.parseSecurityKpis has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 13 of the 30 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 68, 57, 90, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · EgressAddressClass.ofV4 (cyclomatic 29) · ×1
  • EgressAddressClass.ofV4 (cyclomatic 29) openbank-libs-domain/src/main/kotlin/com/openbank/libs/security/EgressPolicy.kt:238 — EgressAddressClass.ofV4 has cyclomatic complexity 29 (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 · auto-update-armed-prs.run (cyclomatic 29) · ×1
  • auto-update-armed-prs.run (cyclomatic 29) .github/scripts/auto-update-armed-prs.py:921 — auto-update-armed-prs.run 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 · check-alert-window-vs-subject-period.derive_subjects (cyclomatic 29) · ×1
  • check-alert-window-vs-subject-period.derive_subjects (cyclomatic 29) .github/scripts/check-alert-window-vs-subject-period.py:185 — check-alert-window-vs-subject-period.derive_subjects 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 · check-journey-coverage.check (cyclomatic 29) · ×1
  • check-journey-coverage.check (cyclomatic 29) .github/scripts/check-journey-coverage.py:72 — check-journey-coverage.check 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 · check-opa-sidecar-bundle-shape.findings (cyclomatic 29) · ×1
  • check-opa-sidecar-bundle-shape.findings (cyclomatic 29) .github/scripts/check-opa-sidecar-bundle-shape.py:98 — check-opa-sidecar-bundle-shape.findings 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 · dependency_snapshot.merge_snapshots (cyclomatic 29) · ×1
  • dependency_snapshot.merge_snapshots (cyclomatic 29) .github/scripts/dependency_snapshot.py:58 — dependency_snapshot.merge_snapshots 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 · merge_pr_policy.requires_exact_head (cyclomatic 29) · ×1
  • merge_pr_policy.requires_exact_head (cyclomatic 29) .github/scripts/merge_pr_policy.py:65 — merge_pr_policy.requires_exact_head 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 · stage-admin-ui-performance.stage_performance (cyclomatic 29) · ×1
  • stage-admin-ui-performance.stage_performance (cyclomatic 29) .github/scripts/stage-admin-ui-performance.py:253 — stage-admin-ui-performance.stage_performance 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 · AgentInsightsPanel.AgentInsightsPanel (cyclomatic 29) · ×1
  • AgentInsightsPanel.AgentInsightsPanel (cyclomatic 29) openbank-admin-ui/src/components/agent/AgentInsightsPanel.tsx:106 — AgentInsightsPanel.AgentInsightsPanel has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 8 of the 29 points are its own statements and the rest belongs to one function literal inside it that branches (line 150). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · IrrbbSummaryPanel.IrrbbSummaryPanel (cyclomatic 29) · ×1
  • IrrbbSummaryPanel.IrrbbSummaryPanel (cyclomatic 29) openbank-admin-ui/src/components/balance-sheet/IrrbbSummaryPanel.tsx:26 — IrrbbSummaryPanel.IrrbbSummaryPanel has cyclomatic complexity 29 (threshold 15). Of this number, 22 points are the body's own statements and 7 belong to 4 function items inside it that branch. 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 · DataUnavailable.copyFor (cyclomatic 29) · ×1
  • DataUnavailable.copyFor (cyclomatic 29) openbank-admin-ui/src/components/feedback/DataUnavailable.tsx:42 — DataUnavailable.copyFor 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 · incidentEvidence.parseIncident (cyclomatic 29) · ×1
  • incidentEvidence.parseIncident (cyclomatic 29) openbank-admin-ui/src/lib/security/incidentEvidence.ts:59 — incidentEvidence.parseIncident has cyclomatic complexity 29 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · EgressAddressClass.ofV6 (cyclomatic 28) · ×1
  • EgressAddressClass.ofV6 (cyclomatic 28) openbank-libs-domain/src/main/kotlin/com/openbank/libs/security/EgressPolicy.kt:263 — EgressAddressClass.ofV6 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 · check-artifact-lock.check_text (cyclomatic 28) · ×1
  • check-artifact-lock.check_text (cyclomatic 28) .github/scripts/check-artifact-lock.py:42 — check-artifact-lock.check_text has cyclomatic complexity 28 (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 · check-loki-rules.check_ruler_wiring (cyclomatic 28) · ×1
  • check-loki-rules.check_ruler_wiring (cyclomatic 28) .github/scripts/check-loki-rules.py:347 — check-loki-rules.check_ruler_wiring has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · rewrite-reconcile-image-pins.rewrite (cyclomatic 28) · ×1
  • rewrite-reconcile-image-pins.rewrite (cyclomatic 28) .github/scripts/rewrite-reconcile-image-pins.py:25 — rewrite-reconcile-image-pins.rewrite has cyclomatic complexity 28 (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 · handler.update_state (cyclomatic 28) · ×1
  • handler.update_state (cyclomatic 28) REDACTED:171 — handler.update_state has cyclomatic complexity 28 (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 · page.NewReferralProgramPage (cyclomatic 28) · ×1
  • page.NewReferralProgramPage (cyclomatic 28) openbank-admin-ui/src/app/campaigns/referrals/new/page.tsx:46 — page.NewReferralProgramPage has cyclomatic complexity 28 (threshold 15). Of this number, 14 points are the body's own statements and 14 belong to 4 function items inside it that branch. 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 · page.IaopsCasesPage (cyclomatic 28) · ×1
  • page.IaopsCasesPage (cyclomatic 28) openbank-admin-ui/src/app/iaops/cases/page.tsx:54 — page.IaopsCasesPage has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 12 of the 28 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 90, 73, 187, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · AppShell.AppShell (cyclomatic 28) · ×1
  • AppShell.AppShell (cyclomatic 28) openbank-admin-ui/src/components/layout/AppShell.tsx:23 — AppShell.AppShell has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 2 of the 28 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 49, 39, 68, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · OriginationPipeline.OriginationPipeline (cyclomatic 28) · ×1
  • OriginationPipeline.OriginationPipeline (cyclomatic 28) openbank-admin-ui/src/components/lending/OriginationPipeline.tsx:111 — OriginationPipeline.OriginationPipeline has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 6 of the 28 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 189, a function literal at line 176, label, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · authorityHistory.parseAuthorityHistory.observations (cyclomatic 28) · ×1
  • authorityHistory.parseAuthorityHistory.observations (cyclomatic 28) openbank-admin-ui/src/lib/context/authorityHistory.ts:54 — authorityHistory.parseAuthorityHistory.observations has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · editor.courseProblems (cyclomatic 28) · ×1
  • editor.courseProblems (cyclomatic 28) openbank-admin-ui/src/lib/game/editor.ts:135 — editor.courseProblems has cyclomatic complexity 28 (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 · paymentListContract.parsePayment (cyclomatic 28) · ×1
  • paymentListContract.parsePayment (cyclomatic 28) openbank-admin-ui/src/lib/payments/paymentListContract.ts:36 — paymentListContract.parsePayment has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-catalog-kernel-neutral.check (cyclomatic 27) · ×1
  • check-catalog-kernel-neutral.check (cyclomatic 27) .github/scripts/check-catalog-kernel-neutral.py:104 — check-catalog-kernel-neutral.check 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 · check-fleet-release-evidence.inventory_report (cyclomatic 27) · ×1
  • check-fleet-release-evidence.inventory_report (cyclomatic 27) .github/scripts/check-fleet-release-evidence.py:356 — check-fleet-release-evidence.inventory_report 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 · check-merged-past-red-check.self_test (cyclomatic 27) · ×1
  • check-merged-past-red-check.self_test (cyclomatic 27) .github/scripts/check-merged-past-red-check.py:490 — check-merged-past-red-check.self_test 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 · check-network-policy-code-edges.load_gitops (cyclomatic 27) · ×1
  • check-network-policy-code-edges.load_gitops (cyclomatic 27) .github/scripts/check-network-policy-code-edges.py:89 — check-network-policy-code-edges.load_gitops has cyclomatic complexity 27 (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 · check-openapi-route-conformance.main (cyclomatic 27) · ×1
  • check-openapi-route-conformance.main (cyclomatic 27) .github/scripts/check-openapi-route-conformance.py:383 — check-openapi-route-conformance.main 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 · check-product-revision-pinned.run (cyclomatic 27) · ×1
  • check-product-revision-pinned.run (cyclomatic 27) .github/scripts/check-product-revision-pinned.py:256 — check-product-revision-pinned.run 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 · check-public-workload-ha.findings_for (cyclomatic 27) · ×1
  • check-public-workload-ha.findings_for (cyclomatic 27) .github/scripts/check-public-workload-ha.py:121 — check-public-workload-ha.findings_for has cyclomatic complexity 27 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-stuck-service-build.classify (cyclomatic 27) · ×1
  • check-stuck-service-build.classify (cyclomatic 27) .github/scripts/check-stuck-service-build.py:46 — check-stuck-service-build.classify 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 · generate-governance.truthGaps (cyclomatic 27) · ×1
  • generate-governance.truthGaps (cyclomatic 27) openbank-admin-ui/scripts/generate-governance.mjs:136 — generate-governance.truthGaps has cyclomatic complexity 27 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.BusinessOnboardingPage (cyclomatic 27) · ×1
  • page.BusinessOnboardingPage (cyclomatic 27) openbank-admin-ui/src/app/business-onboarding/page.tsx:435 — page.BusinessOnboardingPage has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 7 of the 27 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 443, queueLabel, a function literal at line 554, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · page.ZeroTrustPage (cyclomatic 27) · ×1
  • page.ZeroTrustPage (cyclomatic 27) openbank-admin-ui/src/app/docs/zero-trust/page.tsx:36 — page.ZeroTrustPage has cyclomatic complexity 27 (threshold 15). Of this number, 26 points are the body's own statements and 1 belongs to one function item inside it that branches. 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 · page.NewAudiencePage (cyclomatic 27) · ×1
  • page.NewAudiencePage (cyclomatic 27) openbank-admin-ui/src/app/segments/new/page.tsx:15 — page.NewAudiencePage has cyclomatic complexity 27 (threshold 15). Of this number, 14 points are the body's own statements and 13 belong to one function item inside it that branches. 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 · ReleasedPaymentValidator.validate (cyclomatic 26) · ×1
  • ReleasedPaymentValidator.validate (cyclomatic 26) openbank-swift-service/src/main/kotlin/com/openbank/swift/domain/institution/ReleasedPayment.kt:115 — ReleasedPaymentValidator.validate has cyclomatic complexity 26 (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 · aggregate-admin-ui-http-trace.build_report (cyclomatic 26) · ×1
  • aggregate-admin-ui-http-trace.build_report (cyclomatic 26) .github/scripts/aggregate-admin-ui-http-trace.py:105 — aggregate-admin-ui-http-trace.build_report has cyclomatic complexity 26 (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 · check-product-ir-determinism.static_findings (cyclomatic 26) · ×1
  • check-product-ir-determinism.static_findings (cyclomatic 26) .github/scripts/check-product-ir-determinism.py:85 — check-product-ir-determinism.static_findings has cyclomatic complexity 26 (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 · check-public-workload-ha.public_backends (cyclomatic 26) · ×1
  • check-public-workload-ha.public_backends (cyclomatic 26) .github/scripts/check-public-workload-ha.py:70 — check-public-workload-ha.public_backends has cyclomatic complexity 26 (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 · check-threat-model-claims.evidence_findings (cyclomatic 26) · ×1
  • check-threat-model-claims.evidence_findings (cyclomatic 26) .github/scripts/check-threat-model-claims.py:814 — check-threat-model-claims.evidence_findings has cyclomatic complexity 26 (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 · check-threat-model-claims.self_test (cyclomatic 26) · ×1
  • check-threat-model-claims.self_test (cyclomatic 26) .github/scripts/check-threat-model-claims.py:1018 — check-threat-model-claims.self_test has cyclomatic complexity 26 (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 · library_dependency_graph._declarations (cyclomatic 26) · ×1
  • library_dependency_graph._declarations (cyclomatic 26) .github/scripts/library_dependency_graph.py:86 — library_dependency_graph._declarations has cyclomatic complexity 26 (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 · merge-train.verify_bundle_train (cyclomatic 26) · ×1
  • merge-train.verify_bundle_train (cyclomatic 26) .github/scripts/merge-train.py:1380 — merge-train.verify_bundle_train has cyclomatic complexity 26 (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 · merge-train.build_strict_carrier (cyclomatic 26) · ×1
  • merge-train.build_strict_carrier (cyclomatic 26) .github/scripts/merge-train.py:3539 — merge-train.build_strict_carrier has cyclomatic complexity 26 (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 · pact-reconcile-verifications.complete_run_history (cyclomatic 26) · ×1
  • pact-reconcile-verifications.complete_run_history (cyclomatic 26) .github/scripts/pact-reconcile-verifications.py:347 — pact-reconcile-verifications.complete_run_history has cyclomatic complexity 26 (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 · publishedSnapshot.createEvidenceSnapshotReader.refresh (cyclomatic 26) · ×1
  • publishedSnapshot.createEvidenceSnapshotReader.refresh (cyclomatic 26) openbank-admin-ui/src/lib/evidence/publishedSnapshot.ts:167 — publishedSnapshot.createEvidenceSnapshotReader.refresh has cyclomatic complexity 26 (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 · page.ReferralProgramsPage (cyclomatic 26) · ×1
  • page.ReferralProgramsPage (cyclomatic 26) openbank-admin-ui/src/app/campaigns/referrals/page.tsx:34 — page.ReferralProgramsPage has cyclomatic complexity 26 (threshold 15). Of this number, 15 points are the body's own statements and 11 belong to 6 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · ComplaintContextInvestigation.ComplaintContextInvestigation (cyclomatic 26) · ×1
  • ComplaintContextInvestigation.ComplaintContextInvestigation (cyclomatic 26) openbank-admin-ui/src/components/context/ComplaintContextInvestigation.tsx:10 — ComplaintContextInvestigation.ComplaintContextInvestigation has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 11 of the 26 points are its own statements and the rest belongs to 6 function items inside it that branch (investigate, a function literal at line 84, a function literal at line 36, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · RoleCatalog.RoleCatalog (cyclomatic 26) · ×1
  • RoleCatalog.RoleCatalog (cyclomatic 26) openbank-admin-ui/src/components/delegations/RoleCatalog.tsx:15 — RoleCatalog.RoleCatalog has cyclomatic complexity 26 (threshold 15). Of this number, 13 points are the body's own statements and 13 belong to 8 function items inside it that branch. 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 · types.parseAgentMergeRecord (cyclomatic 26) · ×1
  • types.parseAgentMergeRecord (cyclomatic 26) openbank-admin-ui/src/lib/agent-merge-records/types.ts:114 — types.parseAgentMergeRecord has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · evidence.parseInboxItem (cyclomatic 26) · ×1
  • evidence.parseInboxItem (cyclomatic 26) openbank-admin-ui/src/lib/approvals/evidence.ts:90 — evidence.parseInboxItem has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · useServiceResource.useServiceResource (cyclomatic 26) · ×1
  • useServiceResource.useServiceResource (cyclomatic 26) openbank-admin-ui/src/lib/services/useServiceResource.ts:82 — useServiceResource.useServiceResource has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 2 of the 26 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 117, 101, 190). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · AgentChatService.chatLoop (cyclomatic 25) · ×1
  • AgentChatService.chatLoop (cyclomatic 25) openbank-agent-service/src/main/kotlin/com/openbank/agent/application/AgentChatService.kt:199 — AgentChatService.chatLoop has cyclomatic complexity 25 (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 · check-critical-alert-egress.main (cyclomatic 25) · ×1
  • check-critical-alert-egress.main (cyclomatic 25) .github/scripts/check-critical-alert-egress.py:309 — check-critical-alert-egress.main has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-probe-port-listener.findings (cyclomatic 25) · ×1
  • check-probe-port-listener.findings (cyclomatic 25) .github/scripts/check-probe-port-listener.py:152 — check-probe-port-listener.findings has cyclomatic complexity 25 (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 · check-temporal-namespace-registration.configmap_consumers (cyclomatic 25) · ×1
  • check-temporal-namespace-registration.configmap_consumers (cyclomatic 25) .github/scripts/check-temporal-namespace-registration.py:162 — check-temporal-namespace-registration.configmap_consumers has cyclomatic complexity 25 (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 · library_dependency_graph._tokens (cyclomatic 25) · ×1
  • library_dependency_graph._tokens (cyclomatic 25) .github/scripts/library_dependency_graph.py:29 — library_dependency_graph._tokens has cyclomatic complexity 25 (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 · GitHub.failures_inconclusive (cyclomatic 25) · ×1
  • GitHub.failures_inconclusive (cyclomatic 25) .github/scripts/merge-train.py:2017 — GitHub.failures_inconclusive has cyclomatic complexity 25 (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 · page.Snapshots (cyclomatic 25) · ×1
  • page.Snapshots (cyclomatic 25) openbank-admin-ui/src/app/balance-sheet/snapshots/page.tsx:41 — page.Snapshots has cyclomatic complexity 25 (threshold 15). Of this number, 16 points are the body's own statements and 9 belong to 3 function items inside it that branch. 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 · page.DisputesPage (cyclomatic 25) · ×1
  • page.DisputesPage (cyclomatic 25) openbank-admin-ui/src/app/disputes/page.tsx:24 — page.DisputesPage has cyclomatic complexity 25 (threshold 15). Of this number, 18 points are the body's own statements and 7 belong to 3 function items inside it that branch. 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 · page.DocumentsLookup (cyclomatic 25) · ×1
  • page.DocumentsLookup (cyclomatic 25) openbank-admin-ui/src/app/document-templates/page.tsx:954 — page.DocumentsLookup has cyclomatic complexity 25 (threshold 15). Of this number, 17 points are the body's own statements and 8 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.PartyDetailPage (cyclomatic 25) · ×1
  • page.PartyDetailPage (cyclomatic 25) openbank-admin-ui/src/app/parties/[id]/page.tsx:32 — page.PartyDetailPage has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 10 of the 25 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 48, 157). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · page.VopSection (cyclomatic 25) · ×1
  • page.VopSection (cyclomatic 25) openbank-admin-ui/src/app/payments/page.tsx:176 — page.VopSection has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 9 of the 25 points are its own statements and the rest belongs to 5 function items inside it that branch (vopIcon, a function literal at line 237, a function literal at line 231, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · page.Annuity (cyclomatic 25) · ×1
  • page.Annuity (cyclomatic 25) openbank-admin-ui/src/app/pension/annuity/page.tsx:96 — page.Annuity has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 10 of the 25 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 195, register, act, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · page.PidPage (cyclomatic 25) · ×1
  • page.PidPage (cyclomatic 25) openbank-admin-ui/src/app/pid/page.tsx:54 — page.PidPage has cyclomatic complexity 25 (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. This shape REPEATS in the file: one other method here (page.PidPage::handleSubmit) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · page.ApprovalInbox (cyclomatic 25) · ×1
  • page.ApprovalInbox (cyclomatic 25) openbank-admin-ui/src/app/treasury/approvals/page.tsx:42 — page.ApprovalInbox has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 9 of the 25 points are its own statements and the rest belongs to 3 function items inside it that branch (decide, a function literal at line 132, a function literal at line 58). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · MergeRecordsSection.MergeRecordsSection (cyclomatic 25) · ×1
  • MergeRecordsSection.MergeRecordsSection (cyclomatic 25) openbank-admin-ui/src/components/agent/MergeRecordsSection.tsx:25 — MergeRecordsSection.MergeRecordsSection has cyclomatic complexity 25 (threshold 15). Of this number, 13 points are the body's own statements and 12 belong to 3 function items inside it that branch. 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 · AmlCaseInvestigation.AmlCaseInvestigation (cyclomatic 25) · ×1
  • AmlCaseInvestigation.AmlCaseInvestigation (cyclomatic 25) openbank-admin-ui/src/components/context/AmlCaseInvestigation.tsx:9 — AmlCaseInvestigation.AmlCaseInvestigation has cyclomatic complexity 25 (threshold 15). Of this number, 13 points are the body's own statements and 12 belong to 4 function items inside it that branch. 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 · AuthorityHistoryInvestigation.AuthorityHistoryInvestigation (cyclomatic 25) · ×1
  • AuthorityHistoryInvestigation.AuthorityHistoryInvestigation (cyclomatic 25) openbank-admin-ui/src/components/context/AuthorityHistoryInvestigation.tsx:8 — AuthorityHistoryInvestigation.AuthorityHistoryInvestigation has cyclomatic complexity 25 (threshold 15). Of this number, 13 points are the body's own statements and 12 belong to one function item inside it that branches. 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 · Tabs.Tabs (cyclomatic 25) · ×1
  • Tabs.Tabs (cyclomatic 25) openbank-admin-ui/src/components/ui/Tabs.tsx:30 — Tabs.Tabs has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 3 of the 25 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 70, moveFocus). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · evidence.isCloseRun (cyclomatic 25) · ×1
  • evidence.isCloseRun (cyclomatic 25) openbank-admin-ui/src/lib/closings/evidence.ts:99 — evidence.isCloseRun has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-coverage-floor-ratchet.self_test (cyclomatic 24) · ×1
  • check-coverage-floor-ratchet.self_test (cyclomatic 24) .github/scripts/check-coverage-floor-ratchet.py:305 — check-coverage-floor-ratchet.self_test has cyclomatic complexity 24 (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 · check-external-feeds.self_test (cyclomatic 24) · ×1
  • check-external-feeds.self_test (cyclomatic 24) .github/scripts/check-external-feeds.py:668 — check-external-feeds.self_test has cyclomatic complexity 24 (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 · check-idempotency-contract-parity.code_idempotency (cyclomatic 24) · ×1
  • check-idempotency-contract-parity.code_idempotency (cyclomatic 24) .github/scripts/check-idempotency-contract-parity.py:169 — check-idempotency-contract-parity.code_idempotency has cyclomatic complexity 24 (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 · check-journey-catalog.cronjob_facts (cyclomatic 24) · ×1
  • check-journey-catalog.cronjob_facts (cyclomatic 24) .github/scripts/check-journey-catalog.py:122 — check-journey-catalog.cronjob_facts has cyclomatic complexity 24 (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 · check-journey-catalog.extract_script (cyclomatic 24) · ×1
  • check-journey-catalog.extract_script (cyclomatic 24) .github/scripts/check-journey-catalog.py:181 — check-journey-catalog.extract_script has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-msg-channel-image-parity.main (cyclomatic 24) · ×1
  • check-msg-channel-image-parity.main (cyclomatic 24) .github/scripts/check-msg-channel-image-parity.py:407 — check-msg-channel-image-parity.main has cyclomatic complexity 24 (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 · classify-security-abuse-summary.classify (cyclomatic 24) · ×1
  • classify-security-abuse-summary.classify (cyclomatic 24) .github/scripts/classify-security-abuse-summary.py:12 — classify-security-abuse-summary.classify has cyclomatic complexity 24 (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 · gen-case-collaboration-opa-data.project (cyclomatic 24) · ×1
  • gen-case-collaboration-opa-data.project (cyclomatic 24) .github/scripts/gen-case-collaboration-opa-data.py:59 — gen-case-collaboration-opa-data.project has cyclomatic complexity 24 (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 · GitHub.rerun_inconclusive (cyclomatic 24) · ×1
  • GitHub.rerun_inconclusive (cyclomatic 24) .github/scripts/merge-train.py:1955 — GitHub.rerun_inconclusive has cyclomatic complexity 24 (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 · vex-triage.main (cyclomatic 24) · ×1
  • vex-triage.main (cyclomatic 24) .github/scripts/vex-triage.py:219 — vex-triage.main has cyclomatic complexity 24 (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 · generate-app-status.main (cyclomatic 24) · ×1
  • generate-app-status.main (cyclomatic 24) openbank-admin-ui/scripts/generate-app-status.mjs:288 — generate-app-status.main has cyclomatic complexity 24 (threshold 15). Of this number, 12 points are the body's own statements and 12 belong to 7 function items inside it that branch. 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 · page.ClearingPage (cyclomatic 24) · ×1
  • page.ClearingPage (cyclomatic 24) openbank-admin-ui/src/app/clearing/page.tsx:19 — page.ClearingPage has cyclomatic complexity 24 (threshold 15). Of this number, 17 points are the body's own statements and 7 belong to 3 function literals inside it that branch. 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 · page.FeesPage (cyclomatic 24) · ×1
  • page.FeesPage (cyclomatic 24) openbank-admin-ui/src/app/fees/page.tsx:16 — page.FeesPage has cyclomatic complexity 24 (threshold 15). Of this number, 12 points are the body's own statements and 12 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.ContractDetail (cyclomatic 24) · ×1
  • page.ContractDetail (cyclomatic 24) openbank-admin-ui/src/app/pension/contracts/[id]/page.tsx:39 — page.ContractDetail has cyclomatic complexity 24 (threshold 15). Of this number, 15 points are the body's own statements and 9 belong to 3 function literals inside it that branch. 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 · page.ToolCard (cyclomatic 24) · ×1
  • page.ToolCard (cyclomatic 24) openbank-admin-ui/src/app/system/agent/page.tsx:326 — page.ToolCard has cyclomatic complexity 24 (threshold 15). Of this number, 19 points are the body's own statements and 5 belong to 4 function items inside it that branch. 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 · amlCaseEvidence.parseAmlCaseEvidence.observations (cyclomatic 24) · ×1
  • amlCaseEvidence.parseAmlCaseEvidence.observations (cyclomatic 24) openbank-admin-ui/src/lib/context/amlCaseEvidence.ts:52 — amlCaseEvidence.parseAmlCaseEvidence.observations has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · summary.parseSecurityEnvelope (cyclomatic 24) · ×1
  • summary.parseSecurityEnvelope (cyclomatic 24) openbank-admin-ui/src/lib/security/summary.ts:162 — summary.parseSecurityEnvelope has cyclomatic complexity 24 (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 · (anonymous) (cyclomatic 24) · ×1
  • (anonymous) (cyclomatic 24) openbank-infra/web/landing/bank-as-code.js:13 — (anonymous) has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 8 of the 24 points are its own statements and the rest belongs to 27 function items inside it that branch (a function literal at line 137, journey::step, a function literal at line 154, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · Reader.number (cyclomatic 23) · ×1
  • Reader.number (cyclomatic 23) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/IrJson.kt:170 — Reader.number has cyclomatic complexity 23 (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 · Ctx.action (cyclomatic 23) · ×1
  • Ctx.action (cyclomatic 23) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/ProductIrParser.kt:351 — Ctx.action has cyclomatic complexity 23 (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 · check-agent-case-schema.validate (cyclomatic 23) · ×1
  • check-agent-case-schema.validate (cyclomatic 23) .github/scripts/check-agent-case-schema.py:81 — check-agent-case-schema.validate has cyclomatic complexity 23 (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 · check-api-contract.strip_comments (cyclomatic 23) · ×1
  • check-api-contract.strip_comments (cyclomatic 23) .github/scripts/check-api-contract.py:224 — check-api-contract.strip_comments has cyclomatic complexity 23 (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 · check-catalog-kernel-neutral.check_openapi (cyclomatic 23) · ×1
  • check-catalog-kernel-neutral.check_openapi (cyclomatic 23) .github/scripts/check-catalog-kernel-neutral.py:227 — check-catalog-kernel-neutral.check_openapi has cyclomatic complexity 23 (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 · check-configproperty-supplied.findings (cyclomatic 23) · ×1
  • check-configproperty-supplied.findings (cyclomatic 23) .github/scripts/check-configproperty-supplied.py:241 — check-configproperty-supplied.findings has cyclomatic complexity 23 (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 · check-event-schema-compat.main (cyclomatic 23) · ×1
  • check-event-schema-compat.main (cyclomatic 23) .github/scripts/check-event-schema-compat.py:564 — check-event-schema-compat.main has cyclomatic complexity 23 (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 · check-gitops-secret-refs.refs_in (cyclomatic 23) · ×1
  • check-gitops-secret-refs.refs_in (cyclomatic 23) .github/scripts/check-gitops-secret-refs.py:87 — check-gitops-secret-refs.refs_in has cyclomatic complexity 23 (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 · check-idempotency-contract-parity.main (cyclomatic 23) · ×1
  • check-idempotency-contract-parity.main (cyclomatic 23) .github/scripts/check-idempotency-contract-parity.py:454 — check-idempotency-contract-parity.main has cyclomatic complexity 23 (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 · check-kafka-cert-reader-grant.analyse (cyclomatic 23) · ×1
  • check-kafka-cert-reader-grant.analyse (cyclomatic 23) .github/scripts/check-kafka-cert-reader-grant.py:81 — check-kafka-cert-reader-grant.analyse has cyclomatic complexity 23 (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 · ci-latency-report.job_row (cyclomatic 23) · ×1
  • ci-latency-report.job_row (cyclomatic 23) .github/scripts/ci-latency-report.py:59 — ci-latency-report.job_row has cyclomatic complexity 23 (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 · credential-inventory._operator_managed_credential (cyclomatic 23) · ×1
  • credential-inventory._operator_managed_credential (cyclomatic 23) .github/scripts/credential-inventory.py:187 — credential-inventory._operator_managed_credential has cyclomatic complexity 23 (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 · derive-codeploy-set.derive (cyclomatic 23) · ×1
  • derive-codeploy-set.derive (cyclomatic 23) .github/scripts/derive-codeploy-set.py:134 — derive-codeploy-set.derive has cyclomatic complexity 23 (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 · dr-check-trial-balance.validate (cyclomatic 23) · ×1
  • dr-check-trial-balance.validate (cyclomatic 23) .github/scripts/dr-check-trial-balance.py:21 — dr-check-trial-balance.validate has cyclomatic complexity 23 (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 · run-evals.replay_charter (cyclomatic 23) · ×1
  • run-evals.replay_charter (cyclomatic 23) .github/scripts/run-evals.py:162 — run-evals.replay_charter has cyclomatic complexity 23 (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 · check-db-backup-associations.main (cyclomatic 23) · ×1
  • check-db-backup-associations.main (cyclomatic 23) openbank-infra/scripts/check-db-backup-associations.py:381 — check-db-backup-associations.main has cyclomatic complexity 23 (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 · generate-security-graph.deriveNetwork (cyclomatic 23) · ×1
  • generate-security-graph.deriveNetwork (cyclomatic 23) openbank-admin-ui/scripts/generate-security-graph.mjs:73 — generate-security-graph.deriveNetwork has cyclomatic complexity 23 (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 · route.validProposal (cyclomatic 23) · ×1
  • route.validProposal (cyclomatic 23) openbank-admin-ui/src/app/api/context/assignments/route.ts:42 — route.validProposal has cyclomatic complexity 23 (threshold 15). Of this number, 21 points are the body's own statements and 2 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.CardTokensPage (cyclomatic 23) · ×1
  • page.CardTokensPage (cyclomatic 23) openbank-admin-ui/src/app/cards/tokens/page.tsx:39 — page.CardTokensPage has cyclomatic complexity 23 (threshold 15). Of this number, 18 points are the body's own statements and 5 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.PaymentDetailContent (cyclomatic 23) · ×1
  • page.PaymentDetailContent (cyclomatic 23) openbank-admin-ui/src/app/payments/[id]/page.tsx:44 — page.PaymentDetailContent has cyclomatic complexity 23 (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. This shape REPEATS in the file: one other method here (page.PaymentDetailContent::load) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · BpmnView.BpmnDiagram (cyclomatic 23) · ×1
  • BpmnView.BpmnDiagram (cyclomatic 23) openbank-admin-ui/src/components/docs/BpmnView.tsx:42 — BpmnView.BpmnDiagram has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 2 function items inside it that branch (renderNode, a function literal at line 117). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · OriginationFlow.OriginationFlow (cyclomatic 23) · ×1
  • OriginationFlow.OriginationFlow (cyclomatic 23) openbank-admin-ui/src/components/lending/OriginationFlow.tsx:114 — OriginationFlow.OriginationFlow has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to 3 function items inside it that branch (row, toneFor, label). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · api.isHealthEntry (cyclomatic 23) · ×1
  • api.isHealthEntry (cyclomatic 23) openbank-admin-ui/src/lib/api.ts:219 — api.isHealthEntry has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · live-platform-versions.fetchLiveSnapshot (cyclomatic 23) · ×1
  • live-platform-versions.fetchLiveSnapshot (cyclomatic 23) REDACTED:237 — live-platform-versions.fetchLiveSnapshot has cyclomatic complexity 23 (threshold 15). Of this number, 15 points are the body's own statements and 8 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · await-admin-ui-source-validation.pact_push_path_patterns (cyclomatic 22) · ×1
  • await-admin-ui-source-validation.pact_push_path_patterns (cyclomatic 22) .github/scripts/await-admin-ui-source-validation.py:31 — await-admin-ui-source-validation.pact_push_path_patterns 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 · check-deploy-pin-monotonic.judge (cyclomatic 22) · ×1
  • check-deploy-pin-monotonic.judge (cyclomatic 22) .github/scripts/check-deploy-pin-monotonic.py:300 — check-deploy-pin-monotonic.judge 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 · check-dockerfile-no-build-stage.self_test (cyclomatic 22) · ×1
  • check-dockerfile-no-build-stage.self_test (cyclomatic 22) .github/scripts/check-dockerfile-no-build-stage.py:262 — check-dockerfile-no-build-stage.self_test has cyclomatic complexity 22 (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 · check-dynamic-db-roles-declared.self_test (cyclomatic 22) · ×1
  • check-dynamic-db-roles-declared.self_test (cyclomatic 22) .github/scripts/check-dynamic-db-roles-declared.py:154 — check-dynamic-db-roles-declared.self_test has cyclomatic complexity 22 (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 · check-evals-registry.check_file (cyclomatic 22) · ×1
  • check-evals-registry.check_file (cyclomatic 22) .github/scripts/check-evals-registry.py:80 — check-evals-registry.check_file 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 · check-gitops-secret-refs.main (cyclomatic 22) · ×1
  • check-gitops-secret-refs.main (cyclomatic 22) .github/scripts/check-gitops-secret-refs.py:211 — check-gitops-secret-refs.main has cyclomatic complexity 22 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D1 · Cyclomatic Complexity · check-product-ir-authoring-parity.findings (cyclomatic 22) · ×1
  • check-product-ir-authoring-parity.findings (cyclomatic 22) .github/scripts/check-product-ir-authoring-parity.py:105 — check-product-ir-authoring-parity.findings 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 · check-realm-user-role-parity.load_live (cyclomatic 22) · ×1
  • check-realm-user-role-parity.load_live (cyclomatic 22) .github/scripts/check-realm-user-role-parity.py:140 — check-realm-user-role-parity.load_live 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 · check-ruleset-bypass-actors.self_test (cyclomatic 22) · ×1
  • check-ruleset-bypass-actors.self_test (cyclomatic 22) .github/scripts/check-ruleset-bypass-actors.py:296 — check-ruleset-bypass-actors.self_test 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 · check-service-application-readiness.effective_resources (cyclomatic 22) · ×1
  • check-service-application-readiness.effective_resources (cyclomatic 22) .github/scripts/check-service-application-readiness.py:143 — check-service-application-readiness.effective_resources 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 · dependency_snapshot.validate_snapshot (cyclomatic 22) · ×1
  • dependency_snapshot.validate_snapshot (cyclomatic 22) .github/scripts/dependency_snapshot.py:22 — dependency_snapshot.validate_snapshot 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 · deploy-window.main (cyclomatic 22) · ×1
  • deploy-window.main (cyclomatic 22) .github/scripts/deploy-window.py:612 — deploy-window.main 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 · detect-auto-deploy-stuck.self_test (cyclomatic 22) · ×1
  • detect-auto-deploy-stuck.self_test (cyclomatic 22) .github/scripts/detect-auto-deploy-stuck.py:214 — detect-auto-deploy-stuck.self_test has cyclomatic complexity 22 (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 · fuzz-coverage-aggregate.self_test (cyclomatic 22) · ×1
  • fuzz-coverage-aggregate.self_test (cyclomatic 22) .github/scripts/fuzz-coverage-aggregate.py:121 — fuzz-coverage-aggregate.self_test has cyclomatic complexity 22 (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 · merge-train.check_declaration (cyclomatic 22) · ×1
  • merge-train.check_declaration (cyclomatic 22) .github/scripts/merge-train.py:3952 — merge-train.check_declaration has cyclomatic complexity 22 (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 · run-gates.main (cyclomatic 22) · ×1
  • run-gates.main (cyclomatic 22) .github/scripts/run-gates.py:909 — run-gates.main has cyclomatic complexity 22 (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 · runtime-conformance.cmp_backup_recoverability (cyclomatic 22) · ×1
  • runtime-conformance.cmp_backup_recoverability (cyclomatic 22) .github/scripts/runtime-conformance.py:246 — runtime-conformance.cmp_backup_recoverability 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 · cloud-finops-collect.evaluate (cyclomatic 22) · ×1
  • cloud-finops-collect.evaluate (cyclomatic 22) openbank-infra/scripts/cloud-finops-collect.py:168 — cloud-finops-collect.evaluate 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 · page.TechInventoryPage (cyclomatic 22) · ×1
  • page.TechInventoryPage (cyclomatic 22) openbank-admin-ui/src/app/system/inventory/page.tsx:90 — page.TechInventoryPage has cyclomatic complexity 22 (threshold 15). Of this number, 17 points are the body's own statements and 5 belong to 3 function literals inside it that branch. 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 · page.ReadinessPage (cyclomatic 22) · ×1
  • page.ReadinessPage (cyclomatic 22) openbank-admin-ui/src/app/system/readiness/page.tsx:52 — page.ReadinessPage has cyclomatic complexity 22 (threshold 15). Of this number, 15 points are the body's own statements and 7 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · StageBoard.StageBoard (cyclomatic 22) · ×1
  • StageBoard.StageBoard (cyclomatic 22) openbank-admin-ui/src/components/flow/StageBoard.tsx:114 — StageBoard.StageBoard has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 3 of the 22 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 169, a function literal at line 158, a function literal at line 209, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · ProductIrEditor.ProductIrEditor (cyclomatic 22) · ×1
  • ProductIrEditor.ProductIrEditor (cyclomatic 22) openbank-admin-ui/src/components/product-studio/ProductIrEditor.tsx:17 — ProductIrEditor.ProductIrEditor has cyclomatic complexity 22 (threshold 15). Of this number, 15 points are the body's own statements and 7 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · model.dealActions (cyclomatic 22) · ×1
  • model.dealActions (cyclomatic 22) openbank-admin-ui/src/components/treasury/model.ts:144 — model.dealActions has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · kycEvidenceContract.parseKycCaseEvidence (cyclomatic 22) · ×1
  • kycEvidenceContract.parseKycCaseEvidence (cyclomatic 22) openbank-admin-ui/src/lib/parties/kycEvidenceContract.ts:39 — kycEvidenceContract.parseKycCaseEvidence has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · detailEvidence.parsePaymentDetailEvidence (cyclomatic 22) · ×1
  • detailEvidence.parsePaymentDetailEvidence (cyclomatic 22) openbank-admin-ui/src/lib/payments/detailEvidence.ts:68 — detailEvidence.parsePaymentDetailEvidence has cyclomatic complexity 22 (threshold 15). Of this number, 18 points are the body's own statements and 4 belong to 2 function items inside it that branch. 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 · sdat.sdatAccounts (cyclomatic 22) · ×1
  • sdat.sdatAccounts (cyclomatic 22) openbank-admin-ui/src/lib/regulatory/generators/sdat.ts:53 — sdat.sdatAccounts has cyclomatic complexity 22 (threshold 15). Of this number, 11 points are the body's own statements and 11 belong to one function literal inside it that branches. 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 · admin-ui-delivery-baseline.attempt_row (cyclomatic 21) · ×1
  • admin-ui-delivery-baseline.attempt_row (cyclomatic 21) .github/scripts/admin-ui-delivery-baseline.py:72 — admin-ui-delivery-baseline.attempt_row 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 · check-admin-ui-a11y-route-coverage.test_bodies (cyclomatic 21) · ×1
  • check-admin-ui-a11y-route-coverage.test_bodies (cyclomatic 21) .github/scripts/check-admin-ui-a11y-route-coverage.py:32 — check-admin-ui-a11y-route-coverage.test_bodies 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 · check-agent-pr-guard.owner_approval_allows (cyclomatic 21) · ×1
  • check-agent-pr-guard.owner_approval_allows (cyclomatic 21) .github/scripts/check-agent-pr-guard.py:547 — check-agent-pr-guard.owner_approval_allows 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 · check-agent-pr-guard.self_test (cyclomatic 21) · ×1
  • check-agent-pr-guard.self_test (cyclomatic 21) .github/scripts/check-agent-pr-guard.py:886 — check-agent-pr-guard.self_test 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 · check-api-contract.migration_assertion_findings (cyclomatic 21) · ×1
  • check-api-contract.migration_assertion_findings (cyclomatic 21) .github/scripts/check-api-contract.py:474 — check-api-contract.migration_assertion_findings 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 · check-bench-alloc-baseline.run (cyclomatic 21) · ×1
  • check-bench-alloc-baseline.run (cyclomatic 21) .github/scripts/check-bench-alloc-baseline.py:278 — check-bench-alloc-baseline.run 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 · check-bench-alloc-baseline._self_test (cyclomatic 21) · ×1
  • check-bench-alloc-baseline._self_test (cyclomatic 21) .github/scripts/check-bench-alloc-baseline.py:358 — check-bench-alloc-baseline._self_test 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 · check-ci-runner-pools.evaluate (cyclomatic 21) · ×1
  • check-ci-runner-pools.evaluate (cyclomatic 21) .github/scripts/check-ci-runner-pools.py:148 — check-ci-runner-pools.evaluate 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 · check-enforcement-reachability.strip_comments (cyclomatic 21) · ×1
  • check-enforcement-reachability.strip_comments (cyclomatic 21) .github/scripts/check-enforcement-reachability.py:72 — check-enforcement-reachability.strip_comments 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 · check-libs-core-purity.find_violations (cyclomatic 21) · ×1
  • check-libs-core-purity.find_violations (cyclomatic 21) .github/scripts/check-libs-core-purity.py:55 — check-libs-core-purity.find_violations 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 · check-loki-rules.self_test (cyclomatic 21) · ×1
  • check-loki-rules.self_test (cyclomatic 21) .github/scripts/check-loki-rules.py:246 — check-loki-rules.self_test 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 · check-realm-user-role-parity.compare (cyclomatic 21) · ×1
  • check-realm-user-role-parity.compare (cyclomatic 21) .github/scripts/check-realm-user-role-parity.py:186 — check-realm-user-role-parity.compare 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 · check-requirements-traceability.check_file (cyclomatic 21) · ×1
  • check-requirements-traceability.check_file (cyclomatic 21) .github/scripts/check-requirements-traceability.py:69 — check-requirements-traceability.check_file 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 · check-roles-allowed-realm.self_test (cyclomatic 21) · ×1
  • check-roles-allowed-realm.self_test (cyclomatic 21) .github/scripts/check-roles-allowed-realm.py:198 — check-roles-allowed-realm.self_test 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 · check-security-checklist.code_boxes (cyclomatic 21) · ×1
  • check-security-checklist.code_boxes (cyclomatic 21) .github/scripts/check-security-checklist.py:587 — check-security-checklist.code_boxes 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 · ci-latency-report.analyze (cyclomatic 21) · ×1
  • ci-latency-report.analyze (cyclomatic 21) .github/scripts/ci-latency-report.py:114 — ci-latency-report.analyze 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 · collect-admin-ui-security-kpis.collect (cyclomatic 21) · ×1
  • collect-admin-ui-security-kpis.collect (cyclomatic 21) .github/scripts/collect-admin-ui-security-kpis.py:118 — collect-admin-ui-security-kpis.collect 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 · gen-agents-opa-data.analyse (cyclomatic 21) · ×1
  • gen-agents-opa-data.analyse (cyclomatic 21) .github/scripts/gen-agents-opa-data.py:175 — gen-agents-opa-data.analyse 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 · pact-reconcile-verifications.verification_key (cyclomatic 21) · ×1
  • pact-reconcile-verifications.verification_key (cyclomatic 21) .github/scripts/pact-reconcile-verifications.py:272 — pact-reconcile-verifications.verification_key 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 · record-agent-merge.verify_stored (cyclomatic 21) · ×1
  • record-agent-merge.verify_stored (cyclomatic 21) .github/scripts/record-agent-merge.py:254 — record-agent-merge.verify_stored 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 · runtime_resource_inputs._resource_body (cyclomatic 21) · ×1
  • runtime_resource_inputs._resource_body (cyclomatic 21) .github/scripts/runtime_resource_inputs.py:133 — runtime_resource_inputs._resource_body 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 · verify-successful-service-ci.resolve_reconcile_service_sources (cyclomatic 21) · ×1
  • verify-successful-service-ci.resolve_reconcile_service_sources (cyclomatic 21) .github/scripts/verify-successful-service-ci.py:708 — verify-successful-service-ci.resolve_reconcile_service_sources 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 · handler.public_state (cyclomatic 21) · ×1
  • handler.public_state (cyclomatic 21) REDACTED:233 — handler.public_state 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 · page.ObservabilityPage (cyclomatic 21) · ×1
  • page.ObservabilityPage (cyclomatic 21) openbank-admin-ui/src/app/observability/page.tsx:41 — page.ObservabilityPage has cyclomatic complexity 21 (threshold 15). Of this number, 11 points are the body's own statements and 10 belong to 3 function items inside it that branch. 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 · page.SwiftPage (cyclomatic 21) · ×1
  • page.SwiftPage (cyclomatic 21) openbank-admin-ui/src/app/swift/page.tsx:20 — page.SwiftPage has cyclomatic complexity 21 (threshold 15). Of this number, 15 points are the body's own statements and 6 belong to 3 function literals inside it that branch. 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 · CampaignExperiencePreview.CampaignExperiencePreview (cyclomatic 21) · ×1
  • CampaignExperiencePreview.CampaignExperiencePreview (cyclomatic 21) openbank-admin-ui/src/components/campaigns/CampaignExperiencePreview.tsx:36 — CampaignExperiencePreview.CampaignExperiencePreview 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 · DelegationAuditTimeline.TimelineEvent (cyclomatic 21) · ×1
  • DelegationAuditTimeline.TimelineEvent (cyclomatic 21) openbank-admin-ui/src/components/delegations/DelegationAuditTimeline.tsx:132 — DelegationAuditTimeline.TimelineEvent 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 · PartyLookup.PartyLookup (cyclomatic 21) · ×1
  • PartyLookup.PartyLookup (cyclomatic 21) openbank-admin-ui/src/components/kyc/PartyLookup.tsx:51 — PartyLookup.PartyLookup has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body's own statements and 2 belong to 2 function literals inside it that branch. 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 · EvidenceFreshness.EvidenceFreshness (cyclomatic 21) · ×1
  • EvidenceFreshness.EvidenceFreshness (cyclomatic 21) openbank-admin-ui/src/components/testing/EvidenceFreshness.tsx:21 — EvidenceFreshness.EvidenceFreshness 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 · exportReadiness.blockReasonCopy (cyclomatic 21) · ×1
  • exportReadiness.blockReasonCopy (cyclomatic 21) openbank-admin-ui/src/lib/regulatory/exportReadiness.ts:175 — exportReadiness.blockReasonCopy 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 · Ctx.predicate (cyclomatic 20) · ×1
  • Ctx.predicate (cyclomatic 20) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/ProductIrParser.kt:449 — Ctx.predicate 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 · Ctx.crossChecks (cyclomatic 20) · ×1
  • Ctx.crossChecks (cyclomatic 20) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/ProductIrParser.kt:551 — Ctx.crossChecks 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 · auto-update-armed-prs.decide (cyclomatic 20) · ×1
  • auto-update-armed-prs.decide (cyclomatic 20) .github/scripts/auto-update-armed-prs.py:115 — auto-update-armed-prs.decide has cyclomatic complexity 20 (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 · check-ai-act-high-risk-inventory.main (cyclomatic 20) · ×1
  • check-ai-act-high-risk-inventory.main (cyclomatic 20) .github/scripts/check-ai-act-high-risk-inventory.py:242 — check-ai-act-high-risk-inventory.main 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 · check-argocd-sync-integrity.evaluate (cyclomatic 20) · ×1
  • check-argocd-sync-integrity.evaluate (cyclomatic 20) .github/scripts/check-argocd-sync-integrity.py:111 — check-argocd-sync-integrity.evaluate has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-asvs-l3.main (cyclomatic 20) · ×1
  • check-asvs-l3.main (cyclomatic 20) .github/scripts/check-asvs-l3.py:219 — check-asvs-l3.main 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 · check-critical-alert-egress.critical_rules_with_volatile_summary (cyclomatic 20) · ×1
  • check-critical-alert-egress.critical_rules_with_volatile_summary (cyclomatic 20) .github/scripts/check-critical-alert-egress.py:170 — check-critical-alert-egress.critical_rules_with_volatile_summary 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 · check-deploy-holds.constraints (cyclomatic 20) · ×1
  • check-deploy-holds.constraints (cyclomatic 20) .github/scripts/check-deploy-holds.py:78 — check-deploy-holds.constraints 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 · check-dockerfile-no-build-stage.check_dependabot_fleet_group (cyclomatic 20) · ×1
  • check-dockerfile-no-build-stage.check_dependabot_fleet_group (cyclomatic 20) .github/scripts/check-dockerfile-no-build-stage.py:183 — check-dockerfile-no-build-stage.check_dependabot_fleet_group 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 · check-domain-purity.strip_kotlin_noise (cyclomatic 20) · ×1
  • check-domain-purity.strip_kotlin_noise (cyclomatic 20) .github/scripts/check-domain-purity.py:127 — check-domain-purity.strip_kotlin_noise 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 · check-event-contract-code-agreement.parse_outbox_literals (cyclomatic 20) · ×1
  • check-event-contract-code-agreement.parse_outbox_literals (cyclomatic 20) .github/scripts/check-event-contract-code-agreement.py:463 — check-event-contract-code-agreement.parse_outbox_literals 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 · check-libs-annotations-implemented.self_test (cyclomatic 20) · ×1
  • check-libs-annotations-implemented.self_test (cyclomatic 20) .github/scripts/check-libs-annotations-implemented.py:340 — check-libs-annotations-implemented.self_test has cyclomatic complexity 20 (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 · check-loki-rule-self-match.selector_excludes_loki (cyclomatic 20) · ×1
  • check-loki-rule-self-match.selector_excludes_loki (cyclomatic 20) .github/scripts/check-loki-rule-self-match.py:71 — check-loki-rule-self-match.selector_excludes_loki 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 · check-openapi-route-conformance.code_routes (cyclomatic 20) · ×1
  • check-openapi-route-conformance.code_routes (cyclomatic 20) .github/scripts/check-openapi-route-conformance.py:176 — check-openapi-route-conformance.code_routes 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 · check-recorded-source-manifests.prove (cyclomatic 20) · ×1
  • check-recorded-source-manifests.prove (cyclomatic 20) .github/scripts/check-recorded-source-manifests.py:267 — check-recorded-source-manifests.prove 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 · check-stale-comment-references.c_comments (cyclomatic 20) · ×1
  • check-stale-comment-references.c_comments (cyclomatic 20) .github/scripts/check-stale-comment-references.py:161 — check-stale-comment-references.c_comments 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 · check-vex-overlay-coverage.self_test (cyclomatic 20) · ×1
  • check-vex-overlay-coverage.self_test (cyclomatic 20) .github/scripts/check-vex-overlay-coverage.py:220 — check-vex-overlay-coverage.self_test 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 · dependency_snapshot.generate (cyclomatic 20) · ×1
  • dependency_snapshot.generate (cyclomatic 20) .github/scripts/dependency_snapshot.py:167 — dependency_snapshot.generate has cyclomatic complexity 20 (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 · pact-reconcile-deployed-records.main (cyclomatic 20) · ×1
  • pact-reconcile-deployed-records.main (cyclomatic 20) .github/scripts/pact-reconcile-deployed-records.py:166 — pact-reconcile-deployed-records.main 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 · runtime-conformance.collect (cyclomatic 20) · ×1
  • runtime-conformance.collect (cyclomatic 20) .github/scripts/runtime-conformance.py:540 — runtime-conformance.collect 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 · runtime_resource_inputs.main (cyclomatic 20) · ×1
  • runtime_resource_inputs.main (cyclomatic 20) .github/scripts/runtime_resource_inputs.py:296 — runtime_resource_inputs.main 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 · verify-dependabot-auto-merge.verify (cyclomatic 20) · ×1
  • verify-dependabot-auto-merge.verify (cyclomatic 20) .github/scripts/verify-dependabot-auto-merge.py:75 — verify-dependabot-auto-merge.verify has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-finops-tiers.main (cyclomatic 20) · ×1
  • check-finops-tiers.main (cyclomatic 20) openbank-infra/scripts/check-finops-tiers.py:358 — check-finops-tiers.main 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 · generate-service-runbooks.self_test (cyclomatic 20) · ×1
  • generate-service-runbooks.self_test (cyclomatic 20) openbank-infra/scripts/generate-service-runbooks.py:706 — generate-service-runbooks.self_test 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 · continuityModel.parseBcpPolicy (cyclomatic 20) · ×1
  • continuityModel.parseBcpPolicy (cyclomatic 20) openbank-admin-ui/src/lib/bcp/continuityModel.ts:26 — continuityModel.parseBcpPolicy 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 · page.AccountsPage · ×1
  • page.AccountsPage::search (cyclomatic 20) openbank-admin-ui/src/app/accounts/page.tsx:92 — page.AccountsPage::search has cyclomatic complexity 20 (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. This shape REPEATS in the file: one other method here (page.AccountsPage) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · route.GET (cyclomatic 20) · ×1
  • route.GET (cyclomatic 20) openbank-admin-ui/src/app/api/finops/right-sizing/route.ts:93 — route.GET has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 188, 162, 221). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · page.SnapshotLiquidityForecast (cyclomatic 20) · ×1
  • page.SnapshotLiquidityForecast (cyclomatic 20) openbank-admin-ui/src/app/balance-sheet/snapshots/[id]/liquidity-forecast/page.tsx:51 — page.SnapshotLiquidityForecast has cyclomatic complexity 20 (threshold 15). Of this number, 10 points are the body's own statements and 10 belong to 4 function literals inside it that branch. 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 · page.CardDisputesPage (cyclomatic 20) · ×1
  • page.CardDisputesPage (cyclomatic 20) openbank-admin-ui/src/app/cards/disputes/page.tsx:51 — page.CardDisputesPage has cyclomatic complexity 20 (threshold 15). Of this number, 15 points are the body's own statements and 5 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.DecisionForm (cyclomatic 20) · ×1
  • page.DecisionForm (cyclomatic 20) openbank-admin-ui/src/app/identity-cases/page.tsx:68 — page.DecisionForm has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 8 of the 20 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 95, a function literal at line 133, a function literal at line 257, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · page.PidPage · ×1
  • page.PidPage::handleSubmit (cyclomatic 20) openbank-admin-ui/src/app/pid/page.tsx:143 — page.PidPage::handleSubmit 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. This shape REPEATS in the file: one other method here (page.PidPage) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · NotificationsPage.OperatorMessageApprovals (cyclomatic 20) · ×1
  • NotificationsPage.OperatorMessageApprovals (cyclomatic 20) openbank-admin-ui/src/components/notifications/NotificationsPage.tsx:355 — NotificationsPage.OperatorMessageApprovals has cyclomatic complexity 20 (threshold 15). Of this number, 14 points are the body's own statements and 6 belong to 4 function items inside it that branch. 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. This is NOT this file's highest cyclomatic complexity: NotificationsPage.isNotificationPage (cyclomatic 27) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · catalogScopes.extractCatalogScopeRoles (cyclomatic 20) · ×1
  • catalogScopes.extractCatalogScopeRoles (cyclomatic 20) openbank-admin-ui/src/lib/auth/catalogScopes.ts:25 — catalogScopes.extractCatalogScopeRoles has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · overlay.buildEvidenceMeta (cyclomatic 20) · ×1
  • overlay.buildEvidenceMeta (cyclomatic 20) openbank-admin-ui/src/lib/evidence/overlay.ts:106 — overlay.buildEvidenceMeta has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body's own statements and 4 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · allocation.allocate (cyclomatic 20) · ×1
  • allocation.allocate (cyclomatic 20) openbank-admin-ui/src/lib/finops/allocation.ts:142 — allocation.allocate has cyclomatic complexity 20 (threshold 15). Of this number, 14 points are the body's own statements and 6 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · lineage-evidence.parseService (cyclomatic 20) · ×1
  • lineage-evidence.parseService (cyclomatic 20) openbank-admin-ui/src/lib/governance/lineage-evidence.ts:60 — lineage-evidence.parseService 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 · service-map-evidence.parseMapGovernance (cyclomatic 20) · ×1
  • service-map-evidence.parseMapGovernance (cyclomatic 20) openbank-admin-ui/src/lib/governance/service-map-evidence.ts:52 — service-map-evidence.parseMapGovernance has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · clientContract.parseReportResult (cyclomatic 20) · ×1
  • clientContract.parseReportResult (cyclomatic 20) openbank-admin-ui/src/lib/reporting/clientContract.ts:39 — clientContract.parseReportResult has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · SecurityScannerService.scanService (cyclomatic 19) · ×1
  • SecurityScannerService.scanService (cyclomatic 19) openbank-security-scanner/src/main/kotlin/com/openbank/securityscanner/application/SecurityScannerService.kt:57 — SecurityScannerService.scanService 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 · Reader.string (cyclomatic 19) · ×1
  • Reader.string (cyclomatic 19) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/IrJson.kt:131 — Reader.string 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 · EgressPolicy.checkUrl (cyclomatic 19) · ×1
  • EgressPolicy.checkUrl (cyclomatic 19) openbank-libs-domain/src/main/kotlin/com/openbank/libs/security/EgressPolicy.kt:42 — EgressPolicy.checkUrl has cyclomatic complexity 19 (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 · check-deploy-source-freshness.verify (cyclomatic 19) · ×1
  • check-deploy-source-freshness.verify (cyclomatic 19) .github/scripts/check-deploy-source-freshness.py:33 — check-deploy-source-freshness.verify has cyclomatic complexity 19 (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 · check-enum-reference-data.enum_entries (cyclomatic 19) · ×1
  • check-enum-reference-data.enum_entries (cyclomatic 19) .github/scripts/check-enum-reference-data.py:101 — check-enum-reference-data.enum_entries 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 · check-gate-invocation-reachability.findings (cyclomatic 19) · ×1
  • check-gate-invocation-reachability.findings (cyclomatic 19) .github/scripts/check-gate-invocation-reachability.py:88 — check-gate-invocation-reachability.findings 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 · check-helm-values-keys.check_fleet (cyclomatic 19) · ×1
  • check-helm-values-keys.check_fleet (cyclomatic 19) .github/scripts/check-helm-values-keys.py:280 — check-helm-values-keys.check_fleet 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 · check-libs-core-purity.self_test (cyclomatic 19) · ×1
  • check-libs-core-purity.self_test (cyclomatic 19) .github/scripts/check-libs-core-purity.py:119 — check-libs-core-purity.self_test has cyclomatic complexity 19 (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 · check-loki-rules.load_into_ruler (cyclomatic 19) · ×1
  • check-loki-rules.load_into_ruler (cyclomatic 19) .github/scripts/check-loki-rules.py:160 — check-loki-rules.load_into_ruler 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 · check-manifest-secret-literals.check_document (cyclomatic 19) · ×1
  • check-manifest-secret-literals.check_document (cyclomatic 19) .github/scripts/check-manifest-secret-literals.py:37 — check-manifest-secret-literals.check_document 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 · check-money-path-pact-coverage.audit (cyclomatic 19) · ×1
  • check-money-path-pact-coverage.audit (cyclomatic 19) .github/scripts/check-money-path-pact-coverage.py:79 — check-money-path-pact-coverage.audit 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 · check-mtls-bearer-only.overriding_permissions (cyclomatic 19) · ×1
  • check-mtls-bearer-only.overriding_permissions (cyclomatic 19) .github/scripts/check-mtls-bearer-only.py:163 — check-mtls-bearer-only.overriding_permissions 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 · check-oidc-client-secret-wiring.oidc_env_refs (cyclomatic 19) · ×1
  • check-oidc-client-secret-wiring.oidc_env_refs (cyclomatic 19) .github/scripts/check-oidc-client-secret-wiring.py:161 — check-oidc-client-secret-wiring.oidc_env_refs 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 · check-recorded-source-manifests.classify (cyclomatic 19) · ×1
  • check-recorded-source-manifests.classify (cyclomatic 19) .github/scripts/check-recorded-source-manifests.py:232 — check-recorded-source-manifests.classify 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 · check-security-checklist.run_carrier (cyclomatic 19) · ×1
  • check-security-checklist.run_carrier (cyclomatic 19) .github/scripts/check-security-checklist.py:828 — check-security-checklist.run_carrier 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 · ci-latency-report.fetch_live (cyclomatic 19) · ×1
  • ci-latency-report.fetch_live (cyclomatic 19) .github/scripts/ci-latency-report.py:171 — ci-latency-report.fetch_live 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 · deploy-window-mutate.selected_pr (cyclomatic 19) · ×1
  • deploy-window-mutate.selected_pr (cyclomatic 19) .github/scripts/deploy-window-mutate.py:56 — deploy-window-mutate.selected_pr has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · deploy-window.flush_candidates (cyclomatic 19) · ×1
  • deploy-window.flush_candidates (cyclomatic 19) .github/scripts/deploy-window.py:99 — deploy-window.flush_candidates 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 · GitHub.extra_checks (cyclomatic 19) · ×1
  • GitHub.extra_checks (cyclomatic 19) .github/scripts/merge-train.py:1838 — GitHub.extra_checks 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 · merge-train.api (cyclomatic 19) · ×1
  • merge-train.api (cyclomatic 19) .github/scripts/merge-train.py:1608 — merge-train.api 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 · merge-train.close_linked_issues (cyclomatic 19) · ×1
  • merge-train.close_linked_issues (cyclomatic 19) .github/scripts/merge-train.py:1747 — merge-train.close_linked_issues 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 · merge-train.fix_head_state (cyclomatic 19) · ×1
  • merge-train.fix_head_state (cyclomatic 19) .github/scripts/merge-train.py:3350 — merge-train.fix_head_state has cyclomatic complexity 19 (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 · runtime_resource_inputs._root_aliases (cyclomatic 19) · ×1
  • runtime_resource_inputs._root_aliases (cyclomatic 19) .github/scripts/runtime_resource_inputs.py:92 — runtime_resource_inputs._root_aliases 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 · security-kpis.self_test (cyclomatic 19) · ×1
  • security-kpis.self_test (cyclomatic 19) .github/scripts/security-kpis.py:299 — security-kpis.self_test has cyclomatic complexity 19 (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 · select-performance-evidence.main (cyclomatic 19) · ×1
  • select-performance-evidence.main (cyclomatic 19) .github/scripts/select-performance-evidence.py:457 — select-performance-evidence.main 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 · route.POST (cyclomatic 19) · ×1
  • route.POST (cyclomatic 19) openbank-admin-ui/src/app/api/delegations/check/route.ts:36 — route.POST has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.CommunicationApprovalsPage (cyclomatic 19) · ×1
  • page.CommunicationApprovalsPage (cyclomatic 19) openbank-admin-ui/src/app/approvals/communication/page.tsx:36 — page.CommunicationApprovalsPage has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body's own statements and 7 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.FraudPage (cyclomatic 19) · ×1
  • page.FraudPage (cyclomatic 19) openbank-admin-ui/src/app/fraud/page.tsx:25 — page.FraudPage has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body's own statements and 4 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.IdentityDecisionReviewDialog (cyclomatic 19) · ×1
  • page.IdentityDecisionReviewDialog (cyclomatic 19) openbank-admin-ui/src/app/identity-cases/page.tsx:266 — page.IdentityDecisionReviewDialog has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body's own statements and 4 belong to 3 function literals inside it that branch. 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 · page.PaymentDetailContent · ×1
  • page.PaymentDetailContent::load (cyclomatic 19) openbank-admin-ui/src/app/payments/[id]/page.tsx:66 — page.PaymentDetailContent::load 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. This shape REPEATS in the file: one other method here (page.PaymentDetailContent) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · page.Holdings (cyclomatic 19) · ×1
  • page.Holdings (cyclomatic 19) openbank-admin-ui/src/app/pension/holdings/page.tsx:32 — page.Holdings has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body's own statements and 7 belong to 3 function items inside it that branch. 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 · CampaignLaunchReadiness.CampaignLaunchReadiness (cyclomatic 19) · ×1
  • CampaignLaunchReadiness.CampaignLaunchReadiness (cyclomatic 19) openbank-admin-ui/src/components/campaigns/CampaignLaunchReadiness.tsx:36 — CampaignLaunchReadiness.CampaignLaunchReadiness has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body's own statements and 4 belong to 3 function items inside it that branch. 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 · GateCatalogExplorer.GateCatalogExplorer (cyclomatic 19) · ×1
  • GateCatalogExplorer.GateCatalogExplorer (cyclomatic 19) openbank-admin-ui/src/components/devops/GateCatalogExplorer.tsx:25 — GateCatalogExplorer.GateCatalogExplorer has cyclomatic complexity 19 (threshold 15). Of this number, 11 points are the body's own statements and 8 belong to 4 function literals inside it that branch. 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 · ProcessView.ProcessView (cyclomatic 19) · ×1
  • ProcessView.ProcessView (cyclomatic 19) openbank-admin-ui/src/components/docs/ProcessView.tsx:40 — ProcessView.ProcessView has cyclomatic complexity 19 (threshold 15). Of this number, 10 points are the body's own statements and 9 belong to 4 function literals inside it that branch. 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 · incidentImpact.parseIncidentImpact (cyclomatic 19) · ×1
  • incidentImpact.parseIncidentImpact (cyclomatic 19) openbank-admin-ui/src/lib/context/incidentImpact.ts:11 — incidentImpact.parseIncidentImpact has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · clientContract.parseDashboardHealth (cyclomatic 19) · ×1
  • clientContract.parseDashboardHealth (cyclomatic 19) openbank-admin-ui/src/lib/dashboard/clientContract.ts:63 — clientContract.parseDashboardHealth has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 66). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · auditTimeline.projectEntry (cyclomatic 19) · ×1
  • auditTimeline.projectEntry (cyclomatic 19) openbank-admin-ui/src/lib/delegations/auditTimeline.ts:118 — auditTimeline.projectEntry 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 · tempo-evidence.parseTempoTrace (cyclomatic 19) · ×1
  • tempo-evidence.parseTempoTrace (cyclomatic 19) openbank-admin-ui/src/lib/observability/tempo-evidence.ts:80 — tempo-evidence.parseTempoTrace 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 · auto-update-armed-prs.observe_update (cyclomatic 18) · ×1
  • auto-update-armed-prs.observe_update (cyclomatic 18) .github/scripts/auto-update-armed-prs.py:864 — auto-update-armed-prs.observe_update 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 · check-admin-ui-evidence-plan.validate_plan (cyclomatic 18) · ×1
  • check-admin-ui-evidence-plan.validate_plan (cyclomatic 18) .github/scripts/check-admin-ui-evidence-plan.py:18 — check-admin-ui-evidence-plan.validate_plan 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 · check-audit-money-path-subscription.audit_read_acl_topics (cyclomatic 18) · ×1
  • check-audit-money-path-subscription.audit_read_acl_topics (cyclomatic 18) .github/scripts/check-audit-money-path-subscription.py:226 — check-audit-money-path-subscription.audit_read_acl_topics 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 · check-cnpg-update-resilience.scan (cyclomatic 18) · ×1
  • check-cnpg-update-resilience.scan (cyclomatic 18) .github/scripts/check-cnpg-update-resilience.py:144 — check-cnpg-update-resilience.scan 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 · check-default-nodepool-budget.check_text (cyclomatic 18) · ×1
  • check-default-nodepool-budget.check_text (cyclomatic 18) .github/scripts/check-default-nodepool-budget.py:100 — check-default-nodepool-budget.check_text 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 · check-event-schema-compat.compare_json_schema (cyclomatic 18) · ×1
  • check-event-schema-compat.compare_json_schema (cyclomatic 18) .github/scripts/check-event-schema-compat.py:296 — check-event-schema-compat.compare_json_schema 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 · check-gh-repo-context.check_workflow (cyclomatic 18) · ×1
  • check-gh-repo-context.check_workflow (cyclomatic 18) .github/scripts/check-gh-repo-context.py:104 — check-gh-repo-context.check_workflow 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 · check-main-red-watch.classify_run (cyclomatic 18) · ×1
  • check-main-red-watch.classify_run (cyclomatic 18) .github/scripts/check-main-red-watch.py:373 — check-main-red-watch.classify_run 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 · check-msg-channel-image-parity.prefetch_full_shas (cyclomatic 18) · ×1
  • check-msg-channel-image-parity.prefetch_full_shas (cyclomatic 18) .github/scripts/check-msg-channel-image-parity.py:234 — check-msg-channel-image-parity.prefetch_full_shas has cyclomatic complexity 18 (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 · check-no-runblocking-in-scheduled.main (cyclomatic 18) · ×1
  • check-no-runblocking-in-scheduled.main (cyclomatic 18) .github/scripts/check-no-runblocking-in-scheduled.py:330 — check-no-runblocking-in-scheduled.main 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 · check-readiness-attestations._self_test (cyclomatic 18) · ×1
  • check-readiness-attestations._self_test (cyclomatic 18) .github/scripts/check-readiness-attestations.py:566 — check-readiness-attestations._self_test 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 · check-recorded-source-manifests.fetch_tree (cyclomatic 18) · ×1
  • check-recorded-source-manifests.fetch_tree (cyclomatic 18) .github/scripts/check-recorded-source-manifests.py:134 — check-recorded-source-manifests.fetch_tree 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 · check-remote-build-cache-write-scope.scan (cyclomatic 18) · ×1
  • check-remote-build-cache-write-scope.scan (cyclomatic 18) .github/scripts/check-remote-build-cache-write-scope.py:78 — check-remote-build-cache-write-scope.scan 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 · check-single-replica-rollout-strategy.main (cyclomatic 18) · ×1
  • check-single-replica-rollout-strategy.main (cyclomatic 18) .github/scripts/check-single-replica-rollout-strategy.py:288 — check-single-replica-rollout-strategy.main 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 · check-stateful-not-on-spot.kyverno (cyclomatic 18) · ×1
  • check-stateful-not-on-spot.kyverno (cyclomatic 18) .github/scripts/check-stateful-not-on-spot.py:385 — check-stateful-not-on-spot.kyverno has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-synthetic-customer-identity.check_realm (cyclomatic 18) · ×1
  • check-synthetic-customer-identity.check_realm (cyclomatic 18) .github/scripts/check-synthetic-customer-identity.py:90 — check-synthetic-customer-identity.check_realm 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 · check_library_quality_evidence.quota_delay (cyclomatic 18) · ×1
  • check_library_quality_evidence.quota_delay (cyclomatic 18) .github/scripts/check_library_quality_evidence.py:113 — check_library_quality_evidence.quota_delay 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 · check_library_quality_evidence.require_proofs (cyclomatic 18) · ×1
  • check_library_quality_evidence.require_proofs (cyclomatic 18) .github/scripts/check_library_quality_evidence.py:183 — check_library_quality_evidence.require_proofs 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 · gen-agents-opa-data._matrix (cyclomatic 18) · ×1
  • gen-agents-opa-data._matrix (cyclomatic 18) .github/scripts/gen-agents-opa-data.py:336 — gen-agents-opa-data._matrix 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 · gen-agents-opa-data.self_test (cyclomatic 18) · ×1
  • gen-agents-opa-data.self_test (cyclomatic 18) .github/scripts/gen-agents-opa-data.py:455 — gen-agents-opa-data.self_test 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 · merge-train.strict_lane_state (cyclomatic 18) · ×1
  • merge-train.strict_lane_state (cyclomatic 18) .github/scripts/merge-train.py:783 — merge-train.strict_lane_state 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 · record-rerun-flake.main (cyclomatic 18) · ×1
  • record-rerun-flake.main (cyclomatic 18) .github/scripts/record-rerun-flake.py:377 — record-rerun-flake.main 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 · record-rerun-flake.self_test (cyclomatic 18) · ×1
  • record-rerun-flake.self_test (cyclomatic 18) .github/scripts/record-rerun-flake.py:467 — record-rerun-flake.self_test has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · validate-flags.main (cyclomatic 18) · ×1
  • validate-flags.main (cyclomatic 18) .github/scripts/validate-flags.py:329 — validate-flags.main 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 · check-db-backup-prefix-scope.check (cyclomatic 18) · ×1
  • check-db-backup-prefix-scope.check (cyclomatic 18) openbank-infra/scripts/check-db-backup-prefix-scope.py:122 — check-db-backup-prefix-scope.check 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 · m2m-shared-client-denylist.enforce_map (cyclomatic 18) · ×1
  • m2m-shared-client-denylist.enforce_map (cyclomatic 18) openbank-infra/scripts/m2m-shared-client-denylist.py:309 — m2m-shared-client-denylist.enforce_map 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 · collect-repository-documentation.collectRepositoryDocumentation (cyclomatic 18) · ×1
  • collect-repository-documentation.collectRepositoryDocumentation (cyclomatic 18) openbank-admin-ui/scripts/collect-repository-documentation.mjs:20 — collect-repository-documentation.collectRepositoryDocumentation 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 · generate-product-catalog-v2-types.typeOf (cyclomatic 18) · ×1
  • generate-product-catalog-v2-types.typeOf (cyclomatic 18) openbank-admin-ui/scripts/generate-product-catalog-v2-types.mjs:36 — generate-product-catalog-v2-types.typeOf has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body's own statements and 1 belongs to one function literal inside it that branches. 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 · route.GET (cyclomatic 18) · ×1
  • route.GET (cyclomatic 18) openbank-admin-ui/src/app/api/temporal/status/route.ts:67 — route.GET has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body's own statements and 1 belongs to one function literal inside it that branches. 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 · page.ClientIncentives (cyclomatic 18) · ×1
  • page.ClientIncentives (cyclomatic 18) openbank-admin-ui/src/app/pension/incentives/page.tsx:267 — page.ClientIncentives has cyclomatic complexity 18 (threshold 15). Of this number, 12 points are the body's own statements and 6 belong to 4 function items inside it that branch. 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 · page.AggregateRow (cyclomatic 18) · ×1
  • page.AggregateRow (cyclomatic 18) openbank-admin-ui/src/app/system/inventory/page.tsx:396 — page.AggregateRow has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body's own statements and 1 belongs to one function literal inside it that branches. 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 · page.DailyPosition (cyclomatic 18) · ×1
  • page.DailyPosition (cyclomatic 18) openbank-admin-ui/src/app/treasury/positions/page.tsx:30 — page.DailyPosition has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body's own statements and 4 belong to 3 function literals inside it that branch. 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 · CardLimitsPanel.CardLimitsPanel (cyclomatic 18) · ×1
  • CardLimitsPanel.CardLimitsPanel (cyclomatic 18) openbank-admin-ui/src/components/cards/CardLimitsPanel.tsx:24 — CardLimitsPanel.CardLimitsPanel has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body's own statements and 4 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · DayCloseParticipantsPanel.parseDayCloseCompleteness (cyclomatic 18) · ×1
  • DayCloseParticipantsPanel.parseDayCloseCompleteness (cyclomatic 18) openbank-admin-ui/src/components/closings/DayCloseParticipantsPanel.tsx:43 — DayCloseParticipantsPanel.parseDayCloseCompleteness 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 · SanctionsListChangeDialog.SanctionsListChangeDialog (cyclomatic 18) · ×1
  • SanctionsListChangeDialog.SanctionsListChangeDialog (cyclomatic 18) openbank-admin-ui/src/components/sanctions/SanctionsListChangeDialog.tsx:26 — SanctionsListChangeDialog.SanctionsListChangeDialog has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body's own statements and 3 belong to 2 function literals inside it that branch. 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 · SettlementStatusPanel.SettlementStatusPanel (cyclomatic 18) · ×1
  • SettlementStatusPanel.SettlementStatusPanel (cyclomatic 18) openbank-admin-ui/src/components/settlement/SettlementStatusPanel.tsx:20 — SettlementStatusPanel.SettlementStatusPanel has cyclomatic complexity 18 (threshold 15). Of this number, 9 points are the body's own statements and 9 belong to one function literal inside it that branches. 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 · evidence.parseCustomer360Evidence (cyclomatic 18) · ×1
  • evidence.parseCustomer360Evidence (cyclomatic 18) openbank-admin-ui/src/lib/customer360/evidence.ts:32 — evidence.parseCustomer360Evidence 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 · docs.parseAdr (cyclomatic 18) · ×1
  • docs.parseAdr (cyclomatic 18) openbank-admin-ui/src/lib/governance/docs.ts:115 — docs.parseAdr 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 · tempo-evidence.parseTempoSearch (cyclomatic 18) · ×1
  • tempo-evidence.parseTempoSearch (cyclomatic 18) openbank-admin-ui/src/lib/observability/tempo-evidence.ts:40 — tempo-evidence.parseTempoSearch 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 · proxy.default (cyclomatic 18) · ×1
  • proxy.default (cyclomatic 18) openbank-admin-ui/src/proxy.ts:41 — proxy.default has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · renderHistory (cyclomatic 18) · ×1
  • renderHistory (cyclomatic 18) openbank-infra/web/status/app.js:71 — renderHistory 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 · check-catalog-kernel-neutral.self_test (cyclomatic 17) · ×1
  • check-catalog-kernel-neutral.self_test (cyclomatic 17) .github/scripts/check-catalog-kernel-neutral.py:268 — check-catalog-kernel-neutral.self_test 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 · check-dockerfile-no-build-stage.main (cyclomatic 17) · ×1
  • check-dockerfile-no-build-stage.main (cyclomatic 17) .github/scripts/check-dockerfile-no-build-stage.py:408 — check-dockerfile-no-build-stage.main 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 · check-event-consumer-liveness.main (cyclomatic 17) · ×1
  • check-event-consumer-liveness.main (cyclomatic 17) .github/scripts/check-event-consumer-liveness.py:351 — check-event-consumer-liveness.main has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D1 · Cyclomatic Complexity · check-flyway-version-commit-order.first_commit_order (cyclomatic 17) · ×1
  • check-flyway-version-commit-order.first_commit_order (cyclomatic 17) .github/scripts/check-flyway-version-commit-order.py:144 — check-flyway-version-commit-order.first_commit_order 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 · check-gate-script-registration.coverage (cyclomatic 17) · ×1
  • check-gate-script-registration.coverage (cyclomatic 17) .github/scripts/check-gate-script-registration.py:136 — check-gate-script-registration.coverage 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 · check-gitops-secret-refs.declarations (cyclomatic 17) · ×1
  • check-gitops-secret-refs.declarations (cyclomatic 17) .github/scripts/check-gitops-secret-refs.py:110 — check-gitops-secret-refs.declarations has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-gradle-user-home-isolation.check_workflow (cyclomatic 17) · ×1
  • check-gradle-user-home-isolation.check_workflow (cyclomatic 17) .github/scripts/check-gradle-user-home-isolation.py:114 — check-gradle-user-home-isolation.check_workflow 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 · check-kafka-acl-coverage.kafka_users (cyclomatic 17) · ×1
  • check-kafka-acl-coverage.kafka_users (cyclomatic 17) .github/scripts/check-kafka-acl-coverage.py:134 — check-kafka-acl-coverage.kafka_users 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 · check-kafka-deployment-wiring.main (cyclomatic 17) · ×1
  • check-kafka-deployment-wiring.main (cyclomatic 17) .github/scripts/check-kafka-deployment-wiring.py:128 — check-kafka-deployment-wiring.main 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 · check-main-red-watch.check_declaration (cyclomatic 17) · ×1
  • check-main-red-watch.check_declaration (cyclomatic 17) .github/scripts/check-main-red-watch.py:201 — check-main-red-watch.check_declaration 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 · check-oidc-tls-verification-profile.self_test (cyclomatic 17) · ×1
  • check-oidc-tls-verification-profile.self_test (cyclomatic 17) .github/scripts/check-oidc-tls-verification-profile.py:202 — check-oidc-tls-verification-profile.self_test 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 · check-otel-exporter-endpoint.audit (cyclomatic 17) · ×1
  • check-otel-exporter-endpoint.audit (cyclomatic 17) .github/scripts/check-otel-exporter-endpoint.py:83 — check-otel-exporter-endpoint.audit 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 · check-pr-file-overlap.fetch_open_prs (cyclomatic 17) · ×1
  • check-pr-file-overlap.fetch_open_prs (cyclomatic 17) .github/scripts/check-pr-file-overlap.py:276 — check-pr-file-overlap.fetch_open_prs 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 · check-product-ir-purity.strip_comments_and_strings (cyclomatic 17) · ×1
  • check-product-ir-purity.strip_comments_and_strings (cyclomatic 17) .github/scripts/check-product-ir-purity.py:52 — check-product-ir-purity.strip_comments_and_strings 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 · check-product-ir-version-lifecycle.run (cyclomatic 17) · ×1
  • check-product-ir-version-lifecycle.run (cyclomatic 17) .github/scripts/check-product-ir-version-lifecycle.py:101 — check-product-ir-version-lifecycle.run 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 · check-realm-import-parity.main (cyclomatic 17) · ×1
  • check-realm-import-parity.main (cyclomatic 17) .github/scripts/check-realm-import-parity.py:180 — check-realm-import-parity.main has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D1 · Cyclomatic Complexity · check-realm-role-parity.main (cyclomatic 17) · ×1
  • check-realm-role-parity.main (cyclomatic 17) .github/scripts/check-realm-role-parity.py:156 — check-realm-role-parity.main 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 · check-release-evidence-coverage.verify_released_assets (cyclomatic 17) · ×1
  • check-release-evidence-coverage.verify_released_assets (cyclomatic 17) .github/scripts/check-release-evidence-coverage.py:195 — check-release-evidence-coverage.verify_released_assets 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 · check-ruleset-context-parity._matrix_combos (cyclomatic 17) · ×1
  • check-ruleset-context-parity._matrix_combos (cyclomatic 17) .github/scripts/check-ruleset-context-parity.py:244 — check-ruleset-context-parity._matrix_combos 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 · check-security-checklist.identify (cyclomatic 17) · ×1
  • check-security-checklist.identify (cyclomatic 17) .github/scripts/check-security-checklist.py:790 — check-security-checklist.identify 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 · check-source-service-convention.scan (cyclomatic 17) · ×1
  • check-source-service-convention.scan (cyclomatic 17) .github/scripts/check-source-service-convention.py:295 — check-source-service-convention.scan 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 · check-synthetic-customer-identity.self_test (cyclomatic 17) · ×1
  • check-synthetic-customer-identity.self_test (cyclomatic 17) .github/scripts/check-synthetic-customer-identity.py:220 — check-synthetic-customer-identity.self_test 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 · check-threat-model-claims.audit_models (cyclomatic 17) · ×1
  • check-threat-model-claims.audit_models (cyclomatic 17) .github/scripts/check-threat-model-claims.py:969 — check-threat-model-claims.audit_models 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 · check-upstream-unblock.main (cyclomatic 17) · ×1
  • check-upstream-unblock.main (cyclomatic 17) .github/scripts/check-upstream-unblock.py:260 — check-upstream-unblock.main 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 · check-verification-metadata-complete.main (cyclomatic 17) · ×1
  • check-verification-metadata-complete.main (cyclomatic 17) .github/scripts/check-verification-metadata-complete.py:341 — check-verification-metadata-complete.main 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 · check-vex-fleet-scope.evaluate (cyclomatic 17) · ×1
  • check-vex-fleet-scope.evaluate (cyclomatic 17) .github/scripts/check-vex-fleet-scope.py:87 — check-vex-fleet-scope.evaluate 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 · check-workflow-gh-token.scan_workflow (cyclomatic 17) · ×1
  • check-workflow-gh-token.scan_workflow (cyclomatic 17) .github/scripts/check-workflow-gh-token.py:60 — check-workflow-gh-token.scan_workflow 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 · derive-gate-observability-budgets.main (cyclomatic 17) · ×1
  • derive-gate-observability-budgets.main (cyclomatic 17) .github/scripts/derive-gate-observability-budgets.py:92 — derive-gate-observability-budgets.main 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 · infracost-scope.cost_scope (cyclomatic 17) · ×1
  • infracost-scope.cost_scope (cyclomatic 17) .github/scripts/infracost-scope.py:31 — infracost-scope.cost_scope 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 · pact-reconcile-verifications.admit_provider (cyclomatic 17) · ×1
  • pact-reconcile-verifications.admit_provider (cyclomatic 17) .github/scripts/pact-reconcile-verifications.py:407 — pact-reconcile-verifications.admit_provider 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 · service-build-artifact.restore (cyclomatic 17) · ×1
  • service-build-artifact.restore (cyclomatic 17) .github/scripts/service-build-artifact.py:193 — service-build-artifact.restore 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 · vex-inventory.main (cyclomatic 17) · ×1
  • vex-inventory.main (cyclomatic 17) .github/scripts/vex-inventory.py:43 — vex-inventory.main 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 · check-threat-models.main (cyclomatic 17) · ×1
  • check-threat-models.main (cyclomatic 17) openbank-infra/scripts/check-threat-models.py:259 — check-threat-models.main 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 · gitops_facts._has_management_port (cyclomatic 17) · ×1
  • gitops_facts._has_management_port (cyclomatic 17) openbank-infra/scripts/gitops_facts.py:296 — gitops_facts._has_management_port 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 · request-send-trace.createRequestSendTrace (cyclomatic 17) · ×1
  • request-send-trace.createRequestSendTrace (cyclomatic 17) openbank-admin-ui/scripts/request-send-trace.mjs:26 — request-send-trace.createRequestSendTrace has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 50, 110, 80, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · generate-events.messagingTopics (cyclomatic 17) · ×1
  • generate-events.messagingTopics (cyclomatic 17) openbank-admin-ui/scripts/generate-events.mjs:55 — generate-events.messagingTopics has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 2 function items inside it that branch (addTopics, a function literal at line 60). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · platform-versions.deriveIac (cyclomatic 17) · ×1
  • platform-versions.deriveIac (cyclomatic 17) openbank-admin-ui/scripts/lib/platform-versions.mjs:206 — platform-versions.deriveIac has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to one function item inside it that branches (visit). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · route.recordShadowCase (cyclomatic 17) · ×1
  • route.recordShadowCase (cyclomatic 17) REDACTED:59 — route.recordShadowCase 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 · route.proxy (cyclomatic 17) · ×1
  • route.proxy (cyclomatic 17) REDACTED:80 — route.proxy 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 · page.CommunicationPersonaPage (cyclomatic 17) · ×1
  • page.CommunicationPersonaPage (cyclomatic 17) openbank-admin-ui/src/app/communication/[personaId]/page.tsx:39 — page.CommunicationPersonaPage has cyclomatic complexity 17 (threshold 15). Of this number, 11 points are the body's own statements and 6 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · page.CloudArchitecturePage (cyclomatic 17) · ×1
  • page.CloudArchitecturePage (cyclomatic 17) openbank-admin-ui/src/app/docs/cloud-architecture/page.tsx:219 — page.CloudArchitecturePage has cyclomatic complexity 17 (threshold 15). Of this number, 10 points are the body's own statements and 7 belong to 5 function literals inside it that branch. 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 · page.MerchantRemovalDialog (cyclomatic 17) · ×1
  • page.MerchantRemovalDialog (cyclomatic 17) openbank-admin-ui/src/app/merchants/page.tsx:645 — page.MerchantRemovalDialog has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 684, 669). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · page.Nostro (cyclomatic 17) · ×1
  • page.Nostro (cyclomatic 17) openbank-admin-ui/src/app/treasury/nostro/page.tsx:41 — page.Nostro has cyclomatic complexity 17 (threshold 15). Of this number, 10 points are the body's own statements and 7 belong to 3 function items inside it that branch. 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 · CampaignAttentionFunnel.CampaignAttentionFunnel (cyclomatic 17) · ×1
  • CampaignAttentionFunnel.CampaignAttentionFunnel (cyclomatic 17) openbank-admin-ui/src/components/campaigns/CampaignAttentionFunnel.tsx:51 — CampaignAttentionFunnel.CampaignAttentionFunnel has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body's own statements and 5 belong to 4 function items inside it that branch. 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 · IncidentImpactInvestigation.IncidentImpactInvestigation (cyclomatic 17) · ×1
  • IncidentImpactInvestigation.IncidentImpactInvestigation (cyclomatic 17) openbank-admin-ui/src/components/context/IncidentImpactInvestigation.tsx:12 — IncidentImpactInvestigation.IncidentImpactInvestigation has cyclomatic complexity 17 (threshold 15). Of this number, 11 points are the body's own statements and 6 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · RemediationReviewDialog.RemediationReviewDialog (cyclomatic 17) · ×1
  • RemediationReviewDialog.RemediationReviewDialog (cyclomatic 17) openbank-admin-ui/src/components/devops/RemediationReviewDialog.tsx:34 — RemediationReviewDialog.RemediationReviewDialog has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body's own statements and 5 belong to 4 function literals inside it that branch. 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 · api.postJson (cyclomatic 17) · ×1
  • api.postJson (cyclomatic 17) openbank-admin-ui/src/components/treasury/api.ts:42 — api.postJson 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 · fatca.fatca (cyclomatic 17) · ×1
  • fatca.fatca (cyclomatic 17) openbank-admin-ui/src/lib/regulatory/generators/fatca.ts:14 — fatca.fatca has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body's own statements and 5 belong to 2 function literals inside it that branch. 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 · sddMandateContract.parseMandate (cyclomatic 17) · ×1
  • sddMandateContract.parseMandate (cyclomatic 17) openbank-admin-ui/src/lib/sdd/sddMandateContract.ts:90 — sddMandateContract.parseMandate 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 · SepaPayment.transitionTo (cyclomatic 16) · ×1
  • SepaPayment.transitionTo (cyclomatic 16) openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/domain/model/SepaPayment.kt:67 — SepaPayment.transitionTo has cyclomatic complexity 16 (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 · SanctionsImportService.importOpenSanctionsCsv (cyclomatic 16) · ×1
  • SanctionsImportService.importOpenSanctionsCsv (cyclomatic 16) REDACTED:375 — SanctionsImportService.importOpenSanctionsCsv 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 · admin-ui-delivery-baseline.fetch_live (cyclomatic 16) · ×1
  • admin-ui-delivery-baseline.fetch_live (cyclomatic 16) .github/scripts/admin-ui-delivery-baseline.py:252 — admin-ui-delivery-baseline.fetch_live 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 · auto-update-armed-prs.plan (cyclomatic 16) · ×1
  • auto-update-armed-prs.plan (cyclomatic 16) .github/scripts/auto-update-armed-prs.py:171 — auto-update-armed-prs.plan 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 · check-advisory-gate-registration.self_test (cyclomatic 16) · ×1
  • check-advisory-gate-registration.self_test (cyclomatic 16) .github/scripts/check-advisory-gate-registration.py:197 — check-advisory-gate-registration.self_test 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 · check-alert-window-vs-subject-period.iter_alert_rules (cyclomatic 16) · ×1
  • check-alert-window-vs-subject-period.iter_alert_rules (cyclomatic 16) .github/scripts/check-alert-window-vs-subject-period.py:257 — check-alert-window-vs-subject-period.iter_alert_rules has cyclomatic complexity 16 (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 · check-asyncapi-doc-discriminator.self_test (cyclomatic 16) · ×1
  • check-asyncapi-doc-discriminator.self_test (cyclomatic 16) .github/scripts/check-asyncapi-doc-discriminator.py:388 — check-asyncapi-doc-discriminator.self_test 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 · check-authz-pdp-parity.strip_kotlin_comments (cyclomatic 16) · ×1
  • check-authz-pdp-parity.strip_kotlin_comments (cyclomatic 16) .github/scripts/check-authz-pdp-parity.py:122 — check-authz-pdp-parity.strip_kotlin_comments 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 · check-clickhouse-ddl-in-configmap.check (cyclomatic 16) · ×1
  • check-clickhouse-ddl-in-configmap.check (cyclomatic 16) .github/scripts/check-clickhouse-ddl-in-configmap.py:133 — check-clickhouse-ddl-in-configmap.check 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 · check-cnpg-scrape-coverage.build (cyclomatic 16) · ×1
  • check-cnpg-scrape-coverage.build (cyclomatic 16) .github/scripts/check-cnpg-scrape-coverage.py:647 — check-cnpg-scrape-coverage.build 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 · check-configproperty-supplied.deployment_env (cyclomatic 16) · ×1
  • check-configproperty-supplied.deployment_env (cyclomatic 16) .github/scripts/check-configproperty-supplied.py:143 — check-configproperty-supplied.deployment_env has cyclomatic complexity 16 (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 · check-extension-bean-config.deployment_env (cyclomatic 16) · ×1
  • check-extension-bean-config.deployment_env (cyclomatic 16) .github/scripts/check-extension-bean-config.py:76 — check-extension-bean-config.deployment_env has cyclomatic complexity 16 (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 · check-honeytoken-wiring.honey_path_workloads (cyclomatic 16) · ×1
  • check-honeytoken-wiring.honey_path_workloads (cyclomatic 16) .github/scripts/check-honeytoken-wiring.py:148 — check-honeytoken-wiring.honey_path_workloads has cyclomatic complexity 16 (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 · check-incoming-dlq-wiring.findings (cyclomatic 16) · ×1
  • check-incoming-dlq-wiring.findings (cyclomatic 16) .github/scripts/check-incoming-dlq-wiring.py:233 — check-incoming-dlq-wiring.findings 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 · check-kafka-acl-coverage.main (cyclomatic 16) · ×1
  • check-kafka-acl-coverage.main (cyclomatic 16) .github/scripts/check-kafka-acl-coverage.py:233 — check-kafka-acl-coverage.main 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 · check-libs-annotations-implemented.check_rule_b (cyclomatic 16) · ×1
  • check-libs-annotations-implemented.check_rule_b (cyclomatic 16) .github/scripts/check-libs-annotations-implemented.py:283 — check-libs-annotations-implemented.check_rule_b 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 · check-matrix-write-grants.self_test (cyclomatic 16) · ×1
  • check-matrix-write-grants.self_test (cyclomatic 16) .github/scripts/check-matrix-write-grants.py:194 — check-matrix-write-grants.self_test 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 · check-mtls-bearer-only.main (cyclomatic 16) · ×1
  • check-mtls-bearer-only.main (cyclomatic 16) .github/scripts/check-mtls-bearer-only.py:444 — check-mtls-bearer-only.main 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 · check-mtls-keeps-http-port.findings_for (cyclomatic 16) · ×1
  • check-mtls-keeps-http-port.findings_for (cyclomatic 16) .github/scripts/check-mtls-keeps-http-port.py:47 — check-mtls-keeps-http-port.findings_for 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 · check-nat-ami-pinned.scan (cyclomatic 16) · ×1
  • check-nat-ami-pinned.scan (cyclomatic 16) .github/scripts/check-nat-ami-pinned.py:159 — check-nat-ami-pinned.scan 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 · check-no-handrolled-cosign.violations (cyclomatic 16) · ×1
  • check-no-handrolled-cosign.violations (cyclomatic 16) .github/scripts/check-no-handrolled-cosign.py:112 — check-no-handrolled-cosign.violations 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 · check-no-runblocking-in-scheduled.scheduled_method_bodies (cyclomatic 16) · ×1
  • check-no-runblocking-in-scheduled.scheduled_method_bodies (cyclomatic 16) .github/scripts/check-no-runblocking-in-scheduled.py:137 — check-no-runblocking-in-scheduled.scheduled_method_bodies 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 · check-oidc-secret-convention.dedicated_clients_in (cyclomatic 16) · ×1
  • check-oidc-secret-convention.dedicated_clients_in (cyclomatic 16) .github/scripts/check-oidc-secret-convention.py:151 — check-oidc-secret-convention.dedicated_clients_in has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-product-ir-formal-properties.run (cyclomatic 16) · ×1
  • check-product-ir-formal-properties.run (cyclomatic 16) .github/scripts/check-product-ir-formal-properties.py:118 — check-product-ir-formal-properties.run 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 · check-prompt-registry.load_manifest (cyclomatic 16) · ×1
  • check-prompt-registry.load_manifest (cyclomatic 16) .github/scripts/check-prompt-registry.py:73 — check-prompt-registry.load_manifest 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 · check-release-evidence-coverage.fetch_release_assets (cyclomatic 16) · ×1
  • check-release-evidence-coverage.fetch_release_assets (cyclomatic 16) .github/scripts/check-release-evidence-coverage.py:162 — check-release-evidence-coverage.fetch_release_assets has cyclomatic complexity 16 (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 · check-scheduler-liveness.main (cyclomatic 16) · ×1
  • check-scheduler-liveness.main (cyclomatic 16) .github/scripts/check-scheduler-liveness.py:145 — check-scheduler-liveness.main 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 · check-service-docs-freshness.missing_updates (cyclomatic 16) · ×1
  • check-service-docs-freshness.missing_updates (cyclomatic 16) .github/scripts/check-service-docs-freshness.py:46 — check-service-docs-freshness.missing_updates has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-single-replica-rollout-strategy.unrealisable_weights (cyclomatic 16) · ×1
  • check-single-replica-rollout-strategy.unrealisable_weights (cyclomatic 16) .github/scripts/check-single-replica-rollout-strategy.py:110 — check-single-replica-rollout-strategy.unrealisable_weights 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 · check-source-service-convention.run (cyclomatic 16) · ×1
  • check-source-service-convention.run (cyclomatic 16) .github/scripts/check-source-service-convention.py:579 — check-source-service-convention.run 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 · check-synthetic-outbox-taint.self_test (cyclomatic 16) · ×1
  • check-synthetic-outbox-taint.self_test (cyclomatic 16) .github/scripts/check-synthetic-outbox-taint.py:155 — check-synthetic-outbox-taint.self_test 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 · check-temporal-namespace-registration.namespace_declarations (cyclomatic 16) · ×1
  • check-temporal-namespace-registration.namespace_declarations (cyclomatic 16) .github/scripts/check-temporal-namespace-registration.py:126 — check-temporal-namespace-registration.namespace_declarations 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 · check-threat-model-claims.load_evidence (cyclomatic 16) · ×1
  • check-threat-model-claims.load_evidence (cyclomatic 16) .github/scripts/check-threat-model-claims.py:768 — check-threat-model-claims.load_evidence 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 · check-vex-overlay-coverage.build (cyclomatic 16) · ×1
  • check-vex-overlay-coverage.build (cyclomatic 16) .github/scripts/check-vex-overlay-coverage.py:145 — check-vex-overlay-coverage.build 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 · deploy-publication-race.decision (cyclomatic 16) · ×1
  • deploy-publication-race.decision (cyclomatic 16) .github/scripts/deploy-publication-race.py:61 — deploy-publication-race.decision 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 · library_dependency_graph.read_dependencies (cyclomatic 16) · ×1
  • library_dependency_graph.read_dependencies (cyclomatic 16) .github/scripts/library_dependency_graph.py:163 — library_dependency_graph.read_dependencies 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 · merge-train.live_source_intent (cyclomatic 16) · ×1
  • merge-train.live_source_intent (cyclomatic 16) .github/scripts/merge-train.py:689 — merge-train.live_source_intent 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 · prepare-release-evidence.prepare (cyclomatic 16) · ×1
  • prepare-release-evidence.prepare (cyclomatic 16) .github/scripts/prepare-release-evidence.py:65 — prepare-release-evidence.prepare 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 · publish-admin-ui-pacts.main (cyclomatic 16) · ×1
  • publish-admin-ui-pacts.main (cyclomatic 16) .github/scripts/publish-admin-ui-pacts.py:247 — publish-admin-ui-pacts.main 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 · run-gates.report (cyclomatic 16) · ×1
  • run-gates.report (cyclomatic 16) .github/scripts/run-gates.py:773 — run-gates.report 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 · stage-pitest-artifacts.stage (cyclomatic 16) · ×1
  • stage-pitest-artifacts.stage (cyclomatic 16) .github/scripts/stage-pitest-artifacts.py:90 — stage-pitest-artifacts.stage 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 · verify-audit-anchors.verify_anchor_bundle (cyclomatic 16) · ×1
  • verify-audit-anchors.verify_anchor_bundle (cyclomatic 16) .github/scripts/verify-audit-anchors.py:188 — verify-audit-anchors.verify_anchor_bundle 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 · verify-capacity-evidence.parse_attestation (cyclomatic 16) · ×1
  • verify-capacity-evidence.parse_attestation (cyclomatic 16) .github/scripts/verify-capacity-evidence.py:430 — verify-capacity-evidence.parse_attestation 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 · verify-packaged-library-sbom.verify (cyclomatic 16) · ×1
  • verify-packaged-library-sbom.verify (cyclomatic 16) .github/scripts/verify-packaged-library-sbom.py:72 — verify-packaged-library-sbom.verify 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 · verify-successful-service-ci._read_json_page (cyclomatic 16) · ×1
  • verify-successful-service-ci._read_json_page (cyclomatic 16) .github/scripts/verify-successful-service-ci.py:63 — verify-successful-service-ci._read_json_page 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 · vex-hotfix.main (cyclomatic 16) · ×1
  • vex-hotfix.main (cyclomatic 16) .github/scripts/vex-hotfix.py:226 — vex-hotfix.main 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 · check-db-backup-prefix-scope.cnpg_clusters (cyclomatic 16) · ×1
  • check-db-backup-prefix-scope.cnpg_clusters (cyclomatic 16) openbank-infra/scripts/check-db-backup-prefix-scope.py:86 — check-db-backup-prefix-scope.cnpg_clusters has cyclomatic complexity 16 (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 · check-threat-model-diff.legacy_gitops_hit (cyclomatic 16) · ×1
  • check-threat-model-diff.legacy_gitops_hit (cyclomatic 16) openbank-infra/scripts/check-threat-model-diff.py:338 — check-threat-model-diff.legacy_gitops_hit 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 · gen-network-policies.securitypolicy_extauth_backends (cyclomatic 16) · ×1
  • gen-network-policies.securitypolicy_extauth_backends (cyclomatic 16) openbank-infra/scripts/gen-network-policies.py:243 — gen-network-policies.securitypolicy_extauth_backends has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · gitops_facts.management_scraped_namespaces (cyclomatic 16) · ×1
  • gitops_facts.management_scraped_namespaces (cyclomatic 16) openbank-infra/scripts/gitops_facts.py:374 — gitops_facts.management_scraped_namespaces 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 · m2m-shared-client-denylist.named_client_id (cyclomatic 16) · ×1
  • m2m-shared-client-denylist.named_client_id (cyclomatic 16) openbank-infra/scripts/m2m-shared-client-denylist.py:172 — m2m-shared-client-denylist.named_client_id 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 · netpol-coverage.selects (cyclomatic 16) · ×1
  • netpol-coverage.selects (cyclomatic 16) openbank-infra/scripts/netpol-coverage.py:51 — netpol-coverage.selects 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 · collect-quality-report.fetchPairVerification (cyclomatic 16) · ×1
  • collect-quality-report.fetchPairVerification (cyclomatic 16) openbank-admin-ui/scripts/collect-quality-report.mjs:210 — collect-quality-report.fetchPairVerification 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 · generate-governance.buildManifest (cyclomatic 16) · ×1
  • generate-governance.buildManifest (cyclomatic 16) openbank-admin-ui/scripts/generate-governance.mjs:186 — generate-governance.buildManifest has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body's own statements and 4 belong to 3 function literals inside it that branch. 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 · page.NotificationTemplatesPage (cyclomatic 16) · ×1
  • page.NotificationTemplatesPage (cyclomatic 16) openbank-admin-ui/src/app/communication/notification-templates/page.tsx:46 — page.NotificationTemplatesPage has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 3 function items inside it that branch (perform, a function literal at line 62, a function literal at line 133). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · page.DelegationDetailPage (cyclomatic 16) · ×1
  • page.DelegationDetailPage (cyclomatic 16) openbank-admin-ui/src/app/delegations/[id]/page.tsx:48 — page.DelegationDetailPage has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body's own statements and 8 belong to 2 function literals inside it that branch. 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 · page.buildExportRows (cyclomatic 16) · ×1
  • page.buildExportRows (cyclomatic 16) openbank-admin-ui/src/app/regulatory/page.tsx:216 — page.buildExportRows has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body's own statements and 3 belong to one function literal inside it that branches. 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 · DayCloseParticipantsPanel.DayCloseParticipantsPanel (cyclomatic 16) · ×1
  • DayCloseParticipantsPanel.DayCloseParticipantsPanel (cyclomatic 16) openbank-admin-ui/src/components/closings/DayCloseParticipantsPanel.tsx:99 — DayCloseParticipantsPanel.DayCloseParticipantsPanel has cyclomatic complexity 16 (threshold 15). Of this number, 9 points are the body's own statements and 7 belong to 4 function items inside it that branch. 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 · RoleCatalog.RoleEditor (cyclomatic 16) · ×1
  • RoleCatalog.RoleEditor (cyclomatic 16) openbank-admin-ui/src/components/delegations/RoleCatalog.tsx:221 — RoleCatalog.RoleEditor has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body's own statements and 8 belong to 6 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · ContextualInsights.GrafanaPanel (cyclomatic 16) · ×1
  • ContextualInsights.GrafanaPanel (cyclomatic 16) openbank-admin-ui/src/components/insights/ContextualInsights.tsx:128 — ContextualInsights.GrafanaPanel has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 159, 144, 155). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · catalog-review-capability.resolveCatalogReviewCapability (cyclomatic 16) · ×1
  • catalog-review-capability.resolveCatalogReviewCapability (cyclomatic 16) openbank-admin-ui/src/lib/catalog-review-capability.ts:21 — catalog-review-capability.resolveCatalogReviewCapability 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 · trend.buildCnbTrend (cyclomatic 16) · ×1
  • trend.buildCnbTrend (cyclomatic 16) openbank-admin-ui/src/lib/fx/trend.ts:73 — trend.buildCnbTrend has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body's own statements and 2 belong to one function literal inside it that branches. 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 · probes.probeInfra (cyclomatic 16) · ×1
  • probes.probeInfra (cyclomatic 16) REDACTED:146 — probes.probeInfra 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 · vopEvidence.parseVopEvidence (cyclomatic 16) · ×1
  • vopEvidence.parseVopEvidence (cyclomatic 16) openbank-admin-ui/src/lib/payments/vopEvidence.ts:15 — vopEvidence.parseVopEvidence has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · standingOrderContract.parseStandingOrders (cyclomatic 16) · ×1
  • standingOrderContract.parseStandingOrders (cyclomatic 16) openbank-admin-ui/src/lib/standing-orders/standingOrderContract.ts:46 — standingOrderContract.parseStandingOrders has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 48). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · transactionSearchContract.parseTransactionSearchResult (cyclomatic 16) · ×1
  • transactionSearchContract.parseTransactionSearchResult (cyclomatic 16) openbank-admin-ui/src/lib/transactions/transactionSearchContract.ts:113 — transactionSearchContract.parseTransactionSearchResult has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D10 · Test Quality · Skipped test · ×1
  • Skipped test: ${rel} — not mountable: ${CANNOT_MOUNT.get(rel)} openbank-admin-ui/src/test/render-smoke.test.tsx:190 — Skipped — switched off by it.skip
D10 · Test Quality · Races the wall clock · ×1
  • Races the wall clock: treats a timed-out admission as nonfinal and retains the idempotency day for retry openbank-admin-ui/src/test/flaky-test-hunter-page.test.tsx:155 — This test reads `new Date()` and compares it against the value the code under test computed from its own clock read, compared exactly in `toBe(new Date().toISOString().slice(0, 10))`. Those are two independent clock reads, so the test passes only while no boundary falls between them — a second ticking over between the code's read and the test's, or, for a date, a day that differs between the machine's local zone and UTC. It passes or fails on the time of day and the build agent's time zone, and re-running the suite on one machine cannot reveal it. Read the clock once: give the code under test a clock the test controls (a fake time provider, fake timers with a fixed system time) and build the expectation from that same instant, or assert a range rather than an exact value.
D2 · Cognitive Complexity · merge-train.self_test (cognitive 424) · ×1
  • merge-train.self_test (cognitive 424) .github/scripts/merge-train.py:4809 — merge-train.self_test has cognitive complexity 424 (threshold 15). Drivers by points: boolean chains 276, loops 47 (48 pts), if/else 39 (46 pts), ternaries 26 (28 pts), error handling 22 (26 pts) (nesting depth added 14). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · gen-network-policies.main (cognitive 275) · ×1
  • gen-network-policies.main (cognitive 275) openbank-infra/scripts/gen-network-policies.py:520 — gen-network-policies.main has cognitive complexity 275 (threshold 15). Drivers by points: if/else 44 (128 pts), loops 29 (79 pts), boolean chains 57, ternaries 3 (11 pts) (nesting depth added 142). 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 · run-gates.self_test (cognitive 242) · ×1
  • run-gates.self_test (cognitive 242) .github/scripts/run-gates.py:1159 — run-gates.self_test has cognitive complexity 242 (threshold 15). Drivers by points: if/else 100 (177 pts), boolean chains 35, loops 14 (17 pts), ternaries 3 (7 pts), error handling 3 (6 pts) (nesting depth added 87). 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 · merge-train.mode_settle (cognitive 184) · ×1
  • merge-train.mode_settle (cognitive 184) .github/scripts/merge-train.py:2648 — merge-train.mode_settle has cognitive complexity 184 (threshold 15). Drivers by points: if/else 58 (132 pts), boolean chains 24, ternaries 10 (17 pts), loops 5 (11 pts) (nesting depth added 87). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · page.ProductStudioPage (cognitive 183) · ×1
  • page.ProductStudioPage (cognitive 183) openbank-admin-ui/src/app/product-studio/page.tsx:95 — page.ProductStudioPage has cognitive complexity 183 (threshold 15). Drivers by points: ternaries 59 (78 pts), boolean chains 66, if/else 29 (30 pts), error handling 9 (nesting depth added 20). Of this number, 71 points are the body's own statements and 112 belong to 48 function items inside it that branch. 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 · page.FinOpsContent (cognitive 182) · ×1
  • page.FinOpsContent (cognitive 182) openbank-admin-ui/src/app/finops/page.tsx:228 — page.FinOpsContent has cognitive complexity 182 (threshold 15). Drivers by points: ternaries 61 (148 pts), boolean chains 29, if/else 1 (3 pts), loops 1 (2 pts) (nesting depth added 90). Of this number, 62 points are the body's own statements and 120 belong to 13 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · page.NewCampaignPage (cognitive 176) · ×1
  • page.NewCampaignPage (cognitive 176) openbank-admin-ui/src/app/campaigns/new/page.tsx:148 — page.NewCampaignPage has cognitive complexity 176 (threshold 15). Drivers by points: ternaries 66 (81 pts), boolean chains 55, if/else 37 (40 pts) (nesting depth added 18). Of this number, 44 points are the body's own statements and 132 belong to 37 function items inside it that branch. 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 · page.ServiceMapPage (cognitive 166) · ×1
  • page.ServiceMapPage (cognitive 166) openbank-admin-ui/src/app/docs/service-map/page.tsx:329 — page.ServiceMapPage has cognitive complexity 166 (threshold 15). Drivers by points: boolean chains 73, ternaries 56 (67 pts), if/else 23 (24 pts), loops 2 (nesting depth added 12). Of this number, 29 points are the body's own statements and 137 belong to 36 function items inside it that branch. 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 · page.LineageFlowPage (cognitive 161) · ×1
  • page.LineageFlowPage (cognitive 161) openbank-admin-ui/src/app/docs/lineage/page.tsx:60 — page.LineageFlowPage has cognitive complexity 161 (threshold 15). Drivers by points: ternaries 37 (104 pts), boolean chains 26, if/else 14 (24 pts), loops 4 (6 pts), error handling 1 (nesting depth added 79). Of this number, 53 points are the body's own statements and 108 belong to 16 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · page.DashboardPage (cognitive 145) · ×1
  • page.DashboardPage (cognitive 145) openbank-admin-ui/src/app/dashboard/page.tsx:62 — page.DashboardPage has cognitive complexity 145 (threshold 15). Drivers by points: ternaries 43 (114 pts), boolean chains 15, if/else 9 (14 pts), error handling 1, loops 1 (nesting depth added 76). Of this number, 28 points are the body's own statements and 117 belong to 8 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · page.PaymentsContent (cognitive 141) · ×1
  • page.PaymentsContent (cognitive 141) openbank-admin-ui/src/app/payments/page.tsx:295 — page.PaymentsContent has cognitive complexity 141 (threshold 15). Drivers by points: boolean chains 81, if/else 36 (37 pts), ternaries 17 (21 pts), error handling 2 (nesting depth added 5). Of this number, 53 points are the body's own statements and 88 belong to 34 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · check-security-checklist.self_test (cognitive 129) · ×1
  • check-security-checklist.self_test (cognitive 129) .github/scripts/check-security-checklist.py:902 — check-security-checklist.self_test has cognitive complexity 129 (threshold 15). Drivers by points: if/else 76 (85 pts), boolean chains 21, loops 16, ternaries 4 (6 pts), error handling 1 (nesting depth added 11). 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 · page.GameCatalogPage (cognitive 127) · ×1
  • page.GameCatalogPage (cognitive 127) openbank-admin-ui/src/app/loyalty/game/page.tsx:35 — page.GameCatalogPage has cognitive complexity 127 (threshold 15). Drivers by points: boolean chains 54, ternaries 25 (44 pts), if/else 25 (27 pts), error handling 2 (nesting depth added 21). Of this number, 35 points are the body's own statements and 92 belong to 45 function items inside it that branch. 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 · page.SnapshotIrrbb (cognitive 107) · ×1
  • page.SnapshotIrrbb (cognitive 107) openbank-admin-ui/src/app/balance-sheet/snapshots/[id]/irrbb/page.tsx:58 — page.SnapshotIrrbb has cognitive complexity 107 (threshold 15). Drivers by points: ternaries 24 (78 pts), boolean chains 22, if/else 7 (nesting depth added 54). Of this number, 75 points are the body's own statements and 32 belong to 5 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · check-asyncapi-doc-discriminator.streams_topics (cognitive 106) · ×1
  • check-asyncapi-doc-discriminator.streams_topics (cognitive 106) .github/scripts/check-asyncapi-doc-discriminator.py:104 — check-asyncapi-doc-discriminator.streams_topics has cognitive complexity 106 (threshold 15). Drivers by points: if/else 25 (58 pts), boolean chains 23, ternaries 4 (13 pts), loops 6 (12 pts) (nesting depth added 48). 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 · check-journey-catalog.check (cognitive 104) · ×1
  • check-journey-catalog.check (cognitive 104) .github/scripts/check-journey-catalog.py:256 — check-journey-catalog.check has cognitive complexity 104 (threshold 15). Drivers by points: if/else 34 (78 pts), loops 7 (14 pts), boolean chains 11, error handling 1 (nesting depth added 51). 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 · check-realm-template-importable.check_realm (cognitive 103) · ×1
  • check-realm-template-importable.check_realm (cognitive 103) .github/scripts/check-realm-template-importable.py:169 — check-realm-template-importable.check_realm has cognitive complexity 103 (threshold 15). Drivers by points: if/else 17 (45 pts), loops 18 (32 pts), boolean chains 24, ternaries 1 (2 pts) (nesting depth added 43). 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 · page.SanctionsPage (cognitive 103) · ×1
  • page.SanctionsPage (cognitive 103) openbank-admin-ui/src/app/sanctions/page.tsx:207 — page.SanctionsPage has cognitive complexity 103 (threshold 15). Drivers by points: boolean chains 39, if/else 33 (34 pts), ternaries 18 (23 pts), error handling 7 (nesting depth added 6). Of this number, 35 points are the body's own statements and 68 belong to 31 function items inside it that branch. 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 · check-readiness-attestations.check (cognitive 101) · ×1
  • check-readiness-attestations.check (cognitive 101) .github/scripts/check-readiness-attestations.py:296 — check-readiness-attestations.check has cognitive complexity 101 (threshold 15). Drivers by points: if/else 30 (73 pts), error handling 4 (13 pts), boolean chains 8, loops 4 (6 pts), ternaries 1 (nesting depth added 54). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · page.IAOpsContent (cognitive 100) · ×1
  • page.IAOpsContent (cognitive 100) openbank-admin-ui/src/app/iaops/page.tsx:166 — page.IAOpsContent has cognitive complexity 100 (threshold 15). Drivers by points: ternaries 24 (68 pts), boolean chains 22, if/else 8, error handling 2 (nesting depth added 44). Of this number, 43 points are the body's own statements and 57 belong to 10 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · check-capacity-profile.validate (cognitive 98) · ×1
  • check-capacity-profile.validate (cognitive 98) .github/scripts/check-capacity-profile.py:72 — check-capacity-profile.validate has cognitive complexity 98 (threshold 15). Drivers by points: if/else 26 (41 pts), loops 17 (31 pts), boolean chains 24, error handling 1, ternaries 1 (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 · page.ServicesDocsOverviewPage (cognitive 98) · ×1
  • page.ServicesDocsOverviewPage (cognitive 98) openbank-admin-ui/src/app/services/page.tsx:90 — page.ServicesDocsOverviewPage has cognitive complexity 98 (threshold 15). Drivers by points: ternaries 13 (32 pts), if/else 19 (30 pts), boolean chains 27, loops 2 (6 pts), error handling 3 (nesting depth added 34). Of this number, 32 points are the body's own statements and 66 belong to 9 function items inside it that branch. 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 · merge-train.judge_strict_carriers (cognitive 97) · ×1
  • merge-train.judge_strict_carriers (cognitive 97) .github/scripts/merge-train.py:3685 — merge-train.judge_strict_carriers has cognitive complexity 97 (threshold 15). Drivers by points: if/else 26 (59 pts), ternaries 8 (18 pts), boolean chains 10, loops 4 (10 pts) (nesting depth added 49). 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 · page.FxPage (cognitive 97) · ×1
  • page.FxPage (cognitive 97) openbank-admin-ui/src/app/fx/page.tsx:142 — page.FxPage has cognitive complexity 97 (threshold 15). Drivers by points: ternaries 40 (54 pts), boolean chains 32, if/else 9, error handling 2 (nesting depth added 14). Of this number, 30 points are the body's own statements and 67 belong to 19 function items inside it that branch. 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 · page.SecurityPage (cognitive 97) · ×1
  • page.SecurityPage (cognitive 97) openbank-admin-ui/src/app/security/page.tsx:52 — page.SecurityPage has cognitive complexity 97 (threshold 15). Drivers by points: ternaries 19 (51 pts), if/else 15 (25 pts), boolean chains 19, error handling 2 (nesting depth added 42). Of this number, 31 points are the body's own statements and 66 belong to 19 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · page.EodPanel (cognitive 96) · ×1
  • page.EodPanel (cognitive 96) openbank-admin-ui/src/app/day-end/page.tsx:118 — page.EodPanel has cognitive complexity 96 (threshold 15). Drivers by points: ternaries 21 (80 pts), if/else 6 (10 pts), boolean chains 3, error handling 3 (nesting depth added 63). Of this number, 61 points are the body's own statements and 35 belong to 5 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · check-incluster-hostnames.gitops_facts (cognitive 94) · ×1
  • check-incluster-hostnames.gitops_facts (cognitive 94) .github/scripts/check-incluster-hostnames.py:288 — check-incluster-hostnames.gitops_facts has cognitive complexity 94 (threshold 15). Drivers by points: if/else 12 (42 pts), loops 9 (32 pts), boolean chains 14, ternaries 1 (4 pts), error handling 1 (2 pts) (nesting depth added 57). 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 · check-cnpg-update-resilience.check (cognitive 92) · ×1
  • check-cnpg-update-resilience.check (cognitive 92) .github/scripts/check-cnpg-update-resilience.py:186 — check-cnpg-update-resilience.check has cognitive complexity 92 (threshold 15). Drivers by points: if/else 25 (53 pts), boolean chains 20, loops 13 (16 pts), ternaries 2 (3 pts) (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 · check-ledger-instance-switches.check (cognitive 88) · ×1
  • check-ledger-instance-switches.check (cognitive 88) .github/scripts/check-ledger-instance-switches.py:132 — check-ledger-instance-switches.check has cognitive complexity 88 (threshold 15). Drivers by points: if/else 15 (52 pts), loops 11 (25 pts), ternaries 2 (7 pts), boolean chains 4 (nesting depth added 56). 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 · page.CreditRiskConsole (cognitive 88) · ×1
  • page.CreditRiskConsole (cognitive 88) openbank-admin-ui/src/app/lending/risk/page.tsx:110 — page.CreditRiskConsole has cognitive complexity 88 (threshold 15). Drivers by points: ternaries 42 (48 pts), boolean chains 32, if/else 6 (7 pts), loops 1 (nesting depth added 7). Of this number, 62 points are the body's own statements and 26 belong to 13 function items inside it that branch. 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 · check-api-contract.main (cognitive 87) · ×1
  • check-api-contract.main (cognitive 87) .github/scripts/check-api-contract.py:1024 — check-api-contract.main has cognitive complexity 87 (threshold 15). Drivers by points: if/else 26 (59 pts), ternaries 6 (20 pts), boolean chains 3, error handling 1 (3 pts), loops 2 (nesting depth added 49). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · check-event-contract-code-agreement.check_contract (cognitive 85) · ×1
  • check-event-contract-code-agreement.check_contract (cognitive 85) .github/scripts/check-event-contract-code-agreement.py:624 — check-event-contract-code-agreement.check_contract has cognitive complexity 85 (threshold 15). Drivers by points: if/else 26 (48 pts), boolean chains 21, loops 10 (14 pts), error handling 1, ternaries 1 (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 · merge-train.strict_lane (cognitive 84) · ×1
  • merge-train.strict_lane (cognitive 84) .github/scripts/merge-train.py:3387 — merge-train.strict_lane has cognitive complexity 84 (threshold 15). Drivers by points: if/else 25 (55 pts), boolean chains 14, ternaries 4 (13 pts), loops 2 (nesting depth added 39). 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 · check-service-build-results.verify (cognitive 83) · ×1
  • check-service-build-results.verify (cognitive 83) .github/scripts/check-service-build-results.py:43 — check-service-build-results.verify has cognitive complexity 83 (threshold 15). Drivers by points: if/else 20 (47 pts), ternaries 7 (16 pts), boolean chains 11, loops 3 (6 pts), error handling 1 (3 pts) (nesting depth added 41). 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 · m2m-shared-client-denylist.main (cognitive 82) · ×1
  • m2m-shared-client-denylist.main (cognitive 82) openbank-infra/scripts/m2m-shared-client-denylist.py:386 — m2m-shared-client-denylist.main has cognitive complexity 82 (threshold 15). Drivers by points: if/else 21 (49 pts), boolean chains 14, ternaries 6 (14 pts), loops 3 (5 pts) (nesting depth added 38). 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 · check-service-application-readiness.check_component (cognitive 81) · ×1
  • check-service-application-readiness.check_component (cognitive 81) .github/scripts/check-service-application-readiness.py:233 — check-service-application-readiness.check_component has cognitive complexity 81 (threshold 15). Drivers by points: if/else 16 (52 pts), boolean chains 14, loops 5 (11 pts), ternaries 1 (4 pts) (nesting depth added 45). 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 · page.CampaignDetailPage (cognitive 80) · ×1
  • page.CampaignDetailPage (cognitive 80) openbank-admin-ui/src/app/campaigns/[id]/page.tsx:174 — page.CampaignDetailPage has cognitive complexity 80 (threshold 15). Drivers by points: boolean chains 41, if/else 19, ternaries 9 (12 pts), match/switch 6, error handling 2 (nesting depth added 3). Of this number, 36 points are the body's own statements and 44 belong to 28 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · check-oidc-tls-verification-profile.gitops_findings (cognitive 78) · ×1
  • check-oidc-tls-verification-profile.gitops_findings (cognitive 78) .github/scripts/check-oidc-tls-verification-profile.py:118 — check-oidc-tls-verification-profile.gitops_findings has cognitive complexity 78 (threshold 15). Drivers by points: if/else 10 (40 pts), boolean chains 16, loops 7 (16 pts), ternaries 1 (4 pts), error handling 1 (2 pts) (nesting depth added 43). 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 · fuzz_response_isolation.before_load_schema (cognitive 77) · ×1
  • fuzz_response_isolation.before_load_schema (cognitive 77) .github/scripts/fuzz_response_isolation.py:10 — fuzz_response_isolation.before_load_schema has cognitive complexity 77 (threshold 15). Drivers by points: if/else 17 (42 pts), loops 16 (28 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 38). 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 · run-gates.load (cognitive 77) · ×1
  • run-gates.load (cognitive 77) .github/scripts/run-gates.py:177 — run-gates.load has cognitive complexity 77 (threshold 15). Drivers by points: if/else 26 (59 pts), boolean chains 10, loops 4 (8 pts) (nesting depth added 37). 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 · stage-admin-ui-performance.stage_performance (cognitive 77) · ×1
  • stage-admin-ui-performance.stage_performance (cognitive 77) .github/scripts/stage-admin-ui-performance.py:253 — stage-admin-ui-performance.stage_performance has cognitive complexity 77 (threshold 15). Drivers by points: if/else 16 (53 pts), loops 5 (11 pts), ternaries 3 (8 pts), boolean chains 5 (nesting depth added 48). 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 · IssueCardDialog.IssueCardDialog (cognitive 77) · ×1
  • IssueCardDialog.IssueCardDialog (cognitive 77) openbank-admin-ui/src/components/cards/IssueCardDialog.tsx:107 — IssueCardDialog.IssueCardDialog has cognitive complexity 77 (threshold 15). Drivers by points: if/else 31 (41 pts), boolean chains 24, ternaries 7 (9 pts), error handling 3 (nesting depth added 12). Of this number, 24 points are the body's own statements and 53 belong to 11 function items inside it that branch. 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 · check-idempotency-contract-parity.code_idempotency (cognitive 76) · ×1
  • check-idempotency-contract-parity.code_idempotency (cognitive 76) .github/scripts/check-idempotency-contract-parity.py:169 — check-idempotency-contract-parity.code_idempotency has cognitive complexity 76 (threshold 15). Drivers by points: if/else 16 (53 pts), loops 5 (19 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 52). 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 · credential-inventory.self_test (cognitive 76) · ×1
  • credential-inventory.self_test (cognitive 76) .github/scripts/credential-inventory.py:449 — credential-inventory.self_test has cognitive complexity 76 (threshold 15). Drivers by points: if/else 37 (58 pts), loops 4 (8 pts), boolean chains 5, ternaries 3 (4 pts), error handling 1 (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 · dependency_snapshot.merge_snapshots (cognitive 75) · ×1
  • dependency_snapshot.merge_snapshots (cognitive 75) .github/scripts/dependency_snapshot.py:58 — dependency_snapshot.merge_snapshots has cognitive complexity 75 (threshold 15). Drivers by points: if/else 18 (58 pts), loops 6 (13 pts), boolean chains 4 (nesting depth added 47). 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 · page.NewDeal (cognitive 75) · ×1
  • page.NewDeal (cognitive 75) openbank-admin-ui/src/app/treasury/deals/new/page.tsx:41 — page.NewDeal has cognitive complexity 75 (threshold 15). Drivers by points: boolean chains 33, ternaries 23 (30 pts), if/else 12 (nesting depth added 7). Of this number, 49 points are the body's own statements and 26 belong to 8 function items inside it that branch. 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 · gen-ai-governance-snapshot.validate_curated (cognitive 72) · ×1
  • gen-ai-governance-snapshot.validate_curated (cognitive 72) .github/scripts/gen-ai-governance-snapshot.py:80 — gen-ai-governance-snapshot.validate_curated has cognitive complexity 72 (threshold 15). Drivers by points: if/else 35 (50 pts), loops 10 (12 pts), boolean chains 10 (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 · page.IaopsCaseThreadPage (cognitive 72) · ×1
  • page.IaopsCaseThreadPage (cognitive 72) openbank-admin-ui/src/app/iaops/cases/[caseId]/page.tsx:83 — page.IaopsCaseThreadPage has cognitive complexity 72 (threshold 15). Drivers by points: ternaries 15 (45 pts), boolean chains 21, if/else 5, error handling 1 (nesting depth added 30). Of this number, 25 points are the body's own statements and 47 belong to 5 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · page.InfrastructurePage (cognitive 72) · ×1
  • page.InfrastructurePage (cognitive 72) openbank-admin-ui/src/app/infrastructure/page.tsx:79 — page.InfrastructurePage has cognitive complexity 72 (threshold 15). Drivers by points: ternaries 18 (46 pts), boolean chains 16, error handling 4 (5 pts), if/else 4, loops 1 (nesting depth added 29). Of this number, 24 points are the body's own statements and 48 belong to 9 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · check-stateful-not-on-spot.check (cognitive 70) · ×1
  • check-stateful-not-on-spot.check (cognitive 70) .github/scripts/check-stateful-not-on-spot.py:269 — check-stateful-not-on-spot.check has cognitive complexity 70 (threshold 15). Drivers by points: if/else 21 (37 pts), boolean chains 21, loops 4 (7 pts), ternaries 4 (5 pts) (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 · merge-train.live_candidates (cognitive 70) · ×1
  • merge-train.live_candidates (cognitive 70) .github/scripts/merge-train.py:2207 — merge-train.live_candidates has cognitive complexity 70 (threshold 15). Drivers by points: if/else 26 (51 pts), ternaries 4 (8 pts), boolean chains 7, loops 3 (4 pts) (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 · check-threat-model-claims.evidence_findings (cognitive 69) · ×1
  • check-threat-model-claims.evidence_findings (cognitive 69) .github/scripts/check-threat-model-claims.py:814 — check-threat-model-claims.evidence_findings has cognitive complexity 69 (threshold 15). Drivers by points: if/else 10 (38 pts), ternaries 4 (14 pts), loops 5 (13 pts), boolean chains 4 (nesting depth added 46). 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 · page.CommunicationStyleEditorPage (cognitive 69) · ×1
  • page.CommunicationStyleEditorPage (cognitive 69) openbank-admin-ui/src/app/communication/edit/[personaKey]/page.tsx:56 — page.CommunicationStyleEditorPage has cognitive complexity 69 (threshold 15). Drivers by points: boolean chains 32, if/else 21 (23 pts), ternaries 6 (8 pts), error handling 6 (nesting depth added 4). Of this number, 27 points are the body's own statements and 42 belong to 10 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · page.InfraTopologyPage (cognitive 69) · ×1
  • page.InfraTopologyPage (cognitive 69) openbank-admin-ui/src/app/infrastructure/topology/page.tsx:190 — page.InfraTopologyPage has cognitive complexity 69 (threshold 15). Drivers by points: ternaries 31 (33 pts), boolean chains 26, if/else 7, loops 1 (2 pts), error handling 1 (nesting depth added 3). Of this number, 17 points are the body's own statements and 52 belong to 17 function items inside it that branch. 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 · page.StandingOrdersPage (cognitive 69) · ×1
  • page.StandingOrdersPage (cognitive 69) openbank-admin-ui/src/app/standing-orders/page.tsx:28 — page.StandingOrdersPage has cognitive complexity 69 (threshold 15). Drivers by points: ternaries 16 (58 pts), boolean chains 11 (nesting depth added 42). Of this number, 18 points are the body's own statements and 51 belong to 3 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · check-admin-ui-evidence-plan.validate_ui_stream (cognitive 68) · ×1
  • check-admin-ui-evidence-plan.validate_ui_stream (cognitive 68) .github/scripts/check-admin-ui-evidence-plan.py:67 — check-admin-ui-evidence-plan.validate_ui_stream has cognitive complexity 68 (threshold 15). Drivers by points: if/else 18 (44 pts), boolean chains 10, ternaries 3 (10 pts), loops 2 (4 pts) (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 · page.PartiesPage (cognitive 68) · ×1
  • page.PartiesPage (cognitive 68) openbank-admin-ui/src/app/parties/page.tsx:28 — page.PartiesPage has cognitive complexity 68 (threshold 15). Drivers by points: if/else 29 (39 pts), boolean chains 18, ternaries 8 (9 pts), error handling 2 (nesting depth added 11). Of this number, 22 points are the body's own statements and 46 belong to 7 function literals inside it that branch. 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 · check-alert-window-vs-subject-period.derive_subjects (cognitive 67) · ×1
  • check-alert-window-vs-subject-period.derive_subjects (cognitive 67) .github/scripts/check-alert-window-vs-subject-period.py:185 — check-alert-window-vs-subject-period.derive_subjects has cognitive complexity 67 (threshold 15). Drivers by points: if/else 10 (28 pts), loops 7 (15 pts), ternaries 4 (14 pts), boolean chains 6, error handling 2 (4 pts) (nesting depth added 38). 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 · check-authz-pdp-parity.main (cognitive 67) · ×1
  • check-authz-pdp-parity.main (cognitive 67) .github/scripts/check-authz-pdp-parity.py:364 — check-authz-pdp-parity.main has cognitive complexity 67 (threshold 15). Drivers by points: if/else 15 (32 pts), ternaries 9 (16 pts), loops 9 (12 pts), boolean chains 7 (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 · record-agent-merge.execute (cognitive 67) · ×1
  • record-agent-merge.execute (cognitive 67) .github/scripts/record-agent-merge.py:331 — record-agent-merge.execute has cognitive complexity 67 (threshold 15). Drivers by points: if/else 28 (42 pts), boolean chains 17, error handling 5 (8 pts) (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 · customerGraph.buildCustomerGraph (cognitive 67) · ×1
  • customerGraph.buildCustomerGraph (cognitive 67) openbank-admin-ui/src/lib/context/customerGraph.ts:330 — customerGraph.buildCustomerGraph has cognitive complexity 67 (threshold 15). Drivers by points: ternaries 12 (24 pts), if/else 11 (22 pts), loops 12, boolean chains 9 (nesting depth added 23). Of this number, 65 points are the body's own statements and 2 belong to 2 function items inside it that branch. 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 · auto-update-armed-prs.read_reservation (cognitive 66) · ×1
  • auto-update-armed-prs.read_reservation (cognitive 66) .github/scripts/auto-update-armed-prs.py:651 — auto-update-armed-prs.read_reservation has cognitive complexity 66 (threshold 15). Drivers by points: if/else 21 (37 pts), boolean chains 14, loops 6 (8 pts), ternaries 2 (6 pts), error handling 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 · check-source-service-convention.scan (cognitive 66) · ×1
  • check-source-service-convention.scan (cognitive 66) .github/scripts/check-source-service-convention.py:295 — check-source-service-convention.scan has cognitive complexity 66 (threshold 15). Drivers by points: if/else 11 (49 pts), loops 4 (10 pts), ternaries 1 (6 pts), boolean chains 1 (nesting depth added 49). 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 · pact-reconcile-verifications.self_test (cognitive 66) · ×1
  • pact-reconcile-verifications.self_test (cognitive 66) .github/scripts/pact-reconcile-verifications.py:648 — pact-reconcile-verifications.self_test has cognitive complexity 66 (threshold 15). Drivers by points: if/else 13 (21 pts), ternaries 11 (19 pts), loops 11, error handling 6 (8 pts), boolean chains 7 (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 · page.MerchantsPage (cognitive 66) · ×1
  • page.MerchantsPage (cognitive 66) openbank-admin-ui/src/app/merchants/page.tsx:77 — page.MerchantsPage has cognitive complexity 66 (threshold 15). Drivers by points: boolean chains 28, if/else 18, error handling 11 (12 pts), ternaries 8 (nesting depth added 1). Of this number, 20 points are the body's own statements and 46 belong to 14 function items inside it that branch. 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 · CommandPalette.OpenCommandPalette (cognitive 66) · ×1
  • CommandPalette.OpenCommandPalette (cognitive 66) openbank-admin-ui/src/components/search/CommandPalette.tsx:65 — CommandPalette.OpenCommandPalette has cognitive complexity 66 (threshold 15). Drivers by points: if/else 23 (25 pts), boolean chains 21, ternaries 16 (20 pts) (nesting depth added 6). Of this number, 21 points are the body's own statements and 45 belong to 20 function items inside it that branch. 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 · check-temporal-namespace-registration.configmap_consumers (cognitive 65) · ×1
  • check-temporal-namespace-registration.configmap_consumers (cognitive 65) .github/scripts/check-temporal-namespace-registration.py:162 — check-temporal-namespace-registration.configmap_consumers has cognitive complexity 65 (threshold 15). Drivers by points: if/else 7 (31 pts), loops 7 (24 pts), boolean chains 10 (nesting depth added 41). 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 · page.EomPanel (cognitive 65) · ×1
  • page.EomPanel (cognitive 65) openbank-admin-ui/src/app/day-end/page.tsx:404 — page.EomPanel has cognitive complexity 65 (threshold 15). Drivers by points: ternaries 15 (29 pts), if/else 19, boolean chains 11, error handling 5, match/switch 1 (nesting depth added 14). Of this number, 24 points are the body's own statements and 41 belong to 14 function items inside it that branch. 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 · page.IncidentsPage (cognitive 65) · ×1
  • page.IncidentsPage (cognitive 65) openbank-admin-ui/src/app/security/incidents/page.tsx:29 — page.IncidentsPage has cognitive complexity 65 (threshold 15). Drivers by points: ternaries 17 (42 pts), boolean chains 11, if/else 9 (11 pts), error handling 1 (nesting depth added 27). Of this number, 37 points are the body's own statements and 28 belong to 4 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · check-ruleset-context-parity.self_test (cognitive 63) · ×1
  • check-ruleset-context-parity.self_test (cognitive 63) .github/scripts/check-ruleset-context-parity.py:387 — check-ruleset-context-parity.self_test has cognitive complexity 63 (threshold 15). Drivers by points: if/else 26 (35 pts), loops 5 (9 pts), ternaries 2 (8 pts), boolean chains 7, 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 · check-workflow-supply-chain.findings (cognitive 62) · ×1
  • check-workflow-supply-chain.findings (cognitive 62) .github/scripts/check-workflow-supply-chain.py:64 — check-workflow-supply-chain.findings has cognitive complexity 62 (threshold 15). Drivers by points: if/else 23 (43 pts), boolean chains 14, loops 3 (5 pts) (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 · page.CardsPage (cognitive 62) · ×1
  • page.CardsPage (cognitive 62) openbank-admin-ui/src/app/cards/page.tsx:40 — page.CardsPage has cognitive complexity 62 (threshold 15). Drivers by points: ternaries 18 (33 pts), boolean chains 16, if/else 7 (13 pts) (nesting depth added 21). Of this number, 21 points are the body's own statements and 41 belong to 11 function items inside it that branch. 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 · page.DevOpsContent (cognitive 60) · ×1
  • page.DevOpsContent (cognitive 60) openbank-admin-ui/src/app/devops/page.tsx:204 — page.DevOpsContent has cognitive complexity 60 (threshold 15). Drivers by points: ternaries 13 (23 pts), boolean chains 19, if/else 14 (15 pts), error handling 3 (nesting depth added 11). Of this number, 36 points are the body's own statements and 24 belong to 9 function literals inside it that branch. 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 · page.ApiCatalogPage (cognitive 60) · ×1
  • page.ApiCatalogPage (cognitive 60) openbank-admin-ui/src/app/docs/api/page.tsx:418 — page.ApiCatalogPage has cognitive complexity 60 (threshold 15). Drivers by points: boolean chains 30, if/else 12 (13 pts), ternaries 11 (13 pts), error handling 2 (3 pts), loops 1 (nesting depth added 4). Of this number, 22 points are the body's own statements and 38 belong to 23 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · InstrumentsPanel.InstrumentsPanel (cognitive 60) · ×1
  • InstrumentsPanel.InstrumentsPanel (cognitive 60) openbank-admin-ui/src/components/balance-sheet/InstrumentsPanel.tsx:36 — InstrumentsPanel.InstrumentsPanel has cognitive complexity 60 (threshold 15). Drivers by points: ternaries 25 (36 pts), if/else 8 (12 pts), boolean chains 9, error handling 1 (2 pts), loops 1 (nesting depth added 16). Most of this is not in the body itself: 10 of the 60 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 134, a function literal at line 68, a function literal at line 206, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · pact-reconcile-verifications.main (cognitive 59) · ×1
  • pact-reconcile-verifications.main (cognitive 59) .github/scripts/pact-reconcile-verifications.py:469 — pact-reconcile-verifications.main has cognitive complexity 59 (threshold 15). Drivers by points: if/else 19 (33 pts), error handling 5 (11 pts), loops 8, boolean chains 4, ternaries 2 (3 pts) (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 · runtime_resource_inputs._resource_body (cognitive 59) · ×1
  • runtime_resource_inputs._resource_body (cognitive 59) .github/scripts/runtime_resource_inputs.py:133 — runtime_resource_inputs._resource_body has cognitive complexity 59 (threshold 15). Drivers by points: if/else 14 (52 pts), boolean chains 6, loops 1 (nesting depth added 38). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · page.LendingPage (cognitive 59) · ×1
  • page.LendingPage (cognitive 59) openbank-admin-ui/src/app/lending/page.tsx:98 — page.LendingPage has cognitive complexity 59 (threshold 15). Drivers by points: ternaries 30 (33 pts), boolean chains 18, if/else 6 (7 pts), error handling 1 (nesting depth added 4). Of this number, 29 points are the body's own statements and 30 belong to 13 function items inside it that branch. 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 · page.ProductCatalogPage (cognitive 59) · ×1
  • page.ProductCatalogPage (cognitive 59) openbank-admin-ui/src/app/product-catalog/page.tsx:437 — page.ProductCatalogPage has cognitive complexity 59 (threshold 15). Drivers by points: boolean chains 35, if/else 13 (14 pts), ternaries 6 (7 pts), error handling 3 (nesting depth added 2). Of this number, 28 points are the body's own statements and 31 belong to 19 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · check-cnpg-scrape-coverage.discover_clusters (cognitive 58) · ×1
  • check-cnpg-scrape-coverage.discover_clusters (cognitive 58) .github/scripts/check-cnpg-scrape-coverage.py:171 — check-cnpg-scrape-coverage.discover_clusters has cognitive complexity 58 (threshold 15). Drivers by points: if/else 12 (35 pts), boolean chains 12, loops 5 (9 pts), error handling 1 (2 pts) (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 · check-openapi-route-conformance.code_routes (cognitive 58) · ×1
  • check-openapi-route-conformance.code_routes (cognitive 58) .github/scripts/check-openapi-route-conformance.py:176 — check-openapi-route-conformance.code_routes has cognitive complexity 58 (threshold 15). Drivers by points: if/else 14 (42 pts), loops 4 (13 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 38). 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 · page.ApprovalsPage (cognitive 58) · ×1
  • page.ApprovalsPage (cognitive 58) openbank-admin-ui/src/app/approvals/page.tsx:61 — page.ApprovalsPage has cognitive complexity 58 (threshold 15). Drivers by points: boolean chains 25, ternaries 13 (16 pts), if/else 14 (15 pts), error handling 2 (nesting depth added 4). Of this number, 16 points are the body's own statements and 42 belong to 13 function items inside it that branch. 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 · CustomerContextGraph.CustomerContextGraph (cognitive 58) · ×1
  • CustomerContextGraph.CustomerContextGraph (cognitive 58) openbank-admin-ui/src/components/party/CustomerContextGraph.tsx:37 — CustomerContextGraph.CustomerContextGraph has cognitive complexity 58 (threshold 15). Drivers by points: ternaries 26 (31 pts), boolean chains 21, if/else 6 (nesting depth added 5). Of this number, 16 points are the body's own statements and 42 belong to 9 function literals inside it that branch. 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 · check-security-checklist.decide (cognitive 57) · ×1
  • check-security-checklist.decide (cognitive 57) .github/scripts/check-security-checklist.py:323 — check-security-checklist.decide has cognitive complexity 57 (threshold 15). Drivers by points: if/else 23 (34 pts), boolean chains 13, ternaries 4 (7 pts), loops 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 · generate-security-graph.deriveNetwork (cognitive 57) · ×1
  • generate-security-graph.deriveNetwork (cognitive 57) openbank-admin-ui/scripts/generate-security-graph.mjs:73 — generate-security-graph.deriveNetwork has cognitive complexity 57 (threshold 15). Drivers by points: if/else 10 (34 pts), loops 7 (17 pts), boolean chains 3, error handling 1 (2 pts), ternaries 1 (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 · page.BcpPage · ×1
  • page.BcpPage::fetchHealth (cognitive 57) openbank-admin-ui/src/app/docs/bcp/page.tsx:96 — page.BcpPage::fetchHealth has cognitive complexity 57 (threshold 15). Drivers by points: ternaries 9 (18 pts), if/else 11 (15 pts), boolean chains 12, loops 4 (11 pts), error handling 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. This shape REPEATS in the file: one other method here (page.BcpPage) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · page.AgentDetailContent (cognitive 57) · ×1
  • page.AgentDetailContent (cognitive 57) openbank-admin-ui/src/app/iaops/agents/[agentId]/page.tsx:140 — page.AgentDetailContent has cognitive complexity 57 (threshold 15). Drivers by points: ternaries 9 (38 pts), boolean chains 15, if/else 3, error handling 1 (nesting depth added 29). Of this number, 26 points are the body's own statements and 31 belong to 2 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · NotificationsPage.NotificationsContent (cognitive 57) · ×1
  • NotificationsPage.NotificationsContent (cognitive 57) openbank-admin-ui/src/components/notifications/NotificationsPage.tsx:80 — NotificationsPage.NotificationsContent has cognitive complexity 57 (threshold 15). Drivers by points: if/else 19 (28 pts), boolean chains 15, ternaries 9 (12 pts), error handling 2 (nesting depth added 12). Most of this is not in the body itself: 14 of the 57 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 95, 189, 233, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · check-opa-sidecar-bundle-shape.findings (cognitive 56) · ×1
  • check-opa-sidecar-bundle-shape.findings (cognitive 56) .github/scripts/check-opa-sidecar-bundle-shape.py:98 — check-opa-sidecar-bundle-shape.findings has cognitive complexity 56 (threshold 15). Drivers by points: if/else 11 (34 pts), boolean chains 13, loops 4 (9 pts) (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 · page.IdentityCasesPage (cognitive 56) · ×1
  • page.IdentityCasesPage (cognitive 56) openbank-admin-ui/src/app/identity-cases/page.tsx:328 — page.IdentityCasesPage has cognitive complexity 56 (threshold 15). Drivers by points: ternaries 18 (37 pts), boolean chains 9, if/else 7 (9 pts), error handling 1 (nesting depth added 21). Most of this is not in the body itself: 9 of the 56 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 338, activeCaseLabel, candidateLabel, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · page.TraceExplorerPage (cognitive 56) · ×1
  • page.TraceExplorerPage (cognitive 56) openbank-admin-ui/src/app/observability/traces/page.tsx:35 — page.TraceExplorerPage has cognitive complexity 56 (threshold 15). Drivers by points: ternaries 16 (41 pts), boolean chains 8, if/else 5, error handling 2 (nesting depth added 25). Of this number, 38 points are the body's own statements and 18 belong to 3 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · page.SwiftDetailPage (cognitive 56) · ×1
  • page.SwiftDetailPage (cognitive 56) openbank-admin-ui/src/app/swift/[id]/page.tsx:20 — page.SwiftDetailPage has cognitive complexity 56 (threshold 15). Drivers by points: ternaries 11 (34 pts), if/else 11 (14 pts), boolean chains 5, error handling 2 (3 pts) (nesting depth added 27). Of this number, 38 points are the body's own statements and 18 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · auto-update-armed-prs.self_test (cognitive 55) · ×1
  • auto-update-armed-prs.self_test (cognitive 55) .github/scripts/auto-update-armed-prs.py:214 — auto-update-armed-prs.self_test has cognitive complexity 55 (threshold 15). Drivers by points: ternaries 18 (31 pts), loops 11 (15 pts), boolean chains 8, error handling 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 · page.DocumentTemplatesPage (cognitive 55) · ×1
  • page.DocumentTemplatesPage (cognitive 55) openbank-admin-ui/src/app/document-templates/page.tsx:194 — page.DocumentTemplatesPage has cognitive complexity 55 (threshold 15). Drivers by points: boolean chains 26, if/else 12 (13 pts), ternaries 8 (11 pts), error handling 5 (nesting depth added 4). Of this number, 24 points are the body's own statements and 31 belong to 26 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · page.ProductDetailPanel (cognitive 55) · ×1
  • page.ProductDetailPanel (cognitive 55) openbank-admin-ui/src/app/product-catalog/page.tsx:116 — page.ProductDetailPanel has cognitive complexity 55 (threshold 15). Drivers by points: boolean chains 46, ternaries 9. Of this number, 53 points are the body's own statements and 2 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · FxTrendChart.FxTrendChart (cognitive 55) · ×1
  • FxTrendChart.FxTrendChart (cognitive 55) openbank-admin-ui/src/components/fx/FxTrendChart.tsx:38 — FxTrendChart.FxTrendChart has cognitive complexity 55 (threshold 15). Drivers by points: ternaries 22 (47 pts), boolean chains 4, if/else 4 (nesting depth added 25). Of this number, 48 points are the body's own statements and 7 belong to 5 function literals inside it that branch. 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 · check-probe-port-listener.findings (cognitive 54) · ×1
  • check-probe-port-listener.findings (cognitive 54) .github/scripts/check-probe-port-listener.py:152 — check-probe-port-listener.findings has cognitive complexity 54 (threshold 15). Drivers by points: if/else 9 (30 pts), loops 5 (11 pts), boolean chains 10, ternaries 1 (3 pts) (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 · library_dependency_graph._tokens (cognitive 54) · ×1
  • library_dependency_graph._tokens (cognitive 54) .github/scripts/library_dependency_graph.py:29 — library_dependency_graph._tokens has cognitive complexity 54 (threshold 15). Drivers by points: if/else 12 (29 pts), loops 4 (11 pts), ternaries 3 (9 pts), boolean chains 5 (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 · page.CardDetailPage (cognitive 54) · ×1
  • page.CardDetailPage (cognitive 54) openbank-admin-ui/src/app/cards/[id]/page.tsx:76 — page.CardDetailPage has cognitive complexity 54 (threshold 15). Drivers by points: boolean chains 22, ternaries 10 (20 pts), if/else 11, error handling 1 (nesting depth added 10). Of this number, 40 points are the body's own statements and 14 belong to 10 function items inside it that branch. 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 · check-alert-window-vs-subject-period.main (cognitive 53) · ×1
  • check-alert-window-vs-subject-period.main (cognitive 53) .github/scripts/check-alert-window-vs-subject-period.py:357 — check-alert-window-vs-subject-period.main has cognitive complexity 53 (threshold 15). Drivers by points: if/else 18 (33 pts), loops 6 (8 pts), boolean chains 5, ternaries 4 (5 pts), error handling 1 (2 pts) (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 · check-catalog-kernel-neutral.check (cognitive 53) · ×1
  • check-catalog-kernel-neutral.check (cognitive 53) .github/scripts/check-catalog-kernel-neutral.py:104 — check-catalog-kernel-neutral.check has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (39 pts), loops 8 (11 pts), boolean chains 3 (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 · check-fleet-release-evidence.check_fleet (cognitive 53) · ×1
  • check-fleet-release-evidence.check_fleet (cognitive 53) .github/scripts/check-fleet-release-evidence.py:147 — check-fleet-release-evidence.check_fleet has cognitive complexity 53 (threshold 15). Drivers by points: if/else 20 (40 pts), boolean chains 9, error handling 1 (2 pts), loops 2 (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 · check-product-ir-run-limits.check_document (cognitive 53) · ×1
  • check-product-ir-run-limits.check_document (cognitive 53) .github/scripts/check-product-ir-run-limits.py:80 — check-product-ir-run-limits.check_document has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (28 pts), boolean chains 18, loops 6 (7 pts) (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 · merge_authorization_proof.app_authorization (cognitive 53) · ×1
  • merge_authorization_proof.app_authorization (cognitive 53) .github/scripts/merge_authorization_proof.py:116 — merge_authorization_proof.app_authorization has cognitive complexity 53 (threshold 15). Drivers by points: if/else 24 (30 pts), boolean chains 21, loops 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.
D2 · Cognitive Complexity · page.AccountDetailPage (cognitive 53) · ×1
  • page.AccountDetailPage (cognitive 53) openbank-admin-ui/src/app/accounts/[id]/page.tsx:29 — page.AccountDetailPage has cognitive complexity 53 (threshold 15). Drivers by points: ternaries 15 (23 pts), if/else 17 (20 pts), boolean chains 7, error handling 3 (nesting depth added 11). Most of this is not in the body itself: 13 of the 53 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 48, doAction, a function literal at line 305, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · page.OnboardingAnalyticsPage (cognitive 53) · ×1
  • page.OnboardingAnalyticsPage (cognitive 53) openbank-admin-ui/src/app/onboarding/analytics/page.tsx:51 — page.OnboardingAnalyticsPage has cognitive complexity 53 (threshold 15). Drivers by points: ternaries 15 (33 pts), if/else 8 (10 pts), boolean chains 9, error handling 1 (nesting depth added 20). Of this number, 38 points are the body's own statements and 15 belong to 3 function literals inside it that branch. 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 · check-honeytoken-wiring.scan (cognitive 52) · ×1
  • check-honeytoken-wiring.scan (cognitive 52) .github/scripts/check-honeytoken-wiring.py:206 — check-honeytoken-wiring.scan has cognitive complexity 52 (threshold 15). Drivers by points: if/else 17 (32 pts), loops 10 (11 pts), boolean chains 7, ternaries 1 (2 pts) (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 · CurveUploadForm.CurveUploadForm (cognitive 52) · ×1
  • CurveUploadForm.CurveUploadForm (cognitive 52) openbank-admin-ui/src/components/balance-sheet/CurveUploadForm.tsx:29 — CurveUploadForm.CurveUploadForm has cognitive complexity 52 (threshold 15). Drivers by points: ternaries 20 (29 pts), boolean chains 11, if/else 7 (9 pts), loops 2 (3 pts) (nesting depth added 12). Of this number, 31 points are the body's own statements and 21 belong to 10 function items inside it that branch. 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 · check-network-policy-code-edges.load_gitops (cognitive 51) · ×1
  • check-network-policy-code-edges.load_gitops (cognitive 51) .github/scripts/check-network-policy-code-edges.py:89 — check-network-policy-code-edges.load_gitops has cognitive complexity 51 (threshold 15). Drivers by points: loops 5 (16 pts), if/else 4 (14 pts), boolean chains 12, ternaries 1 (5 pts), error handling 2 (4 pts) (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 · gen-agents-opa-data.analyse (cognitive 51) · ×1
  • gen-agents-opa-data.analyse (cognitive 51) .github/scripts/gen-agents-opa-data.py:175 — gen-agents-opa-data.analyse has cognitive complexity 51 (threshold 15). Drivers by points: if/else 8 (29 pts), loops 9 (19 pts), boolean chains 3 (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 · gen-eu-ai-act.main (cognitive 51) · ×1
  • gen-eu-ai-act.main (cognitive 51) .github/scripts/gen-eu-ai-act.py:98 — gen-eu-ai-act.main has cognitive complexity 51 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 18, ternaries 3 (5 pts), loops 3 (4 pts) (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 · page.LedgerBackfillVoid (cognitive 51) · ×1
  • page.LedgerBackfillVoid (cognitive 51) openbank-admin-ui/src/app/balance-sheet/ledger-backfill/voids/page.tsx:56 — page.LedgerBackfillVoid has cognitive complexity 51 (threshold 15). Drivers by points: boolean chains 20, ternaries 11 (20 pts), if/else 11 (nesting depth added 9). Of this number, 18 points are the body's own statements and 33 belong to 10 function items inside it that branch. 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 · page.OnboardingPage (cognitive 51) · ×1
  • page.OnboardingPage (cognitive 51) openbank-admin-ui/src/app/onboarding/page.tsx:63 — page.OnboardingPage has cognitive complexity 51 (threshold 15). Drivers by points: if/else 17 (23 pts), ternaries 9 (16 pts), boolean chains 10, error handling 2 (nesting depth added 13). Of this number, 16 points are the body's own statements and 35 belong to 8 function literals inside it that branch. 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 · page.ContractDetail (cognitive 51) · ×1
  • page.ContractDetail (cognitive 51) openbank-admin-ui/src/app/pension/contracts/[id]/page.tsx:39 — page.ContractDetail has cognitive complexity 51 (threshold 15). Drivers by points: ternaries 12 (38 pts), if/else 7 (8 pts), boolean chains 4, loops 1 (nesting depth added 27). Of this number, 30 points are the body's own statements and 21 belong to 3 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · page.DealDetail (cognitive 51) · ×1
  • page.DealDetail (cognitive 51) openbank-admin-ui/src/app/treasury/deals/[id]/page.tsx:57 — page.DealDetail has cognitive complexity 51 (threshold 15). Drivers by points: ternaries 17 (25 pts), boolean chains 17, if/else 9 (nesting depth added 8). Of this number, 27 points are the body's own statements and 24 belong to 9 function items inside it that branch. 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 · check-mtls-bearer-only.overriding_permissions (cognitive 50) · ×1
  • check-mtls-bearer-only.overriding_permissions (cognitive 50) .github/scripts/check-mtls-bearer-only.py:163 — check-mtls-bearer-only.overriding_permissions has cognitive complexity 50 (threshold 15). Drivers by points: if/else 10 (32 pts), loops 5 (11 pts), ternaries 1 (5 pts), boolean chains 2 (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 · page.InterestPage (cognitive 50) · ×1
  • page.InterestPage (cognitive 50) openbank-admin-ui/src/app/interest/page.tsx:45 — page.InterestPage has cognitive complexity 50 (threshold 15). Drivers by points: ternaries 16 (38 pts), boolean chains 11, if/else 1 (nesting depth added 22). Of this number, 47 points are the body's own statements and 3 belong to 2 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · page.KycPage (cognitive 50) · ×1
  • page.KycPage (cognitive 50) openbank-admin-ui/src/app/kyc/page.tsx:22 — page.KycPage has cognitive complexity 50 (threshold 15). Drivers by points: boolean chains 18, if/else 12 (18 pts), ternaries 9 (13 pts), error handling 1 (nesting depth added 10). Of this number, 19 points are the body's own statements and 31 belong to 3 function literals inside it that branch. 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 · page.TemporalFlowPage (cognitive 50) · ×1
  • page.TemporalFlowPage (cognitive 50) openbank-admin-ui/src/app/temporal/flow/page.tsx:39 — page.TemporalFlowPage has cognitive complexity 50 (threshold 15). Drivers by points: ternaries 30 (37 pts), boolean chains 10, if/else 2, error handling 1 (nesting depth added 7). Of this number, 25 points are the body's own statements and 25 belong to 6 function items inside it that branch. 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 · check-product-ir-determinism.static_findings (cognitive 49) · ×1
  • check-product-ir-determinism.static_findings (cognitive 49) .github/scripts/check-product-ir-determinism.py:85 — check-product-ir-determinism.static_findings has cognitive complexity 49 (threshold 15). Drivers by points: if/else 16 (31 pts), loops 4 (7 pts), boolean chains 5, error handling 1 (3 pts), ternaries 1 (3 pts) (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 · route.GET (cognitive 49) · ×1
  • route.GET (cognitive 49) openbank-admin-ui/src/app/api/customer-360/[partyId]/route.ts:110 — route.GET has cognitive complexity 49 (threshold 15). Drivers by points: if/else 13 (23 pts), ternaries 7 (16 pts), boolean chains 6, error handling 2 (3 pts), 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 · page.CampaignsPage (cognitive 49) · ×1
  • page.CampaignsPage (cognitive 49) openbank-admin-ui/src/app/campaigns/page.tsx:104 — page.CampaignsPage has cognitive complexity 49 (threshold 15). Drivers by points: boolean chains 20, ternaries 12 (17 pts), if/else 12 (nesting depth added 5). Of this number, 17 points are the body's own statements and 32 belong to 14 function items inside it that branch. 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 · QualityGateHealthPanel.QualityGateHealthPanel (cognitive 49) · ×1
  • QualityGateHealthPanel.QualityGateHealthPanel (cognitive 49) openbank-admin-ui/src/components/devops/QualityGateHealthPanel.tsx:105 — QualityGateHealthPanel.QualityGateHealthPanel has cognitive complexity 49 (threshold 15). Drivers by points: boolean chains 20, ternaries 6 (14 pts), if/else 9 (12 pts), error handling 2, match/switch 1 (nesting depth added 11). Of this number, 16 points are the body's own statements and 33 belong to 4 function items inside it that branch. 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 · LifecycleStrip.LifecycleStrip (cognitive 49) · ×1
  • LifecycleStrip.LifecycleStrip (cognitive 49) openbank-admin-ui/src/components/infra/LifecycleStrip.tsx:67 — LifecycleStrip.LifecycleStrip has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 15 (27 pts), boolean chains 21, error handling 1 (nesting depth added 12). Of this number, 38 points are the body's own statements and 11 belong to one function item inside it that branches. 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 · check-api-contract.strip_comments (cognitive 48) · ×1
  • check-api-contract.strip_comments (cognitive 48) .github/scripts/check-api-contract.py:224 — check-api-contract.strip_comments has cognitive complexity 48 (threshold 15). Drivers by points: if/else 9 (26 pts), ternaries 3 (8 pts), boolean chains 7, loops 3 (7 pts) (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 · check-enforcement-reachability.strip_comments (cognitive 48) · ×1
  • check-enforcement-reachability.strip_comments (cognitive 48) .github/scripts/check-enforcement-reachability.py:72 — check-enforcement-reachability.strip_comments has cognitive complexity 48 (threshold 15). Drivers by points: if/else 9 (26 pts), ternaries 3 (10 pts), loops 3 (7 pts), boolean chains 5 (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 · check-security-checklist.run (cognitive 48) · ×1
  • check-security-checklist.run (cognitive 48) .github/scripts/check-security-checklist.py:662 — check-security-checklist.run has cognitive complexity 48 (threshold 15). Drivers by points: if/else 22 (25 pts), ternaries 5 (10 pts), loops 5 (7 pts), boolean chains 6 (nesting depth added 10). 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 · check-threat-model-claims.audit_models (cognitive 48) · ×1
  • check-threat-model-claims.audit_models (cognitive 48) .github/scripts/check-threat-model-claims.py:969 — check-threat-model-claims.audit_models has cognitive complexity 48 (threshold 15). Drivers by points: if/else 10 (37 pts), loops 3 (6 pts), ternaries 1 (3 pts), boolean chains 2 (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 · merge-train.qualifies (cognitive 48) · ×1
  • merge-train.qualifies (cognitive 48) .github/scripts/merge-train.py:724 — merge-train.qualifies has cognitive complexity 48 (threshold 15). Drivers by points: if/else 19 (28 pts), boolean chains 11, loops 7, ternaries 1 (2 pts) (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 · rewrite-reconcile-image-pins.rewrite (cognitive 48) · ×1
  • rewrite-reconcile-image-pins.rewrite (cognitive 48) .github/scripts/rewrite-reconcile-image-pins.py:25 — rewrite-reconcile-image-pins.rewrite has cognitive complexity 48 (threshold 15). Drivers by points: if/else 15 (35 pts), boolean chains 9, loops 3 (4 pts) (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 · run-gates.execute (cognitive 48) · ×1
  • run-gates.execute (cognitive 48) .github/scripts/run-gates.py:588 — run-gates.execute has cognitive complexity 48 (threshold 15). Drivers by points: if/else 17 (22 pts), ternaries 9 (19 pts), boolean chains 7 (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 · cloud-finops-collect.evaluate (cognitive 48) · ×1
  • cloud-finops-collect.evaluate (cognitive 48) openbank-infra/scripts/cloud-finops-collect.py:168 — cloud-finops-collect.evaluate has cognitive complexity 48 (threshold 15). Drivers by points: if/else 12 (32 pts), loops 6 (13 pts), boolean chains 3 (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 · page.RegulatoryPage (cognitive 48) · ×1
  • page.RegulatoryPage (cognitive 48) openbank-admin-ui/src/app/regulatory/page.tsx:415 — page.RegulatoryPage has cognitive complexity 48 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 15, ternaries 11 (15 pts), error handling 2 (nesting depth added 6). Most of this is not in the body itself: 12 of the 48 points are its own statements and the rest belongs to 15 function items inside it that branch (loadPreview, a function literal at line 572, a function literal at line 685, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · check-asvs-l3.main (cognitive 47) · ×1
  • check-asvs-l3.main (cognitive 47) .github/scripts/check-asvs-l3.py:219 — check-asvs-l3.main has cognitive complexity 47 (threshold 15). Drivers by points: if/else 10 (20 pts), ternaries 4 (15 pts), loops 4 (10 pts), boolean chains 2 (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 · check-event-contract-code-agreement.parse_outbox_literals (cognitive 47) · ×1
  • check-event-contract-code-agreement.parse_outbox_literals (cognitive 47) .github/scripts/check-event-contract-code-agreement.py:463 — check-event-contract-code-agreement.parse_outbox_literals has cognitive complexity 47 (threshold 15). Drivers by points: if/else 9 (26 pts), loops 6 (11 pts), ternaries 2 (7 pts), boolean chains 3 (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 · check-loki-rule-self-match.selector_excludes_loki (cognitive 47) · ×1
  • check-loki-rule-self-match.selector_excludes_loki (cognitive 47) .github/scripts/check-loki-rule-self-match.py:71 — check-loki-rule-self-match.selector_excludes_loki has cognitive complexity 47 (threshold 15). Drivers by points: if/else 10 (30 pts), error handling 3 (11 pts), boolean chains 5, loops 1 (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 · page.BcpPage (cognitive 47) · ×1
  • page.BcpPage (cognitive 47) openbank-admin-ui/src/app/docs/bcp/page.tsx:74 — page.BcpPage has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 40 (60 pts), boolean chains 33, if/else 18 (22 pts), loops 4 (11 pts), error handling 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. This shape REPEATS in the file: one other method here (page.BcpPage::fetchHealth) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · page.PaymentDetailContent (cognitive 47) · ×1
  • page.PaymentDetailContent (cognitive 47) openbank-admin-ui/src/app/payments/[id]/page.tsx:44 — page.PaymentDetailContent has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 20 (46 pts), if/else 10 (15 pts), boolean chains 9, error handling 1 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (page.PaymentDetailContent::load) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · DelegationAuditTimeline.DelegationAuditTimeline (cognitive 47) · ×1
  • DelegationAuditTimeline.DelegationAuditTimeline (cognitive 47) openbank-admin-ui/src/components/delegations/DelegationAuditTimeline.tsx:183 — DelegationAuditTimeline.DelegationAuditTimeline has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 11 (21 pts), if/else 9 (13 pts), boolean chains 10, error handling 2 (3 pts) (nesting depth added 15). Most of this is not in the body itself: 14 of the 47 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 191, 195, 236). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · OperationalEvidence.OperationalEvidence (cognitive 47) · ×1
  • OperationalEvidence.OperationalEvidence (cognitive 47) openbank-admin-ui/src/components/observability/OperationalEvidence.tsx:47 — OperationalEvidence.OperationalEvidence has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 25 (36 pts), boolean chains 7, if/else 4 (nesting depth added 11). Of this number, 40 points are the body's own statements and 7 belong to 5 function literals inside it that branch. 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 · check-domain-purity.strip_kotlin_noise (cognitive 46) · ×1
  • check-domain-purity.strip_kotlin_noise (cognitive 46) .github/scripts/check-domain-purity.py:127 — check-domain-purity.strip_kotlin_noise has cognitive complexity 46 (threshold 15). Drivers by points: if/else 9 (23 pts), ternaries 5 (16 pts), loops 2 (4 pts), boolean chains 3 (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 · page.SnapshotLiquidityForecast (cognitive 46) · ×1
  • page.SnapshotLiquidityForecast (cognitive 46) openbank-admin-ui/src/app/balance-sheet/snapshots/[id]/liquidity-forecast/page.tsx:51 — page.SnapshotLiquidityForecast has cognitive complexity 46 (threshold 15). Drivers by points: ternaries 11 (37 pts), boolean chains 5, if/else 4 (nesting depth added 26). Most of this is not in the body itself: 15 of the 46 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 114, 69, 155, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · page.ReportingPage (cognitive 46) · ×1
  • page.ReportingPage (cognitive 46) openbank-admin-ui/src/app/reporting/page.tsx:47 — page.ReportingPage has cognitive complexity 46 (threshold 15). Drivers by points: boolean chains 19, if/else 14 (17 pts), ternaries 5, error handling 3, loops 2 (nesting depth added 3). Of this number, 16 points are the body's own statements and 30 belong to 8 function literals inside it that branch. 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 · aggregate-admin-ui-http-trace.build_report (cognitive 45) · ×1
  • aggregate-admin-ui-http-trace.build_report (cognitive 45) .github/scripts/aggregate-admin-ui-http-trace.py:105 — aggregate-admin-ui-http-trace.build_report has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 6 (16 pts), if/else 8 (14 pts), boolean chains 8, loops 3 (7 pts) (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 · await-admin-ui-source-validation.pact_push_path_patterns (cognitive 45) · ×1
  • await-admin-ui-source-validation.pact_push_path_patterns (cognitive 45) .github/scripts/await-admin-ui-source-validation.py:31 — await-admin-ui-source-validation.pact_push_path_patterns has cognitive complexity 45 (threshold 15). Drivers by points: if/else 14 (36 pts), boolean chains 4, error handling 1 (3 pts), loops 1, ternaries 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 · check-configproperty-supplied.findings (cognitive 45) · ×1
  • check-configproperty-supplied.findings (cognitive 45) .github/scripts/check-configproperty-supplied.py:241 — check-configproperty-supplied.findings has cognitive complexity 45 (threshold 15). Drivers by points: if/else 10 (26 pts), loops 5 (10 pts), boolean chains 6, error handling 1 (3 pts) (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 · check-deploy-pin-monotonic.judge (cognitive 45) · ×1
  • check-deploy-pin-monotonic.judge (cognitive 45) .github/scripts/check-deploy-pin-monotonic.py:300 — check-deploy-pin-monotonic.judge has cognitive complexity 45 (threshold 15). Drivers by points: if/else 8 (24 pts), boolean chains 8, loops 4 (8 pts), ternaries 1 (5 pts) (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 · check-stuck-service-build.classify (cognitive 45) · ×1
  • check-stuck-service-build.classify (cognitive 45) .github/scripts/check-stuck-service-build.py:46 — check-stuck-service-build.classify has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (35 pts), boolean chains 9, 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 · page.NewAccountPage (cognitive 45) · ×1
  • page.NewAccountPage (cognitive 45) openbank-admin-ui/src/app/accounts/new/page.tsx:24 — page.NewAccountPage has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 16 (24 pts), boolean chains 10, if/else 10, error handling 1 (nesting depth added 8). Of this number, 25 points are the body's own statements and 20 belong to 5 function items inside it that branch. 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 · route.GET (cognitive 45) · ×1
  • route.GET (cognitive 45) REDACTED:153 — route.GET has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 15 (18 pts), if/else 15 (17 pts), boolean chains 10 (nesting depth added 5). Most of this is not in the body itself: 2 of the 45 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 165, 170). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · page.LedgerBackfill (cognitive 45) · ×1
  • page.LedgerBackfill (cognitive 45) openbank-admin-ui/src/app/balance-sheet/ledger-backfill/page.tsx:50 — page.LedgerBackfill has cognitive complexity 45 (threshold 15). Drivers by points: boolean chains 19, ternaries 10 (16 pts), if/else 10 (nesting depth added 6). Of this number, 17 points are the body's own statements and 28 belong to 9 function items inside it that branch. 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 · DataUnavailable.copyFor (cognitive 45) · ×1
  • DataUnavailable.copyFor (cognitive 45) openbank-admin-ui/src/components/feedback/DataUnavailable.tsx:42 — DataUnavailable.copyFor has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 20 (44 pts), match/switch 1 (nesting depth added 24). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · check-public-workload-ha.public_backends (cognitive 44) · ×1
  • check-public-workload-ha.public_backends (cognitive 44) .github/scripts/check-public-workload-ha.py:70 — check-public-workload-ha.public_backends has cognitive complexity 44 (threshold 15). Drivers by points: loops 6 (18 pts), boolean chains 15, if/else 3 (11 pts) (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 · check-threat-model-claims.self_test (cognitive 44) · ×1
  • check-threat-model-claims.self_test (cognitive 44) .github/scripts/check-threat-model-claims.py:1018 — check-threat-model-claims.self_test has cognitive complexity 44 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 9 (14 pts), ternaries 3 (4 pts), boolean chains 3 (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 · merge-train.verify_bundle_train (cognitive 44) · ×1
  • merge-train.verify_bundle_train (cognitive 44) .github/scripts/merge-train.py:1380 — merge-train.verify_bundle_train has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (32 pts), loops 4 (7 pts), boolean chains 3, ternaries 1 (2 pts) (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 · merge-train.build_strict_carrier (cognitive 44) · ×1
  • merge-train.build_strict_carrier (cognitive 44) .github/scripts/merge-train.py:3539 — merge-train.build_strict_carrier has cognitive complexity 44 (threshold 15). Drivers by points: if/else 15 (32 pts), boolean chains 8, ternaries 1 (3 pts), 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 · merge_pr_policy.requires_exact_head (cognitive 44) · ×1
  • merge_pr_policy.requires_exact_head (cognitive 44) .github/scripts/merge_pr_policy.py:65 — merge_pr_policy.requires_exact_head has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 11, error handling 2 (5 pts), loops 2 (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 · verify-release-evidence-manifest.verify (cognitive 44) · ×1
  • verify-release-evidence-manifest.verify (cognitive 44) .github/scripts/verify-release-evidence-manifest.py:13 — verify-release-evidence-manifest.verify has cognitive complexity 44 (threshold 15). Drivers by points: if/else 20 (32 pts), boolean chains 10, error handling 1, 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 · page.SegmentsPage (cognitive 44) · ×1
  • page.SegmentsPage (cognitive 44) openbank-admin-ui/src/app/segments/page.tsx:31 — page.SegmentsPage has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (18 pts), ternaries 7 (15 pts), boolean chains 9, error handling 2 (nesting depth added 10). Most of this is not in the body itself: 8 of the 44 points are its own statements and the rest belongs to 13 function items inside it that branch (a function literal at line 48, renderPreview, a function literal at line 79, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · page.ServiceConfigPage (cognitive 44) · ×1
  • page.ServiceConfigPage (cognitive 44) openbank-admin-ui/src/app/system/config/page.tsx:74 — page.ServiceConfigPage has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 22, ternaries 10 (13 pts), if/else 7 (8 pts), error handling 1 (nesting depth added 4). Most of this is not in the body itself: 9 of the 44 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 196, 84, 118, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · check-admin-ui-a11y-route-coverage.test_bodies (cognitive 43) · ×1
  • check-admin-ui-a11y-route-coverage.test_bodies (cognitive 43) .github/scripts/check-admin-ui-a11y-route-coverage.py:32 — check-admin-ui-a11y-route-coverage.test_bodies has cognitive complexity 43 (threshold 15). Drivers by points: if/else 10 (34 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (3 pts) (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 · check-agent-case-schema.validate (cognitive 43) · ×1
  • check-agent-case-schema.validate (cognitive 43) .github/scripts/check-agent-case-schema.py:81 — check-agent-case-schema.validate has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (32 pts), loops 4 (7 pts), boolean chains 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 · check_library_quality_evidence.require_proofs (cognitive 43) · ×1
  • check_library_quality_evidence.require_proofs (cognitive 43) .github/scripts/check_library_quality_evidence.py:183 — check_library_quality_evidence.require_proofs has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (35 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · Header.Header (cognitive 43) · ×1
  • Header.Header (cognitive 43) openbank-admin-ui/src/components/layout/Header.tsx:25 — Header.Header has cognitive complexity 43 (threshold 15). Drivers by points: boolean chains 16, if/else 13 (15 pts), ternaries 12 (nesting depth added 2). Of this number, 19 points are the body's own statements and 24 belong to 16 function items inside it that branch. 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 · check-cnpg-scrape-coverage.self_test (cognitive 42) · ×1
  • check-cnpg-scrape-coverage.self_test (cognitive 42) .github/scripts/check-cnpg-scrape-coverage.py:752 — check-cnpg-scrape-coverage.self_test has cognitive complexity 42 (threshold 15). Drivers by points: if/else 24 (28 pts), boolean chains 6, loops 6, ternaries 2 (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 · check-libs-annotations-implemented.check_rule_b (cognitive 42) · ×1
  • check-libs-annotations-implemented.check_rule_b (cognitive 42) .github/scripts/check-libs-annotations-implemented.py:283 — check-libs-annotations-implemented.check_rule_b has cognitive complexity 42 (threshold 15). Drivers by points: if/else 6 (23 pts), loops 5 (11 pts), ternaries 4 (8 pts) (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 · derive-codeploy-set.derive (cognitive 42) · ×1
  • derive-codeploy-set.derive (cognitive 42) .github/scripts/derive-codeploy-set.py:134 — derive-codeploy-set.derive has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (29 pts), loops 6 (10 pts), boolean chains 3 (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 · handler.update_state (cognitive 42) · ×1
  • handler.update_state (cognitive 42) REDACTED:171 — handler.update_state has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 7 (14 pts), boolean chains 12, if/else 5 (11 pts), loops 3 (5 pts) (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 · page.AuditPage (cognitive 42) · ×1
  • page.AuditPage (cognitive 42) openbank-admin-ui/src/app/audit/page.tsx:28 — page.AuditPage has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 18, if/else 12 (16 pts), ternaries 4 (5 pts), error handling 3 (nesting depth added 5). Of this number, 19 points are the body's own statements and 23 belong to 7 function items inside it that branch. 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 · page.LoyaltyPage (cognitive 42) · ×1
  • page.LoyaltyPage (cognitive 42) openbank-admin-ui/src/app/loyalty/page.tsx:42 — page.LoyaltyPage has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 28, if/else 9 (10 pts), ternaries 3, error handling 1 (nesting depth added 1). Of this number, 30 points are the body's own statements and 12 belong to 8 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · OperatorApprovalWorkbench.OperatorApprovalWorkbench (cognitive 42) · ×1
  • OperatorApprovalWorkbench.OperatorApprovalWorkbench (cognitive 42) openbank-admin-ui/src/components/approvals/OperatorApprovalWorkbench.tsx:44 — OperatorApprovalWorkbench.OperatorApprovalWorkbench has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 19, ternaries 7 (11 pts), if/else 9 (10 pts), error handling 2 (nesting depth added 5). Of this number, 20 points are the body's own statements and 22 belong to 5 function items inside it that branch. 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 · RegulatoryPeriodPanel.RegulatoryPeriodPanel (cognitive 42) · ×1
  • RegulatoryPeriodPanel.RegulatoryPeriodPanel (cognitive 42) openbank-admin-ui/src/components/closings/RegulatoryPeriodPanel.tsx:51 — RegulatoryPeriodPanel.RegulatoryPeriodPanel has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 10 (20 pts), boolean chains 14, if/else 4 (5 pts), error handling 3 (nesting depth added 11). Of this number, 27 points are the body's own statements and 15 belong to 3 function literals inside it that branch. 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 · editor.courseProblems (cognitive 42) · ×1
  • editor.courseProblems (cognitive 42) openbank-admin-ui/src/lib/game/editor.ts:135 — editor.courseProblems has cognitive complexity 42 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 4 (9 pts), boolean chains 7, ternaries 1 (5 pts) (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 · check-critical-alert-egress.critical_rules_with_volatile_summary (cognitive 41) · ×1
  • check-critical-alert-egress.critical_rules_with_volatile_summary (cognitive 41) .github/scripts/check-critical-alert-egress.py:170 — check-critical-alert-egress.critical_rules_with_volatile_summary has cognitive complexity 41 (threshold 15). Drivers by points: if/else 5 (20 pts), loops 4 (10 pts), boolean chains 9, error handling 1 (2 pts) (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 · check-kafka-cert-reader-grant.analyse (cognitive 41) · ×1
  • check-kafka-cert-reader-grant.analyse (cognitive 41) .github/scripts/check-kafka-cert-reader-grant.py:81 — check-kafka-cert-reader-grant.analyse has cognitive complexity 41 (threshold 15). Drivers by points: if/else 5 (17 pts), boolean chains 11, loops 4 (10 pts), ternaries 1 (3 pts) (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 · check-realm-user-role-parity.load_live (cognitive 41) · ×1
  • check-realm-user-role-parity.load_live (cognitive 41) .github/scripts/check-realm-user-role-parity.py:140 — check-realm-user-role-parity.load_live has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 5 (16 pts), if/else 7 (11 pts), loops 3 (8 pts), boolean chains 6 (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 · check-stale-comment-references.c_comments (cognitive 41) · ×1
  • check-stale-comment-references.c_comments (cognitive 41) .github/scripts/check-stale-comment-references.py:161 — check-stale-comment-references.c_comments has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (31 pts), ternaries 2 (5 pts), boolean chains 4, loops 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 · library_dependency_graph._declarations (cognitive 41) · ×1
  • library_dependency_graph._declarations (cognitive 41) .github/scripts/library_dependency_graph.py:86 — library_dependency_graph._declarations has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (31 pts), boolean chains 9, loops 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 · HttpFixture.route (cognitive 41) · ×1
  • HttpFixture.route (cognitive 41) .github/scripts/merge-train.py:4302 — HttpFixture.route has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 16, ternaries 3 (6 pts) (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.
D2 · Cognitive Complexity · contentSnapshot.validServiceGraph (cognitive 41) · ×1
  • contentSnapshot.validServiceGraph (cognitive 41) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:124 — contentSnapshot.validServiceGraph has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 12, loops 8 (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 · AgentChatService.chatLoop (cognitive 40) · ×1
  • AgentChatService.chatLoop (cognitive 40) openbank-agent-service/src/main/kotlin/com/openbank/agent/application/AgentChatService.kt:199 — AgentChatService.chatLoop has cognitive complexity 40 (threshold 15). Drivers by points: if/else 21 (30 pts), boolean chains 8, 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 · check-artifact-lock.check_text (cognitive 40) · ×1
  • check-artifact-lock.check_text (cognitive 40) .github/scripts/check-artifact-lock.py:42 — check-artifact-lock.check_text has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 8, loops 2 (3 pts), error handling 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 · check-event-schema-compat.strip_comments (cognitive 40) · ×1
  • check-event-schema-compat.strip_comments (cognitive 40) .github/scripts/check-event-schema-compat.py:77 — check-event-schema-compat.strip_comments has cognitive complexity 40 (threshold 15). Drivers by points: if/else 7 (18 pts), ternaries 3 (12 pts), loops 3 (8 pts), boolean chains 2 (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 · check-msg-channel-image-parity.main (cognitive 40) · ×1
  • check-msg-channel-image-parity.main (cognitive 40) .github/scripts/check-msg-channel-image-parity.py:407 — check-msg-channel-image-parity.main has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (25 pts), loops 6 (10 pts), ternaries 1 (3 pts), boolean chains 2 (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 · check-realm-user-role-parity.compare (cognitive 40) · ×1
  • check-realm-user-role-parity.compare (cognitive 40) .github/scripts/check-realm-user-role-parity.py:186 — check-realm-user-role-parity.compare has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (29 pts), ternaries 3 (6 pts), boolean chains 4, 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 · check-temporal-namespace-registration.namespace_declarations (cognitive 40) · ×1
  • check-temporal-namespace-registration.namespace_declarations (cognitive 40) .github/scripts/check-temporal-namespace-registration.py:126 — check-temporal-namespace-registration.namespace_declarations has cognitive complexity 40 (threshold 15). Drivers by points: if/else 5 (20 pts), loops 5 (15 pts), boolean chains 5 (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 · classify-pact-drift-scope._classify (cognitive 40) · ×1
  • classify-pact-drift-scope._classify (cognitive 40) .github/scripts/classify-pact-drift-scope.py:163 — classify-pact-drift-scope._classify has cognitive complexity 40 (threshold 15). Drivers by points: if/else 22 (33 pts), error handling 3, boolean chains 2, loops 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 · GitHub.failures_inconclusive (cognitive 40) · ×1
  • GitHub.failures_inconclusive (cognitive 40) .github/scripts/merge-train.py:2017 — GitHub.failures_inconclusive has cognitive complexity 40 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 8, loops 5 (7 pts), ternaries 2 (6 pts) (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 · verify-successful-service-ci.resolve_reconcile_service_sources (cognitive 40) · ×1
  • verify-successful-service-ci.resolve_reconcile_service_sources (cognitive 40) .github/scripts/verify-successful-service-ci.py:708 — verify-successful-service-ci.resolve_reconcile_service_sources has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (30 pts), loops 3 (6 pts), boolean chains 4 (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 · page.Strategies (cognitive 40) · ×1
  • page.Strategies (cognitive 40) openbank-admin-ui/src/app/pension/strategies/page.tsx:47 — page.Strategies has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 10 (20 pts), boolean chains 10, if/else 10 (nesting depth added 10). Most of this is not in the body itself: 15 of the 40 points are its own statements and the rest belongs to 10 function items inside it that branch (propose, act, a function literal at line 68, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · page.SecurityExcellencePage (cognitive 40) · ×1
  • page.SecurityExcellencePage (cognitive 40) openbank-admin-ui/src/app/security/excellence/page.tsx:426 — page.SecurityExcellencePage has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 15 (19 pts), if/else 14 (15 pts), boolean chains 4, loops 1, match/switch 1 (nesting depth added 5). Most of this is not in the body itself: 10 of the 40 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 608, a function literal at line 519, a function literal at line 437, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · gateHealthSnapshot.validateGateHealthSnapshotData (cognitive 40) · ×1
  • gateHealthSnapshot.validateGateHealthSnapshotData (cognitive 40) openbank-admin-ui/src/lib/evidence/gateHealthSnapshot.ts:62 — gateHealthSnapshot.validateGateHealthSnapshotData has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 13, loops 4 (6 pts) (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 · check-no-runblocking-in-scheduled.main (cognitive 39) · ×1
  • check-no-runblocking-in-scheduled.main (cognitive 39) .github/scripts/check-no-runblocking-in-scheduled.py:330 — check-no-runblocking-in-scheduled.main has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (27 pts), loops 5 (10 pts), boolean chains 1, ternaries 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 · GitHub.rerun_inconclusive (cognitive 39) · ×1
  • GitHub.rerun_inconclusive (cognitive 39) .github/scripts/merge-train.py:1955 — GitHub.rerun_inconclusive has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 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 · merge_pr_policy.premerge_policy_context (cognitive 39) · ×1
  • merge_pr_policy.premerge_policy_context (cognitive 39) .github/scripts/merge_pr_policy.py:117 — merge_pr_policy.premerge_policy_context has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 15, 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 · page.ClusterDossierPage (cognitive 39) · ×1
  • page.ClusterDossierPage (cognitive 39) openbank-admin-ui/src/app/docs/cluster/page.tsx:162 — page.ClusterDossierPage has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 14 (15 pts), boolean chains 13, if/else 8 (9 pts), error handling 1, loops 1 (nesting depth added 2). Most of this is not in the body itself: 6 of the 39 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 173, 328, 290, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · Sidebar.Sidebar (cognitive 39) · ×1
  • Sidebar.Sidebar (cognitive 39) openbank-admin-ui/src/components/layout/Sidebar.tsx:20 — Sidebar.Sidebar has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19, boolean chains 12, ternaries 7 (8 pts) (nesting depth added 1). Most of this is not in the body itself: 9 of the 39 points are its own statements and the rest belongs to 15 function literals inside it that branch (lines 135, 101, 108, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · auto-update-armed-prs.run (cognitive 38) · ×1
  • auto-update-armed-prs.run (cognitive 38) .github/scripts/auto-update-armed-prs.py:921 — auto-update-armed-prs.run has cognitive complexity 38 (threshold 15). Drivers by points: if/else 22 (31 pts), boolean chains 4, 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 · check-event-schema-compat.main (cognitive 38) · ×1
  • check-event-schema-compat.main (cognitive 38) .github/scripts/check-event-schema-compat.py:564 — check-event-schema-compat.main has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (22 pts), error handling 3 (8 pts), boolean chains 5, loops 2, ternaries 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 · check-kafka-dotted-keys.scan (cognitive 38) · ×1
  • check-kafka-dotted-keys.scan (cognitive 38) .github/scripts/check-kafka-dotted-keys.py:265 — check-kafka-dotted-keys.scan has cognitive complexity 38 (threshold 15). Drivers by points: if/else 4 (16 pts), ternaries 4 (14 pts), loops 3 (6 pts), boolean chains 2 (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 · check-product-ir-authoring-parity.findings (cognitive 38) · ×1
  • check-product-ir-authoring-parity.findings (cognitive 38) .github/scripts/check-product-ir-authoring-parity.py:105 — check-product-ir-authoring-parity.findings has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (25 pts), loops 4 (7 pts), boolean chains 3, error handling 1 (2 pts), ternaries 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 · check-product-revision-pinned.run (cognitive 38) · ×1
  • check-product-revision-pinned.run (cognitive 38) .github/scripts/check-product-revision-pinned.py:256 — check-product-revision-pinned.run has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 7 (8 pts), boolean chains 7, ternaries 3 (5 pts) (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 · ci-latency-report.job_row (cognitive 38) · ×1
  • ci-latency-report.job_row (cognitive 38) .github/scripts/ci-latency-report.py:59 — ci-latency-report.job_row has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (20 pts), ternaries 5 (7 pts), boolean chains 6, loops 2 (5 pts) (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 · gen-case-collaboration-opa-data.project (cognitive 38) · ×1
  • gen-case-collaboration-opa-data.project (cognitive 38) .github/scripts/gen-case-collaboration-opa-data.py:59 — gen-case-collaboration-opa-data.project has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (31 pts), boolean chains 5, loops 2 (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 · pact-reconcile-verifications.complete_run_history (cognitive 38) · ×1
  • pact-reconcile-verifications.complete_run_history (cognitive 38) .github/scripts/pact-reconcile-verifications.py:347 — pact-reconcile-verifications.complete_run_history has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 9, 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 · vex-triage.main (cognitive 38) · ×1
  • vex-triage.main (cognitive 38) .github/scripts/vex-triage.py:219 — vex-triage.main has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (31 pts), loops 4, 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 · page.ClearingPage (cognitive 38) · ×1
  • page.ClearingPage (cognitive 38) openbank-admin-ui/src/app/clearing/page.tsx:19 — page.ClearingPage has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 11 (30 pts), boolean chains 8 (nesting depth added 19). Of this number, 19 points are the body's own statements and 19 belong to 3 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · page.ScreenFeedbackPage (cognitive 38) · ×1
  • page.ScreenFeedbackPage (cognitive 38) openbank-admin-ui/src/app/feedback/page.tsx:46 — page.ScreenFeedbackPage has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 28 (34 pts), if/else 2, boolean chains 1, error handling 1 (nesting depth added 6). Of this number, 36 points are the body's own statements and 2 belong to 3 function items inside it that branch. 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 · page.AggregateRow (cognitive 38) · ×1
  • page.AggregateRow (cognitive 38) openbank-admin-ui/src/app/system/inventory/page.tsx:396 — page.AggregateRow has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 13 (35 pts), boolean chains 3 (nesting depth added 22). Of this number, 34 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · page.TransactionsPage · ×1
  • page.TransactionsPage::search (cognitive 38) openbank-admin-ui/src/app/transactions/page.tsx:132 — page.TransactionsPage::search has cognitive complexity 38 (threshold 15). Drivers by points: if/else 24 (28 pts), boolean chains 5, ternaries 1 (3 pts), error handling 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. This shape REPEATS in the file: one other method here (page.TransactionsPage) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · page.ApprovalInbox (cognitive 38) · ×1
  • page.ApprovalInbox (cognitive 38) openbank-admin-ui/src/app/treasury/approvals/page.tsx:42 — page.ApprovalInbox has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 13 (28 pts), boolean chains 7, if/else 3 (nesting depth added 15). Most of this is not in the body itself: 10 of the 38 points are its own statements and the rest belongs to 3 function items inside it that branch (decide, a function literal at line 132, a function literal at line 58). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · StepEditor.StepEditor (cognitive 38) · ×1
  • StepEditor.StepEditor (cognitive 38) openbank-admin-ui/src/components/campaigns/StepEditor.tsx:22 — StepEditor.StepEditor has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 20, ternaries 14 (17 pts), match/switch 1 (nesting depth added 3). Of this number, 18 points are the body's own statements and 20 belong to 11 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · GateCatalogExplorer.GateCatalogExplorer (cognitive 38) · ×1
  • GateCatalogExplorer.GateCatalogExplorer (cognitive 38) openbank-admin-ui/src/components/devops/GateCatalogExplorer.tsx:25 — GateCatalogExplorer.GateCatalogExplorer has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 10 (31 pts), boolean chains 6, if/else 1 (nesting depth added 21). Of this number, 29 points are the body's own statements and 9 belong to 4 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · check-event-schema-compat.compare_json_schema (cognitive 37) · ×1
  • check-event-schema-compat.compare_json_schema (cognitive 37) .github/scripts/check-event-schema-compat.py:296 — check-event-schema-compat.compare_json_schema has cognitive complexity 37 (threshold 15). Drivers by points: if/else 5 (14 pts), ternaries 6 (14 pts), loops 4 (7 pts), boolean chains 1, error handling 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 · check-external-feeds.self_test (cognitive 37) · ×1
  • check-external-feeds.self_test (cognitive 37) .github/scripts/check-external-feeds.py:668 — check-external-feeds.self_test has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 16 (28 pts), if/else 2 (4 pts), 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 · check-gitops-secret-refs.main (cognitive 37) · ×1
  • check-gitops-secret-refs.main (cognitive 37) .github/scripts/check-gitops-secret-refs.py:211 — check-gitops-secret-refs.main has cognitive complexity 37 (threshold 15). Drivers by points: loops 7 (17 pts), if/else 8 (13 pts), boolean chains 4, error handling 1 (2 pts), ternaries 1 (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · merge_authorization_proof.pr_request_observation (cognitive 37) · ×1
  • merge_authorization_proof.pr_request_observation (cognitive 37) .github/scripts/merge_authorization_proof.py:256 — merge_authorization_proof.pr_request_observation has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 14, loops 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 · platform-versions.deriveIac · ×1
  • platform-versions.deriveIac::visit (cognitive 37) openbank-admin-ui/scripts/lib/platform-versions.mjs:215 — platform-versions.deriveIac::visit has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (20 pts), ternaries 2 (9 pts), loops 3 (7 pts), 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 · page.DelegationsPage (cognitive 37) · ×1
  • page.DelegationsPage (cognitive 37) openbank-admin-ui/src/app/delegations/page.tsx:51 — page.DelegationsPage has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (23 pts), boolean chains 12, error handling 1, ternaries 1 (nesting depth added 3). Most of this is not in the body itself: 11 of the 37 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 116, 82, 142, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · page.LedgerPage (cognitive 37) · ×1
  • page.LedgerPage (cognitive 37) openbank-admin-ui/src/app/ledger/page.tsx:35 — page.LedgerPage has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 17, if/else 10 (12 pts), error handling 4, ternaries 4 (nesting depth added 2). Of this number, 18 points are the body's own statements and 19 belong to 7 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · page.CompliancePacksPage (cognitive 37) · ×1
  • page.CompliancePacksPage (cognitive 37) openbank-admin-ui/src/app/lending/compliance-packs/page.tsx:59 — page.CompliancePacksPage has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 20, if/else 7, ternaries 4 (6 pts), error handling 4 (nesting depth added 2). Of this number, 19 points are the body's own statements and 18 belong to 10 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · check-alert-window-vs-subject-period.iter_alert_rules (cognitive 36) · ×1
  • check-alert-window-vs-subject-period.iter_alert_rules (cognitive 36) .github/scripts/check-alert-window-vs-subject-period.py:257 — check-alert-window-vs-subject-period.iter_alert_rules has cognitive complexity 36 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 5 (15 pts), boolean chains 4, error handling 1 (2 pts) (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 · check-gitops-secret-refs.refs_in (cognitive 36) · ×1
  • check-gitops-secret-refs.refs_in (cognitive 36) .github/scripts/check-gitops-secret-refs.py:87 — check-gitops-secret-refs.refs_in has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 12, if/else 4 (12 pts), loops 6 (12 pts) (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 · check-realm-import-parity.main (cognitive 36) · ×1
  • check-realm-import-parity.main (cognitive 36) .github/scripts/check-realm-import-parity.py:180 — check-realm-import-parity.main has cognitive complexity 36 (threshold 15). Drivers by points: loops 7 (18 pts), if/else 8 (17 pts), boolean chains 1 (nesting depth added 20). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · page.ApplicationFlowPage (cognitive 36) · ×1
  • page.ApplicationFlowPage (cognitive 36) openbank-admin-ui/src/app/lending/applications/[id]/page.tsx:75 — page.ApplicationFlowPage has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 13, ternaries 7 (11 pts), if/else 6 (8 pts), error handling 2 (3 pts), loops 1 (nesting depth added 7). Most of this is not in the body itself: 15 of the 36 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 90, a function literal at line 129, stateLabel, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · check-gate-script-registration.coverage (cognitive 35) · ×1
  • check-gate-script-registration.coverage (cognitive 35) .github/scripts/check-gate-script-registration.py:136 — check-gate-script-registration.coverage has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 4 (7 pts), error handling 1 (3 pts), ternaries 2, 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 · check-journey-coverage.check (cognitive 35) · ×1
  • check-journey-coverage.check (cognitive 35) .github/scripts/check-journey-coverage.py:72 — check-journey-coverage.check has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 11, loops 4 (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 · check-merged-past-red-check.check_declaration (cognitive 35) · ×1
  • check-merged-past-red-check.check_declaration (cognitive 35) .github/scripts/check-merged-past-red-check.py:345 — check-merged-past-red-check.check_declaration has cognitive complexity 35 (threshold 15). Drivers by points: if/else 22 (25 pts), boolean chains 8, loops 1, ternaries 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 · check-money-path-pact-coverage.audit (cognitive 35) · ×1
  • check-money-path-pact-coverage.audit (cognitive 35) .github/scripts/check-money-path-pact-coverage.py:79 — check-money-path-pact-coverage.audit has cognitive complexity 35 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 4 (7 pts), boolean chains 6, error handling 1 (2 pts), ternaries 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 · check-oidc-client-secret-wiring.oidc_env_refs (cognitive 35) · ×1
  • check-oidc-client-secret-wiring.oidc_env_refs (cognitive 35) .github/scripts/check-oidc-client-secret-wiring.py:161 — check-oidc-client-secret-wiring.oidc_env_refs has cognitive complexity 35 (threshold 15). Drivers by points: if/else 3 (13 pts), boolean chains 10, loops 4 (10 pts), error handling 1 (2 pts) (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 · check-pact-twin-state-parity.strip_comments (cognitive 35) · ×1
  • check-pact-twin-state-parity.strip_comments (cognitive 35) .github/scripts/check-pact-twin-state-parity.py:43 — check-pact-twin-state-parity.strip_comments has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (19 pts), ternaries 3 (11 pts), loops 2 (4 pts), 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 · check-roles-allowed-realm.scan (cognitive 35) · ×1
  • check-roles-allowed-realm.scan (cognitive 35) .github/scripts/check-roles-allowed-realm.py:165 — check-roles-allowed-realm.scan has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 3 (13 pts), if/else 3 (10 pts), loops 4 (10 pts), boolean chains 2 (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 · m2m-shared-client-denylist.enforce_map (cognitive 35) · ×1
  • m2m-shared-client-denylist.enforce_map (cognitive 35) openbank-infra/scripts/m2m-shared-client-denylist.py:309 — m2m-shared-client-denylist.enforce_map has cognitive complexity 35 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 4 (10 pts), boolean chains 7, error handling 1 (2 pts) (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 · publishedSnapshot.createEvidenceSnapshotReader.refresh (cognitive 35) · ×1
  • publishedSnapshot.createEvidenceSnapshotReader.refresh (cognitive 35) openbank-admin-ui/src/lib/evidence/publishedSnapshot.ts:167 — publishedSnapshot.createEvidenceSnapshotReader.refresh has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (21 pts), ternaries 3 (6 pts), boolean chains 4, error handling 3 (4 pts) (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 · contentSnapshot.validClusterTopology (cognitive 35) · ×1
  • contentSnapshot.validClusterTopology (cognitive 35) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:254 — contentSnapshot.validClusterTopology has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 15, if/else 8 (13 pts), loops 5, ternaries 1 (2 pts) (nesting depth added 6). Of this number, 33 points are the body's own statements and 2 belong to 2 function items inside it that branch. 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 · page.AgentPage (cognitive 35) · ×1
  • page.AgentPage (cognitive 35) openbank-admin-ui/src/app/system/agent/page.tsx:56 — page.AgentPage has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 10 (20 pts), boolean chains 12, error handling 2, if/else 1 (nesting depth added 10). Of this number, 30 points are the body's own statements and 5 belong to 4 function literals inside it that branch. 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 · check-audit-money-path-subscription.audit_read_acl_topics (cognitive 34) · ×1
  • check-audit-money-path-subscription.audit_read_acl_topics (cognitive 34) .github/scripts/check-audit-money-path-subscription.py:226 — check-audit-money-path-subscription.audit_read_acl_topics has cognitive complexity 34 (threshold 15). Drivers by points: if/else 5 (18 pts), boolean chains 8, loops 3 (6 pts), error handling 1 (2 pts) (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 · check-fleet-release-evidence.inventory_report (cognitive 34) · ×1
  • check-fleet-release-evidence.inventory_report (cognitive 34) .github/scripts/check-fleet-release-evidence.py:356 — check-fleet-release-evidence.inventory_report has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 7 (12 pts), boolean chains 8, 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 · check-helm-values-keys.check_fleet (cognitive 34) · ×1
  • check-helm-values-keys.check_fleet (cognitive 34) .github/scripts/check-helm-values-keys.py:280 — check-helm-values-keys.check_fleet has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (25 pts), loops 5 (7 pts), boolean chains 2 (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 · check-libs-core-purity.find_violations (cognitive 34) · ×1
  • check-libs-core-purity.find_violations (cognitive 34) .github/scripts/check-libs-core-purity.py:55 — check-libs-core-purity.find_violations has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 6 (9 pts), boolean chains 3, ternaries 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 · check-otel-exporter-endpoint.audit (cognitive 34) · ×1
  • check-otel-exporter-endpoint.audit (cognitive 34) .github/scripts/check-otel-exporter-endpoint.py:83 — check-otel-exporter-endpoint.audit has cognitive complexity 34 (threshold 15). Drivers by points: if/else 5 (19 pts), boolean chains 7, loops 3 (6 pts), error handling 1 (2 pts) (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 · check-psd2-anonymous-grant-paths.strip_kotlin_comments (cognitive 34) · ×1
  • check-psd2-anonymous-grant-paths.strip_kotlin_comments (cognitive 34) .github/scripts/check-psd2-anonymous-grant-paths.py:45 — check-psd2-anonymous-grant-paths.strip_kotlin_comments has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (33 pts), 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 · check-vex-fleet-scope.evaluate (cognitive 34) · ×1
  • check-vex-fleet-scope.evaluate (cognitive 34) .github/scripts/check-vex-fleet-scope.py:87 — check-vex-fleet-scope.evaluate has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 6 (9 pts), boolean chains 3, ternaries 1 (3 pts) (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 · dependency_snapshot.validate_snapshot (cognitive 34) · ×1
  • dependency_snapshot.validate_snapshot (cognitive 34) .github/scripts/dependency_snapshot.py:22 — dependency_snapshot.validate_snapshot has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 8, loops 2 (3 pts) (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 · deploy-window.main (cognitive 34) · ×1
  • deploy-window.main (cognitive 34) .github/scripts/deploy-window.py:612 — deploy-window.main has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 5 (10 pts), loops 5 (9 pts), 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 · generate-app-status.main (cognitive 34) · ×1
  • generate-app-status.main (cognitive 34) openbank-admin-ui/scripts/generate-app-status.mjs:288 — generate-app-status.main has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 6 (11 pts), loops 4 (6 pts), boolean chains 3, error handling 1 (nesting depth added 11). Of this number, 20 points are the body's own statements and 14 belong to 7 function items inside it that branch. 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 · check-catalog-kernel-neutral.check_openapi (cognitive 33) · ×1
  • check-catalog-kernel-neutral.check_openapi (cognitive 33) .github/scripts/check-catalog-kernel-neutral.py:227 — check-catalog-kernel-neutral.check_openapi has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 10, loops 4 (6 pts), 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 · check-deploy-holds.constraints (cognitive 33) · ×1
  • check-deploy-holds.constraints (cognitive 33) .github/scripts/check-deploy-holds.py:78 — check-deploy-holds.constraints has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 6, loops 2 (4 pts) (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 · check-openapi-route-conformance.main (cognitive 33) · ×1
  • check-openapi-route-conformance.main (cognitive 33) .github/scripts/check-openapi-route-conformance.py:383 — check-openapi-route-conformance.main has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 6 (8 pts), boolean chains 5, ternaries 4 (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 · check-public-workload-ha.findings_for (cognitive 33) · ×1
  • check-public-workload-ha.findings_for (cognitive 33) .github/scripts/check-public-workload-ha.py:121 — check-public-workload-ha.findings_for has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 15, if/else 8 (14 pts), loops 3 (4 pts) (nesting depth added 7). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · check-ruleset-bypass-actors.self_test (cognitive 33) · ×1
  • check-ruleset-bypass-actors.self_test (cognitive 33) .github/scripts/check-ruleset-bypass-actors.py:296 — check-ruleset-bypass-actors.self_test has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (18 pts), error handling 5 (8 pts), loops 3 (4 pts), 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 · ci-latency-report.fetch_live (cognitive 33) · ×1
  • ci-latency-report.fetch_live (cognitive 33) .github/scripts/ci-latency-report.py:171 — ci-latency-report.fetch_live has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 4 (7 pts), boolean chains 5 (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 · readiness_fuzz_evidence.verify_fuzz_ops (cognitive 33) · ×1
  • readiness_fuzz_evidence.verify_fuzz_ops (cognitive 33) .github/scripts/readiness_fuzz_evidence.py:40 — readiness_fuzz_evidence.verify_fuzz_ops has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20, boolean chains 9, error handling 4. 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 · runtime_resource_inputs._root_aliases (cognitive 33) · ×1
  • runtime_resource_inputs._root_aliases (cognitive 33) .github/scripts/runtime_resource_inputs.py:92 — runtime_resource_inputs._root_aliases has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 4 (6 pts), boolean chains 5 (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 · gitops_facts.management_scraped_namespaces (cognitive 33) · ×1
  • gitops_facts.management_scraped_namespaces (cognitive 33) openbank-infra/scripts/gitops_facts.py:374 — gitops_facts.management_scraped_namespaces has cognitive complexity 33 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 4 (10 pts), ternaries 2 (6 pts), 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 · contentSnapshot.validSecurityGraph (cognitive 33) · ×1
  • contentSnapshot.validSecurityGraph (cognitive 33) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:220 — contentSnapshot.validSecurityGraph has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 15, if/else 9 (14 pts), loops 2 (4 pts) (nesting depth added 7). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · page.BusinessOnboardingPage (cognitive 33) · ×1
  • page.BusinessOnboardingPage (cognitive 33) openbank-admin-ui/src/app/business-onboarding/page.tsx:435 — page.BusinessOnboardingPage has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 9 (16 pts), if/else 7 (9 pts), boolean chains 7, error handling 1 (nesting depth added 9). Most of this is not in the body itself: 9 of the 33 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 443, queueLabel, a function literal at line 554, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · page.MethodDetailView (cognitive 33) · ×1
  • page.MethodDetailView (cognitive 33) openbank-admin-ui/src/app/docs/api/page.tsx:307 — page.MethodDetailView has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 9 (18 pts), boolean chains 11, if/else 3 (4 pts) (nesting depth added 10). Most of this is not in the body itself: 15 of the 33 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 395, 358). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · page.Funds (cognitive 33) · ×1
  • page.Funds (cognitive 33) openbank-admin-ui/src/app/pension/funds/page.tsx:41 — page.Funds has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 10 (18 pts), boolean chains 8, if/else 7 (nesting depth added 8). Most of this is not in the body itself: 14 of the 33 points are its own statements and the rest belongs to 7 function items inside it that branch (decide, calculate, a function literal at line 63, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · JourneyEditor.JourneyEditor (cognitive 33) · ×1
  • JourneyEditor.JourneyEditor (cognitive 33) openbank-admin-ui/src/components/campaigns/JourneyEditor.tsx:106 — JourneyEditor.JourneyEditor has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 13 (16 pts), boolean chains 11, if/else 6 (nesting depth added 3). Most of this is not in the body itself: 9 of the 33 points are its own statements and the rest belongs to 8 function items inside it that branch (conditionLabel, a function literal at line 314, delayLabel, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · BpmnView.BpmnView (cognitive 33) · ×1
  • BpmnView.BpmnView (cognitive 33) openbank-admin-ui/src/components/docs/BpmnView.tsx:317 — BpmnView.BpmnView has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 12 (32 pts), if/else 1 (nesting depth added 20). Most of this is not in the body itself: 1 of the 33 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 408, 339). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · Tabs.Tabs (cognitive 33) · ×1
  • Tabs.Tabs (cognitive 33) openbank-admin-ui/src/components/ui/Tabs.tsx:30 — Tabs.Tabs has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 19 (28 pts), boolean chains 4, if/else 1 (nesting depth added 9). Most of this is not in the body itself: 2 of the 33 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 70, moveFocus). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · SanctionsImportService.importOfacSdn (cognitive 32) · ×1
  • SanctionsImportService.importOfacSdn (cognitive 32) REDACTED:249 — SanctionsImportService.importOfacSdn has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 7, match/switch 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 · check-api-contract.migration_assertion_findings (cognitive 32) · ×1
  • check-api-contract.migration_assertion_findings (cognitive 32) .github/scripts/check-api-contract.py:474 — check-api-contract.migration_assertion_findings has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 4 (6 pts), boolean chains 5 (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 · check-cnpg-update-resilience.scan (cognitive 32) · ×1
  • check-cnpg-update-resilience.scan (cognitive 32) .github/scripts/check-cnpg-update-resilience.py:144 — check-cnpg-update-resilience.scan has cognitive complexity 32 (threshold 15). Drivers by points: if/else 5 (16 pts), boolean chains 7, loops 3 (7 pts), error handling 1 (2 pts) (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 · check-entity-column-names.audit (cognitive 32) · ×1
  • check-entity-column-names.audit (cognitive 32) .github/scripts/check-entity-column-names.py:86 — check-entity-column-names.audit has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (22 pts), loops 4 (10 pts) (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 · check-incoming-dlq-wiring.findings (cognitive 32) · ×1
  • check-incoming-dlq-wiring.findings (cognitive 32) .github/scripts/check-incoming-dlq-wiring.py:233 — check-incoming-dlq-wiring.findings has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (25 pts), boolean chains 3, loops 2 (3 pts), ternaries 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 · check-merged-past-red-check.self_test (cognitive 32) · ×1
  • check-merged-past-red-check.self_test (cognitive 32) .github/scripts/check-merged-past-red-check.py:490 — check-merged-past-red-check.self_test has cognitive complexity 32 (threshold 15). Drivers by points: if/else 19 (24 pts), loops 6 (7 pts), 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 · check-nat-ami-pinned.scan (cognitive 32) · ×1
  • check-nat-ami-pinned.scan (cognitive 32) .github/scripts/check-nat-ami-pinned.py:159 — check-nat-ami-pinned.scan has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 4 (7 pts), ternaries 1 (4 pts), 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 · check-resilience-profile.scan_file (cognitive 32) · ×1
  • check-resilience-profile.scan_file (cognitive 32) .github/scripts/check-resilience-profile.py:62 — check-resilience-profile.scan_file has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (30 pts), boolean chains 1, 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 · verify-successful-service-ci._read_json_page (cognitive 32) · ×1
  • verify-successful-service-ci._read_json_page (cognitive 32) .github/scripts/verify-successful-service-ci.py:63 — verify-successful-service-ci._read_json_page has cognitive complexity 32 (threshold 15). Drivers by points: if/else 4 (12 pts), error handling 3 (6 pts), ternaries 2 (6 pts), boolean chains 4, loops 2 (4 pts) (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 · page.Snapshots (cognitive 32) · ×1
  • page.Snapshots (cognitive 32) openbank-admin-ui/src/app/balance-sheet/snapshots/page.tsx:41 — page.Snapshots has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 11 (22 pts), boolean chains 6, if/else 4 (nesting depth added 11). Most of this is not in the body itself: 15 of the 32 points are its own statements and the rest belongs to 3 function items inside it that branch (create, a function literal at line 182, a function literal at line 55). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · page.Customer360Page (cognitive 32) · ×1
  • page.Customer360Page (cognitive 32) openbank-admin-ui/src/app/customer-360/page.tsx:37 — page.Customer360Page has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 17, if/else 10 (11 pts), ternaries 2 (3 pts), error handling 1 (nesting depth added 2). Of this number, 16 points are the body's own statements and 16 belong to 3 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · page.IaopsCasesPage (cognitive 32) · ×1
  • page.IaopsCasesPage (cognitive 32) openbank-admin-ui/src/app/iaops/cases/page.tsx:54 — page.IaopsCasesPage has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 14 (20 pts), if/else 7, boolean chains 4, error handling 1 (nesting depth added 6). Most of this is not in the body itself: 11 of the 32 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 90, 73, 187, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · page.ServiceCard (cognitive 32) · ×1
  • page.ServiceCard (cognitive 32) openbank-admin-ui/src/app/system/health/page.tsx:197 — page.ServiceCard has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 13 (19 pts), boolean chains 13 (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 · page.TemporalPage (cognitive 32) · ×1
  • page.TemporalPage (cognitive 32) openbank-admin-ui/src/app/temporal/page.tsx:259 — page.TemporalPage has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 17, ternaries 9 (12 pts), if/else 2, error handling 1 (nesting depth added 3). Of this number, 21 points are the body's own statements and 11 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · page.DailyPosition (cognitive 32) · ×1
  • page.DailyPosition (cognitive 32) openbank-admin-ui/src/app/treasury/positions/page.tsx:30 — page.DailyPosition has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 11 (27 pts), boolean chains 3, if/else 2 (nesting depth added 16). Of this number, 25 points are the body's own statements and 7 belong to 3 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · check-bench-alloc-baseline.run (cognitive 31) · ×1
  • check-bench-alloc-baseline.run (cognitive 31) .github/scripts/check-bench-alloc-baseline.py:278 — check-bench-alloc-baseline.run has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 8 (15 pts), if/else 8 (11 pts), loops 3 (4 pts), 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 · check-evals-registry.check_file (cognitive 31) · ×1
  • check-evals-registry.check_file (cognitive 31) .github/scripts/check-evals-registry.py:80 — check-evals-registry.check_file has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 6, loops 2 (3 pts), 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 · check-product-ir-purity.strip_comments_and_strings (cognitive 31) · ×1
  • check-product-ir-purity.strip_comments_and_strings (cognitive 31) .github/scripts/check-product-ir-purity.py:52 — check-product-ir-purity.strip_comments_and_strings has cognitive complexity 31 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 2 (9 pts), loops 3 (8 pts), 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 · check-vex-overlay-coverage.self_test (cognitive 31) · ×1
  • check-vex-overlay-coverage.self_test (cognitive 31) .github/scripts/check-vex-overlay-coverage.py:220 — check-vex-overlay-coverage.self_test has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (25 pts), loops 2 (3 pts), ternaries 2, 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 · GitHub.extra_checks (cognitive 31) · ×1
  • GitHub.extra_checks (cognitive 31) .github/scripts/merge-train.py:1838 — GitHub.extra_checks has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 3 (8 pts), boolean chains 6, loops 2 (3 pts) (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 · run-evals.replay_charter (cognitive 31) · ×1
  • run-evals.replay_charter (cognitive 31) .github/scripts/run-evals.py:162 — run-evals.replay_charter has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 4 (6 pts), boolean chains 5, ternaries 2, error handling 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 · runtime_resource_inputs.main (cognitive 31) · ×1
  • runtime_resource_inputs.main (cognitive 31) .github/scripts/runtime_resource_inputs.py:296 — runtime_resource_inputs.main has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 3 (6 pts), boolean chains 4, ternaries 2 (3 pts), 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 · AgentDock.AgentDock (cognitive 31) · ×1
  • AgentDock.AgentDock (cognitive 31) openbank-admin-ui/src/components/agent/AgentDock.tsx:44 — AgentDock.AgentDock has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 16, if/else 9 (10 pts), ternaries 4, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 14 of the 31 points are its own statements and the rest belongs to 9 function items inside it that branch (send, a function literal at line 116, a function literal at line 59, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · sdat.sdatAccounts (cognitive 31) · ×1
  • sdat.sdatAccounts (cognitive 31) openbank-admin-ui/src/lib/regulatory/generators/sdat.ts:53 — sdat.sdatAccounts has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 4 (9 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 8). Of this number, 17 points are the body's own statements and 14 belong to one function literal inside it that branches. 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 · useServiceResource.useServiceResource (cognitive 31) · ×1
  • useServiceResource.useServiceResource (cognitive 31) openbank-admin-ui/src/lib/services/useServiceResource.ts:82 — useServiceResource.useServiceResource has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (23 pts), error handling 3, ternaries 2 (3 pts), boolean chains 2 (nesting depth added 9). Most of this is not in the body itself: 1 of the 31 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 117, 101, 190). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · check-alert-metric-emitted.alert_rules (cognitive 30) · ×1
  • check-alert-metric-emitted.alert_rules (cognitive 30) .github/scripts/check-alert-metric-emitted.py:139 — check-alert-metric-emitted.alert_rules has cognitive complexity 30 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 4 (10 pts), boolean chains 6, error handling 1 (2 pts) (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 · check-asyncapi-doc-discriminator.spoken_topics (cognitive 30) · ×1
  • check-asyncapi-doc-discriminator.spoken_topics (cognitive 30) .github/scripts/check-asyncapi-doc-discriminator.py:265 — check-asyncapi-doc-discriminator.spoken_topics has cognitive complexity 30 (threshold 15). Drivers by points: if/else 4 (17 pts), loops 4 (7 pts), boolean chains 4, error handling 1 (2 pts) (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 · check-gate-invocation-reachability.findings (cognitive 30) · ×1
  • check-gate-invocation-reachability.findings (cognitive 30) .github/scripts/check-gate-invocation-reachability.py:88 — check-gate-invocation-reachability.findings has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 7, loops 3 (6 pts) (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 · check-kafka-acl-coverage.kafka_users (cognitive 30) · ×1
  • check-kafka-acl-coverage.kafka_users (cognitive 30) .github/scripts/check-kafka-acl-coverage.py:134 — check-kafka-acl-coverage.kafka_users has cognitive complexity 30 (threshold 15). Drivers by points: if/else 4 (14 pts), boolean chains 8, loops 3 (6 pts), error handling 1 (2 pts) (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 · check-no-handrolled-cosign.violations (cognitive 30) · ×1
  • check-no-handrolled-cosign.violations (cognitive 30) .github/scripts/check-no-handrolled-cosign.py:112 — check-no-handrolled-cosign.violations has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (22 pts), boolean chains 5, loops 2 (3 pts) (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 · check-outbox-has-writer.strip_comments_only (cognitive 30) · ×1
  • check-outbox-has-writer.strip_comments_only (cognitive 30) .github/scripts/check-outbox-has-writer.py:207 — check-outbox-has-writer.strip_comments_only has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (7 pts), ternaries 2 (7 pts), boolean chains 2 (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 · check-pr-file-overlap.fetch_open_prs (cognitive 30) · ×1
  • check-pr-file-overlap.fetch_open_prs (cognitive 30) .github/scripts/check-pr-file-overlap.py:276 — check-pr-file-overlap.fetch_open_prs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 5, loops 2 (3 pts), ternaries 1 (2 pts) (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 · check-readiness-attestations._self_test (cognitive 30) · ×1
  • check-readiness-attestations._self_test (cognitive 30) .github/scripts/check-readiness-attestations.py:566 — check-readiness-attestations._self_test has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (20 pts), ternaries 3 (6 pts), boolean chains 3, 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 · check-realm-role-parity.main (cognitive 30) · ×1
  • check-realm-role-parity.main (cognitive 30) .github/scripts/check-realm-role-parity.py:156 — check-realm-role-parity.main has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 4 (7 pts), ternaries 3 (7 pts), boolean chains 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 · check-remote-build-cache-write-scope.scan (cognitive 30) · ×1
  • check-remote-build-cache-write-scope.scan (cognitive 30) .github/scripts/check-remote-build-cache-write-scope.py:78 — check-remote-build-cache-write-scope.scan has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 9, loops 2 (3 pts), ternaries 1 (3 pts) (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 · check-requirements-traceability.check_file (cognitive 30) · ×1
  • check-requirements-traceability.check_file (cognitive 30) .github/scripts/check-requirements-traceability.py:69 — check-requirements-traceability.check_file has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 8, loops 2 (3 pts), error handling 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 · check-service-application-readiness.effective_resources (cognitive 30) · ×1
  • check-service-application-readiness.effective_resources (cognitive 30) .github/scripts/check-service-application-readiness.py:143 — check-service-application-readiness.effective_resources has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 7, error handling 1 (2 pts), loops 1, ternaries 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 · check-workflow-gh-token.scan_workflow (cognitive 30) · ×1
  • check-workflow-gh-token.scan_workflow (cognitive 30) .github/scripts/check-workflow-gh-token.py:60 — check-workflow-gh-token.scan_workflow has cognitive complexity 30 (threshold 15). Drivers by points: if/else 4 (11 pts), ternaries 3 (9 pts), boolean chains 7, loops 2 (3 pts) (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 · dr-check-trial-balance.validate (cognitive 30) · ×1
  • dr-check-trial-balance.validate (cognitive 30) .github/scripts/dr-check-trial-balance.py:21 — dr-check-trial-balance.validate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 8, loops 2 (3 pts) (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 · check-db-backup-prefix-scope.check (cognitive 30) · ×1
  • check-db-backup-prefix-scope.check (cognitive 30) openbank-infra/scripts/check-db-backup-prefix-scope.py:122 — check-db-backup-prefix-scope.check has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 2 (5 pts), boolean chains 4, loops 3 (4 pts) (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 · check-finops-tiers.main (cognitive 30) · ×1
  • check-finops-tiers.main (cognitive 30) openbank-infra/scripts/check-finops-tiers.py:358 — check-finops-tiers.main has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (10 pts), loops 5 (10 pts), ternaries 3 (7 pts), boolean chains 3 (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 · page.SnapshotDetail (cognitive 30) · ×1
  • page.SnapshotDetail (cognitive 30) openbank-admin-ui/src/app/balance-sheet/snapshots/[id]/page.tsx:57 — page.SnapshotDetail has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 11, ternaries 4 (nesting depth added 1). Of this number, 15 points are the body's own statements and 15 belong to 4 function literals inside it that branch. 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 · page.ConsentsPage (cognitive 30) · ×1
  • page.ConsentsPage (cognitive 30) openbank-admin-ui/src/app/consents/page.tsx:29 — page.ConsentsPage has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 17, if/else 8 (9 pts), ternaries 3, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 14 of the 30 points are its own statements and the rest belongs to 5 function items inside it that branch (lookup, a function literal at line 104, fmt, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · BpmnView.ProcessLayerMap (cognitive 30) · ×1
  • BpmnView.ProcessLayerMap (cognitive 30) openbank-admin-ui/src/components/docs/BpmnView.tsx:149 — BpmnView.ProcessLayerMap has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 12, if/else 7 (9 pts), ternaries 6 (7 pts), error handling 1, loops 1 (nesting depth added 3). Most of this is not in the body itself: 2 of the 30 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 162, 249, 296, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · AppShell.AppShell (cognitive 30) · ×1
  • AppShell.AppShell (cognitive 30) openbank-admin-ui/src/components/layout/AppShell.tsx:23 — AppShell.AppShell has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 12, ternaries 1 (2 pts) (nesting depth added 3). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 49, 39, 68, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · (anonymous) (cognitive 30) · ×1
  • (anonymous) (cognitive 30) openbank-infra/web/landing/bank-as-code.js:13 — (anonymous) has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 8 (12 pts), boolean chains 2, loops 2 (nesting depth added 6). Most of this is not in the body itself: 8 of the 30 points are its own statements and the rest belongs to 27 function items inside it that branch (journey::step, a function literal at line 137, a function literal at line 154, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · Reader.number (cognitive 29) · ×1
  • Reader.number (cognitive 29) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/IrJson.kt:170 — Reader.number has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 11, loops 3 (6 pts) (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 · auto-update-armed-prs.observe_update (cognitive 29) · ×1
  • auto-update-armed-prs.observe_update (cognitive 29) .github/scripts/auto-update-armed-prs.py:864 — auto-update-armed-prs.observe_update has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 3 (6 pts), boolean chains 4, error handling 2 (4 pts), 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 · check-agent-pr-guard.self_test (cognitive 29) · ×1
  • check-agent-pr-guard.self_test (cognitive 29) .github/scripts/check-agent-pr-guard.py:886 — check-agent-pr-guard.self_test has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 7 (9 pts), loops 3 (5 pts), ternaries 1 (2 pts) (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 · check-ai-act-high-risk-inventory.main (cognitive 29) · ×1
  • check-ai-act-high-risk-inventory.main (cognitive 29) .github/scripts/check-ai-act-high-risk-inventory.py:242 — check-ai-act-high-risk-inventory.main has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 5 (10 pts), 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 · check-alert-metric-emitted.recorded_names (cognitive 29) · ×1
  • check-alert-metric-emitted.recorded_names (cognitive 29) .github/scripts/check-alert-metric-emitted.py:166 — check-alert-metric-emitted.recorded_names has cognitive complexity 29 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 4 (10 pts), boolean chains 5, error handling 1 (2 pts) (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 · check-authz-pdp-parity.strip_kotlin_comments (cognitive 29) · ×1
  • check-authz-pdp-parity.strip_kotlin_comments (cognitive 29) .github/scripts/check-authz-pdp-parity.py:122 — check-authz-pdp-parity.strip_kotlin_comments has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (7 pts), ternaries 2 (7 pts), boolean chains 2 (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 · check-build-time-bean-selection.load_yaml_configs (cognitive 29) · ×1
  • check-build-time-bean-selection.load_yaml_configs (cognitive 29) .github/scripts/check-build-time-bean-selection.py:159 — check-build-time-bean-selection.load_yaml_configs has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 4 (9 pts), error handling 1 (2 pts), 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 · check-dashboard-metric-emitted.recorded_canonical (cognitive 29) · ×1
  • check-dashboard-metric-emitted.recorded_canonical (cognitive 29) .github/scripts/check-dashboard-metric-emitted.py:140 — check-dashboard-metric-emitted.recorded_canonical has cognitive complexity 29 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 4 (10 pts), boolean chains 5, error handling 1 (2 pts) (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 · check-gh-repo-context.check_workflow (cognitive 29) · ×1
  • check-gh-repo-context.check_workflow (cognitive 29) .github/scripts/check-gh-repo-context.py:104 — check-gh-repo-context.check_workflow has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 6, loops 2 (3 pts), 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 · check-journey-catalog.cronjob_facts (cognitive 29) · ×1
  • check-journey-catalog.cronjob_facts (cognitive 29) .github/scripts/check-journey-catalog.py:122 — check-journey-catalog.cronjob_facts has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 13, error handling 1, 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 · check-kafka-deployment-wiring.container_env_names (cognitive 29) · ×1
  • check-kafka-deployment-wiring.container_env_names (cognitive 29) .github/scripts/check-kafka-deployment-wiring.py:84 — check-kafka-deployment-wiring.container_env_names has cognitive complexity 29 (threshold 15). Drivers by points: if/else 4 (15 pts), boolean chains 6, loops 3 (6 pts), error handling 1 (2 pts) (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 · check-no-runblocking-in-scheduled.scheduled_method_bodies (cognitive 29) · ×1
  • check-no-runblocking-in-scheduled.scheduled_method_bodies (cognitive 29) .github/scripts/check-no-runblocking-in-scheduled.py:137 — check-no-runblocking-in-scheduled.scheduled_method_bodies has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 4 (8 pts), ternaries 1 (2 pts), 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 · check-otel-exporter-endpoint.self_test (cognitive 29) · ×1
  • check-otel-exporter-endpoint.self_test (cognitive 29) .github/scripts/check-otel-exporter-endpoint.py:137 — check-otel-exporter-endpoint.self_test has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (15 pts), ternaries 3 (9 pts), loops 2 (3 pts), 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 · check-synthetic-customer-identity.check_realm (cognitive 29) · ×1
  • check-synthetic-customer-identity.check_realm (cognitive 29) .github/scripts/check-synthetic-customer-identity.py:90 — check-synthetic-customer-identity.check_realm has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 4, loops 2 (3 pts) (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 · check-workflow-run-step-size.oversized_steps (cognitive 29) · ×1
  • check-workflow-run-step-size.oversized_steps (cognitive 29) .github/scripts/check-workflow-run-step-size.py:67 — check-workflow-run-step-size.oversized_steps has cognitive complexity 29 (threshold 15). Drivers by points: if/else 4 (13 pts), error handling 2 (6 pts), loops 3 (6 pts), boolean chains 4 (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 · check-workflow-run-step-size.run_gate (cognitive 29) · ×1
  • check-workflow-run-step-size.run_gate (cognitive 29) .github/scripts/check-workflow-run-step-size.py:98 — check-workflow-run-step-size.run_gate has cognitive complexity 29 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 4 (10 pts), boolean chains 4, error handling 1 (2 pts) (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 · ci-latency-report.analyze (cognitive 29) · ×1
  • ci-latency-report.analyze (cognitive 29) .github/scripts/ci-latency-report.py:114 — ci-latency-report.analyze has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 8, ternaries 2 (4 pts), 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 · classify-security-abuse-summary.classify (cognitive 29) · ×1
  • classify-security-abuse-summary.classify (cognitive 29) .github/scripts/classify-security-abuse-summary.py:12 — classify-security-abuse-summary.classify has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 9, loops 2, ternaries 1 (2 pts) (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 · pact-reconcile-verifications.admit_provider (cognitive 29) · ×1
  • pact-reconcile-verifications.admit_provider (cognitive 29) .github/scripts/pact-reconcile-verifications.py:407 — pact-reconcile-verifications.admit_provider has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 4, loops 1, ternaries 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 · runtime-conformance.cmp_backup_recoverability (cognitive 29) · ×1
  • runtime-conformance.cmp_backup_recoverability (cognitive 29) .github/scripts/runtime-conformance.py:246 — runtime-conformance.cmp_backup_recoverability has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 9, loops 3, ternaries 1 (2 pts) (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 · runtime-conformance.collect (cognitive 29) · ×1
  • runtime-conformance.collect (cognitive 29) .github/scripts/runtime-conformance.py:540 — runtime-conformance.collect has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 6, loops 5 (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 · verify-capacity-evidence.parse_manifest (cognitive 29) · ×1
  • verify-capacity-evidence.parse_manifest (cognitive 29) .github/scripts/verify-capacity-evidence.py:120 — verify-capacity-evidence.parse_manifest has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 25, loops 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · route.GET (cognitive 29) · ×1
  • route.GET (cognitive 29) openbank-admin-ui/src/app/api/temporal/status/route.ts:67 — route.GET has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 16 (28 pts), if/else 1 (nesting depth added 12). Of this number, 28 points are the body's own statements and 1 belongs to one function literal inside it that branches. 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 · page.MessagesTab (cognitive 29) · ×1
  • page.MessagesTab (cognitive 29) openbank-admin-ui/src/app/parties/[id]/page.tsx:339 — page.MessagesTab has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 11, if/else 9, ternaries 3 (4 pts), error handling 3, loops 1, match/switch 1 (nesting depth added 1). Most of this is not in the body itself: 12 of the 29 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 366, sendMessage, retrySubmit, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · page.SddPage (cognitive 29) · ×1
  • page.SddPage (cognitive 29) openbank-admin-ui/src/app/sdd/page.tsx:24 — page.SddPage has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 8, ternaries 4 (5 pts), error handling 2 (nesting depth added 5). Most of this is not in the body itself: 9 of the 29 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 34, 125, 150). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · check-build-time-bean-selection.collect_gitops_env (cognitive 28) · ×1
  • check-build-time-bean-selection.collect_gitops_env (cognitive 28) .github/scripts/check-build-time-bean-selection.py:262 — check-build-time-bean-selection.collect_gitops_env has cognitive complexity 28 (threshold 15). Drivers by points: if/else 3 (14 pts), loops 4 (10 pts), boolean chains 2, error handling 1 (2 pts) (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 · check-ci-runner-pools.evaluate (cognitive 28) · ×1
  • check-ci-runner-pools.evaluate (cognitive 28) .github/scripts/check-ci-runner-pools.py:148 — check-ci-runner-pools.evaluate has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 4, ternaries 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 · check-configproperty-supplied.deployment_env (cognitive 28) · ×1
  • check-configproperty-supplied.deployment_env (cognitive 28) .github/scripts/check-configproperty-supplied.py:143 — check-configproperty-supplied.deployment_env has cognitive complexity 28 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 3 (9 pts), boolean chains 7, error handling 1 (2 pts) (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 · check-event-consumer-liveness.scan_application_yaml (cognitive 28) · ×1
  • check-event-consumer-liveness.scan_application_yaml (cognitive 28) .github/scripts/check-event-consumer-liveness.py:68 — check-event-consumer-liveness.scan_application_yaml has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 2 (4 pts), ternaries 1 (4 pts), boolean chains 2 (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 · check-extension-bean-config.deployment_env (cognitive 28) · ×1
  • check-extension-bean-config.deployment_env (cognitive 28) .github/scripts/check-extension-bean-config.py:76 — check-extension-bean-config.deployment_env has cognitive complexity 28 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 3 (9 pts), boolean chains 7, error handling 1 (2 pts) (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 · check-extension-bean-config.findings (cognitive 28) · ×1
  • check-extension-bean-config.findings (cognitive 28) .github/scripts/check-extension-bean-config.py:130 — check-extension-bean-config.findings has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 5 (10 pts), error handling 1 (3 pts), ternaries 1 (2 pts), boolean chains 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 · check-gradle-cache-writers.scan (cognitive 28) · ×1
  • check-gradle-cache-writers.scan (cognitive 28) .github/scripts/check-gradle-cache-writers.py:301 — check-gradle-cache-writers.scan has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 3 (6 pts), boolean chains 3, error handling 1 (2 pts) (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 · check-honeytoken-wiring.honey_path_workloads (cognitive 28) · ×1
  • check-honeytoken-wiring.honey_path_workloads (cognitive 28) .github/scripts/check-honeytoken-wiring.py:148 — check-honeytoken-wiring.honey_path_workloads has cognitive complexity 28 (threshold 15). Drivers by points: loops 4 (10 pts), boolean chains 8, if/else 2 (8 pts), error handling 1 (2 pts) (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 · check-incluster-hostnames.scan (cognitive 28) · ×1
  • check-incluster-hostnames.scan (cognitive 28) .github/scripts/check-incluster-hostnames.py:363 — check-incluster-hostnames.scan has cognitive complexity 28 (threshold 15). Drivers by points: if/else 4 (16 pts), loops 4 (10 pts), error handling 1 (2 pts) (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 · check-kafka-deployment-wiring.main (cognitive 28) · ×1
  • check-kafka-deployment-wiring.main (cognitive 28) .github/scripts/check-kafka-deployment-wiring.py:128 — check-kafka-deployment-wiring.main has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 5 (7 pts), ternaries 4 (6 pts), 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 · check-manifest-secret-literals.check_document (cognitive 28) · ×1
  • check-manifest-secret-literals.check_document (cognitive 28) .github/scripts/check-manifest-secret-literals.py:37 — check-manifest-secret-literals.check_document has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 5, loops 3 (5 pts) (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 · check-no-allow-all-pdp-in-main.strip_comments_and_strings (cognitive 28) · ×1
  • check-no-allow-all-pdp-in-main.strip_comments_and_strings (cognitive 28) .github/scripts/check-no-allow-all-pdp-in-main.py:111 — check-no-allow-all-pdp-in-main.strip_comments_and_strings has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 3 (10 pts), loops 2 (5 pts), 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 · check-nonnull-jaxrs-params.strip_comments (cognitive 28) · ×1
  • check-nonnull-jaxrs-params.strip_comments (cognitive 28) .github/scripts/check-nonnull-jaxrs-params.py:95 — check-nonnull-jaxrs-params.strip_comments has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 2 (7 pts), loops 2 (4 pts), 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 · check-otel-endpoint-declared.evaluate (cognitive 28) · ×1
  • check-otel-endpoint-declared.evaluate (cognitive 28) .github/scripts/check-otel-endpoint-declared.py:55 — check-otel-endpoint-declared.evaluate has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 3 (6 pts), boolean chains 3, error handling 1 (2 pts) (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 · gen-agents-opa-data._matrix (cognitive 28) · ×1
  • gen-agents-opa-data._matrix (cognitive 28) .github/scripts/gen-agents-opa-data.py:336 — gen-agents-opa-data._matrix has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 7 (11 pts), boolean chains 4, 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 · record-agent-merge.verify_stored (cognitive 28) · ×1
  • record-agent-merge.verify_stored (cognitive 28) .github/scripts/record-agent-merge.py:254 — record-agent-merge.verify_stored has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 3 (4 pts), loops 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 · vex-hotfix.main (cognitive 28) · ×1
  • vex-hotfix.main (cognitive 28) .github/scripts/vex-hotfix.py:226 — vex-hotfix.main has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 2 (6 pts), boolean chains 3, error handling 1 (3 pts), loops 2 (3 pts) (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 · check-threat-model-diff.legacy_gitops_hit (cognitive 28) · ×1
  • check-threat-model-diff.legacy_gitops_hit (cognitive 28) openbank-infra/scripts/check-threat-model-diff.py:338 — check-threat-model-diff.legacy_gitops_hit has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 4, error handling 1 (2 pts) (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 · gitops_facts._has_management_port (cognitive 28) · ×1
  • gitops_facts._has_management_port (cognitive 28) openbank-infra/scripts/gitops_facts.py:296 — gitops_facts._has_management_port has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 5, loops 3 (4 pts) (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 · page.DisputesPage (cognitive 28) · ×1
  • page.DisputesPage (cognitive 28) openbank-admin-ui/src/app/disputes/page.tsx:24 — page.DisputesPage has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 7 (16 pts), boolean chains 8, if/else 4 (nesting depth added 9). Of this number, 19 points are the body's own statements and 9 belong to 3 function items inside it that branch. 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 · page.PartyDetailPage (cognitive 28) · ×1
  • page.PartyDetailPage (cognitive 28) openbank-admin-ui/src/app/parties/[id]/page.tsx:32 — page.PartyDetailPage has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 5, ternaries 4 (5 pts), error handling 1 (nesting depth added 3). Most of this is not in the body itself: 8 of the 28 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 48, 157). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · page.Annuity (cognitive 28) · ×1
  • page.Annuity (cognitive 28) openbank-admin-ui/src/app/pension/annuity/page.tsx:96 — page.Annuity has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 8 (15 pts), boolean chains 9, if/else 4 (nesting depth added 7). Most of this is not in the body itself: 11 of the 28 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 195, register, act, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · page.SwiftPage (cognitive 28) · ×1
  • page.SwiftPage (cognitive 28) openbank-admin-ui/src/app/swift/page.tsx:20 — page.SwiftPage has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 7 (16 pts), boolean chains 8, if/else 1 (4 pts) (nesting depth added 12). Of this number, 18 points are the body's own statements and 10 belong to 3 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · JourneyCanvas.JourneyCanvas (cognitive 28) · ×1
  • JourneyCanvas.JourneyCanvas (cognitive 28) openbank-admin-ui/src/components/campaigns/JourneyCanvas.tsx:86 — JourneyCanvas.JourneyCanvas has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 12, ternaries 11 (12 pts), if/else 4 (nesting depth added 1). Most of this is not in the body itself: 9 of the 28 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 248, delayLabel, channelLabel, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ReleasedPaymentValidator.validate (cognitive 27) · ×1
  • ReleasedPaymentValidator.validate (cognitive 27) openbank-swift-service/src/main/kotlin/com/openbank/swift/domain/institution/ReleasedPayment.kt:115 — ReleasedPaymentValidator.validate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 11, error handling 3 (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 · admin-ui-delivery-baseline.fetch_live (cognitive 27) · ×1
  • admin-ui-delivery-baseline.fetch_live (cognitive 27) .github/scripts/admin-ui-delivery-baseline.py:252 — admin-ui-delivery-baseline.fetch_live has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 6 (9 pts), error handling 1 (2 pts), 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 · check-accounting-clock.scan (cognitive 27) · ×1
  • check-accounting-clock.scan (cognitive 27) .github/scripts/check-accounting-clock.py:151 — check-accounting-clock.scan has cognitive complexity 27 (threshold 15). Drivers by points: if/else 4 (16 pts), loops 4 (10 pts), 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 · check-admin-ui-evidence-plan.validate_plan (cognitive 27) · ×1
  • check-admin-ui-evidence-plan.validate_plan (cognitive 27) .github/scripts/check-admin-ui-evidence-plan.py:18 — check-admin-ui-evidence-plan.validate_plan has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 4, 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 · check-advisory-gate-registration.advisory_steps (cognitive 27) · ×1
  • check-advisory-gate-registration.advisory_steps (cognitive 27) .github/scripts/check-advisory-gate-registration.py:114 — check-advisory-gate-registration.advisory_steps has cognitive complexity 27 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 2 (8 pts), boolean chains 7, error handling 1 (2 pts) (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 · check-cnpg-update-resilience.temporal_apps (cognitive 27) · ×1
  • check-cnpg-update-resilience.temporal_apps (cognitive 27) .github/scripts/check-cnpg-update-resilience.py:119 — check-cnpg-update-resilience.temporal_apps has cognitive complexity 27 (threshold 15). Drivers by points: if/else 3 (9 pts), boolean chains 6, error handling 2 (6 pts), loops 2 (3 pts), ternaries 1 (3 pts) (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 · check-coverage-floor-ratchet.strip_comments_and_strings (cognitive 27) · ×1
  • check-coverage-floor-ratchet.strip_comments_and_strings (cognitive 27) .github/scripts/check-coverage-floor-ratchet.py:61 — check-coverage-floor-ratchet.strip_comments_and_strings has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 3 (10 pts), if/else 4 (8 pts), loops 3 (7 pts), boolean chains 2 (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 · check-governance-lineage.scan (cognitive 27) · ×1
  • check-governance-lineage.scan (cognitive 27) .github/scripts/check-governance-lineage.py:173 — check-governance-lineage.scan has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), ternaries 2 (6 pts), loops 2 (3 pts), boolean chains 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 · check-hibernate-sequence-guard.check (cognitive 27) · ×1
  • check-hibernate-sequence-guard.check (cognitive 27) .github/scripts/check-hibernate-sequence-guard.py:142 — check-hibernate-sequence-guard.check has cognitive complexity 27 (threshold 15). Drivers by points: loops 7 (15 pts), if/else 4 (12 pts) (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · check-incoming-dlq-wiring.self_test (cognitive 27) · ×1
  • check-incoming-dlq-wiring.self_test (cognitive 27) .github/scripts/check-incoming-dlq-wiring.py:309 — check-incoming-dlq-wiring.self_test has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 6 (7 pts), 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 · check-llm-price-book.check (cognitive 27) · ×1
  • check-llm-price-book.check (cognitive 27) .github/scripts/check-llm-price-book.py:124 — check-llm-price-book.check has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 3 (4 pts) (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 · check-loki-rules.check_ruler_wiring (cognitive 27) · ×1
  • check-loki-rules.check_ruler_wiring (cognitive 27) .github/scripts/check-loki-rules.py:347 — check-loki-rules.check_ruler_wiring has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 18, if/else 7 (8 pts), error handling 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · check-nat-ami-pinned.strip_comments (cognitive 27) · ×1
  • check-nat-ami-pinned.strip_comments (cognitive 27) .github/scripts/check-nat-ami-pinned.py:76 — check-nat-ami-pinned.strip_comments has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 2 (6 pts), loops 2 (4 pts), boolean chains 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 · check-network-policy-code-edges.admitted_edges (cognitive 27) · ×1
  • check-network-policy-code-edges.admitted_edges (cognitive 27) .github/scripts/check-network-policy-code-edges.py:159 — check-network-policy-code-edges.admitted_edges has cognitive complexity 27 (threshold 15). Drivers by points: loops 4 (10 pts), boolean chains 8, ternaries 1 (5 pts), if/else 1 (4 pts) (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 · check-scheduler-cron-syntax.validate (cognitive 27) · ×1
  • check-scheduler-cron-syntax.validate (cognitive 27) .github/scripts/check-scheduler-cron-syntax.py:57 — check-scheduler-cron-syntax.validate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 3 (6 pts), boolean chains 2 (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 · check-security-checklist.code_boxes (cognitive 27) · ×1
  • check-security-checklist.code_boxes (cognitive 27) .github/scripts/check-security-checklist.py:587 — check-security-checklist.code_boxes has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 9, loops 1, ternaries 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 · check-slo-registry.main (cognitive 27) · ×1
  • check-slo-registry.main (cognitive 27) .github/scripts/check-slo-registry.py:33 — check-slo-registry.main has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 4 (6 pts), 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 · check-synthetic-customer-identity.self_test (cognitive 27) · ×1
  • check-synthetic-customer-identity.self_test (cognitive 27) .github/scripts/check-synthetic-customer-identity.py:220 — check-synthetic-customer-identity.self_test has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 13 (24 pts), loops 2, if/else 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 · run-gates.main (cognitive 27) · ×1
  • run-gates.main (cognitive 27) .github/scripts/run-gates.py:909 — run-gates.main has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 3 (6 pts), boolean chains 5, loops 2 (3 pts), error handling 1 (2 pts) (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 · select-performance-evidence.newest_artifacts (cognitive 27) · ×1
  • select-performance-evidence.newest_artifacts (cognitive 27) .github/scripts/select-performance-evidence.py:156 — select-performance-evidence.newest_artifacts has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 3 (4 pts), error handling 1 (3 pts), boolean chains 2, ternaries 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 · select-performance-evidence.main (cognitive 27) · ×1
  • select-performance-evidence.main (cognitive 27) .github/scripts/select-performance-evidence.py:457 — select-performance-evidence.main has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (19 pts), ternaries 2 (4 pts), loops 1 (2 pts), 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 · validate-flags.main (cognitive 27) · ×1
  • validate-flags.main (cognitive 27) .github/scripts/validate-flags.py:329 — validate-flags.main has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 4 (6 pts), ternaries 2 (4 pts) (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 · check-db-backup-associations.main (cognitive 27) · ×1
  • check-db-backup-associations.main (cognitive 27) openbank-infra/scripts/check-db-backup-associations.py:381 — check-db-backup-associations.main has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (17 pts), loops 4 (6 pts), boolean chains 2, ternaries 2 (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, 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 · check-db-migration.added_version_findings (cognitive 27) · ×1
  • check-db-migration.added_version_findings (cognitive 27) openbank-infra/scripts/check-db-migration.py:158 — check-db-migration.added_version_findings has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 4 (6 pts), 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 · collect-repository-documentation.collectRepositoryDocumentation (cognitive 27) · ×1
  • collect-repository-documentation.collectRepositoryDocumentation (cognitive 27) openbank-admin-ui/scripts/collect-repository-documentation.mjs:20 — collect-repository-documentation.collectRepositoryDocumentation has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 4, loops 2 (3 pts), ternaries 1 (3 pts), error handling 1 (2 pts) (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 · page.AccountsPage · ×1
  • page.AccountsPage::search (cognitive 27) openbank-admin-ui/src/app/accounts/page.tsx:92 — page.AccountsPage::search has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19 (22 pts), ternaries 3 (4 pts), error handling 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, 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. This shape REPEATS in the file: one other method here (page.AccountsPage) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · page.PidPage · ×1
  • page.PidPage::handleSubmit (cognitive 27) openbank-admin-ui/src/app/pid/page.tsx:143 — page.PidPage::handleSubmit has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 3 (7 pts), boolean chains 5, loops 1 (2 pts), error handling 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. This shape REPEATS in the file: one other method here (page.PidPage) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · page.NewAudiencePage (cognitive 27) · ×1
  • page.NewAudiencePage (cognitive 27) openbank-admin-ui/src/app/segments/new/page.tsx:15 — page.NewAudiencePage has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 12, if/else 9 (10 pts), ternaries 4, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 12 of the 27 points are its own statements and the rest belongs to one function item inside it that branches (create). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · page.TransactionsPage (cognitive 27) · ×1
  • page.TransactionsPage (cognitive 27) openbank-admin-ui/src/app/transactions/page.tsx:57 — page.TransactionsPage has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 31, if/else 25 (29 pts), ternaries 7 (9 pts), error handling 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. This shape REPEATS in the file: one other method here (page.TransactionsPage::search) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · page.DealBlotter (cognitive 27) · ×1
  • page.DealBlotter (cognitive 27) openbank-admin-ui/src/app/treasury/deals/page.tsx:40 — page.DealBlotter has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 10 (23 pts), boolean chains 2, if/else 2 (nesting depth added 13). Most of this is not in the body itself: 11 of the 27 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 156, 55). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · IrrbbSummaryPanel.IrrbbSummaryPanel (cognitive 27) · ×1
  • IrrbbSummaryPanel.IrrbbSummaryPanel (cognitive 27) openbank-admin-ui/src/components/balance-sheet/IrrbbSummaryPanel.tsx:26 — IrrbbSummaryPanel.IrrbbSummaryPanel has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 11 (14 pts), boolean chains 8, if/else 5 (nesting depth added 3). Of this number, 20 points are the body's own statements and 7 belong to 4 function items inside it that branch. 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 · CampaignExperiencePreview.CampaignExperiencePreview (cognitive 27) · ×1
  • CampaignExperiencePreview.CampaignExperiencePreview (cognitive 27) openbank-admin-ui/src/components/campaigns/CampaignExperiencePreview.tsx:36 — CampaignExperiencePreview.CampaignExperiencePreview has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 18 (25 pts), boolean chains 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 · OriginationPipeline.OriginationPipeline (cognitive 27) · ×1
  • OriginationPipeline.OriginationPipeline (cognitive 27) openbank-admin-ui/src/components/lending/OriginationPipeline.tsx:111 — OriginationPipeline.OriginationPipeline has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 19 (23 pts), boolean chains 3, if/else 1 (nesting depth added 4). Most of this is not in the body itself: 6 of the 27 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 189, label, a function literal at line 176, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · tempo-evidence.parseTempoTrace (cognitive 27) · ×1
  • tempo-evidence.parseTempoTrace (cognitive 27) openbank-admin-ui/src/lib/observability/tempo-evidence.ts:80 — tempo-evidence.parseTempoTrace has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 3 (6 pts), boolean chains 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 · AuditRepository.verifyChain (cognitive 26) · ×1
  • AuditRepository.verifyChain (cognitive 26) openbank-audit-service/src/main/kotlin/com/openbank/audit/infrastructure/persistence/AuditRepository.kt:262 — AuditRepository.verifyChain has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 2 (3 pts) (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 · check-argocd-sync-integrity.evaluate (cognitive 26) · ×1
  • check-argocd-sync-integrity.evaluate (cognitive 26) .github/scripts/check-argocd-sync-integrity.py:111 — check-argocd-sync-integrity.evaluate has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 13, if/else 4 (10 pts), loops 2 (3 pts) (nesting depth added 7). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · check-catalog-kernel-neutral.self_test (cognitive 26) · ×1
  • check-catalog-kernel-neutral.self_test (cognitive 26) .github/scripts/check-catalog-kernel-neutral.py:268 — check-catalog-kernel-neutral.self_test has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 8 (13 pts), if/else 4 (8 pts), loops 3 (4 pts), 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 · check-clickhouse-ddl-in-configmap.check (cognitive 26) · ×1
  • check-clickhouse-ddl-in-configmap.check (cognitive 26) .github/scripts/check-clickhouse-ddl-in-configmap.py:133 — check-clickhouse-ddl-in-configmap.check has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 6 (8 pts), 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 · check-coverage-floor-ratchet.self_test (cognitive 26) · ×1
  • check-coverage-floor-ratchet.self_test (cognitive 26) .github/scripts/check-coverage-floor-ratchet.py:305 — check-coverage-floor-ratchet.self_test has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 10 (12 pts), boolean chains 9, error handling 1 (2 pts), if/else 2, 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 · check-deploy-holds.changed_held_pins (cognitive 26) · ×1
  • check-deploy-holds.changed_held_pins (cognitive 26) .github/scripts/check-deploy-holds.py:255 — check-deploy-holds.changed_held_pins has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 3 (6 pts), loops 2 (3 pts), 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 · check-dockerfile-no-build-stage.main (cognitive 26) · ×1
  • check-dockerfile-no-build-stage.main (cognitive 26) .github/scripts/check-dockerfile-no-build-stage.py:408 — check-dockerfile-no-build-stage.main has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 4, ternaries 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 · check-flyway-version-commit-order.first_commit_order (cognitive 26) · ×1
  • check-flyway-version-commit-order.first_commit_order (cognitive 26) .github/scripts/check-flyway-version-commit-order.py:144 — check-flyway-version-commit-order.first_commit_order has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 4 (5 pts), error handling 2 (3 pts), 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 · check-kafka-acl-coverage.main (cognitive 26) · ×1
  • check-kafka-acl-coverage.main (cognitive 26) .github/scripts/check-kafka-acl-coverage.py:233 — check-kafka-acl-coverage.main has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 4 (7 pts), loops 4 (5 pts), 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 · check-loki-rules.load_into_ruler (cognitive 26) · ×1
  • check-loki-rules.load_into_ruler (cognitive 26) .github/scripts/check-loki-rules.py:160 — check-loki-rules.load_into_ruler has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 6, loops 3, ternaries 1 (2 pts) (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 · check-main-red-watch.check_declaration (cognitive 26) · ×1
  • check-main-red-watch.check_declaration (cognitive 26) .github/scripts/check-main-red-watch.py:201 — check-main-red-watch.check_declaration has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (20 pts), ternaries 2 (3 pts), loops 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 · check-ruleset-context-parity._matrix_combos (cognitive 26) · ×1
  • check-ruleset-context-parity._matrix_combos (cognitive 26) .github/scripts/check-ruleset-context-parity.py:244 — check-ruleset-context-parity._matrix_combos has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 3 (5 pts), boolean chains 3, ternaries 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 · library_dependency_graph.read_dependencies (cognitive 26) · ×1
  • library_dependency_graph.read_dependencies (cognitive 26) .github/scripts/library_dependency_graph.py:163 — library_dependency_graph.read_dependencies has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 4 (6 pts), boolean chains 3, 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 · pact-reconcile-deployed-records.main (cognitive 26) · ×1
  • pact-reconcile-deployed-records.main (cognitive 26) .github/scripts/pact-reconcile-deployed-records.py:166 — pact-reconcile-deployed-records.main has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 3, loops 3, 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 · publish-admin-ui-pacts.main (cognitive 26) · ×1
  • publish-admin-ui-pacts.main (cognitive 26) .github/scripts/publish-admin-ui-pacts.py:247 — publish-admin-ui-pacts.main has cognitive complexity 26 (threshold 15). Drivers by points: error handling 4 (8 pts), ternaries 4 (8 pts), if/else 4 (6 pts), boolean chains 4 (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 · runtime_resource_inputs._includes (cognitive 26) · ×1
  • runtime_resource_inputs._includes (cognitive 26) .github/scripts/runtime_resource_inputs.py:59 — runtime_resource_inputs._includes has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (20 pts), ternaries 1 (3 pts), boolean chains 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 · vex-inventory.main (cognitive 26) · ×1
  • vex-inventory.main (cognitive 26) .github/scripts/vex-inventory.py:43 — vex-inventory.main has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 4 (6 pts), ternaries 2 (4 pts), error handling 1 (2 pts), 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 · m2m-shared-client-denylist.port_map (cognitive 26) · ×1
  • m2m-shared-client-denylist.port_map (cognitive 26) openbank-infra/scripts/m2m-shared-client-denylist.py:221 — m2m-shared-client-denylist.port_map has cognitive complexity 26 (threshold 15). Drivers by points: if/else 4 (15 pts), loops 3 (9 pts), 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 · contentSnapshot.validCatalog (cognitive 26) · ×1
  • contentSnapshot.validCatalog (cognitive 26) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:90 — contentSnapshot.validCatalog has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 12, loops 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 · generate-governance.truthGaps (cognitive 26) · ×1
  • generate-governance.truthGaps (cognitive 26) openbank-admin-ui/scripts/generate-governance.mjs:136 — generate-governance.truthGaps has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 13, if/else 11 (12 pts), loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · page.AmlPage (cognitive 26) · ×1
  • page.AmlPage (cognitive 26) openbank-admin-ui/src/app/aml/page.tsx:19 — page.AmlPage has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 14, ternaries 6 (12 pts) (nesting depth added 6). Of this number, 20 points are the body's own statements and 6 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · route.GET (cognitive 26) · ×1
  • route.GET (cognitive 26) REDACTED:31 — route.GET has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 14 (18 pts), if/else 6, boolean chains 1, error handling 1 (nesting depth added 4). Most of this is not in the body itself: 9 of the 26 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 98, 48). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · readinessSnapshot.isReadinessSnapshot (cognitive 26) · ×1
  • readinessSnapshot.isReadinessSnapshot (cognitive 26) openbank-admin-ui/src/lib/evidence/readinessSnapshot.ts:70 — readinessSnapshot.isReadinessSnapshot has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 10, 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 · page.NewReferralProgramPage (cognitive 26) · ×1
  • page.NewReferralProgramPage (cognitive 26) openbank-admin-ui/src/app/campaigns/referrals/new/page.tsx:46 — page.NewReferralProgramPage has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11, boolean chains 10, ternaries 4 (5 pts) (nesting depth added 1). Most of this is not in the body itself: 11 of the 26 points are its own statements and the rest belongs to 4 function items inside it that branch (validate, a function literal at line 104, onSubmit, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · page.SystemHealthPage (cognitive 26) · ×1
  • page.SystemHealthPage (cognitive 26) openbank-admin-ui/src/app/system/health/page.tsx:23 — page.SystemHealthPage has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 12, if/else 7, ternaries 5 (6 pts), error handling 1 (nesting depth added 1). Most of this is not in the body itself: 10 of the 26 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 41, 64, 97, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · SbomViewer.SbomViewer (cognitive 26) · ×1
  • SbomViewer.SbomViewer (cognitive 26) openbank-admin-ui/src/components/sbom/SbomViewer.tsx:53 — SbomViewer.SbomViewer has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 13, if/else 7 (8 pts), ternaries 3 (5 pts) (nesting depth added 3). Most of this is not in the body itself: 12 of the 26 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 81, 76, 88, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · Ctx.action (cognitive 25) · ×1
  • Ctx.action (cognitive 25) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/ProductIrParser.kt:351 — Ctx.action has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 4, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · check-api-contract._majors (cognitive 25) · ×1
  • check-api-contract._majors (cognitive 25) .github/scripts/check-api-contract.py:296 — check-api-contract._majors has cognitive complexity 25 (threshold 15). Drivers by points: loops 5 (13 pts), if/else 5 (8 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · check-bench-alloc-baseline._self_test (cognitive 25) · ×1
  • check-bench-alloc-baseline._self_test (cognitive 25) .github/scripts/check-bench-alloc-baseline.py:358 — check-bench-alloc-baseline._self_test has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 9 (12 pts), boolean chains 5, if/else 2 (4 pts), loops 3, 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 · check-gitops-duplicate-resources.check_file (cognitive 25) · ×1
  • check-gitops-duplicate-resources.check_file (cognitive 25) .github/scripts/check-gitops-duplicate-resources.py:96 — check-gitops-duplicate-resources.check_file has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (5 pts), ternaries 1 (3 pts), boolean chains 2, 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 · check-gitops-duplicate-resources._component_identities (cognitive 25) · ×1
  • check-gitops-duplicate-resources._component_identities (cognitive 25) .github/scripts/check-gitops-duplicate-resources.py:140 — check-gitops-duplicate-resources._component_identities has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (6 pts), error handling 1 (3 pts), boolean chains 2 (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 · check-idempotency-contract-parity.spec_idempotency (cognitive 25) · ×1
  • check-idempotency-contract-parity.spec_idempotency (cognitive 25) .github/scripts/check-idempotency-contract-parity.py:144 — check-idempotency-contract-parity.spec_idempotency has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (13 pts), boolean chains 6, loops 3 (6 pts) (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 · check-idempotency-contract-parity.main (cognitive 25) · ×1
  • check-idempotency-contract-parity.main (cognitive 25) .github/scripts/check-idempotency-contract-parity.py:454 — check-idempotency-contract-parity.main has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, loops 4, ternaries 3, error handling 1 (2 pts) (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 · check-idempotency-coverage.audit (cognitive 25) · ×1
  • check-idempotency-coverage.audit (cognitive 25) .github/scripts/check-idempotency-coverage.py:155 — check-idempotency-coverage.audit has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 3 (6 pts), boolean chains 4 (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 · check-incoming-dlq-wiring.channels (cognitive 25) · ×1
  • check-incoming-dlq-wiring.channels (cognitive 25) .github/scripts/check-incoming-dlq-wiring.py:101 — check-incoming-dlq-wiring.channels has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 3 (7 pts), boolean chains 2 (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 · check-null-array-element.body_param_types_text (cognitive 25) · ×1
  • check-null-array-element.body_param_types_text (cognitive 25) .github/scripts/check-null-array-element.py:225 — check-null-array-element.body_param_types_text has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (6 pts), boolean chains 2, ternaries 1 (2 pts) (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 · check-recorded-source-manifests.classify (cognitive 25) · ×1
  • check-recorded-source-manifests.classify (cognitive 25) .github/scripts/check-recorded-source-manifests.py:232 — check-recorded-source-manifests.classify has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 3 (7 pts), boolean chains 3 (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 · deploy-window.flush_candidates (cognitive 25) · ×1
  • deploy-window.flush_candidates (cognitive 25) .github/scripts/deploy-window.py:99 — deploy-window.flush_candidates has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 5, 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 · merge-train.stale_red_refresh (cognitive 25) · ×1
  • merge-train.stale_red_refresh (cognitive 25) .github/scripts/merge-train.py:3290 — merge-train.stale_red_refresh has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (3 pts), boolean chains 2, ternaries 1 (2 pts) (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 · pact-reconcile-verifications.verification_key (cognitive 25) · ×1
  • pact-reconcile-verifications.verification_key (cognitive 25) .github/scripts/pact-reconcile-verifications.py:272 — pact-reconcile-verifications.verification_key has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 10, loops 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 · verify-capacity-evidence.parse_attestation (cognitive 25) · ×1
  • verify-capacity-evidence.parse_attestation (cognitive 25) .github/scripts/verify-capacity-evidence.py:430 — verify-capacity-evidence.parse_attestation has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 3 (6 pts), boolean chains 4, loops 2 (3 pts) (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 · handler.public_state (cognitive 25) · ×1
  • handler.public_state (cognitive 25) REDACTED:233 — handler.public_state has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 7 (13 pts), boolean chains 8, if/else 2, 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 · page.AccountsPage (cognitive 25) · ×1
  • page.AccountsPage (cognitive 25) openbank-admin-ui/src/app/accounts/page.tsx:47 — page.AccountsPage has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20 (23 pts), boolean chains 20, ternaries 8 (10 pts), loops 1 (2 pts), error handling 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, 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. This shape REPEATS in the file: one other method here (page.AccountsPage::search) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · route.GET (cognitive 25) · ×1
  • route.GET (cognitive 25) REDACTED:137 — route.GET has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 4, ternaries 1 (2 pts) (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 · page.RepresentationPanel (cognitive 25) · ×1
  • page.RepresentationPanel (cognitive 25) openbank-admin-ui/src/app/business-onboarding/page.tsx:249 — page.RepresentationPanel has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 13, if/else 8 (9 pts), error handling 2, ternaries 1 (nesting depth added 1). Of this number, 16 points are the body's own statements and 9 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · page.buildExportRows (cognitive 25) · ×1
  • page.buildExportRows (cognitive 25) openbank-admin-ui/src/app/regulatory/page.tsx:216 — page.buildExportRows has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 13 (23 pts), boolean chains 1, if/else 1 (nesting depth added 10). Of this number, 19 points are the body's own statements and 6 belong to one function literal inside it that branches. 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 · page.CounterpartyLimits (cognitive 25) · ×1
  • page.CounterpartyLimits (cognitive 25) openbank-admin-ui/src/app/treasury/counterparties/page.tsx:30 — page.CounterpartyLimits has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 8 (24 pts), if/else 1 (nesting depth added 16). Most of this is not in the body itself: 7 of the 25 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 77, 37). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · page.LimitUtilisation (cognitive 25) · ×1
  • page.LimitUtilisation (cognitive 25) openbank-admin-ui/src/app/treasury/limits/page.tsx:32 — page.LimitUtilisation has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 8 (24 pts), if/else 1 (nesting depth added 16). Most of this is not in the body itself: 7 of the 25 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 83, 39). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · AgentInsightsPanel.AgentInsightsPanel (cognitive 25) · ×1
  • AgentInsightsPanel.AgentInsightsPanel (cognitive 25) openbank-admin-ui/src/components/agent/AgentInsightsPanel.tsx:106 — AgentInsightsPanel.AgentInsightsPanel has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 16, ternaries 6 (9 pts) (nesting depth added 3). Most of this is not in the body itself: 7 of the 25 points are its own statements and the rest belongs to one function literal inside it that branches (line 150). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · AuthorityHistoryInvestigation.AuthorityHistoryInvestigation (cognitive 25) · ×1
  • AuthorityHistoryInvestigation.AuthorityHistoryInvestigation (cognitive 25) openbank-admin-ui/src/components/context/AuthorityHistoryInvestigation.tsx:8 — AuthorityHistoryInvestigation.AuthorityHistoryInvestigation has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 11, if/else 9 (10 pts), ternaries 2 (3 pts), error handling 1 (nesting depth added 2). Of this number, 13 points are the body's own statements and 12 belong to one function item inside it that branches. 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 · PartySearch.PartySearch (cognitive 25) · ×1
  • PartySearch.PartySearch (cognitive 25) openbank-admin-ui/src/components/party/PartySearch.tsx:68 — PartySearch.PartySearch has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 9, ternaries 4 (5 pts), error handling 1 (nesting depth added 2). Most of this is not in the body itself: 11 of the 25 points are its own statements and the rest belongs to 3 function items inside it that branch (run, a function literal at line 138, a function literal at line 216). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · summary.parseSecurityEnvelope (cognitive 25) · ×1
  • summary.parseSecurityEnvelope (cognitive 25) openbank-admin-ui/src/lib/security/summary.ts:162 — summary.parseSecurityEnvelope has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (12 pts), ternaries 7 (8 pts), boolean chains 4, loops 1 (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 · check-agent-pr-guard.owner_approval_allows (cognitive 24) · ×1
  • check-agent-pr-guard.owner_approval_allows (cognitive 24) .github/scripts/check-agent-pr-guard.py:547 — check-agent-pr-guard.owner_approval_allows has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 6, error handling 1 (2 pts) (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, 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 · check-catalog-kernel-neutral.strip_comments (cognitive 24) · ×1
  • check-catalog-kernel-neutral.strip_comments (cognitive 24) .github/scripts/check-catalog-kernel-neutral.py:50 — check-catalog-kernel-neutral.strip_comments has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 5 (16 pts), loops 2 (4 pts), if/else 2 (3 pts), 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 · check-critical-alert-egress.main (cognitive 24) · ×1
  • check-critical-alert-egress.main (cognitive 24) .github/scripts/check-critical-alert-egress.py:309 — check-critical-alert-egress.main has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 12, if/else 9, loops 2, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · check-event-schema-compat.parse_events (cognitive 24) · ×1
  • check-event-schema-compat.parse_events (cognitive 24) .github/scripts/check-event-schema-compat.py:165 — check-event-schema-compat.parse_events has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (5 pts), ternaries 2 (5 pts), 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 · check-gradle-user-home-isolation.check_workflow (cognitive 24) · ×1
  • check-gradle-user-home-isolation.check_workflow (cognitive 24) .github/scripts/check-gradle-user-home-isolation.py:114 — check-gradle-user-home-isolation.check_workflow has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 6, ternaries 1 (2 pts), 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 · check-license-headers.check_headers (cognitive 24) · ×1
  • check-license-headers.check_headers (cognitive 24) .github/scripts/check-license-headers.py:174 — check-license-headers.check_headers has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 2 (4 pts), error handling 1 (2 pts), loops 2, 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 · check-mtls-bearer-only.resource_roots (cognitive 24) · ×1
  • check-mtls-bearer-only.resource_roots (cognitive 24) .github/scripts/check-mtls-bearer-only.py:208 — check-mtls-bearer-only.resource_roots has cognitive complexity 24 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 3 (6 pts), ternaries 1 (6 pts) (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 · check-null-array-element.collection_findings (cognitive 24) · ×1
  • check-null-array-element.collection_findings (cognitive 24) .github/scripts/check-null-array-element.py:279 — check-null-array-element.collection_findings has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 2 (3 pts), boolean chains 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 · check-principal-name-trust.check (cognitive 24) · ×1
  • check-principal-name-trust.check (cognitive 24) .github/scripts/check-principal-name-trust.py:68 — check-principal-name-trust.check has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (4 pts), boolean chains 3, ternaries 2 (3 pts) (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 · check-recorded-source-manifests.prove (cognitive 24) · ×1
  • check-recorded-source-manifests.prove (cognitive 24) .github/scripts/check-recorded-source-manifests.py:267 — check-recorded-source-manifests.prove has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 6, loops 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 · check-roles-allowed-realm.self_test (cognitive 24) · ×1
  • check-roles-allowed-realm.self_test (cognitive 24) .github/scripts/check-roles-allowed-realm.py:198 — check-roles-allowed-realm.self_test has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (19 pts), loops 4 (5 pts) (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 · check-security-checklist.run_carrier (cognitive 24) · ×1
  • check-security-checklist.run_carrier (cognitive 24) .github/scripts/check-security-checklist.py:828 — check-security-checklist.run_carrier has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 6 (12 pts), boolean chains 6, if/else 4, 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 · check-threat-model-claims.load_evidence (cognitive 24) · ×1
  • check-threat-model-claims.load_evidence (cognitive 24) .github/scripts/check-threat-model-claims.py:768 — check-threat-model-claims.load_evidence has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 5 (8 pts), boolean chains 3, error handling 1 (2 pts), ternaries 1 (2 pts) (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 · check-untrusted-pg-extension.declared_extensions (cognitive 24) · ×1
  • check-untrusted-pg-extension.declared_extensions (cognitive 24) .github/scripts/check-untrusted-pg-extension.py:119 — check-untrusted-pg-extension.declared_extensions has cognitive complexity 24 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 3 (6 pts), boolean chains 4, error handling 1 (2 pts) (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 · dependency_snapshot.generate (cognitive 24) · ×1
  • dependency_snapshot.generate (cognitive 24) .github/scripts/dependency_snapshot.py:167 — dependency_snapshot.generate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (18 pts), ternaries 2 (3 pts), loops 2, boolean chains 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.
D2 · Cognitive Complexity · derive-gate-observability-budgets.main (cognitive 24) · ×1
  • derive-gate-observability-budgets.main (cognitive 24) .github/scripts/derive-gate-observability-budgets.py:92 — derive-gate-observability-budgets.main has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4, loops 2 (4 pts) (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 · merge-train.close_linked_issues (cognitive 24) · ×1
  • merge-train.close_linked_issues (cognitive 24) .github/scripts/merge-train.py:1747 — merge-train.close_linked_issues has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 9, error handling 2 (3 pts), loops 1, 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 · merge-train.check_declaration (cognitive 24) · ×1
  • merge-train.check_declaration (cognitive 24) .github/scripts/merge-train.py:3952 — merge-train.check_declaration has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (16 pts), ternaries 4, boolean chains 2, loops 2 (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 · verify-successful-service-ci._iter_json_pages (cognitive 24) · ×1
  • verify-successful-service-ci._iter_json_pages (cognitive 24) .github/scripts/verify-successful-service-ci.py:119 — verify-successful-service-ci._iter_json_pages has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 2 (3 pts), ternaries 2 (3 pts), 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 · generate-service-runbooks.self_test (cognitive 24) · ×1
  • generate-service-runbooks.self_test (cognitive 24) openbank-infra/scripts/generate-service-runbooks.py:706 — generate-service-runbooks.self_test has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 8, loops 1 (2 pts) (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 · generate-governance.buildManifest (cognitive 24) · ×1
  • generate-governance.buildManifest (cognitive 24) openbank-admin-ui/scripts/generate-governance.mjs:186 — generate-governance.buildManifest has cognitive complexity 24 (threshold 15). Drivers by points: loops 4 (7 pts), ternaries 3 (7 pts), if/else 2 (4 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 10). Of this number, 21 points are the body's own statements and 3 belong to 3 function literals inside it that branch. 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 · route.GET (cognitive 24) · ×1
  • route.GET (cognitive 24) openbank-admin-ui/src/app/api/context/aml-cases/[id]/route.ts:10 — route.GET has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 3 (4 pts), boolean chains 3, error handling 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 · page.PaymentDetailContent · ×1
  • page.PaymentDetailContent::load (cognitive 24) openbank-admin-ui/src/app/payments/[id]/page.tsx:66 — page.PaymentDetailContent::load has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 5 (6 pts), 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. This shape REPEATS in the file: one other method here (page.PaymentDetailContent) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · CampaignLaunchReadiness.CampaignLaunchReadiness (cognitive 24) · ×1
  • CampaignLaunchReadiness.CampaignLaunchReadiness (cognitive 24) openbank-admin-ui/src/components/campaigns/CampaignLaunchReadiness.tsx:36 — CampaignLaunchReadiness.CampaignLaunchReadiness has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 15 (21 pts), boolean chains 3 (nesting depth added 6). Of this number, 19 points are the body's own statements and 5 belong to 3 function items inside it that branch. 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 · DayCloseParticipantsPanel.parseDayCloseCompleteness (cognitive 24) · ×1
  • DayCloseParticipantsPanel.parseDayCloseCompleteness (cognitive 24) openbank-admin-ui/src/components/closings/DayCloseParticipantsPanel.tsx:43 — DayCloseParticipantsPanel.parseDayCloseCompleteness has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 6 (11 pts), if/else 5 (7 pts), boolean chains 5, 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 · DayCloseParticipantsPanel.DayCloseParticipantsPanel (cognitive 24) · ×1
  • DayCloseParticipantsPanel.DayCloseParticipantsPanel (cognitive 24) openbank-admin-ui/src/components/closings/DayCloseParticipantsPanel.tsx:99 — DayCloseParticipantsPanel.DayCloseParticipantsPanel has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 8 (17 pts), if/else 3, boolean chains 2, error handling 2 (nesting depth added 9). Of this number, 17 points are the body's own statements and 7 belong to 4 function items inside it that branch. 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 · SanctionsImportService.importOpenSanctionsCsv (cognitive 23) · ×1
  • SanctionsImportService.importOpenSanctionsCsv (cognitive 23) REDACTED:375 — SanctionsImportService.importOpenSanctionsCsv has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 2, match/switch 1 (2 pts), 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 · TracestateInput.canonicalizePresent (cognitive 23) · ×1
  • TracestateInput.canonicalizePresent (cognitive 23) openbank-libs-temporal/src/main/kotlin/com/openbank/libs/temporal/OpenTelemetryContextPropagator.kt:119 — TracestateInput.canonicalizePresent has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 2 (3 pts), 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 · check-dockerfile-no-build-stage.check_dependabot_fleet_group (cognitive 23) · ×1
  • check-dockerfile-no-build-stage.check_dependabot_fleet_group (cognitive 23) .github/scripts/check-dockerfile-no-build-stage.py:183 — check-dockerfile-no-build-stage.check_dependabot_fleet_group has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6, loops 3, ternaries 1 (2 pts), 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 · check-dynamic-db-roles-declared.self_test (cognitive 23) · ×1
  • check-dynamic-db-roles-declared.self_test (cognitive 23) .github/scripts/check-dynamic-db-roles-declared.py:154 — check-dynamic-db-roles-declared.self_test has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 8, loops 1 (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 · check-field-crypto-in-libs.offending_lines (cognitive 23) · ×1
  • check-field-crypto-in-libs.offending_lines (cognitive 23) .github/scripts/check-field-crypto-in-libs.py:59 — check-field-crypto-in-libs.offending_lines has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (19 pts), ternaries 1 (2 pts), boolean chains 1, 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 · check-journey-catalog.extract_script (cognitive 23) · ×1
  • check-journey-catalog.extract_script (cognitive 23) .github/scripts/check-journey-catalog.py:181 — check-journey-catalog.extract_script has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 15, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · check-libs-annotations-implemented.unit_of (cognitive 23) · ×1
  • check-libs-annotations-implemented.unit_of (cognitive 23) .github/scripts/check-libs-annotations-implemented.py:111 — check-libs-annotations-implemented.unit_of has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 3 (7 pts), 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 · check-mtls-keeps-http-port.findings_for (cognitive 23) · ×1
  • check-mtls-keeps-http-port.findings_for (cognitive 23) .github/scripts/check-mtls-keeps-http-port.py:47 — check-mtls-keeps-http-port.findings_for has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, loops 3 (5 pts), ternaries 2 (4 pts) (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 · check-network-policy-code-edges.scan_source (cognitive 23) · ×1
  • check-network-policy-code-edges.scan_source (cognitive 23) .github/scripts/check-network-policy-code-edges.py:216 — check-network-policy-code-edges.scan_source has cognitive complexity 23 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 3 (6 pts), ternaries 1 (4 pts), error handling 1 (3 pts) (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 · check-product-ir-authoring-parity.strip_kotlin_comments (cognitive 23) · ×1
  • check-product-ir-authoring-parity.strip_kotlin_comments (cognitive 23) .github/scripts/check-product-ir-authoring-parity.py:65 — check-product-ir-authoring-parity.strip_kotlin_comments has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 5, loops 2 (4 pts) (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 · check-product-ir-formal-properties.run (cognitive 23) · ×1
  • check-product-ir-formal-properties.run (cognitive 23) .github/scripts/check-product-ir-formal-properties.py:118 — check-product-ir-formal-properties.run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 4 (5 pts), boolean chains 1, ternaries 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 · check-product-revision-pinned.strip_kotlin_comments (cognitive 23) · ×1
  • check-product-revision-pinned.strip_kotlin_comments (cognitive 23) .github/scripts/check-product-revision-pinned.py:96 — check-product-revision-pinned.strip_kotlin_comments has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 5, loops 2 (4 pts) (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 · check-release-evidence-coverage.verify_released_assets (cognitive 23) · ×1
  • check-release-evidence-coverage.verify_released_assets (cognitive 23) .github/scripts/check-release-evidence-coverage.py:195 — check-release-evidence-coverage.verify_released_assets has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 6, 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 · check-upstream-unblock.main (cognitive 23) · ×1
  • check-upstream-unblock.main (cognitive 23) .github/scripts/check-upstream-unblock.py:260 — check-upstream-unblock.main has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 5 (6 pts), error handling 1 (2 pts), ternaries 1 (2 pts) (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 · runtime_resource_inputs.resource_patterns (cognitive 23) · ×1
  • runtime_resource_inputs.resource_patterns (cognitive 23) .github/scripts/runtime_resource_inputs.py:187 — runtime_resource_inputs.resource_patterns has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (20 pts), 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 · service-port.yaml_port (cognitive 23) · ×1
  • service-port.yaml_port (cognitive 23) .github/scripts/service-port.py:35 — service-port.yaml_port has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (3 pts), boolean chains 2, ternaries 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 · verify-audit-anchors.verify_anchor_bundle (cognitive 23) · ×1
  • verify-audit-anchors.verify_anchor_bundle (cognitive 23) .github/scripts/verify-audit-anchors.py:188 — verify-audit-anchors.verify_anchor_bundle has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 3, 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 · check-db-backup-prefix-scope.cnpg_clusters (cognitive 23) · ×1
  • check-db-backup-prefix-scope.cnpg_clusters (cognitive 23) openbank-infra/scripts/check-db-backup-prefix-scope.py:86 — check-db-backup-prefix-scope.cnpg_clusters has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 8, if/else 3 (8 pts), error handling 2 (4 pts), loops 2 (3 pts) (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 · continuityModel.parseBcpPolicy (cognitive 23) · ×1
  • continuityModel.parseBcpPolicy (cognitive 23) openbank-admin-ui/src/lib/bcp/continuityModel.ts:26 — continuityModel.parseBcpPolicy has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, ternaries 2 (4 pts), 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 · route.GET (cognitive 23) · ×1
  • route.GET (cognitive 23) openbank-admin-ui/src/app/api/security/incidents/route.ts:13 — route.GET has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (17 pts), ternaries 1 (3 pts), boolean chains 1, 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 · ScenePreview.ScenePreview (cognitive 23) · ×1
  • ScenePreview.ScenePreview (cognitive 23) openbank-admin-ui/src/app/loyalty/game/ScenePreview.tsx:17 — ScenePreview.ScenePreview has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 9 (13 pts), boolean chains 8, if/else 1, loops 1 (nesting depth added 4). Of this number, 16 points are the body's own statements and 7 belong to 6 function items inside it that branch. 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 · page.Holdings (cognitive 23) · ×1
  • page.Holdings (cognitive 23) openbank-admin-ui/src/app/pension/holdings/page.tsx:32 — page.Holdings has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 6 (15 pts), boolean chains 4, if/else 4 (nesting depth added 9). Most of this is not in the body itself: 10 of the 23 points are its own statements and the rest belongs to 3 function items inside it that branch (choose, lookUp, a function literal at line 125). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · PensionQueue.PensionQueue (cognitive 23) · ×1
  • PensionQueue.PensionQueue (cognitive 23) openbank-admin-ui/src/components/pension/PensionQueue.tsx:45 — PensionQueue.PensionQueue has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 6 (19 pts), boolean chains 3, if/else 1 (nesting depth added 13). Most of this is not in the body itself: 8 of the 23 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 84, 51). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · trend.buildCnbTrend (cognitive 23) · ×1
  • trend.buildCnbTrend (cognitive 23) openbank-admin-ui/src/lib/fx/trend.ts:73 — trend.buildCnbTrend has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, ternaries 2 (3 pts), loops 1 (nesting depth added 8). Of this number, 20 points are the body's own statements and 3 belong to one function literal inside it that branches. 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 · live-platform-versions.buildView (cognitive 23) · ×1
  • live-platform-versions.buildView (cognitive 23) REDACTED:391 — live-platform-versions.buildView has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 9 (19 pts), if/else 1 (2 pts), loops 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 · renderHistory (cognitive 23) · ×1
  • renderHistory (cognitive 23) openbank-infra/web/status/app.js:71 — renderHistory has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 8 (13 pts), if/else 3, loops 2 (3 pts), other 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 · Reader.string (cognitive 22) · ×1
  • Reader.string (cognitive 22) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/IrJson.kt:131 — Reader.string has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 2 (5 pts), boolean chains 1, 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 · EgressPolicy.checkUrl (cognitive 22) · ×1
  • EgressPolicy.checkUrl (cognitive 22) openbank-libs-domain/src/main/kotlin/com/openbank/libs/security/EgressPolicy.kt:42 — EgressPolicy.checkUrl has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 6, error handling 1, match/switch 1 (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, 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 · EgressAddressClass.ofV6 (cognitive 22) · ×1
  • EgressAddressClass.ofV6 (cognitive 22) openbank-libs-domain/src/main/kotlin/com/openbank/libs/security/EgressPolicy.kt:263 — EgressAddressClass.ofV6 has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, if/else 9 (10 pts), match/switch 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · check-approval-store-redis-host._workloads (cognitive 22) · ×1
  • check-approval-store-redis-host._workloads (cognitive 22) .github/scripts/check-approval-store-redis-host.py:71 — check-approval-store-redis-host._workloads has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 7, if/else 2 (7 pts), loops 3 (6 pts), error handling 1 (2 pts) (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 · check-billing-annual-issuance-history.read_rows (cognitive 22) · ×1
  • check-billing-annual-issuance-history.read_rows (cognitive 22) .github/scripts/check-billing-annual-issuance-history.py:22 — check-billing-annual-issuance-history.read_rows has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5, 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 · check-dashboard-metric-emitted.panel_queries (cognitive 22) · ×1
  • check-dashboard-metric-emitted.panel_queries (cognitive 22) .github/scripts/check-dashboard-metric-emitted.py:95 — check-dashboard-metric-emitted.panel_queries has cognitive complexity 22 (threshold 15). Drivers by points: if/else 2 (7 pts), error handling 2 (6 pts), loops 3 (6 pts), 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 · check-fleet-release-evidence.fetch_releases (cognitive 22) · ×1
  • check-fleet-release-evidence.fetch_releases (cognitive 22) .github/scripts/check-fleet-release-evidence.py:92 — check-fleet-release-evidence.fetch_releases has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (3 pts), ternaries 1 (3 pts), 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 · check-gate-lifecycle-metadata.analyse (cognitive 22) · ×1
  • check-gate-lifecycle-metadata.analyse (cognitive 22) .github/scripts/check-gate-lifecycle-metadata.py:221 — check-gate-lifecycle-metadata.analyse has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, error handling 1 (2 pts), 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 · check-helm-values-keys._pull_chart (cognitive 22) · ×1
  • check-helm-values-keys._pull_chart (cognitive 22) .github/scripts/check-helm-values-keys.py:185 — check-helm-values-keys._pull_chart has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, error handling 1 (3 pts), 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 · check-helm-values-keys.iter_helm_sources (cognitive 22) · ×1
  • check-helm-values-keys.iter_helm_sources (cognitive 22) .github/scripts/check-helm-values-keys.py:259 — check-helm-values-keys.iter_helm_sources has cognitive complexity 22 (threshold 15). Drivers by points: if/else 2 (7 pts), loops 3 (6 pts), boolean chains 4, ternaries 1 (3 pts), error handling 1 (2 pts) (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 · check-journey-catalog.alerted_journeys (cognitive 22) · ×1
  • check-journey-catalog.alerted_journeys (cognitive 22) .github/scripts/check-journey-catalog.py:227 — check-journey-catalog.alerted_journeys has cognitive complexity 22 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 3 (7 pts), boolean chains 4, error handling 1 (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · check-loki-rules.self_test (cognitive 22) · ×1
  • check-loki-rules.self_test (cognitive 22) .github/scripts/check-loki-rules.py:246 — check-loki-rules.self_test has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 9 (10 pts), boolean chains 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 · check-model-residency-claims.self_test (cognitive 22) · ×1
  • check-model-residency-claims.self_test (cognitive 22) .github/scripts/check-model-residency-claims.py:263 — check-model-residency-claims.self_test has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 7 (15 pts), loops 4, if/else 2 (3 pts) (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 · check-prompt-registry.main (cognitive 22) · ×1
  • check-prompt-registry.main (cognitive 22) .github/scripts/check-prompt-registry.py:224 — check-prompt-registry.main has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 4 (6 pts) (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 · check-recorded-source-manifests.fetch_tree (cognitive 22) · ×1
  • check-recorded-source-manifests.fetch_tree (cognitive 22) .github/scripts/check-recorded-source-manifests.py:134 — check-recorded-source-manifests.fetch_tree has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 5, loops 1, 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 · check-security-checklist.comment_only (cognitive 22) · ×1
  • check-security-checklist.comment_only (cognitive 22) .github/scripts/check-security-checklist.py:286 — check-security-checklist.comment_only has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 4, loops 1 (2 pts) (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 · check-stale-comment-references.run (cognitive 22) · ×1
  • check-stale-comment-references.run (cognitive 22) .github/scripts/check-stale-comment-references.py:432 — check-stale-comment-references.run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 4 (7 pts), boolean chains 2, error handling 1 (2 pts) (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 · check-threat-model-claims.citations (cognitive 22) · ×1
  • check-threat-model-claims.citations (cognitive 22) .github/scripts/check-threat-model-claims.py:391 — check-threat-model-claims.citations has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (13 pts), boolean chains 6, loops 2 (3 pts) (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 · check-upstream-unblock._comparator_ok (cognitive 22) · ×1
  • check-upstream-unblock._comparator_ok (cognitive 22) .github/scripts/check-upstream-unblock.py:140 — check-upstream-unblock._comparator_ok has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 pts), ternaries 2 (3 pts), 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 · collect-admin-ui-security-kpis.collect (cognitive 22) · ×1
  • collect-admin-ui-security-kpis.collect (cognitive 22) .github/scripts/collect-admin-ui-security-kpis.py:118 — collect-admin-ui-security-kpis.collect has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 8, loops 1 (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 · credential-inventory._operator_managed_credential (cognitive 22) · ×1
  • credential-inventory._operator_managed_credential (cognitive 22) .github/scripts/credential-inventory.py:187 — credential-inventory._operator_managed_credential has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, boolean chains 10, ternaries 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 · detect-auto-deploy-stuck.self_test (cognitive 22) · ×1
  • detect-auto-deploy-stuck.self_test (cognitive 22) .github/scripts/detect-auto-deploy-stuck.py:214 — detect-auto-deploy-stuck.self_test has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, loops 5, if/else 3 (4 pts), ternaries 4 (nesting depth added 1). 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 · gen-release-registry.main (cognitive 22) · ×1
  • gen-release-registry.main (cognitive 22) .github/scripts/gen-release-registry.py:120 — gen-release-registry.main has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 2 (6 pts), loops 1 (2 pts) (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 · merge-train.api (cognitive 22) · ×1
  • merge-train.api (cognitive 22) .github/scripts/merge-train.py:1608 — merge-train.api has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (7 pts), error handling 2 (4 pts), loops 1, 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 · record-rerun-flake.main (cognitive 22) · ×1
  • record-rerun-flake.main (cognitive 22) .github/scripts/record-rerun-flake.py:377 — record-rerun-flake.main has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 7, 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 · service-build-artifact.restore (cognitive 22) · ×1
  • service-build-artifact.restore (cognitive 22) .github/scripts/service-build-artifact.py:193 — service-build-artifact.restore has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 9, loops 2 (3 pts) (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 · verify-dependabot-auto-merge.verify (cognitive 22) · ×1
  • verify-dependabot-auto-merge.verify (cognitive 22) .github/scripts/verify-dependabot-auto-merge.py:75 — verify-dependabot-auto-merge.verify has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 3 (5 pts), loops 4 (5 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · authz-coverage-report.main (cognitive 22) · ×1
  • authz-coverage-report.main (cognitive 22) openbank-infra/scripts/authz-coverage-report.py:246 — authz-coverage-report.main has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (6 pts), boolean chains 3, ternaries 1 (2 pts) (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 · check-cnpg-backup-declared.check (cognitive 22) · ×1
  • check-cnpg-backup-declared.check (cognitive 22) openbank-infra/scripts/check-cnpg-backup-declared.py:70 — check-cnpg-backup-declared.check has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 8, 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 · check-threat-model-diff.self_test (cognitive 22) · ×1
  • check-threat-model-diff.self_test (cognitive 22) openbank-infra/scripts/check-threat-model-diff.py:899 — check-threat-model-diff.self_test has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 4 (8 pts), loops 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 · check-threat-models.main (cognitive 22) · ×1
  • check-threat-models.main (cognitive 22) openbank-infra/scripts/check-threat-models.py:259 — check-threat-models.main has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (11 pts), loops 4 (6 pts), ternaries 2 (4 pts), boolean chains 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 · gitops_facts.management_port_workloads (cognitive 22) · ×1
  • gitops_facts.management_port_workloads (cognitive 22) openbank-infra/scripts/gitops_facts.py:337 — gitops_facts.management_port_workloads has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (11 pts), ternaries 2 (7 pts), loops 2 (3 pts), 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 · generate-product-catalog-v2-types.typeOf (cognitive 22) · ×1
  • generate-product-catalog-v2-types.typeOf (cognitive 22) openbank-admin-ui/scripts/generate-product-catalog-v2-types.mjs:36 — generate-product-catalog-v2-types.typeOf has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 5). Of this number, 20 points are the body's own statements and 2 belong to one function literal inside it that branches. 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 · route.recordShadowCase (cognitive 22) · ×1
  • route.recordShadowCase (cognitive 22) REDACTED:59 — route.recordShadowCase has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 2, error handling 1, 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 · page.ServiceDocsPage (cognitive 22) · ×1
  • page.ServiceDocsPage (cognitive 22) openbank-admin-ui/src/app/services/[name]/docs/[[...slug]]/page.tsx:55 — page.ServiceDocsPage has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 9 (10 pts), boolean chains 9, if/else 1 (2 pts), error handling 1 (nesting depth added 2). Of this number, 18 points are the body's own statements and 4 belong to 4 function items inside it that branch. 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 · ContextAssignmentAdministration.ContextAssignmentAdministration (cognitive 22) · ×1
  • ContextAssignmentAdministration.ContextAssignmentAdministration (cognitive 22) openbank-admin-ui/src/components/context/ContextAssignmentAdministration.tsx:14 — ContextAssignmentAdministration.ContextAssignmentAdministration has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 8, if/else 8, error handling 3, ternaries 3. Most of this is not in the body itself: 7 of the 22 points are its own statements and the rest belongs to 7 function items inside it that branch (propose, a function literal at line 30, decide, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · live-platform-versions.aggregateImages (cognitive 22) · ×1
  • live-platform-versions.aggregateImages (cognitive 22) REDACTED:150 — live-platform-versions.aggregateImages has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (9 pts), boolean chains 5, ternaries 2 (5 pts), loops 2 (3 pts) (nesting depth added 10). Of this number, 21 points are the body's own statements and 1 belongs to one function literal inside it that branches. 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 · await-admin-ui-source-validation.fetch_all (cognitive 21) · ×1
  • await-admin-ui-source-validation.fetch_all (cognitive 21) .github/scripts/await-admin-ui-source-validation.py:160 — await-admin-ui-source-validation.fetch_all has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (18 pts), 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 · check-asyncapi-doc-discriminator.payload_properties (cognitive 21) · ×1
  • check-asyncapi-doc-discriminator.payload_properties (cognitive 21) .github/scripts/check-asyncapi-doc-discriminator.py:314 — check-asyncapi-doc-discriminator.payload_properties has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (8 pts), ternaries 2 (5 pts), boolean chains 4, loops 2 (4 pts) (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 · check-asyncapi-doc-discriminator.self_test (cognitive 21) · ×1
  • check-asyncapi-doc-discriminator.self_test (cognitive 21) .github/scripts/check-asyncapi-doc-discriminator.py:388 — check-asyncapi-doc-discriminator.self_test has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 7 (9 pts), if/else 3 (5 pts), loops 3 (5 pts), 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 · check-build-time-bean-selection.collect_sites (cognitive 21) · ×1
  • check-build-time-bean-selection.collect_sites (cognitive 21) .github/scripts/check-build-time-bean-selection.py:118 — check-build-time-bean-selection.collect_sites has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), ternaries 1 (4 pts), error handling 1 (2 pts) (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 · check-cronjob-max-success-age.scan_tf (cognitive 21) · ×1
  • check-cronjob-max-success-age.scan_tf (cognitive 21) .github/scripts/check-cronjob-max-success-age.py:164 — check-cronjob-max-success-age.scan_tf has cognitive complexity 21 (threshold 15). Drivers by points: if/else 2 (8 pts), loops 3 (7 pts), ternaries 2 (6 pts) (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 · check-deploy-holds.union_holds (cognitive 21) · ×1
  • check-deploy-holds.union_holds (cognitive 21) .github/scripts/check-deploy-holds.py:120 — check-deploy-holds.union_holds has cognitive complexity 21 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 3 (8 pts), boolean chains 2, ternaries 1 (2 pts) (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 · check-dockerfile-no-build-stage.self_test (cognitive 21) · ×1
  • check-dockerfile-no-build-stage.self_test (cognitive 21) .github/scripts/check-dockerfile-no-build-stage.py:262 — check-dockerfile-no-build-stage.self_test has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, loops 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 · check-dynamic-db-roles-declared.declared_roles (cognitive 21) · ×1
  • check-dynamic-db-roles-declared.declared_roles (cognitive 21) .github/scripts/check-dynamic-db-roles-declared.py:48 — check-dynamic-db-roles-declared.declared_roles has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 2 (6 pts), boolean chains 4, 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 · check-event-contract-code-agreement.parse_event_classes (cognitive 21) · ×1
  • check-event-contract-code-agreement.parse_event_classes (cognitive 21) .github/scripts/check-event-contract-code-agreement.py:289 — check-event-contract-code-agreement.parse_event_classes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 2 (3 pts) (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 · check-libs-annotations-implemented.self_test (cognitive 21) · ×1
  • check-libs-annotations-implemented.self_test (cognitive 21) .github/scripts/check-libs-annotations-implemented.py:340 — check-libs-annotations-implemented.self_test has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, loops 3, ternaries 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 · check-msg-channel-image-parity.prefetch_full_shas (cognitive 21) · ×1
  • check-msg-channel-image-parity.prefetch_full_shas (cognitive 21) .github/scripts/check-msg-channel-image-parity.py:234 — check-msg-channel-image-parity.prefetch_full_shas has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (9 pts), loops 2, error handling 1 (nesting depth added 3). 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 · check-mtls-bearer-only._overlap_witness (cognitive 21) · ×1
  • check-mtls-bearer-only._overlap_witness (cognitive 21) .github/scripts/check-mtls-bearer-only.py:134 — check-mtls-bearer-only._overlap_witness has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2 (5 pts), 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 · check-oidc-client-configured.workload_env (cognitive 21) · ×1
  • check-oidc-client-configured.workload_env (cognitive 21) .github/scripts/check-oidc-client-configured.py:95 — check-oidc-client-configured.workload_env has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, if/else 3 (8 pts), loops 2 (3 pts), error handling 1 (2 pts) (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 · check-opa-bundle-apply-size.load_applications (cognitive 21) · ×1
  • check-opa-bundle-apply-size.load_applications (cognitive 21) .github/scripts/check-opa-bundle-apply-size.py:82 — check-opa-bundle-apply-size.load_applications has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, if/else 3 (8 pts), loops 2 (3 pts), error handling 1 (2 pts) (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 · check-product-ir-version-lifecycle.run (cognitive 21) · ×1
  • check-product-ir-version-lifecycle.run (cognitive 21) .github/scripts/check-product-ir-version-lifecycle.py:101 — check-product-ir-version-lifecycle.run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), error handling 2 (3 pts), loops 2, boolean chains 1, 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 · check-prompt-registry.load_manifest (cognitive 21) · ×1
  • check-prompt-registry.load_manifest (cognitive 21) .github/scripts/check-prompt-registry.py:73 — check-prompt-registry.load_manifest has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, loops 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 · check-security-checklist.coverage_findings (cognitive 21) · ×1
  • check-security-checklist.coverage_findings (cognitive 21) .github/scripts/check-security-checklist.py:529 — check-security-checklist.coverage_findings has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 3 (6 pts), 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 · check-synthetic-outbox-taint.self_test (cognitive 21) · ×1
  • check-synthetic-outbox-taint.self_test (cognitive 21) .github/scripts/check-synthetic-outbox-taint.py:155 — check-synthetic-outbox-taint.self_test has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 4 (5 pts), boolean chains 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 · check-threat-model-claims.parse_table (cognitive 21) · ×1
  • check-threat-model-claims.parse_table (cognitive 21) .github/scripts/check-threat-model-claims.py:226 — check-threat-model-claims.parse_table has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), ternaries 1 (3 pts), 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 · check_library_quality_evidence.quota_delay (cognitive 21) · ×1
  • check_library_quality_evidence.quota_delay (cognitive 21) .github/scripts/check_library_quality_evidence.py:113 — check_library_quality_evidence.quota_delay has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 8, loops 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 · deploy-publication-race.decision (cognitive 21) · ×1
  • deploy-publication-race.decision (cognitive 21) .github/scripts/deploy-publication-race.py:61 — deploy-publication-race.decision has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4, 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 · fuzz-coverage-aggregate.self_test (cognitive 21) · ×1
  • fuzz-coverage-aggregate.self_test (cognitive 21) .github/scripts/fuzz-coverage-aggregate.py:121 — fuzz-coverage-aggregate.self_test has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, boolean chains 7, ternaries 2, loops 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 · gen-agents-opa-data.self_test (cognitive 21) · ×1
  • gen-agents-opa-data.self_test (cognitive 21) .github/scripts/gen-agents-opa-data.py:455 — gen-agents-opa-data.self_test has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 4, ternaries 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, 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 · historical-admin-ui-pact.check_result (cognitive 21) · ×1
  • historical-admin-ui-pact.check_result (cognitive 21) .github/scripts/historical-admin-ui-pact.py:70 — historical-admin-ui-pact.check_result has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (3 pts), boolean chains 2, error handling 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 · runtime-conformance.claim_canary_rollouts (cognitive 21) · ×1
  • runtime-conformance.claim_canary_rollouts (cognitive 21) .github/scripts/runtime-conformance.py:191 — runtime-conformance.claim_canary_rollouts has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (9 pts), ternaries 2 (6 pts), boolean chains 3, loops 2 (3 pts) (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 · stage-pitest-artifacts.stage (cognitive 21) · ×1
  • stage-pitest-artifacts.stage (cognitive 21) .github/scripts/stage-pitest-artifacts.py:90 — stage-pitest-artifacts.stage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 4, loops 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 · verify-capacity-evidence.verify_artifacts (cognitive 21) · ×1
  • verify-capacity-evidence.verify_artifacts (cognitive 21) .github/scripts/verify-capacity-evidence.py:298 — verify-capacity-evidence.verify_artifacts has cognitive complexity 21 (threshold 15). Drivers by points: error handling 4 (7 pts), if/else 3 (7 pts), loops 3 (5 pts), 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 · wait_dependency_review_snapshot._snapshot_state (cognitive 21) · ×1
  • wait_dependency_review_snapshot._snapshot_state (cognitive 21) .github/scripts/wait_dependency_review_snapshot.py:50 — wait_dependency_review_snapshot._snapshot_state has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 1 (3 pts), boolean chains 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 · gen-network-policies.securitypolicy_extauth_backends (cognitive 21) · ×1
  • gen-network-policies.securitypolicy_extauth_backends (cognitive 21) openbank-infra/scripts/gen-network-policies.py:243 — gen-network-policies.securitypolicy_extauth_backends has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 3 (8 pts), loops 2 (3 pts) (nesting depth added 6). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · contentSnapshot.validGovernance (cognitive 21) · ×1
  • contentSnapshot.validGovernance (cognitive 21) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:182 — contentSnapshot.validGovernance has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, if/else 5 (8 pts), loops 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · route.fromScanner (cognitive 21) · ×1
  • route.fromScanner (cognitive 21) REDACTED:77 — route.fromScanner has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (12 pts), if/else 5 (6 pts), error handling 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 · page.ReferralProgramsPage (cognitive 21) · ×1
  • page.ReferralProgramsPage (cognitive 21) openbank-admin-ui/src/app/campaigns/referrals/page.tsx:34 — page.ReferralProgramsPage has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (10 pts), boolean chains 8, if/else 3 (nesting depth added 4). Most of this is not in the body itself: 7 of the 21 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 48, 88, 60, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · page.ZeroTrustPage (cognitive 21) · ×1
  • page.ZeroTrustPage (cognitive 21) openbank-admin-ui/src/app/docs/zero-trust/page.tsx:36 — page.ZeroTrustPage has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 14 (17 pts), boolean chains 3, if/else 1 (nesting depth added 3). Of this number, 20 points are the body's own statements and 1 belongs to one function item inside it that branches. 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 · page.parseServiceConfigSnapshot (cognitive 21) · ×1
  • page.parseServiceConfigSnapshot (cognitive 21) openbank-admin-ui/src/app/system/config/page.tsx:25 — page.parseServiceConfigSnapshot has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 13, ternaries 4 (5 pts), if/else 3 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · CampaignAttentionFunnel.CampaignAttentionFunnel (cognitive 21) · ×1
  • CampaignAttentionFunnel.CampaignAttentionFunnel (cognitive 21) openbank-admin-ui/src/components/campaigns/CampaignAttentionFunnel.tsx:51 — CampaignAttentionFunnel.CampaignAttentionFunnel has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 7 (10 pts), if/else 3 (6 pts), boolean chains 3, loops 2 (nesting depth added 6). Of this number, 17 points are the body's own statements and 4 belong to 4 function items inside it that branch. 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 · AmlCaseInvestigation.AmlCaseInvestigation (cognitive 21) · ×1
  • AmlCaseInvestigation.AmlCaseInvestigation (cognitive 21) openbank-admin-ui/src/components/context/AmlCaseInvestigation.tsx:9 — AmlCaseInvestigation.AmlCaseInvestigation has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), ternaries 3 (4 pts), error handling 1 (nesting depth added 2). Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to 4 function items inside it that branch (load, refLabel, a function literal at line 67, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · RoleCatalog.RoleCatalog (cognitive 21) · ×1
  • RoleCatalog.RoleCatalog (cognitive 21) openbank-admin-ui/src/components/delegations/RoleCatalog.tsx:15 — RoleCatalog.RoleCatalog has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 5, error handling 3, ternaries 3. Most of this is not in the body itself: 10 of the 21 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 61, a function literal at line 34, remove, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · OriginationFlow.OriginationFlow (cognitive 21) · ×1
  • OriginationFlow.OriginationFlow (cognitive 21) openbank-admin-ui/src/components/lending/OriginationFlow.tsx:114 — OriginationFlow.OriginationFlow has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, ternaries 7 (9 pts), if/else 3 (nesting depth added 2). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 3 function items inside it that branch (row, toneFor, label). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · EvidenceFreshness.EvidenceFreshness (cognitive 21) · ×1
  • EvidenceFreshness.EvidenceFreshness (cognitive 21) openbank-admin-ui/src/components/testing/EvidenceFreshness.tsx:21 — EvidenceFreshness.EvidenceFreshness has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 8 (11 pts), boolean chains 9, if/else 1 (nesting depth added 3). 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 · types.appEvidence (cognitive 21) · ×1
  • types.appEvidence (cognitive 21) openbank-admin-ui/src/lib/agent-merge-records/types.ts:80 — types.appEvidence has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 14, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · customerGraph.selectGraphFocus (cognitive 21) · ×1
  • customerGraph.selectGraphFocus (cognitive 21) openbank-admin-ui/src/lib/context/customerGraph.ts:58 — customerGraph.selectGraphFocus has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (6 pts), 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 · docs.parseAdr (cognitive 21) · ×1
  • docs.parseAdr (cognitive 21) openbank-admin-ui/src/lib/governance/docs.ts:115 — docs.parseAdr has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 12 (17 pts), boolean chains 2, error handling 1, if/else 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 · lineage-evidence.parseService (cognitive 21) · ×1
  • lineage-evidence.parseService (cognitive 21) openbank-admin-ui/src/lib/governance/lineage-evidence.ts:60 — lineage-evidence.parseService has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, loops 1 (2 pts), ternaries 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 · service-map-evidence.parseServiceMapGraph (cognitive 21) · ×1
  • service-map-evidence.parseServiceMapGraph (cognitive 21) openbank-admin-ui/src/lib/governance/service-map-evidence.ts:69 — service-map-evidence.parseServiceMapGraph has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, ternaries 6, if/else 4. Most of this is not in the body itself: 7 of the 21 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 76, 72, 81, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · probes.probeInfra (cognitive 21) · ×1
  • probes.probeInfra (cognitive 21) REDACTED:146 — probes.probeInfra has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 4 (7 pts), boolean chains 1, error handling 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 · exportReadiness.blockReasonCopy (cognitive 21) · ×1
  • exportReadiness.blockReasonCopy (cognitive 21) openbank-admin-ui/src/lib/regulatory/exportReadiness.ts:175 — exportReadiness.blockReasonCopy has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 10 (20 pts), match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · PensionCopy.render (cognitive 20) · ×1
  • PensionCopy.render (cognitive 20) openbank-notification-service/src/main/kotlin/com/openbank/notification/domain/PensionCopy.kt:40 — PensionCopy.render has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (19 pts), match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · admin-ui-delivery-baseline.attempt_row (cognitive 20) · ×1
  • admin-ui-delivery-baseline.attempt_row (cognitive 20) .github/scripts/admin-ui-delivery-baseline.py:72 — admin-ui-delivery-baseline.attempt_row has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 11, boolean chains 8, if/else 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 · auto-update-armed-prs.decide (cognitive 20) · ×1
  • auto-update-armed-prs.decide (cognitive 20) .github/scripts/auto-update-armed-prs.py:115 — auto-update-armed-prs.decide has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 4, ternaries 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 · check-advisory-gate-registration.main (cognitive 20) · ×1
  • check-advisory-gate-registration.main (cognitive 20) .github/scripts/check-advisory-gate-registration.py:366 — check-advisory-gate-registration.main has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (4 pts), ternaries 1 (3 pts), boolean chains 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 · check-approval-store-redis-host.audit (cognitive 20) · ×1
  • check-approval-store-redis-host.audit (cognitive 20) .github/scripts/check-approval-store-redis-host.py:91 — check-approval-store-redis-host.audit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 4, ternaries 1 (4 pts), loops 2 (3 pts) (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 · check-default-nodepool-budget.check_text (cognitive 20) · ×1
  • check-default-nodepool-budget.check_text (cognitive 20) .github/scripts/check-default-nodepool-budget.py:100 — check-default-nodepool-budget.check_text has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 6, 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, 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 · check-deploy-holds.holds (cognitive 20) · ×1
  • check-deploy-holds.holds (cognitive 20) .github/scripts/check-deploy-holds.py:50 — check-deploy-holds.holds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, ternaries 1 (3 pts), error handling 1, 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 · check-deploy-holds.approved_image_findings (cognitive 20) · ×1
  • check-deploy-holds.approved_image_findings (cognitive 20) .github/scripts/check-deploy-holds.py:295 — check-deploy-holds.approved_image_findings has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (6 pts), 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 · check-deploy-source-freshness.verify (cognitive 20) · ×1
  • check-deploy-source-freshness.verify (cognitive 20) .github/scripts/check-deploy-source-freshness.py:33 — check-deploy-source-freshness.verify has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4, loops 2, ternaries 1 (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 · check-edge-decoy-rule-parity.rule_readers (cognitive 20) · ×1
  • check-edge-decoy-rule-parity.rule_readers (cognitive 20) .github/scripts/check-edge-decoy-rule-parity.py:70 — check-edge-decoy-rule-parity.rule_readers has cognitive complexity 20 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 2 (6 pts), boolean chains 4 (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · check-enum-reference-data.findings (cognitive 20) · ×1
  • check-enum-reference-data.findings (cognitive 20) .github/scripts/check-enum-reference-data.py:171 — check-enum-reference-data.findings has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (6 pts), 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 · check-event-schema-compat.compare_events (cognitive 20) · ×1
  • check-event-schema-compat.compare_events (cognitive 20) .github/scripts/check-event-schema-compat.py:210 — check-event-schema-compat.compare_events has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (5 pts), 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 · check-jaxrs-path-hijack.audit (cognitive 20) · ×1
  • check-jaxrs-path-hijack.audit (cognitive 20) .github/scripts/check-jaxrs-path-hijack.py:57 — check-jaxrs-path-hijack.audit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 2 (3 pts), 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 · check-kafka-topics-exist.configured_topics (cognitive 20) · ×1
  • check-kafka-topics-exist.configured_topics (cognitive 20) .github/scripts/check-kafka-topics-exist.py:74 — check-kafka-topics-exist.configured_topics has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 3 (6 pts), boolean chains 2, error handling 1 (2 pts) (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 · check-libs-core-purity.self_test (cognitive 20) · ×1
  • check-libs-core-purity.self_test (cognitive 20) .github/scripts/check-libs-core-purity.py:119 — check-libs-core-purity.self_test has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (15 pts), loops 2, ternaries 2, boolean chains 1 (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 · check-merged-past-red-check.scan (cognitive 20) · ×1
  • check-merged-past-red-check.scan (cognitive 20) .github/scripts/check-merged-past-red-check.py:280 — check-merged-past-red-check.scan has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 3 (5 pts), ternaries 2 (3 pts), boolean chains 2, error handling 1 (2 pts) (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 · check-nat-ami-pinned.find_blocks (cognitive 20) · ×1
  • check-nat-ami-pinned.find_blocks (cognitive 20) .github/scripts/check-nat-ami-pinned.py:117 — check-nat-ami-pinned.find_blocks has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 2 (3 pts) (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 · check-no-allow-all-pdp-in-main.branch_precedes (cognitive 20) · ×1
  • check-no-allow-all-pdp-in-main.branch_precedes (cognitive 20) .github/scripts/check-no-allow-all-pdp-in-main.py:205 — check-no-allow-all-pdp-in-main.branch_precedes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, loops 1 (2 pts) (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 · check-no-epoch-instant-default.strip_comments (cognitive 20) · ×1
  • check-no-epoch-instant-default.strip_comments (cognitive 20) .github/scripts/check-no-epoch-instant-default.py:46 — check-no-epoch-instant-default.strip_comments has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 2 (3 pts) (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 · check-no-runblocking-in-scheduled.strip_comments (cognitive 20) · ×1
  • check-no-runblocking-in-scheduled.strip_comments (cognitive 20) .github/scripts/check-no-runblocking-in-scheduled.py:94 — check-no-runblocking-in-scheduled.strip_comments has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 2 (3 pts) (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 · check-oidc-client-secret-wiring.main (cognitive 20) · ×1
  • check-oidc-client-secret-wiring.main (cognitive 20) .github/scripts/check-oidc-client-secret-wiring.py:219 — check-oidc-client-secret-wiring.main has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 4 (5 pts), loops 4, 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 · check-opa-bundle-apply-size.check (cognitive 20) · ×1
  • check-opa-bundle-apply-size.check (cognitive 20) .github/scripts/check-opa-bundle-apply-size.py:104 — check-opa-bundle-apply-size.check has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (3 pts), error handling 1 (2 pts), 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 · check-openapi-version-not-taken.main (cognitive 20) · ×1
  • check-openapi-version-not-taken.main (cognitive 20) .github/scripts/check-openapi-version-not-taken.py:128 — check-openapi-version-not-taken.main has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 6 (8 pts), loops 2, 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 · check-pact-twin-state-parity.main (cognitive 20) · ×1
  • check-pact-twin-state-parity.main (cognitive 20) .github/scripts/check-pact-twin-state-parity.py:176 — check-pact-twin-state-parity.main has cognitive complexity 20 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 5 (6 pts), boolean chains 2 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · check-pitest-threshold-single-source.evaluate (cognitive 20) · ×1
  • check-pitest-threshold-single-source.evaluate (cognitive 20) .github/scripts/check-pitest-threshold-single-source.py:94 — check-pitest-threshold-single-source.evaluate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 4 (5 pts), error handling 2 (3 pts), boolean chains 2, ternaries 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 · check-probe-port-listener.podmonitor_ports (cognitive 20) · ×1
  • check-probe-port-listener.podmonitor_ports (cognitive 20) .github/scripts/check-probe-port-listener.py:128 — check-probe-port-listener.podmonitor_ports has cognitive complexity 20 (threshold 15). Drivers by points: if/else 2 (7 pts), loops 3 (6 pts), boolean chains 5, error handling 1 (2 pts) (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 · check-threat-model-claims.parse_sections (cognitive 20) · ×1
  • check-threat-model-claims.parse_sections (cognitive 20) .github/scripts/check-threat-model-claims.py:246 — check-threat-model-claims.parse_sections has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 1 (4 pts), boolean chains 1, 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 · check-trace-contract-evidence.evaluate (cognitive 20) · ×1
  • check-trace-contract-evidence.evaluate (cognitive 20) .github/scripts/check-trace-contract-evidence.py:53 — check-trace-contract-evidence.evaluate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (5 pts) (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 · check-verification-metadata-complete.main (cognitive 20) · ×1
  • check-verification-metadata-complete.main (cognitive 20) .github/scripts/check-verification-metadata-complete.py:341 — check-verification-metadata-complete.main has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 3, boolean chains 1, error handling 1, 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, 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 · fetch-artifact._http_get (cognitive 20) · ×1
  • fetch-artifact._http_get (cognitive 20) .github/scripts/fetch-artifact.py:89 — fetch-artifact._http_get has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 4, error handling 2 (4 pts), 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 · fuzz-coverage-aggregate.aggregate (cognitive 20) · ×1
  • fuzz-coverage-aggregate.aggregate (cognitive 20) .github/scripts/fuzz-coverage-aggregate.py:38 — fuzz-coverage-aggregate.aggregate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3, error handling 1 (2 pts), ternaries 2, boolean chains 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 · infracost-scope.cost_scope (cognitive 20) · ×1
  • infracost-scope.cost_scope (cognitive 20) .github/scripts/infracost-scope.py:31 — infracost-scope.cost_scope has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, 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 · publish-admin-ui-pacts.publish (cognitive 20) · ×1
  • publish-admin-ui-pacts.publish (cognitive 20) .github/scripts/publish-admin-ui-pacts.py:192 — publish-admin-ui-pacts.publish has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 5 (8 pts), boolean chains 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 · security-kpis.self_test (cognitive 20) · ×1
  • security-kpis.self_test (cognitive 20) .github/scripts/security-kpis.py:299 — security-kpis.self_test has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7, ternaries 2, loops 1 (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 · wait_dependency_review_snapshot.wait_for_head_producer (cognitive 20) · ×1
  • wait_dependency_review_snapshot.wait_for_head_producer (cognitive 20) .github/scripts/wait_dependency_review_snapshot.py:119 — wait_dependency_review_snapshot.wait_for_head_producer has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 3 (6 pts), 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 · check-release-registration.self_test (cognitive 20) · ×1
  • check-release-registration.self_test (cognitive 20) openbank-infra/scripts/check-release-registration.py:125 — check-release-registration.self_test has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (4 pts), 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 · check-threat-model-diff.main (cognitive 20) · ×1
  • check-threat-model-diff.main (cognitive 20) openbank-infra/scripts/check-threat-model-diff.py:942 — check-threat-model-diff.main has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 2, boolean chains 1, ternaries 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, 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 · m2m-shared-client-denylist.server_endpoints (cognitive 20) · ×1
  • m2m-shared-client-denylist.server_endpoints (cognitive 20) openbank-infra/scripts/m2m-shared-client-denylist.py:136 — m2m-shared-client-denylist.server_endpoints has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), ternaries 1 (3 pts), 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 · m2m-shared-client-denylist.named_client_id (cognitive 20) · ×1
  • m2m-shared-client-denylist.named_client_id (cognitive 20) openbank-infra/scripts/m2m-shared-client-denylist.py:172 — m2m-shared-client-denylist.named_client_id has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, loops 2, ternaries 1 (2 pts) (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 · netpol-coverage.selects (cognitive 20) · ×1
  • netpol-coverage.selects (cognitive 20) openbank-infra/scripts/netpol-coverage.py:51 — netpol-coverage.selects has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 8, loops 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 · handler.handler (cognitive 20) · ×1
  • handler.handler (cognitive 20) REDACTED:271 — handler.handler has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 3 (6 pts), 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 · generate-events.messagingTopics · ×1
  • generate-events.messagingTopics::addTopics (cognitive 20) openbank-admin-ui/scripts/generate-events.mjs:72 — generate-events.messagingTopics::addTopics has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (4 pts), 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 · route.GET (cognitive 20) · ×1
  • route.GET (cognitive 20) openbank-admin-ui/src/app/api/devops/dora/route.ts:57 — route.GET has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 10 (13 pts), if/else 3 (5 pts), boolean chains 1, 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 · page.VopSection (cognitive 20) · ×1
  • page.VopSection (cognitive 20) openbank-admin-ui/src/app/payments/page.tsx:176 — page.VopSection has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 7, if/else 7, ternaries 3 (5 pts), error handling 1 (nesting depth added 2). Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to 5 function items inside it that branch (vopIcon, a function literal at line 237, a function literal at line 215, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · allocation.allocate (cognitive 20) · ×1
  • allocation.allocate (cognitive 20) openbank-admin-ui/src/lib/finops/allocation.ts:142 — allocation.allocate has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (6 pts), ternaries 3, loops 2 (nesting depth added 2). Of this number, 14 points are the body's own statements and 6 belong to 5 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · live-platform-versions.fetchLiveSnapshot (cognitive 20) · ×1
  • live-platform-versions.fetchLiveSnapshot (cognitive 20) REDACTED:237 — live-platform-versions.fetchLiveSnapshot has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (9 pts), boolean chains 7, if/else 2, loops 1 (2 pts) (nesting depth added 4). Of this number, 16 points are the body's own statements and 4 belong to 4 function literals inside it that branch. 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 · kycEvidenceContract.parseKycCaseEvidence (cognitive 20) · ×1
  • kycEvidenceContract.parseKycCaseEvidence (cognitive 20) openbank-admin-ui/src/lib/parties/kycEvidenceContract.ts:39 — kycEvidenceContract.parseKycCaseEvidence has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 8, loops 1 (nesting depth added 3). 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 · agent-admission.validate_snapshot (cognitive 19) · ×1
  • agent-admission.validate_snapshot (cognitive 19) .github/scripts/agent-admission.py:77 — agent-admission.validate_snapshot has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 3, loops 2 (3 pts) (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 · check-claude-md-identifiers.findings (cognitive 19) · ×1
  • check-claude-md-identifiers.findings (cognitive 19) .github/scripts/check-claude-md-identifiers.py:98 — check-claude-md-identifiers.findings has cognitive complexity 19 (threshold 15). Drivers by points: if/else 2 (8 pts), loops 3 (6 pts), ternaries 2 (3 pts), 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 · check-cnpg-scrape-coverage.build (cognitive 19) · ×1
  • check-cnpg-scrape-coverage.build (cognitive 19) .github/scripts/check-cnpg-scrape-coverage.py:647 — check-cnpg-scrape-coverage.build has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 4, boolean chains 2, ternaries 1 (2 pts) (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 · check-evals-registry.main (cognitive 19) · ×1
  • check-evals-registry.main (cognitive 19) .github/scripts/check-evals-registry.py:238 — check-evals-registry.main has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 4 (5 pts) (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 · check-event-contract-code-agreement.strip_kotlin_comments (cognitive 19) · ×1
  • check-event-contract-code-agreement.strip_kotlin_comments (cognitive 19) .github/scripts/check-event-contract-code-agreement.py:158 — check-event-contract-code-agreement.strip_kotlin_comments has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 pts), ternaries 1 (3 pts), 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 · check-flyway-default-datasource.selftest (cognitive 19) · ×1
  • check-flyway-default-datasource.selftest (cognitive 19) .github/scripts/check-flyway-default-datasource.py:169 — check-flyway-default-datasource.selftest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2, ternaries 1 (2 pts) (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 · check-honeytoken-wiring.bound_subjects (cognitive 19) · ×1
  • check-honeytoken-wiring.bound_subjects (cognitive 19) .github/scripts/check-honeytoken-wiring.py:133 — check-honeytoken-wiring.bound_subjects has cognitive complexity 19 (threshold 15). Drivers by points: if/else 2 (8 pts), loops 3 (7 pts), boolean chains 2, error handling 1 (2 pts) (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 · check-idempotency-coverage.body_schema (cognitive 19) · ×1
  • check-idempotency-coverage.body_schema (cognitive 19) .github/scripts/check-idempotency-coverage.py:86 — check-idempotency-coverage.body_schema has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 6, loops 2 (4 pts) (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 · check-main-red-watch.classify_run (cognitive 19) · ×1
  • check-main-red-watch.classify_run (cognitive 19) .github/scripts/check-main-red-watch.py:373 — check-main-red-watch.classify_run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 8, loops 1 (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, 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 · check-no-handrolled-cosign.signing_command (cognitive 19) · ×1
  • check-no-handrolled-cosign.signing_command (cognitive 19) .github/scripts/check-no-handrolled-cosign.py:55 — check-no-handrolled-cosign.signing_command has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (5 pts), 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 · check-nonnull-jaxrs-params.scan_source (cognitive 19) · ×1
  • check-nonnull-jaxrs-params.scan_source (cognitive 19) .github/scripts/check-nonnull-jaxrs-params.py:183 — check-nonnull-jaxrs-params.scan_source has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), 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 · check-oidc-client-secret-wiring.strip_kotlin_comments (cognitive 19) · ×1
  • check-oidc-client-secret-wiring.strip_kotlin_comments (cognitive 19) .github/scripts/check-oidc-client-secret-wiring.py:83 — check-oidc-client-secret-wiring.strip_kotlin_comments has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 pts), ternaries 1 (3 pts), 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 · check-oidc-tls-verification-profile.self_test (cognitive 19) · ×1
  • check-oidc-tls-verification-profile.self_test (cognitive 19) .github/scripts/check-oidc-tls-verification-profile.py:202 — check-oidc-tls-verification-profile.self_test has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (13 pts), loops 4 (5 pts), 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.
D2 · Cognitive Complexity · check-openapi-request-schema-conformance.request_body_refs (cognitive 19) · ×1
  • check-openapi-request-schema-conformance.request_body_refs (cognitive 19) .github/scripts/check-openapi-request-schema-conformance.py:68 — check-openapi-request-schema-conformance.request_body_refs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 5, loops 2 (3 pts) (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 · check-pr-file-overlap._fill_overlap_oids (cognitive 19) · ×1
  • check-pr-file-overlap._fill_overlap_oids (cognitive 19) .github/scripts/check-pr-file-overlap.py:246 — check-pr-file-overlap._fill_overlap_oids has cognitive complexity 19 (threshold 15). Drivers by points: loops 5 (8 pts), ternaries 2 (5 pts), if/else 3 (4 pts), boolean chains 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 · check-provider-type-classpath.audit (cognitive 19) · ×1
  • check-provider-type-classpath.audit (cognitive 19) .github/scripts/check-provider-type-classpath.py:107 — check-provider-type-classpath.audit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 3 (6 pts) (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 · check-restclient-url-supplied.container_envs (cognitive 19) · ×1
  • check-restclient-url-supplied.container_envs (cognitive 19) .github/scripts/check-restclient-url-supplied.py:68 — check-restclient-url-supplied.container_envs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 3 (6 pts), 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 · check-scheduler-liveness.main (cognitive 19) · ×1
  • check-scheduler-liveness.main (cognitive 19) .github/scripts/check-scheduler-liveness.py:145 — check-scheduler-liveness.main has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), loops 4 (7 pts), boolean chains 2 (nesting depth added 4). 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 · Corpus.__init__ (cognitive 19) · ×1
  • Corpus.__init__ (cognitive 19) .github/scripts/check-threat-model-claims.py:493 — Corpus.__init__ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 5 (6 pts), boolean chains 2, error handling 1 (2 pts) (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 · check-workflow-supply-chain.main (cognitive 19) · ×1
  • check-workflow-supply-chain.main (cognitive 19) .github/scripts/check-workflow-supply-chain.py:158 — check-workflow-supply-chain.main has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3 (4 pts), 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 · HttpFixture.__call__ (cognitive 19) · ×1
  • HttpFixture.__call__ (cognitive 19) .github/scripts/merge-train.py:4260 — HttpFixture.__call__ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (5 pts), boolean chains 2, ternaries 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 · merge-train.fix_head_state (cognitive 19) · ×1
  • merge-train.fix_head_state (cognitive 19) .github/scripts/merge-train.py:3350 — merge-train.fix_head_state has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, ternaries 3 (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 · merge_train_carrier.deepen_for_chain (cognitive 19) · ×1
  • merge_train_carrier.deepen_for_chain (cognitive 19) .github/scripts/merge_train_carrier.py:92 — merge_train_carrier.deepen_for_chain has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, error handling 1 (2 pts), 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 · record-rerun-flake.self_test (cognitive 19) · ×1
  • record-rerun-flake.self_test (cognitive 19) .github/scripts/record-rerun-flake.py:467 — record-rerun-flake.self_test has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, loops 2 (3 pts), error handling 1 (2 pts), if/else 2 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · verify-packaged-library-sbom.verify (cognitive 19) · ×1
  • verify-packaged-library-sbom.verify (cognitive 19) .github/scripts/verify-packaged-library-sbom.py:72 — verify-packaged-library-sbom.verify has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, loops 4 (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 · vex-triage.osv_severity (cognitive 19) · ×1
  • vex-triage.osv_severity (cognitive 19) .github/scripts/vex-triage.py:153 — vex-triage.osv_severity has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 5, ternaries 1 (3 pts), loops 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 · check-finops-tiers.parse_finops_tiers (cognitive 19) · ×1
  • check-finops-tiers.parse_finops_tiers (cognitive 19) openbank-infra/scripts/check-finops-tiers.py:82 — check-finops-tiers.parse_finops_tiers has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 1, 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 · gen-network-policies.httproute_backends (cognitive 19) · ×1
  • gen-network-policies.httproute_backends (cognitive 19) openbank-infra/scripts/gen-network-policies.py:222 — gen-network-policies.httproute_backends has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 2 (6 pts), loops 2 (3 pts) (nesting depth added 5). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · request-send-trace.createRequestSendTrace (cognitive 19) · ×1
  • request-send-trace.createRequestSendTrace (cognitive 19) openbank-admin-ui/scripts/request-send-trace.mjs:26 — request-send-trace.createRequestSendTrace has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 4 (5 pts), boolean chains 4, loops 1 (nesting depth added 4). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 50, 110, 80, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · collect-prod-readiness.loadAttestations (cognitive 19) · ×1
  • collect-prod-readiness.loadAttestations (cognitive 19) openbank-admin-ui/scripts/collect-prod-readiness.mjs:192 — collect-prod-readiness.loadAttestations has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, 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 · collect-prod-readiness.workloadNamespaces (cognitive 19) · ×1
  • collect-prod-readiness.workloadNamespaces (cognitive 19) openbank-admin-ui/scripts/collect-prod-readiness.mjs:272 — collect-prod-readiness.workloadNamespaces has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (3 pts), 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 · generate-app-status.deriveCapabilityStatus (cognitive 19) · ×1
  • generate-app-status.deriveCapabilityStatus (cognitive 19) openbank-admin-ui/scripts/generate-app-status.mjs:161 — generate-app-status.deriveCapabilityStatus has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 14, if/else 4, ternaries 1. Of this number, 18 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · route.relay (cognitive 19) · ×1
  • route.relay (cognitive 19) openbank-admin-ui/src/app/api/game/catalog/route.ts:10 — route.relay has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 4 (6 pts), error handling 2 (3 pts), 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 · route.proxy (cognitive 19) · ×1
  • route.proxy (cognitive 19) REDACTED:80 — route.proxy has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 3 (4 pts), boolean chains 1, error handling 1, 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 · page.FeesPage (cognitive 19) · ×1
  • page.FeesPage (cognitive 19) openbank-admin-ui/src/app/fees/page.tsx:16 — page.FeesPage has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (5 pts), ternaries 3 (4 pts), error handling 1 (nesting depth added 2). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 55, 27, 73, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · page.AllocationContent (cognitive 19) · ×1
  • page.AllocationContent (cognitive 19) openbank-admin-ui/src/app/finops/allocation/page.tsx:99 — page.AllocationContent has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 8 (14 pts), boolean chains 2, if/else 2, error handling 1 (nesting depth added 6). Of this number, 11 points are the body's own statements and 8 belong to 3 function items inside it that branch. 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 · page.Nostro (cognitive 19) · ×1
  • page.Nostro (cognitive 19) openbank-admin-ui/src/app/treasury/nostro/page.tsx:41 — page.Nostro has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7, boolean chains 6, ternaries 4 (6 pts) (nesting depth added 2). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 3 function items inside it that branch (lookup, upload, a function literal at line 140). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ComplaintContextInvestigation.ComplaintContextInvestigation (cognitive 19) · ×1
  • ComplaintContextInvestigation.ComplaintContextInvestigation (cognitive 19) openbank-admin-ui/src/components/context/ComplaintContextInvestigation.tsx:10 — ComplaintContextInvestigation.ComplaintContextInvestigation has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (8 pts), error handling 1, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 6 function items inside it that branch (investigate, a function literal at line 18, a function literal at line 36, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · BpmnView.BpmnDiagram (cognitive 19) · ×1
  • BpmnView.BpmnDiagram (cognitive 19) openbank-admin-ui/src/components/docs/BpmnView.tsx:42 — BpmnView.BpmnDiagram has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7, boolean chains 6, if/else 6. None of this is in the body itself: all 19 points belong to 2 function items inside it that branch (renderNode, a function literal at line 117). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · StageBoard.StageBoard (cognitive 19) · ×1
  • StageBoard.StageBoard (cognitive 19) openbank-admin-ui/src/components/flow/StageBoard.tsx:114 — StageBoard.StageBoard has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 14 (16 pts), boolean chains 3 (nesting depth added 2). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 169, a function literal at line 158, a function literal at line 209, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · ProductIrEditor.ProductIrEditor (cognitive 19) · ×1
  • ProductIrEditor.ProductIrEditor (cognitive 19) openbank-admin-ui/src/components/product-studio/ProductIrEditor.tsx:17 — ProductIrEditor.ProductIrEditor has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, ternaries 3 (5 pts), error handling 2, if/else 2 (nesting depth added 2). Of this number, 10 points are the body's own statements and 9 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · issue.stepBlockers (cognitive 19) · ×1
  • issue.stepBlockers (cognitive 19) openbank-admin-ui/src/lib/cards/issue.ts:134 — issue.stepBlockers has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (4 pts), 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 · overlay.buildEvidenceMeta (cognitive 19) · ×1
  • overlay.buildEvidenceMeta (cognitive 19) openbank-admin-ui/src/lib/evidence/overlay.ts:106 — overlay.buildEvidenceMeta has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 9 (10 pts), boolean chains 9 (nesting depth added 1). Of this number, 16 points are the body's own statements and 3 belong to 3 function literals inside it that branch. 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 · detailEvidence.parsePaymentDetailEvidence (cognitive 19) · ×1
  • detailEvidence.parsePaymentDetailEvidence (cognitive 19) openbank-admin-ui/src/lib/payments/detailEvidence.ts:68 — detailEvidence.parsePaymentDetailEvidence has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 4, ternaries 1 (nesting depth added 2). Of this number, 15 points are the body's own statements and 4 belong to 2 function items inside it that branch. 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 · paymentListContract.parsePayment (cognitive 19) · ×1
  • paymentListContract.parsePayment (cognitive 19) openbank-admin-ui/src/lib/payments/paymentListContract.ts:36 — paymentListContract.parsePayment has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, if/else 4, ternaries 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · incidentEvidence.parseIncident (cognitive 19) · ×1
  • incidentEvidence.parseIncident (cognitive 19) openbank-admin-ui/src/lib/security/incidentEvidence.ts:59 — incidentEvidence.parseIncident has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, boolean chains 7, ternaries 2 (3 pts) (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 · docs.indexFromBundle (cognitive 19) · ×1
  • docs.indexFromBundle (cognitive 19) openbank-admin-ui/src/lib/services/docs.ts:114 — docs.indexFromBundle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (6 pts), error handling 2, loops 2 (nesting depth added 7). Of this number, 18 points are the body's own statements and 1 belongs to one function literal inside it that branches. 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 · BankV1CompatibilityProjector.createMapping (cognitive 18) · ×1
  • BankV1CompatibilityProjector.createMapping (cognitive 18) openbank-product-catalog/src/main/kotlin/com/openbank/productcatalog/infrastructure/persistence/BankV1CompatibilityProjector.kt:298 — BankV1CompatibilityProjector.createMapping 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 · OnboardingWorkflowImpl.run (cognitive 18) · ×1
  • OnboardingWorkflowImpl.run (cognitive 18) openbank-pension-service/src/main/kotlin/com/openbank/pension/application/onboarding/workflow/PensionWorkflows.kt:124 — OnboardingWorkflowImpl.run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4, 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 · PolicyEvaluator.evaluateTable (cognitive 18) · ×1
  • PolicyEvaluator.evaluateTable (cognitive 18) openbank-libs-lending/src/main/kotlin/com/openbank/libs/decision/PolicyEvaluator.kt:74 — PolicyEvaluator.evaluateTable has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 2 (5 pts), boolean chains 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 · Ctx.predicate (cognitive 18) · ×1
  • Ctx.predicate (cognitive 18) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/ProductIrParser.kt:449 — Ctx.predicate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, match/switch 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 · Ctx.crossChecks (cognitive 18) · ×1
  • Ctx.crossChecks (cognitive 18) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/ProductIrParser.kt:551 — Ctx.crossChecks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, 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 · DevOpsAnalysisWorkflowImpl.runAnalysis (cognitive 18) · ×1
  • DevOpsAnalysisWorkflowImpl.runAnalysis (cognitive 18) openbank-devops-agent/src/main/kotlin/com/openbank/devops/application/workflow/DevOpsAnalysisWorkflowImpl.kt:62 — DevOpsAnalysisWorkflowImpl.runAnalysis has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 2 (4 pts), 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 · admin-ui-delivery-baseline.analyze_fixture (cognitive 18) · ×1
  • admin-ui-delivery-baseline.analyze_fixture (cognitive 18) .github/scripts/admin-ui-delivery-baseline.py:198 — admin-ui-delivery-baseline.analyze_fixture has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (4 pts), boolean chains 2, error handling 1 (2 pts), ternaries 1 (2 pts) (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 · admin_ui_trace_ipc.serve (cognitive 18) · ×1
  • admin_ui_trace_ipc.serve (cognitive 18) .github/scripts/admin_ui_trace_ipc.py:337 — admin_ui_trace_ipc.serve has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), error handling 4 (5 pts), loops 3, 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 · auto-update-armed-prs.plan (cognitive 18) · ×1
  • auto-update-armed-prs.plan (cognitive 18) .github/scripts/auto-update-armed-prs.py:171 — auto-update-armed-prs.plan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 6, loops 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 · check-admin-ui-a11y-route-coverage.matches (cognitive 18) · ×1
  • check-admin-ui-a11y-route-coverage.matches (cognitive 18) .github/scripts/check-admin-ui-a11y-route-coverage.py:91 — check-admin-ui-a11y-route-coverage.matches has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 4, ternaries 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 · check-advisory-gate-registration.self_test (cognitive 18) · ×1
  • check-advisory-gate-registration.self_test (cognitive 18) .github/scripts/check-advisory-gate-registration.py:197 — check-advisory-gate-registration.self_test has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 2 (3 pts) (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 · check-ci-runner-pools.scan_workflows (cognitive 18) · ×1
  • check-ci-runner-pools.scan_workflows (cognitive 18) .github/scripts/check-ci-runner-pools.py:128 — check-ci-runner-pools.scan_workflows has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), error handling 1 (2 pts), 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 · check-ci-runner-pools.self_test (cognitive 18) · ×1
  • check-ci-runner-pools.self_test (cognitive 18) .github/scripts/check-ci-runner-pools.py:267 — check-ci-runner-pools.self_test has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (17 pts), 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 · check-domain-purity.scan (cognitive 18) · ×1
  • check-domain-purity.scan (cognitive 18) .github/scripts/check-domain-purity.py:216 — check-domain-purity.scan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), error handling 1 (3 pts) (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 · check-enum-reference-data.enum_entries (cognitive 18) · ×1
  • check-enum-reference-data.enum_entries (cognitive 18) .github/scripts/check-enum-reference-data.py:101 — check-enum-reference-data.enum_entries has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4, 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 · check-event-consumer-liveness.main (cognitive 18) · ×1
  • check-event-consumer-liveness.main (cognitive 18) .github/scripts/check-event-consumer-liveness.py:351 — check-event-consumer-liveness.main has cognitive complexity 18 (threshold 15). Drivers by points: loops 9, ternaries 3 (5 pts), boolean chains 2, if/else 2 (nesting depth added 2). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · check-event-contract-code-agreement.class_body (cognitive 18) · ×1
  • check-event-contract-code-agreement.class_body (cognitive 18) .github/scripts/check-event-contract-code-agreement.py:212 — check-event-contract-code-agreement.class_body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (4 pts), 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 · check-external-feeds.check_drift (cognitive 18) · ×1
  • check-external-feeds.check_drift (cognitive 18) .github/scripts/check-external-feeds.py:496 — check-external-feeds.check_drift has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (4 pts), ternaries 1 (3 pts) (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 · check-gate-selftest-declaration.analyse (cognitive 18) · ×1
  • check-gate-selftest-declaration.analyse (cognitive 18) .github/scripts/check-gate-selftest-declaration.py:131 — check-gate-selftest-declaration.analyse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 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 · check-jaxrs-path-prefix-leading-slash.findings_in_file (cognitive 18) · ×1
  • check-jaxrs-path-prefix-leading-slash.findings_in_file (cognitive 18) .github/scripts/check-jaxrs-path-prefix-leading-slash.py:99 — check-jaxrs-path-prefix-leading-slash.findings_in_file has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 4 (8 pts), 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 · check-oidc-client-secret-wiring.services_minting_tokens (cognitive 18) · ×1
  • check-oidc-client-secret-wiring.services_minting_tokens (cognitive 18) .github/scripts/check-oidc-client-secret-wiring.py:121 — check-oidc-client-secret-wiring.services_minting_tokens has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), error handling 1 (3 pts), loops 2 (3 pts), 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 · check-oidc-secret-convention.dedicated_clients_in (cognitive 18) · ×1
  • check-oidc-secret-convention.dedicated_clients_in (cognitive 18) .github/scripts/check-oidc-secret-convention.py:151 — check-oidc-secret-convention.dedicated_clients_in has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 2 (4 pts), loops 2 (3 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · check-openapi-request-schema-conformance.main (cognitive 18) · ×1
  • check-openapi-request-schema-conformance.main (cognitive 18) .github/scripts/check-openapi-request-schema-conformance.py:94 — check-openapi-request-schema-conformance.main has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (5 pts), boolean chains 3, ternaries 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 · check-operator-write-naming.main (cognitive 18) · ×1
  • check-operator-write-naming.main (cognitive 18) .github/scripts/check-operator-write-naming.py:325 — check-operator-write-naming.main has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 4 (5 pts), boolean chains 2, ternaries 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 · check-outbox-sent-retention.strip_comments (cognitive 18) · ×1
  • check-outbox-sent-retention.strip_comments (cognitive 18) .github/scripts/check-outbox-sent-retention.py:55 — check-outbox-sent-retention.strip_comments has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, ternaries 1 (3 pts), 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 · check-ruleset-bypass-actors.live_bypass_actors (cognitive 18) · ×1
  • check-ruleset-bypass-actors.live_bypass_actors (cognitive 18) .github/scripts/check-ruleset-bypass-actors.py:204 — check-ruleset-bypass-actors.live_bypass_actors has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 7, loops 2 (3 pts) (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 · check-security-checklist.identify (cognitive 18) · ×1
  • check-security-checklist.identify (cognitive 18) .github/scripts/check-security-checklist.py:790 — check-security-checklist.identify has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (6 pts), error handling 1 (2 pts), ternaries 2 (nesting depth added 2). 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 · check-service-application-readiness.workloads (cognitive 18) · ×1
  • check-service-application-readiness.workloads (cognitive 18) .github/scripts/check-service-application-readiness.py:197 — check-service-application-readiness.workloads has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, loops 2 (3 pts) (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 · check-single-replica-rollout-strategy.unrealisable_weights (cognitive 18) · ×1
  • check-single-replica-rollout-strategy.unrealisable_weights (cognitive 18) .github/scripts/check-single-replica-rollout-strategy.py:110 — check-single-replica-rollout-strategy.unrealisable_weights has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7, loops 1 (nesting depth added 3). 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 · check-source-service-convention.run (cognitive 18) · ×1
  • check-source-service-convention.run (cognitive 18) .github/scripts/check-source-service-convention.py:579 — check-source-service-convention.run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 3, boolean chains 2, ternaries 1 (2 pts) (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 · check-stale-comment-references.path_candidates (cognitive 18) · ×1
  • check-stale-comment-references.path_candidates (cognitive 18) .github/scripts/check-stale-comment-references.py:253 — check-stale-comment-references.path_candidates has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, ternaries 1 (2 pts), 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 · check-stateful-not-on-spot.kyverno (cognitive 18) · ×1
  • check-stateful-not-on-spot.kyverno (cognitive 18) .github/scripts/check-stateful-not-on-spot.py:385 — check-stateful-not-on-spot.kyverno has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 3, loops 3, ternaries 2 (3 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · check-stateful-not-on-spot.main (cognitive 18) · ×1
  • check-stateful-not-on-spot.main (cognitive 18) .github/scripts/check-stateful-not-on-spot.py:418 — check-stateful-not-on-spot.main has cognitive complexity 18 (threshold 15). Drivers by points: loops 5 (8 pts), if/else 6, ternaries 2 (4 pts) (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.
D2 · Cognitive Complexity · Corpus._stub_site_uncached (cognitive 18) · ×1
  • Corpus._stub_site_uncached (cognitive 18) .github/scripts/check-threat-model-claims.py:628 — Corpus._stub_site_uncached has cognitive complexity 18 (threshold 15). Drivers by points: loops 3 (10 pts), if/else 3 (6 pts), boolean chains 2 (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · check_library_quality_evidence.verdict (cognitive 18) · ×1
  • check_library_quality_evidence.verdict (cognitive 18) .github/scripts/check_library_quality_evidence.py:24 — check_library_quality_evidence.verdict has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, loops 1, 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 · credential-inventory._source_keys (cognitive 18) · ×1
  • credential-inventory._source_keys (cognitive 18) .github/scripts/credential-inventory.py:121 — credential-inventory._source_keys has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 6, 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 · credential-inventory.enforce_new (cognitive 18) · ×1
  • credential-inventory.enforce_new (cognitive 18) .github/scripts/credential-inventory.py:413 — credential-inventory.enforce_new has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), boolean chains 1, ternaries 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 · deploy-window-mutate.selected_pr (cognitive 18) · ×1
  • deploy-window-mutate.selected_pr (cognitive 18) .github/scripts/deploy-window-mutate.py:56 — deploy-window-mutate.selected_pr has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · deploy-window.pin_identity_failures (cognitive 18) · ×1
  • deploy-window.pin_identity_failures (cognitive 18) .github/scripts/deploy-window.py:213 — deploy-window.pin_identity_failures has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 4, loops 3 (4 pts) (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 · gatelib._parse (cognitive 18) · ×1
  • gatelib._parse (cognitive 18) .github/scripts/gatelib.py:136 — gatelib._parse has cognitive complexity 18 (threshold 15). Drivers by points: error handling 3 (8 pts), if/else 5 (6 pts), ternaries 2 (3 pts), 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.
D2 · Cognitive Complexity · gen-adr-delivery-checks.main (cognitive 18) · ×1
  • gen-adr-delivery-checks.main (cognitive 18) .github/scripts/gen-adr-delivery-checks.py:54 — gen-adr-delivery-checks.main has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (5 pts), loops 3 (4 pts) (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 · FakeGitHub.checks (cognitive 18) · ×1
  • FakeGitHub.checks (cognitive 18) .github/scripts/merge-train.py:4119 — FakeGitHub.checks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 3 (7 pts), 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 · merge-train.parse_extra_gates (cognitive 18) · ×1
  • merge-train.parse_extra_gates (cognitive 18) .github/scripts/merge-train.py:545 — merge-train.parse_extra_gates has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), 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 · merge-train.gate_failures_inconclusive (cognitive 18) · ×1
  • merge-train.gate_failures_inconclusive (cognitive 18) .github/scripts/merge-train.py:865 — merge-train.gate_failures_inconclusive has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (4 pts), boolean chains 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 · merge-train.strict_batch_views (cognitive 18) · ×1
  • merge-train.strict_batch_views (cognitive 18) .github/scripts/merge-train.py:3629 — merge-train.strict_batch_views has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), 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 · merge-train.run_mode (cognitive 18) · ×1
  • merge-train.run_mode (cognitive 18) .github/scripts/merge-train.py:8560 — merge-train.run_mode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 4 (7 pts), 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 · run-gates.report (cognitive 18) · ×1
  • run-gates.report (cognitive 18) .github/scripts/run-gates.py:773 — run-gates.report has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 5, ternaries 3 (5 pts), boolean chains 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 · verify-audit-anchors.verify_entries_against_anchors (cognitive 18) · ×1
  • verify-audit-anchors.verify_entries_against_anchors (cognitive 18) .github/scripts/verify-audit-anchors.py:274 — verify-audit-anchors.verify_entries_against_anchors has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 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 · vex-hotfix.osv_fixed_versions (cognitive 18) · ×1
  • vex-hotfix.osv_fixed_versions (cognitive 18) .github/scripts/vex-hotfix.py:74 — vex-hotfix.osv_fixed_versions has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 6, if/else 2 (6 pts), loops 3 (6 pts) (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 · check-threat-model-diff.boundary_reasons (cognitive 18) · ×1
  • check-threat-model-diff.boundary_reasons (cognitive 18) openbank-infra/scripts/check-threat-model-diff.py:695 — check-threat-model-diff.boundary_reasons has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 4, 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 · finops-tier-classifier.classify (cognitive 18) · ×1
  • finops-tier-classifier.classify (cognitive 18) openbank-infra/scripts/finops-tier-classifier.py:123 — finops-tier-classifier.classify has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 3 (6 pts), boolean chains 4, 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 · generate-service-runbooks.describe_probe (cognitive 18) · ×1
  • generate-service-runbooks.describe_probe (cognitive 18) openbank-infra/scripts/generate-service-runbooks.py:227 — generate-service-runbooks.describe_probe has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 2 (6 pts), 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 · gitops_facts._has_key_path (cognitive 18) · ×1
  • gitops_facts._has_key_path (cognitive 18) openbank-infra/scripts/gitops_facts.py:452 — gitops_facts._has_key_path has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (5 pts), 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 · gitops_facts.cnpg_backup_configured (cognitive 18) · ×1
  • gitops_facts.cnpg_backup_configured (cognitive 18) openbank-infra/scripts/gitops_facts.py:487 — gitops_facts.cnpg_backup_configured has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 2, ternaries 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 · m2m-shared-client-denylist._client_rows (cognitive 18) · ×1
  • m2m-shared-client-denylist._client_rows (cognitive 18) openbank-infra/scripts/m2m-shared-client-denylist.py:273 — m2m-shared-client-denylist._client_rows has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (6 pts), ternaries 2 (6 pts), boolean chains 4, loops 1 (2 pts) (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 · platform-versions.declarationBlocks (cognitive 18) · ×1
  • platform-versions.declarationBlocks (cognitive 18) openbank-admin-ui/scripts/lib/platform-versions.mjs:163 — platform-versions.declarationBlocks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (4 pts), 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 · route.validProposal (cognitive 18) · ×1
  • route.validProposal (cognitive 18) openbank-admin-ui/src/app/api/context/assignments/route.ts:42 — route.validProposal has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (10 pts), boolean chains 7, if/else 1 (nesting depth added 6). Of this number, 17 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · page.CurveSets (cognitive 18) · ×1
  • page.CurveSets (cognitive 18) openbank-admin-ui/src/app/balance-sheet/curve-sets/page.tsx:43 — page.CurveSets has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (13 pts), boolean chains 3, if/else 2 (nesting depth added 6). Of this number, 10 points are the body's own statements and 8 belong to 2 function items inside it that branch. 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 · page.DocumentsLookup (cognitive 18) · ×1
  • page.DocumentsLookup (cognitive 18) openbank-admin-ui/src/app/document-templates/page.tsx:954 — page.DocumentsLookup has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 4, error handling 2, ternaries 2. Of this number, 11 points are the body's own statements and 7 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · page.IdentityDecisionReviewDialog (cognitive 18) · ×1
  • page.IdentityDecisionReviewDialog (cognitive 18) openbank-admin-ui/src/app/identity-cases/page.tsx:266 — page.IdentityDecisionReviewDialog has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (9 pts), boolean chains 6, if/else 3 (nesting depth added 3). Of this number, 14 points are the body's own statements and 4 belong to 3 function literals inside it that branch. 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 · page.ReadinessPage (cognitive 18) · ×1
  • page.ReadinessPage (cognitive 18) openbank-admin-ui/src/app/system/readiness/page.tsx:52 — page.ReadinessPage has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 6 (7 pts), error handling 1 (nesting depth added 1). Of this number, 10 points are the body's own statements and 8 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · SanctionsListChangeDialog.SanctionsListChangeDialog (cognitive 18) · ×1
  • SanctionsListChangeDialog.SanctionsListChangeDialog (cognitive 18) openbank-admin-ui/src/components/sanctions/SanctionsListChangeDialog.tsx:26 — SanctionsListChangeDialog.SanctionsListChangeDialog has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 12 (14 pts), boolean chains 2, if/else 2 (nesting depth added 2). Of this number, 15 points are the body's own statements and 3 belong to 2 function literals inside it that branch. 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 · authorityHistory.parseAuthorityHistory.observations (cognitive 18) · ×1
  • authorityHistory.parseAuthorityHistory.observations (cognitive 18) openbank-admin-ui/src/lib/context/authorityHistory.ts:54 — authorityHistory.parseAuthorityHistory.observations has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · tempo-evidence.parseTempoSearch (cognitive 18) · ×1
  • tempo-evidence.parseTempoSearch (cognitive 18) openbank-admin-ui/src/lib/observability/tempo-evidence.ts:40 — tempo-evidence.parseTempoSearch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 6, loops 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 · fatca.fatca (cognitive 18) · ×1
  • fatca.fatca (cognitive 18) openbank-admin-ui/src/lib/regulatory/generators/fatca.ts:14 — fatca.fatca has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 5 (7 pts), boolean chains 4 (nesting depth added 3). Of this number, 15 points are the body's own statements and 3 belong to 2 function literals inside it that branch. 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 · TreasuryValuator.prepare (cognitive 17) · ×1
  • TreasuryValuator.prepare (cognitive 17) openbank-risk-engine/src/main/kotlin/com/openbank/risk/domain/valuation/TreasuryValuation.kt:122 — TreasuryValuator.prepare has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, loops 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 · ApprovalCopy.render (cognitive 17) · ×1
  • ApprovalCopy.render (cognitive 17) openbank-notification-service/src/main/kotlin/com/openbank/notification/domain/ApprovalCopy.kt:43 — ApprovalCopy.render has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (16 pts), match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · AmlRiskFlags.of (cognitive 17) · ×1
  • AmlRiskFlags.of (cognitive 17) openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/AmlDisclosures.kt:187 — AmlRiskFlags.of has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), 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 · SafeXlsxReader.cells (cognitive 17) · ×1
  • SafeXlsxReader.cells (cognitive 17) openbank-fx-service/src/main/kotlin/com/openbank/fx/domain/cnb/SafeXlsxReader.kt:147 — SafeXlsxReader.cells has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 3 (8 pts), if/else 2 (7 pts), boolean chains 1, loops 1 (nesting depth added 10). 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · AmlCaseEventDecoder.decode (cognitive 17) · ×1
  • AmlCaseEventDecoder.decode (cognitive 17) openbank-context-service/src/main/kotlin/com/openbank/context/infrastructure/AmlCaseEventDecoder.kt:27 — AmlCaseEventDecoder.decode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 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 · OpenAiCompatibleModelProvider.buildRequestBody (cognitive 17) · ×1
  • OpenAiCompatibleModelProvider.buildRequestBody (cognitive 17) openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:139 — OpenAiCompatibleModelProvider.buildRequestBody has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (7 pts), match/switch 1 (2 pts) (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 · agent-admission.main (cognitive 17) · ×1
  • agent-admission.main (cognitive 17) .github/scripts/agent-admission.py:120 — agent-admission.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 2, ternaries 1 (2 pts), error handling 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 · await-admin-ui-source-validation.wait_for_validation (cognitive 17) · ×1
  • await-admin-ui-source-validation.wait_for_validation (cognitive 17) .github/scripts/await-admin-ui-source-validation.py:272 — await-admin-ui-source-validation.wait_for_validation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 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 · check-agent-schedule-matches-charter.parse_charter (cognitive 17) · ×1
  • check-agent-schedule-matches-charter.parse_charter (cognitive 17) .github/scripts/check-agent-schedule-matches-charter.py:57 — check-agent-schedule-matches-charter.parse_charter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, ternaries 1 (2 pts), 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 · check-alert-metric-emitted.evaluate (cognitive 17) · ×1
  • check-alert-metric-emitted.evaluate (cognitive 17) .github/scripts/check-alert-metric-emitted.py:188 — check-alert-metric-emitted.evaluate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (3 pts), boolean chains 1, ternaries 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 · check-asvs-l3.strip_kotlin_comments (cognitive 17) · ×1
  • check-asvs-l3.strip_kotlin_comments (cognitive 17) .github/scripts/check-asvs-l3.py:90 — check-asvs-l3.strip_kotlin_comments has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (3 pts), 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 · check-audit-money-path-subscription.evaluate (cognitive 17) · ×1
  • check-audit-money-path-subscription.evaluate (cognitive 17) .github/scripts/check-audit-money-path-subscription.py:272 — check-audit-money-path-subscription.evaluate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (3 pts) (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 · check-audit-money-path-subscription.main (cognitive 17) · ×1
  • check-audit-money-path-subscription.main (cognitive 17) .github/scripts/check-audit-money-path-subscription.py:392 — check-audit-money-path-subscription.main has cognitive complexity 17 (threshold 15). Drivers by points: loops 7, if/else 3 (5 pts), ternaries 3 (4 pts), boolean chains 1 (nesting depth added 3). 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 · check-bench-alloc-baseline.strip_comments (cognitive 17) · ×1
  • check-bench-alloc-baseline.strip_comments (cognitive 17) .github/scripts/check-bench-alloc-baseline.py:98 — check-bench-alloc-baseline.strip_comments has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 4, loops 2 (4 pts) (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 · check-eso-crd-api-version.eso_group_manifests (cognitive 17) · ×1
  • check-eso-crd-api-version.eso_group_manifests (cognitive 17) .github/scripts/check-eso-crd-api-version.py:104 — check-eso-crd-api-version.eso_group_manifests has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 2 (4 pts), loops 2 (3 pts), 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 · check-kafka-acl-coverage.required (cognitive 17) · ×1
  • check-kafka-acl-coverage.required (cognitive 17) .github/scripts/check-kafka-acl-coverage.py:95 — check-kafka-acl-coverage.required has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (2 pts), 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 · check-loki-rule-self-match.scan (cognitive 17) · ×1
  • check-loki-rule-self-match.scan (cognitive 17) .github/scripts/check-loki-rule-self-match.py:117 — check-loki-rule-self-match.scan has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 3 (6 pts) (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 · check-loki-rules.rule_configmaps (cognitive 17) · ×1
  • check-loki-rules.rule_configmaps (cognitive 17) .github/scripts/check-loki-rules.py:105 — check-loki-rules.rule_configmaps has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (6 pts), boolean chains 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 · check-mtls-bearer-only.main (cognitive 17) · ×1
  • check-mtls-bearer-only.main (cognitive 17) .github/scripts/check-mtls-bearer-only.py:444 — check-mtls-bearer-only.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 4, loops 3 (4 pts), ternaries 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 · check-pacticipant-matches-module.main (cognitive 17) · ×1
  • check-pacticipant-matches-module.main (cognitive 17) .github/scripts/check-pacticipant-matches-module.py:48 — check-pacticipant-matches-module.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (2 pts) (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 · check-pr-file-overlap.report (cognitive 17) · ×1
  • check-pr-file-overlap.report (cognitive 17) .github/scripts/check-pr-file-overlap.py:373 — check-pr-file-overlap.report has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, loops 4 (8 pts), boolean chains 1 (nesting depth added 4). 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 · check-readiness-collectors-agree.diff_results (cognitive 17) · ×1
  • check-readiness-collectors-agree.diff_results (cognitive 17) .github/scripts/check-readiness-collectors-agree.py:93 — check-readiness-collectors-agree.diff_results has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (6 pts) (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 · check-realm-user-role-parity.template_users (cognitive 17) · ×1
  • check-realm-user-role-parity.template_users (cognitive 17) .github/scripts/check-realm-user-role-parity.py:111 — check-realm-user-role-parity.template_users has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 3 (6 pts), boolean chains 4 (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 · check-release-evidence-coverage.main (cognitive 17) · ×1
  • check-release-evidence-coverage.main (cognitive 17) .github/scripts/check-release-evidence-coverage.py:398 — check-release-evidence-coverage.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 2 (5 pts), boolean chains 2, error handling 1 (2 pts) (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 · check-roles-allowed-realm.main (cognitive 17) · ×1
  • check-roles-allowed-realm.main (cognitive 17) .github/scripts/check-roles-allowed-realm.py:349 — check-roles-allowed-realm.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 5 (6 pts), 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 · check-security-txt.problems (cognitive 17) · ×1
  • check-security-txt.problems (cognitive 17) .github/scripts/check-security-txt.py:59 — check-security-txt.problems has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, error handling 1 (2 pts) (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 · check-service-application-readiness.selected_applications (cognitive 17) · ×1
  • check-service-application-readiness.selected_applications (cognitive 17) .github/scripts/check-service-application-readiness.py:112 — check-service-application-readiness.selected_applications has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 3 (6 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · check-single-replica-rollout-strategy.findings (cognitive 17) · ×1
  • check-single-replica-rollout-strategy.findings (cognitive 17) .github/scripts/check-single-replica-rollout-strategy.py:167 — check-single-replica-rollout-strategy.findings has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (9 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (2 pts) (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 · check-single-replica-rollout-strategy.main (cognitive 17) · ×1
  • check-single-replica-rollout-strategy.main (cognitive 17) .github/scripts/check-single-replica-rollout-strategy.py:288 — check-single-replica-rollout-strategy.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 4, boolean chains 2, ternaries 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 · check-stale-comment-references.scan_comments (cognitive 17) · ×1
  • check-stale-comment-references.scan_comments (cognitive 17) .github/scripts/check-stale-comment-references.py:393 — check-stale-comment-references.scan_comments has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (6 pts) (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 · check-stale-comment-references.self_test (cognitive 17) · ×1
  • check-stale-comment-references.self_test (cognitive 17) .github/scripts/check-stale-comment-references.py:578 — check-stale-comment-references.self_test has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 4 (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 · check-stateful-not-on-spot.derive (cognitive 17) · ×1
  • check-stateful-not-on-spot.derive (cognitive 17) .github/scripts/check-stateful-not-on-spot.py:128 — check-stateful-not-on-spot.derive has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 4, loops 3 (4 pts) (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 · check_library_quality_evidence.responses (cognitive 17) · ×1
  • check_library_quality_evidence.responses (cognitive 17) .github/scripts/check_library_quality_evidence.py:85 — check_library_quality_evidence.responses has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (2 pts) (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 · collect-admin-ui-security-kpis.extract_snapshot (cognitive 17) · ×1
  • collect-admin-ui-security-kpis.extract_snapshot (cognitive 17) .github/scripts/collect-admin-ui-security-kpis.py:84 — collect-admin-ui-security-kpis.extract_snapshot has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, error handling 2, loops 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 · gitops-image-pin-only._mask_doc (cognitive 17) · ×1
  • gitops-image-pin-only._mask_doc (cognitive 17) .github/scripts/gitops-image-pin-only.py:71 — gitops-image-pin-only._mask_doc has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (5 pts), boolean chains 2, ternaries 1 (2 pts) (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 · TrainBuilder._build (cognitive 17) · ×1
  • TrainBuilder._build (cognitive 17) .github/scripts/merge-train.py:1244 — TrainBuilder._build has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 2, error handling 1 (2 pts), ternaries 1 (2 pts), 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 · merge-train.live_source_intent (cognitive 17) · ×1
  • merge-train.live_source_intent (cognitive 17) .github/scripts/merge-train.py:689 — merge-train.live_source_intent has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 6 (7 pts), ternaries 1 (2 pts), loops 1 (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 · merge-train.strict_lane_state (cognitive 17) · ×1
  • merge-train.strict_lane_state (cognitive 17) .github/scripts/merge-train.py:783 — merge-train.strict_lane_state has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 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 · merge-train.api_retry_delay (cognitive 17) · ×1
  • merge-train.api_retry_delay (cognitive 17) .github/scripts/merge-train.py:1566 — merge-train.api_retry_delay has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (6 pts), boolean chains 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 · prepare-release-evidence.prepare (cognitive 17) · ×1
  • prepare-release-evidence.prepare (cognitive 17) .github/scripts/prepare-release-evidence.py:65 — prepare-release-evidence.prepare has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 3, loops 2 (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 · runtime-conformance.claim_outbox_services (cognitive 17) · ×1
  • runtime-conformance.claim_outbox_services (cognitive 17) .github/scripts/runtime-conformance.py:163 — runtime-conformance.claim_outbox_services has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), 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 · SourceTree.patterns (cognitive 17) · ×1
  • SourceTree.patterns (cognitive 17) .github/scripts/runtime_resource_inputs.py:267 — SourceTree.patterns has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 pts), 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 · TaskTable.tasks (cognitive 17) · ×1
  • TaskTable.tasks (cognitive 17) .github/scripts/sanitize-gradle-task-profile.py:93 — TaskTable.tasks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, loops 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 · select-performance-evidence.gate_policies (cognitive 17) · ×1
  • select-performance-evidence.gate_policies (cognitive 17) .github/scripts/select-performance-evidence.py:118 — select-performance-evidence.gate_policies has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 1, loops 1, 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 · wait_dependency_review_snapshot.wait_for_snapshot (cognitive 17) · ×1
  • wait_dependency_review_snapshot.wait_for_snapshot (cognitive 17) .github/scripts/wait_dependency_review_snapshot.py:157 — wait_dependency_review_snapshot.wait_for_snapshot has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 3 (6 pts), boolean chains 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 · collect-quality-report.fetchPairVerification (cognitive 17) · ×1
  • collect-quality-report.fetchPairVerification (cognitive 17) openbank-admin-ui/scripts/collect-quality-report.mjs:210 — collect-quality-report.fetchPairVerification has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, ternaries 1 (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 · route.POST (cognitive 17) · ×1
  • route.POST (cognitive 17) openbank-admin-ui/src/app/api/referral-programs/route.ts:40 — route.POST has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 3, ternaries 2 (3 pts), loops 1 (2 pts), error handling 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 · page.Lines (cognitive 17) · ×1
  • page.Lines (cognitive 17) openbank-admin-ui/src/app/balance-sheet/snapshots/[id]/liquidity/page.tsx:281 — page.Lines has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (16 pts), boolean chains 1 (nesting depth added 9). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 306, 299). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · page.NotificationTemplatesPage (cognitive 17) · ×1
  • page.NotificationTemplatesPage (cognitive 17) openbank-admin-ui/src/app/communication/notification-templates/page.tsx:46 — page.NotificationTemplatesPage has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 6, ternaries 3 (5 pts), if/else 4, error handling 2 (nesting depth added 2). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to 3 function items inside it that branch (perform, a function literal at line 62, a function literal at line 133). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · page.CustomerAppDossierPage (cognitive 17) · ×1
  • page.CustomerAppDossierPage (cognitive 17) openbank-admin-ui/src/app/docs/customer-app/page.tsx:83 — page.CustomerAppDossierPage has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, ternaries 3 (4 pts), if/else 2, loops 1 (nesting depth added 1). Of this number, 10 points are the body's own statements and 7 belong to 11 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · page.DecisionForm (cognitive 17) · ×1
  • page.DecisionForm (cognitive 17) openbank-admin-ui/src/app/identity-cases/page.tsx:68 — page.DecisionForm has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 6, if/else 6, ternaries 2 (3 pts), error handling 2 (nesting depth added 1). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 95, a function literal at line 133, a function literal at line 93, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · page.ObservabilityPage (cognitive 17) · ×1
  • page.ObservabilityPage (cognitive 17) openbank-admin-ui/src/app/observability/page.tsx:41 — page.ObservabilityPage has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 6, ternaries 4 (5 pts), if/else 4, error handling 2 (nesting depth added 1). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 3 function items inside it that branch (queryPrometheus, a function literal at line 65, formatValue). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · irrbbSummary.dataGapText (cognitive 17) · ×1
  • irrbbSummary.dataGapText (cognitive 17) openbank-admin-ui/src/components/balance-sheet/irrbbSummary.ts:66 — irrbbSummary.dataGapText has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · RemediationReviewDialog.RemediationReviewDialog (cognitive 17) · ×1
  • RemediationReviewDialog.RemediationReviewDialog (cognitive 17) openbank-admin-ui/src/components/devops/RemediationReviewDialog.tsx:34 — RemediationReviewDialog.RemediationReviewDialog has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (8 pts), boolean chains 5, if/else 4 (nesting depth added 1). Of this number, 12 points are the body's own statements and 5 belong to 4 function literals inside it that branch. 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 · trend.normaliseFxTrend (cognitive 17) · ×1
  • trend.normaliseFxTrend (cognitive 17) openbank-admin-ui/src/lib/fx/trend.ts:152 — trend.normaliseFxTrend has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 3 (7 pts), if/else 3 (6 pts), boolean chains 3, 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 · (anonymous) (cognitive 17) · ×1
  • (anonymous) (cognitive 17) openbank-infra/web/landing/main.js:90 — (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 5, error handling 3 (5 pts), if/else 4 (5 pts), ternaries 1 (2 pts) (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 · StrategyInstrumentCatalogResolver.effectivePublished (cognitive 16) · ×1
  • StrategyInstrumentCatalogResolver.effectivePublished (cognitive 16) openbank-pension-service/src/main/kotlin/com/openbank/pension/infrastructure/catalog/StrategyInstrumentCatalogAdapter.kt:89 — StrategyInstrumentCatalogResolver.effectivePublished has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 5, error handling 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 · Reader.obj (cognitive 16) · ×1
  • Reader.obj (cognitive 16) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/IrJson.kt:75 — Reader.obj has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 3, match/switch 1 (2 pts), loops 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 · ProductStateTransition.apply (cognitive 16) · ×1
  • ProductStateTransition.apply (cognitive 16) openbank-libs-domain/src/main/kotlin/com/openbank/libs/product/ir/ProductStateTransition.kt:21 — ProductStateTransition.apply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), match/switch 2 (6 pts), loops 2 (4 pts) (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 · check-accounting-clock.strip_comments (cognitive 16) · ×1
  • check-accounting-clock.strip_comments (cognitive 16) .github/scripts/check-accounting-clock.py:121 — check-accounting-clock.strip_comments has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), boolean chains 4, loops 2 (4 pts), ternaries 1 (2 pts) (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 · check-adr-partial-followup.validate_marker (cognitive 16) · ×1
  • check-adr-partial-followup.validate_marker (cognitive 16) .github/scripts/check-adr-partial-followup.py:162 — check-adr-partial-followup.validate_marker has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, 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 · check-adr-partial-followup.check (cognitive 16) · ×1
  • check-adr-partial-followup.check (cognitive 16) .github/scripts/check-adr-partial-followup.py:195 — check-adr-partial-followup.check has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), 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 · check-agent-bounded-write-surface.evaluate (cognitive 16) · ×1
  • check-agent-bounded-write-surface.evaluate (cognitive 16) .github/scripts/check-agent-bounded-write-surface.py:96 — check-agent-bounded-write-surface.evaluate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (3 pts), ternaries 1 (2 pts) (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 · check-ai-act-high-risk-inventory.strip_comments (cognitive 16) · ×1
  • check-ai-act-high-risk-inventory.strip_comments (cognitive 16) .github/scripts/check-ai-act-high-risk-inventory.py:92 — check-ai-act-high-risk-inventory.strip_comments has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), boolean chains 4, loops 2 (4 pts), ternaries 1 (2 pts) (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 · check-api-contract.with_info_version (cognitive 16) · ×1
  • check-api-contract.with_info_version (cognitive 16) .github/scripts/check-api-contract.py:113 — check-api-contract.with_info_version has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), ternaries 1 (4 pts), boolean chains 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 · check-argocd-sync-integrity.self_test (cognitive 16) · ×1
  • check-argocd-sync-integrity.self_test (cognitive 16) .github/scripts/check-argocd-sync-integrity.py:270 — check-argocd-sync-integrity.self_test has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 3, boolean chains 2, ternaries 1 (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, 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 · check-asyncapi-doc-discriminator.audit (cognitive 16) · ×1
  • check-asyncapi-doc-discriminator.audit (cognitive 16) .github/scripts/check-asyncapi-doc-discriminator.py:333 — check-asyncapi-doc-discriminator.audit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 7, 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 · check-codeql-compile-coverage.check (cognitive 16) · ×1
  • check-codeql-compile-coverage.check (cognitive 16) .github/scripts/check-codeql-compile-coverage.py:23 — check-codeql-compile-coverage.check has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 2 (4 pts), boolean chains 3, 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 · check-coverage-floor-ratchet.floors (cognitive 16) · ×1
  • check-coverage-floor-ratchet.floors (cognitive 16) .github/scripts/check-coverage-floor-ratchet.py:118 — check-coverage-floor-ratchet.floors has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 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 · check-dashboard-metric-emitted._walk (cognitive 16) · ×1
  • check-dashboard-metric-emitted._walk (cognitive 16) .github/scripts/check-dashboard-metric-emitted.py:120 — check-dashboard-metric-emitted._walk has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), boolean chains 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 · check-deploy-pin-monotonic.run_gate (cognitive 16) · ×1
  • check-deploy-pin-monotonic.run_gate (cognitive 16) .github/scripts/check-deploy-pin-monotonic.py:353 — check-deploy-pin-monotonic.run_gate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), loops 3 (4 pts), boolean chains 3 (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 · check-eso-crd-api-version.chart_target_revision (cognitive 16) · ×1
  • check-eso-crd-api-version.chart_target_revision (cognitive 16) .github/scripts/check-eso-crd-api-version.py:69 — check-eso-crd-api-version.chart_target_revision has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, error handling 1, loops 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 · check-event-contract-code-agreement.self_test (cognitive 16) · ×1
  • check-event-contract-code-agreement.self_test (cognitive 16) .github/scripts/check-event-contract-code-agreement.py:875 — check-event-contract-code-agreement.self_test has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (4 pts), loops 2, boolean chains 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 · check-event-handler-swallows._state_change_in (cognitive 16) · ×1
  • check-event-handler-swallows._state_change_in (cognitive 16) .github/scripts/check-event-handler-swallows.py:225 — check-event-handler-swallows._state_change_in has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (3 pts), boolean chains 2, ternaries 1 (2 pts) (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 · check-gate-observability-declarations.evaluate (cognitive 16) · ×1
  • check-gate-observability-declarations.evaluate (cognitive 16) .github/scripts/check-gate-observability-declarations.py:74 — check-gate-observability-declarations.evaluate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, loops 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 · check-main-red-watch.main (cognitive 16) · ×1
  • check-main-red-watch.main (cognitive 16) .github/scripts/check-main-red-watch.py:842 — check-main-red-watch.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 1 (2 pts), loops 1 (2 pts), 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 · check-model-residency-claims.walk_model_gateways (cognitive 16) · ×1
  • check-model-residency-claims.walk_model_gateways (cognitive 16) .github/scripts/check-model-residency-claims.py:197 — check-model-residency-claims.walk_model_gateways has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 2 (4 pts), ternaries 1 (3 pts), 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 · check-msg-channel-image-parity._api_show (cognitive 16) · ×1
  • check-msg-channel-image-parity._api_show (cognitive 16) .github/scripts/check-msg-channel-image-parity.py:139 — check-msg-channel-image-parity._api_show has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 3, error handling 1 (3 pts), loops 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 · check-network-policy-code-edges.pod_is_selected (cognitive 16) · ×1
  • check-network-policy-code-edges.pod_is_selected (cognitive 16) .github/scripts/check-network-policy-code-edges.py:133 — check-network-policy-code-edges.pod_is_selected has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 6, 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 · check-noop-not-success.scan_file (cognitive 16) · ×1
  • check-noop-not-success.scan_file (cognitive 16) .github/scripts/check-noop-not-success.py:109 — check-noop-not-success.scan_file has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (4 pts), boolean chains 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 · check-oidc-client-configured.evaluate (cognitive 16) · ×1
  • check-oidc-client-configured.evaluate (cognitive 16) .github/scripts/check-oidc-client-configured.py:225 — check-oidc-client-configured.evaluate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 1 (2 pts), 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 · check-oidc-client-secret-wiring.provisioned_secrets (cognitive 16) · ×1
  • check-oidc-client-secret-wiring.provisioned_secrets (cognitive 16) .github/scripts/check-oidc-client-secret-wiring.py:143 — check-oidc-client-secret-wiring.provisioned_secrets has cognitive complexity 16 (threshold 15). Drivers by points: if/else 2 (6 pts), boolean chains 5, loops 2 (3 pts), error handling 1 (2 pts) (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 · check-openapi-route-conformance.generated_api_routes (cognitive 16) · ×1
  • check-openapi-route-conformance.generated_api_routes (cognitive 16) .github/scripts/check-openapi-route-conformance.py:148 — check-openapi-route-conformance.generated_api_routes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (3 pts), ternaries 1 (3 pts), 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 · check-openapi-server-port.find_mismatches (cognitive 16) · ×1
  • check-openapi-server-port.find_mismatches (cognitive 16) .github/scripts/check-openapi-server-port.py:53 — check-openapi-server-port.find_mismatches has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, 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 · check-openssf-gold-evidence._self_test (cognitive 16) · ×1
  • check-openssf-gold-evidence._self_test (cognitive 16) .github/scripts/check-openssf-gold-evidence.py:152 — check-openssf-gold-evidence._self_test has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 2 (6 pts), boolean chains 1, 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 · check-recorded-source-manifests.validate_tree_hashes (cognitive 16) · ×1
  • check-recorded-source-manifests.validate_tree_hashes (cognitive 16) .github/scripts/check-recorded-source-manifests.py:105 — check-recorded-source-manifests.validate_tree_hashes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (4 pts), boolean chains 2, ternaries 1 (2 pts) (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 · check-recorded-source-manifests.dependency_modules (cognitive 16) · ×1
  • check-recorded-source-manifests.dependency_modules (cognitive 16) .github/scripts/check-recorded-source-manifests.py:190 — check-recorded-source-manifests.dependency_modules has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), 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 · check-release-evidence-coverage.fetch_release_assets (cognitive 16) · ×1
  • check-release-evidence-coverage.fetch_release_assets (cognitive 16) .github/scripts/check-release-evidence-coverage.py:162 — check-release-evidence-coverage.fetch_release_assets has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (6 pts), error handling 2, ternaries 1 (nesting depth added 1). 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 · check-release-evidence-coverage.release_asset_workflow_findings (cognitive 16) · ×1
  • check-release-evidence-coverage.release_asset_workflow_findings (cognitive 16) .github/scripts/check-release-evidence-coverage.py:233 — check-release-evidence-coverage.release_asset_workflow_findings has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 4, loops 2, boolean chains 1 (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 · check-ruleset-context-parity.job_names_for_event (cognitive 16) · ×1
  • check-ruleset-context-parity.job_names_for_event (cognitive 16) .github/scripts/check-ruleset-context-parity.py:304 — check-ruleset-context-parity.job_names_for_event has cognitive complexity 16 (threshold 15). Drivers by points: if/else 2 (5 pts), ternaries 2 (4 pts), loops 2 (3 pts), boolean chains 2, error handling 1 (2 pts) (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 · check-security-txt.self_test (cognitive 16) · ×1
  • check-security-txt.self_test (cognitive 16) .github/scripts/check-security-txt.py:120 — check-security-txt.self_test has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (10 pts), boolean chains 4, 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 · Corpus.resolve (cognitive 16) · ×1
  • Corpus.resolve (cognitive 16) .github/scripts/check-threat-model-claims.py:575 — Corpus.resolve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, ternaries 1 (nesting depth added 3). 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 · check-threat-model-claims.parse_prose (cognitive 16) · ×1
  • check-threat-model-claims.parse_prose (cognitive 16) .github/scripts/check-threat-model-claims.py:277 — check-threat-model-claims.parse_prose has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 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 · check-vex-range-reasoning.analyse (cognitive 16) · ×1
  • check-vex-range-reasoning.analyse (cognitive 16) .github/scripts/check-vex-range-reasoning.py:263 — check-vex-range-reasoning.analyse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 2 (3 pts), ternaries 1 (3 pts), 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 · dast-zap-coverage.evaluate (cognitive 16) · ×1
  • dast-zap-coverage.evaluate (cognitive 16) .github/scripts/dast-zap-coverage.py:91 — dast-zap-coverage.evaluate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (4 pts), 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 · deploy-window.pins_from_diff (cognitive 16) · ×1
  • deploy-window.pins_from_diff (cognitive 16) .github/scripts/deploy-window.py:172 — deploy-window.pins_from_diff has cognitive complexity 16 (threshold 15). Drivers by points: loops 3 (7 pts), if/else 2 (6 pts), boolean chains 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. This shape REPEATS in the file: one other method here (deploy-window.pin_transitions) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · deploy-window.pin_transitions (cognitive 16) · ×1
  • deploy-window.pin_transitions (cognitive 16) .github/scripts/deploy-window.py:193 — deploy-window.pin_transitions has cognitive complexity 16 (threshold 15). Drivers by points: loops 3 (7 pts), if/else 2 (6 pts), boolean chains 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. This shape REPEATS in the file: one other method here (deploy-window.pins_from_diff) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · deploy-window.carry (cognitive 16) · ×1
  • deploy-window.carry (cognitive 16) .github/scripts/deploy-window.py:274 — deploy-window.carry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 1 (2 pts), 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 · detect-auto-deploy-stuck.main (cognitive 16) · ×1
  • detect-auto-deploy-stuck.main (cognitive 16) .github/scripts/detect-auto-deploy-stuck.py:388 — detect-auto-deploy-stuck.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 2 (4 pts), error handling 1 (2 pts), loops 1 (2 pts), 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 · gen-ai-governance-snapshot.collect_prompt_registry_facts (cognitive 16) · ×1
  • gen-ai-governance-snapshot.collect_prompt_registry_facts (cognitive 16) .github/scripts/gen-ai-governance-snapshot.py:207 — gen-ai-governance-snapshot.collect_prompt_registry_facts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, 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 · generate-service-ci-jobs.caller_block (cognitive 16) · ×1
  • generate-service-ci-jobs.caller_block (cognitive 16) .github/scripts/generate-service-ci-jobs.py:142 — generate-service-ci-jobs.caller_block has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (3 pts), ternaries 1 (3 pts) (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 · merge-train.mode_publish (cognitive 16) · ×1
  • merge-train.mode_publish (cognitive 16) .github/scripts/merge-train.py:2572 — merge-train.mode_publish has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), error handling 2, loops 2, boolean chains 1, ternaries 1 (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 · merge-train.strict_reservation (cognitive 16) · ×1
  • merge-train.strict_reservation (cognitive 16) .github/scripts/merge-train.py:3222 — merge-train.strict_reservation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 1, 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 · run-gates.select (cognitive 16) · ×1
  • run-gates.select (cognitive 16) .github/scripts/run-gates.py:887 — run-gates.select has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts) (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 · select-ci-reconcile-candidates.flatten_pages (cognitive 16) · ×1
  • select-ci-reconcile-candidates.flatten_pages (cognitive 16) .github/scripts/select-ci-reconcile-candidates.py:38 — select-ci-reconcile-candidates.flatten_pages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, loops 1 (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 · select-performance-evidence.ordered_runs (cognitive 16) · ×1
  • select-performance-evidence.ordered_runs (cognitive 16) .github/scripts/select-performance-evidence.py:80 — select-performance-evidence.ordered_runs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 1 (3 pts), loops 2 (3 pts), ternaries 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 · authz-coverage-report.discover_ext_rego (cognitive 16) · ×1
  • authz-coverage-report.discover_ext_rego (cognitive 16) openbank-infra/scripts/authz-coverage-report.py:140 — authz-coverage-report.discover_ext_rego has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 1 (3 pts), loops 2 (3 pts) (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 · check-db-migration.main (cognitive 16) · ×1
  • check-db-migration.main (cognitive 16) openbank-infra/scripts/check-db-migration.py:309 — check-db-migration.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), loops 4, error handling 2 (3 pts), boolean chains 1, ternaries 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 · check-finops-tiers.self_test (cognitive 16) · ×1
  • check-finops-tiers.self_test (cognitive 16) openbank-infra/scripts/check-finops-tiers.py:206 — check-finops-tiers.self_test has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (5 pts), 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 · check-release-scope-mismatch.main (cognitive 16) · ×1
  • check-release-scope-mismatch.main (cognitive 16) openbank-infra/scripts/check-release-scope-mismatch.py:213 — check-release-scope-mismatch.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 2 (3 pts), boolean chains 2, loops 1 (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, 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 · check-threat-model-diff.doc_meta (cognitive 16) · ×1
  • check-threat-model-diff.doc_meta (cognitive 16) openbank-infra/scripts/check-threat-model-diff.py:450 — check-threat-model-diff.doc_meta has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 2, loops 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 · generate-service-runbooks.main (cognitive 16) · ×1
  • generate-service-runbooks.main (cognitive 16) openbank-infra/scripts/generate-service-runbooks.py:1080 — generate-service-runbooks.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (3 pts), 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 · gitops_facts._workload_index (cognitive 16) · ×1
  • gitops_facts._workload_index (cognitive 16) openbank-infra/scripts/gitops_facts.py:158 — gitops_facts._workload_index has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 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 · contentSnapshot.validComplianceYaml (cognitive 16) · ×1
  • contentSnapshot.validComplianceYaml (cognitive 16) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:312 — contentSnapshot.validComplianceYaml has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 3 (5 pts), loops 2, error handling 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · request-send-trace.createRequestSendTrace.write (cognitive 16) · ×1
  • request-send-trace.createRequestSendTrace.write (cognitive 16) openbank-admin-ui/scripts/request-send-trace.mjs:164 — request-send-trace.createRequestSendTrace.write has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (15 pts), boolean chains 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · route.POST (cognitive 16) · ×1
  • route.POST (cognitive 16) openbank-admin-ui/src/app/api/fx/refresh/route.ts:11 — route.POST has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 2 (4 pts), 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 · page.ClosingTriggerReviewDialog (cognitive 16) · ×1
  • page.ClosingTriggerReviewDialog (cognitive 16) openbank-admin-ui/src/app/day-end/page.tsx:823 — page.ClosingTriggerReviewDialog has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8 (11 pts), boolean chains 3, if/else 2 (nesting depth added 3). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 848, a function literal at line 840, formatDate, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · page.CloudArchitecturePage (cognitive 16) · ×1
  • page.CloudArchitecturePage (cognitive 16) openbank-admin-ui/src/app/docs/cloud-architecture/page.tsx:219 — page.CloudArchitecturePage has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8, if/else 4, boolean chains 3, error handling 1. Of this number, 9 points are the body's own statements and 7 belong to 5 function literals inside it that branch. 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 · page.MerchantRemovalDialog (cognitive 16) · ×1
  • page.MerchantRemovalDialog (cognitive 16) openbank-admin-ui/src/app/merchants/page.tsx:645 — page.MerchantRemovalDialog has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (6 pts), boolean chains 5, if/else 5 (nesting depth added 1). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 684, 669). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · page.ContractSearch (cognitive 16) · ×1
  • page.ContractSearch (cognitive 16) openbank-admin-ui/src/app/pension/page.tsx:35 — page.ContractSearch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, ternaries 3 (6 pts), boolean chains 4 (nesting depth added 3). Of this number, 9 points are the body's own statements and 7 belong to 2 function items inside it that branch. 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 · page.PidPage (cognitive 16) · ×1
  • page.PidPage (cognitive 16) openbank-admin-ui/src/app/pid/page.tsx:54 — page.PidPage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 19, ternaries 6 (10 pts), error handling 2, loops 1 (2 pts) (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. This shape REPEATS in the file: one other method here (page.PidPage::handleSubmit) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · page.aggregate (cognitive 16) · ×1
  • page.aggregate (cognitive 16) openbank-admin-ui/src/app/system/inventory/page.tsx:50 — page.aggregate has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7 (9 pts), if/else 3 (6 pts), loops 1 (nesting depth added 5). None of this is in the body itself: all 16 points belong to 6 function literals inside it that branch (lines 60, 53, 54, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · page.ReconciliationResult (cognitive 16) · ×1
  • page.ReconciliationResult (cognitive 16) openbank-admin-ui/src/app/treasury/nostro/page.tsx:252 — page.ReconciliationResult has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 13 (16 pts) (nesting depth added 3). Of this number, 15 points are the body's own statements and 1 belongs to one function item inside it that branches. 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 · AgentDiagnostics.AgentMeshMap (cognitive 16) · ×1
  • AgentDiagnostics.AgentMeshMap (cognitive 16) openbank-admin-ui/src/components/agent/AgentDiagnostics.tsx:154 — AgentDiagnostics.AgentMeshMap has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 14 (16 pts) (nesting depth added 2). Of this number, 15 points are the body's own statements and 1 belongs to one function item inside it that branches. 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 · AgentOutcomes.OutcomeMetricsCard (cognitive 16) · ×1
  • AgentOutcomes.OutcomeMetricsCard (cognitive 16) openbank-admin-ui/src/components/agent/AgentOutcomes.tsx:75 — AgentOutcomes.OutcomeMetricsCard has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7 (13 pts), 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 · MergeRecordsSection.MergeRecordsSection (cognitive 16) · ×1
  • MergeRecordsSection.MergeRecordsSection (cognitive 16) openbank-admin-ui/src/components/agent/MergeRecordsSection.tsx:25 — MergeRecordsSection.MergeRecordsSection has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 4 (6 pts), ternaries 2, error handling 1 (nesting depth added 2). Of this number, 8 points are the body's own statements and 8 belong to 3 function items inside it that branch. 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 · CardLimitsPanel.CardLimitsPanel (cognitive 16) · ×1
  • CardLimitsPanel.CardLimitsPanel (cognitive 16) openbank-admin-ui/src/components/cards/CardLimitsPanel.tsx:24 — CardLimitsPanel.CardLimitsPanel has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7 (8 pts), boolean chains 7, if/else 1 (nesting depth added 1). Of this number, 12 points are the body's own statements and 4 belong to 2 function items inside it that branch. 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 · DelegationAuditTimeline.FailureState (cognitive 16) · ×1
  • DelegationAuditTimeline.FailureState (cognitive 16) openbank-admin-ui/src/components/delegations/DelegationAuditTimeline.tsx:79 — DelegationAuditTimeline.FailureState has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9 (15 pts), 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 · LipaPanel.LipaPanel (cognitive 16) · ×1
  • LipaPanel.LipaPanel (cognitive 16) openbank-admin-ui/src/components/party/LipaPanel.tsx:30 — LipaPanel.LipaPanel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (6 pts), ternaries 3 (5 pts), boolean chains 4, error handling 1 (nesting depth added 4). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 39). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · SettlementStatusPanel.SettlementStatusPanel (cognitive 16) · ×1
  • SettlementStatusPanel.SettlementStatusPanel (cognitive 16) openbank-admin-ui/src/components/settlement/SettlementStatusPanel.tsx:20 — SettlementStatusPanel.SettlementStatusPanel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, ternaries 2, error handling 1 (nesting depth added 2). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 27). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · model.dealActions (cognitive 16) · ×1
  • model.dealActions (cognitive 16) openbank-admin-ui/src/components/treasury/model.ts:144 — model.dealActions has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 16. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · amlCaseEvidence.parseAmlCaseEvidence.observations (cognitive 16) · ×1
  • amlCaseEvidence.parseAmlCaseEvidence.observations (cognitive 16) openbank-admin-ui/src/lib/context/amlCaseEvidence.ts:52 — amlCaseEvidence.parseAmlCaseEvidence.observations has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · agentCharters.loadAgentCharters.agents (cognitive 16) · ×1
  • agentCharters.loadAgentCharters.agents (cognitive 16) openbank-admin-ui/src/lib/governance/agentCharters.ts:88 — agentCharters.loadAgentCharters.agents has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 13 (16 pts) (nesting depth added 3). Of this number, 14 points are the body's own statements and 2 belong to one function literal inside it that branches. 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 · caseStatusPresentation.caseStatusPresentation (cognitive 16) · ×1
  • caseStatusPresentation.caseStatusPresentation (cognitive 16) openbank-admin-ui/src/lib/governance/caseStatusPresentation.ts:14 — caseStatusPresentation.caseStatusPresentation has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 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 · prompts.loadPromptRegistry (cognitive 16) · ×1
  • prompts.loadPromptRegistry (cognitive 16) openbank-admin-ui/src/lib/governance/prompts.ts:155 — prompts.loadPromptRegistry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (4 pts), ternaries 2, error handling 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 · registry.validateParam (cognitive 16) · ×1
  • registry.validateParam (cognitive 16) openbank-admin-ui/src/lib/reporting/registry.ts:78 — registry.validateParam has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 2 (3 pts), boolean chains 2, match/switch 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 · labels.plainCitation (cognitive 16) · ×1
  • labels.plainCitation (cognitive 16) openbank-admin-ui/src/lib/risk/labels.ts:99 — labels.plainCitation has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (12 pts), boolean chains 2, if/else 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 · sddMandateContract.parseMandate (cognitive 16) · ×1
  • sddMandateContract.parseMandate (cognitive 16) openbank-admin-ui/src/lib/sdd/sddMandateContract.ts:90 — sddMandateContract.parseMandate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 5. 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 · domainOwnership.currentDomainOwnership (cognitive 16) · ×1
  • domainOwnership.currentDomainOwnership (cognitive 16) openbank-admin-ui/src/lib/services/domainOwnership.ts:8 — domainOwnership.currentDomainOwnership has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 2 (3 pts), boolean chains 2, ternaries 1 (2 pts), error handling 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 · renderComponents (cognitive 16) · ×1
  • renderComponents (cognitive 16) openbank-infra/web/status/app.js:48 — renderComponents has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, ternaries 4 (7 pts), if/else 1, loops 1 (nesting depth added 3). 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.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D32 · Data Compliance (PII/GDPR) · REDACTED · ×1
  • REDACTED
D32 · Data Compliance (PII/GDPR) · REDACTED · ×1
  • REDACTED
D35 · Change Coupling · Change-coupling hub · ×1
  • Change-coupling hub: page.tsx → REDACTED, page.tsx, StepEditor.tsx openbank-admin-ui/src/app/campaigns/[id]/page.tsx — `openbank-admin-ui/src/app/campaigns/[id]/page.tsx` changes together with 3 other files — `openbank-admin-ui/src/app/api/campaigns/[id]/route.ts`, `openbank-admin-ui/src/app/campaigns/page.tsx`, `openbank-admin-ui/src/components/campaigns/StepEditor.tsx` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D4 · Code Duplication · Near-duplicate member pair (53 shared lines) · ×1
  • Near-duplicate member pair (53 shared lines) openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:74 — openbank-agent-service/src/main/kotlin/com/openbank/agent/infrastructure/model/OpenAiCompatibleModelProvider.kt:74-136 | openbank-copilot-service/src/main/kotlin/com/openbank/copilot/infrastructure/model/OpenAiCompatibleModelProvider.kt:88-150 — These two members are variants of one another: 53 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (36 shared lines) · ×1
  • Near-duplicate member pair (36 shared lines) .github/scripts/check-idempotency-contract-parity.py:170 — .github/scripts/check-idempotency-contract-parity.py:170-240 | .github/scripts/check-openapi-route-conformance.py:177-248 — These two members are variants of one another: 36 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Members sharing a duplicated core (33 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (33 members, 50+ identical tokens) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/messaging/KafkaAccountOutboxEventPublisher.kt:21 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/messaging/KafkaAccountOutboxEventPublisher.kt:21-29 | openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/kafka/KafkaAmlOutboxEventPublisher.kt:39-55 | openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/kafka/KafkaBalanceOutboxEventPublisher.kt:24-37 | openbank-case-coordinator-agent/src/main/kotlin/com/openbank/casecoordinator/infrastructure/messaging/KafkaCaseOutboxEventPublisher.kt:23-31 | openbank-clearing-service/src/main/kotlin/com/openbank/clearing/infrastructure/kafka/KafkaClearingOutboxEventPublisher.kt:21-29 | openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/messaging/KafkaConsentOutboxEventPublisher.kt:21-29 | openbank-dispute-service/src/main/kotlin/com/openbank/dispute/infrastructure/kafka/KafkaDisputeOutboxEventPublisher.kt:21-29 | openbank-document-service/src/main/kotlin/com/openbank/document/infrastructure/kafka/KafkaDocumentOutboxEventPublisher.kt:23-38 | openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/kafka/KafkaDomesticPaymentEventPublisher.kt:43-51 | openbank-engagement-service/src/main/kotlin/com/openbank/engagement/infrastructure/outbox/KafkaEngagementOutboxEventPublisher.kt:24-32 | openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/kafka/KafkaFraudOutboxEventPublisher.kt:29-37 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/kafka/KafkaFxOutboxEventPublisher.kt:30-43 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/infrastructure/messaging/KafkaKybOutboxEventPublisher.kt:22-30 | openbank-kyc-service/src/main/kotlin/com/openbank/kyc/infrastructure/kafka/KafkaKycOutboxEventPublisher.kt:21-29 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/outbox/KafkaLendingOutboxEventPublisher.kt:29-53 | openbank-loyalty-service/src/main/kotlin/com/openbank/loyalty/infrastructure/outbox/KafkaLoyaltyOutboxEventPublisher.kt:23-31 | openbank-notification-service/src/main/kotlin/com/openbank/notification/infrastructure/kafka/KafkaNotificationOutboxEventPublisher.kt:22-30 | openbank-party-service/src/main/kotlin/com/openbank/party/infrastructure/kafka/KafkaPartyOutboxEventPublisher.kt:21-29 | openbank-pid-service/src/main/kotlin/com/openbank/pid/infrastructure/messaging/KafkaPidOutboxEventPublisher.kt:21-29 | openbank-referral-service/src/main/kotlin/com/openbank/referral/infrastructure/kafka/KafkaReferralOutboxEventPublisher.kt:30-38 | openbank-risk-engine/src/main/kotlin/com/openbank/risk/infrastructure/messaging/KafkaRiskOutboxEventPublisher.kt:27-35 | openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/kafka/KafkaSanctionsOutboxEventPublisher.kt:27-49 | openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/messaging/KafkaScaOutboxEventPublisher.kt:21-29 | openbank-sdd-service/src/main/kotlin/com/openbank/sdd/infrastructure/kafka/KafkaSddOutboxEventPublisher.kt:35-43 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/kafka/KafkaSepaPaymentEventPublisher.kt:61-69 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/messaging/KafkaSettlementOutboxEventPublisher.kt:22-30 | openbank-standing-order-service/src/main/kotlin/com/openbank/standingorder/infrastructure/kafka/KafkaStandingOrderOutboxEventPublisher.kt:22-30 | openbank-statement-service/src/main/kotlin/com/openbank/statement/infrastructure/kafka/KafkaStatementOutboxEventPublisher.kt:29-37 | openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/kafka/KafkaSwiftOutboxEventPublisher.kt:29-44 | openbank-tpp-registry-service/src/main/kotlin/com/openbank/tpp/infrastructure/kafka/KafkaTppOutboxEventPublisher.kt:21-29 | openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/messaging/KafkaTransactionOutboxEventPublisher.kt:23-31 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/messaging/KafkaTreasuryOutboxEventPublisher.kt:27-35 | openbank-wealth-service/src/main/kotlin/com/openbank/wealth/infrastructure/messaging/KafkaWealthOutboxEventPublisher.kt:27-35 — These 33 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 33 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 33 times.
D4 · Code Duplication · Members sharing a duplicated core (18 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (18 members, 50+ identical tokens) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:63 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:63-78 | openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt:63-78 | openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/BillingOutboxRepositoryImpl.kt:90-105 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt:56-71 | openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/persistence/repository/ConsentOutboxRepositoryImpl.kt:63-78 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/persistence/repository/DelegationOutboxRepositoryImpl.kt:55-70 | openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt:57-72 | openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/persistence/FraudOutboxRepositoryImpl.kt:55-70 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/persistence/repository/FxOutboxRepositoryImpl.kt:55-70 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/InterestOutboxRepositoryImpl.kt:56-71 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/LedgerOutboxRepositoryImpl.kt:81-96 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LendingOutboxRepositoryImpl.kt:66-81 | openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/persistence/repository/SanctionsOutboxRepositoryImpl.kt:55-70 | openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/persistence/repository/ScaOutboxRepositoryImpl.kt:61-76 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/persistence/repository/SepaPaymentOutboxRepositoryImpl.kt:49-64 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/persistence/SettlementOutboxRepositoryImpl.kt:51-66 | openbank-standing-order-service/src/main/kotlin/com/openbank/standingorder/infrastructure/persistence/repository/StandingOrderOutboxRepositoryImpl.kt:55-70 | openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/persistence/repository/TransactionOutboxRepositoryImpl.kt:68-83 — These 18 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 18 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 18 times.
D4 · Code Duplication · Members sharing a duplicated core (17 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (17 members, 50+ identical tokens) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:80 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:80-92 | openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt:80-92 | openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/BillingOutboxRepositoryImpl.kt:107-119 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt:114-126 | openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:73-85 | openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/persistence/repository/ConsentOutboxRepositoryImpl.kt:80-92 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/persistence/repository/DelegationOutboxRepositoryImpl.kt:72-84 | openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/persistence/FraudOutboxRepositoryImpl.kt:72-84 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/persistence/repository/FxOutboxRepositoryImpl.kt:80-92 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/InterestOutboxRepositoryImpl.kt:75-87 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/LedgerOutboxRepositoryImpl.kt:98-110 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LendingOutboxRepositoryImpl.kt:83-95 | openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/persistence/repository/SanctionsOutboxRepositoryImpl.kt:80-92 | openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/persistence/repository/ScaOutboxRepositoryImpl.kt:78-90 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/persistence/SettlementOutboxRepositoryImpl.kt:68-80 | openbank-standing-order-service/src/main/kotlin/com/openbank/standingorder/infrastructure/persistence/repository/StandingOrderOutboxRepositoryImpl.kt:80-92 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/repository/TreasuryOutboxRepositoryImpl.kt:64-76 — These 17 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 17 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 17 times.
D4 · Code Duplication · Members sharing a duplicated core (13 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (13 members, 50+ identical tokens) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:95 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:95-110 | openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt:95-110 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt:129-154 | openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:88-112 | openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/persistence/repository/ConsentOutboxRepositoryImpl.kt:95-110 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/persistence/repository/DelegationOutboxRepositoryImpl.kt:87-102 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/persistence/repository/FxOutboxRepositoryImpl.kt:95-110 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LendingOutboxRepositoryImpl.kt:98-113 | openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/persistence/repository/SanctionsOutboxRepositoryImpl.kt:95-110 | openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/persistence/repository/ScaOutboxRepositoryImpl.kt:93-108 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/persistence/SettlementOutboxRepositoryImpl.kt:83-98 | openbank-standing-order-service/src/main/kotlin/com/openbank/standingorder/infrastructure/persistence/repository/StandingOrderOutboxRepositoryImpl.kt:95-110 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/repository/TreasuryOutboxRepositoryImpl.kt:80-92 — These 13 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 13 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 13 times.
D4 · Code Duplication · Members sharing a duplicated core (9 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (9 members, 50+ identical tokens) openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:41 — openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:41-67 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:70-96 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:99-126 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:129-156 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:159-188 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:191-220 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:223-249 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:252-278 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:281-307 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
D4 · Code Duplication · Members sharing a duplicated core (8 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (8 members, 50+ identical tokens) .github/scripts/check-accounting-clock.py:176 — .github/scripts/check-accounting-clock.py:176-261 | .github/scripts/check-ai-act-high-risk-inventory.py:152-239 | .github/scripts/check-evals-registry.py:136-235 | .github/scripts/check-event-consumer-liveness.py:213-348 | .github/scripts/check-event-contract-coverage.py:97-164 | .github/scripts/check-prompt-registry.py:138-221 | .github/scripts/check-psd2-anonymous-grant-paths.py:199-287 | openbank-infra/scripts/check-threat-models.py:176-256 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
D4 · Code Duplication · Duplicated block (25–26 lines × 3) · ×1
  • Duplicated block (25–26 lines × 3) openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt:60 — openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt:60-85 | openbank-docs-truth-agent/src/main/kotlin/com/openbank/docstruth/application/workflow/DiagnoseAndProposeActivityImpl.kt:65-89 | openbank-release-steward/src/main/kotlin/com/openbank/releasesteward/application/workflow/DiagnoseAndProposeActivityImpl.kt:60-84 — before extracting anything, compare `openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt` and `openbank-docs-truth-agent/src/main/kotlin/com/openbank/docstruth/application/workflow/DiagnoseAndProposeActivityImpl.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt:60` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 first that the copies are not typed on the same thing: `FindingStatus` names `com.openbank.authzaudit.domain.model.FindingStatus` in one and `com.openbank.docstruth.domain.model.FindingStatus` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (25 lines × 7) · ×1
  • Duplicated block (25 lines × 7) openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/BusinessSigningService.kt:693 — openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/BusinessSigningService.kt:693-717 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/BusinessSigningService.kt:720-744 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/BusinessSigningService.kt:747-771 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/BusinessSigningService.kt:774-798 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/BusinessSigningService.kt:801-825 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/BusinessSigningService.kt:828-852 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/BusinessSigningService.kt:855-879 — all 7 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 `openbank-delegation-service/src/main/kotlin/com/openbank/delegation/application/usecase/BusinessSigningService.kt:693` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (21–22 lines × 4) · ×1
  • Duplicated block (21–22 lines × 4) openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt:54 — openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt:54-75 | openbank-docs-truth-agent/src/main/kotlin/com/openbank/docstruth/application/workflow/DiagnoseAndProposeActivityImpl.kt:59-79 | openbank-governance-auditor/src/main/kotlin/com/openbank/govaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt:52-72 | openbank-release-steward/src/main/kotlin/com/openbank/releasesteward/application/workflow/DiagnoseAndProposeActivityImpl.kt:54-74 — before extracting anything, compare `openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt` and `openbank-docs-truth-agent/src/main/kotlin/com/openbank/docstruth/application/workflow/DiagnoseAndProposeActivityImpl.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/DiagnoseAndProposeActivityImpl.kt:54` 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 first that the copies are not typed on the same thing: `FindingStatus` names `com.openbank.authzaudit.domain.model.FindingStatus` in one and `com.openbank.docstruth.domain.model.FindingStatus` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (18–21 lines × 2) · ×1
  • Duplicated block (18–21 lines × 2) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1834 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1834-1854 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1916-1933 — 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 `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1834` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1912` calls `ensurePocketOpen` and `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1831` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (18–19 lines × 2) · ×1
  • Duplicated block (18–19 lines × 2) openbank-sepa-instant/src/main/kotlin/com/openbank/sepainstant/infrastructure/client/SchemeGatewayAdapter.kt:74 — openbank-sepa-instant/src/main/kotlin/com/openbank/sepainstant/infrastructure/client/SchemeGatewayAdapter.kt:74-91 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/client/SchemeGatewayAdapter.kt:109-127 — 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 `openbank-sepa-instant/src/main/kotlin/com/openbank/sepainstant/infrastructure/client/SchemeGatewayAdapter.kt:74` 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 (14–18 lines × 2) · ×1
  • Duplicated block (14–18 lines × 2) openbank-loyalty-service/src/main/kotlin/com/openbank/loyalty/infrastructure/outbox/LeafOutboxMessages.kt:40 — openbank-loyalty-service/src/main/kotlin/com/openbank/loyalty/infrastructure/outbox/LeafOutboxMessages.kt:40-53 | openbank-loyalty-service/src/main/kotlin/com/openbank/loyalty/infrastructure/outbox/LeafOutboxMessages.kt:94-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. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-loyalty-service/src/main/kotlin/com/openbank/loyalty/infrastructure/outbox/LeafOutboxMessages.kt:40` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openbank-loyalty-service/src/main/kotlin/com/openbank/loyalty/infrastructure/outbox/LeafOutboxMessages.kt:54` calls `put`, `toString` and `openbank-loyalty-service/src/main/kotlin/com/openbank/loyalty/infrastructure/outbox/LeafOutboxMessages.kt:112` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (16–18 lines × 2) · ×1
  • Duplicated block (16–18 lines × 2) openbank-notification-service/src/main/kotlin/com/openbank/notification/infrastructure/webhook/SlackOversightWebhookPublisher.kt:65 — openbank-notification-service/src/main/kotlin/com/openbank/notification/infrastructure/webhook/SlackOversightWebhookPublisher.kt:65-82 | openbank-notification-service/src/main/kotlin/com/openbank/notification/infrastructure/webhook/TeamsOversightWebhookPublisher.kt:64-79 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-notification-service/src/main/kotlin/com/openbank/notification/infrastructure/webhook/SlackOversightWebhookPublisher.kt:65` 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 (17 lines × 3) · ×1
  • Duplicated block (17 lines × 3) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt:99 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt:99-115 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/persistence/repository/SepaPaymentOutboxRepositoryImpl.kt:99-115 | openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/persistence/repository/TransactionOutboxRepositoryImpl.kt:102-118 — before extracting anything, compare `openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt` and `openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/persistence/repository/SepaPaymentOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (16 lines × 4) · ×1
  • Duplicated block (16 lines × 4) openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/AuthzPolicyAuditorWorkflowImpl.kt:35 — openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/application/workflow/AuthzPolicyAuditorWorkflowImpl.kt:35-50 | openbank-docs-truth-agent/src/main/kotlin/com/openbank/docstruth/application/workflow/DocsTruthWorkflowImpl.kt:35-50 | openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/application/workflow/FlakyTestHunterWorkflowImpl.kt:35-50 | openbank-release-steward/src/main/kotlin/com/openbank/releasesteward/application/workflow/ReleaseStewardWorkflowImpl.kt:35-50 — 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. Note first that the copies are not typed on the same thing: `FindingSeverity` names `com.openbank.authzaudit.domain.model.FindingSeverity` in one and `com.openbank.docstruth.domain.model.FindingSeverity` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (16 lines × 3) · ×1
  • Duplicated block (16 lines × 3) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/FraudScoringAdapter.kt:64 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/FraudScoringAdapter.kt:64-79 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/client/FraudScoringAdapter.kt:64-79 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/client/FraudScoringAdapter.kt:71-86 — before extracting anything, compare `openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/FraudScoringAdapter.kt` and `openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/client/FraudScoringAdapter.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: `FraudScoreOutcome` names `com.openbank.domestic.application.port.out.FraudScoreOutcome` in one and `com.openbank.fx.application.port.out.FraudScoreOutcome` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (13–16 lines × 2) · ×1
  • Duplicated block (13–16 lines × 2) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentRepositoryImpl.kt:138 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentRepositoryImpl.kt:138-153 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/persistence/repository/SepaPaymentRepositoryImpl.kt:59-71 — 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 `openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentRepositoryImpl.kt: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.
D4 · Code Duplication · Duplicated block (15–16 lines × 2) · ×1
  • Duplicated block (15–16 lines × 2) openbank-product-catalog/src/main/kotlin/com/openbank/productcatalog/infrastructure/persistence/BankV1CatalogMapping.kt:94 — openbank-product-catalog/src/main/kotlin/com/openbank/productcatalog/infrastructure/persistence/BankV1CatalogMapping.kt:94-109 | openbank-product-catalog/src/main/kotlin/com/openbank/productcatalog/infrastructure/persistence/PostgresGenericCatalogRepository.kt:460-474 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-product-catalog/src/main/kotlin/com/openbank/productcatalog/infrastructure/persistence/PostgresGenericCatalogRepository.kt:460` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (15 lines × 9) · ×1
  • Duplicated block (15 lines × 9) openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:50 — openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:50-64 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:79-93 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:108-122 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:138-152 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:168-182 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:200-214 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:232-246 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:261-275 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEvent.kt:290-304 — all 9 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.
D4 · Code Duplication · Duplicated block (11–14 lines × 11) · ×1
  • Duplicated block (11–14 lines × 11) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:97 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:97-110 | openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt:97-110 | openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/persistence/repository/ConsentOutboxRepositoryImpl.kt:97-110 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/persistence/repository/DelegationOutboxRepositoryImpl.kt:89-102 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/persistence/repository/FxOutboxRepositoryImpl.kt:97-110 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LendingOutboxRepositoryImpl.kt:100-113 | openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/persistence/repository/SanctionsOutboxRepositoryImpl.kt:97-110 | openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/persistence/repository/ScaOutboxRepositoryImpl.kt:95-108 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/persistence/SettlementOutboxRepositoryImpl.kt:85-98 | openbank-standing-order-service/src/main/kotlin/com/openbank/standingorder/infrastructure/persistence/repository/StandingOrderOutboxRepositoryImpl.kt:97-110 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/repository/TreasuryOutboxRepositoryImpl.kt:82-92 — before extracting anything, compare `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt` and `openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:97` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (13 lines × 4) · ×1
  • Duplicated block (13 lines × 4) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/observability/FraudScoringMetrics.kt:78 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/observability/FraudScoringMetrics.kt:78-90 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/observability/FraudScoringMetrics.kt:78-90 | openbank-sepa-instant/src/main/kotlin/com/openbank/sepainstant/infrastructure/observability/FraudScoringMetrics.kt:78-90 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/observability/FraudScoringMetrics.kt:78-90 — before extracting anything, compare `openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/observability/FraudScoringMetrics.kt` and `openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/observability/FraudScoringMetrics.kt` as WHOLE FILES: 93% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (11–13 lines × 3) · ×1
  • Duplicated block (11–13 lines × 3) openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/LendingResource.kt:326 — openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/LendingResource.kt:326-338 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/LendingResource.kt:364-374 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/LendingResource.kt:397-407 — 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 `openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/LendingResource.kt:326` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/LendingResource.kt:410` calls `jsonResponse`, `status`, `entity` and `openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/LendingResource.kt:340` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (8–12 lines × 3) · ×1
  • Duplicated block (8–12 lines × 3) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1845 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1845-1852 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1924-1931 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:3522-3533 — 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.
D4 · Code Duplication · Duplicated block (11–12 lines × 3) · ×1
  • Duplicated block (11–12 lines × 3) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:3135 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:3135-3146 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:3197-3208 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:3367-3377 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:3377` calls `fetchPartyLegalName`, `badRequest`, `extractTextField` and `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:3208` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (11 lines × 12) · ×1
  • Duplicated block (11 lines × 12) openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt:82 — openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt:82-92 | openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/BillingOutboxRepositoryImpl.kt:109-119 | openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/persistence/repository/ConsentOutboxRepositoryImpl.kt:82-92 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/persistence/repository/DelegationOutboxRepositoryImpl.kt:74-84 | openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/persistence/FraudOutboxRepositoryImpl.kt:74-84 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/InterestOutboxRepositoryImpl.kt:77-87 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/LedgerOutboxRepositoryImpl.kt:100-110 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LendingOutboxRepositoryImpl.kt:85-95 | openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/persistence/repository/ScaOutboxRepositoryImpl.kt:80-90 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/persistence/SettlementOutboxRepositoryImpl.kt:70-80 | openbank-standing-order-service/src/main/kotlin/com/openbank/standingorder/infrastructure/persistence/repository/StandingOrderOutboxRepositoryImpl.kt:82-92 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/repository/TreasuryOutboxRepositoryImpl.kt:66-76 — before extracting anything, compare `openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt` and `openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/BillingOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt:82` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/InterestOutboxRepositoryImpl.kt:73` calls `countProcessable`, `countProcessableUni`, `awaitSuspending` and `openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt:78` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (9–11 lines × 5) · ×1
  • Duplicated block (9–11 lines × 5) openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/rest/AmlCaseResource.kt:96 — openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/rest/AmlCaseResource.kt:96-106 | openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/rest/ConsentResource.kt:106-114 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/IdempotentSubmit.kt:56-64 | openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/rest/ScaResource.kt:281-289 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/rest/SepaPaymentResource.kt:102-112 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/rest/AmlCaseResource.kt: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.
D4 · Code Duplication · Duplicated block (11 lines × 4) · ×1
  • Duplicated block (11 lines × 4) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt:41 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt:41-51 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/CloseJobRunRepository.kt:20-30 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/CloseJobRunRepository.kt:38-48 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseEvidenceRepository.kt:37-47 — before extracting anything, compare `openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt` and `openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/CloseJobRunRepository.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (9–11 lines × 4) · ×1
  • Duplicated block (9–11 lines × 4) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt:83 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt:83-93 | openbank-security-scanner/src/main/kotlin/com/openbank/security/infrastructure/persistence/repository/IctIncidentOutboxRepositoryImpl.kt:42-50 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/persistence/repository/SepaPaymentOutboxRepositoryImpl.kt:83-93 | openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/persistence/repository/TransactionOutboxRepositoryImpl.kt:86-96 — before extracting anything, compare `openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt` and `openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/persistence/repository/SepaPaymentOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt:83` 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 (10 lines × 18) · ×1
  • Duplicated block (10 lines × 18) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:69 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:69-78 | openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt:69-78 | openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/BillingOutboxRepositoryImpl.kt:96-105 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt:62-71 | openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/persistence/repository/ConsentOutboxRepositoryImpl.kt:69-78 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/persistence/repository/DelegationOutboxRepositoryImpl.kt:61-70 | openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/persistence/repository/DomesticPaymentOutboxRepositoryImpl.kt:63-72 | openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/persistence/FraudOutboxRepositoryImpl.kt:61-70 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/persistence/repository/FxOutboxRepositoryImpl.kt:61-70 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/InterestOutboxRepositoryImpl.kt:62-71 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/LedgerOutboxRepositoryImpl.kt:87-96 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LendingOutboxRepositoryImpl.kt:72-81 | openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/persistence/repository/SanctionsOutboxRepositoryImpl.kt:61-70 | openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/persistence/repository/ScaOutboxRepositoryImpl.kt:67-76 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/persistence/repository/SepaPaymentOutboxRepositoryImpl.kt:55-64 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/persistence/SettlementOutboxRepositoryImpl.kt:57-66 | openbank-standing-order-service/src/main/kotlin/com/openbank/standingorder/infrastructure/persistence/repository/StandingOrderOutboxRepositoryImpl.kt:61-70 | openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/persistence/repository/TransactionOutboxRepositoryImpl.kt:74-83 — before extracting anything, compare `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt` and `openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:69` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/InterestOutboxRepositoryImpl.kt:73` calls `countProcessable`, `countProcessableUni`, `awaitSuspending` and `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:80` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (10 lines × 7) · ×1
  • Duplicated block (10 lines × 7) openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt:31 — openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt:31-40 | openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/persistence/PostgresFindingRepository.kt:31-40 | openbank-devops-agent/src/main/kotlin/com/openbank/devops/infrastructure/persistence/PostgresFindingRepository.kt:61-70 | openbank-docs-truth-agent/src/main/kotlin/com/openbank/docstruth/infrastructure/persistence/PostgresFindingRepository.kt:31-40 | openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/infrastructure/persistence/PostgresFindingRepository.kt:31-40 | openbank-governance-auditor/src/main/kotlin/com/openbank/govaudit/infrastructure/persistence/PostgresFindingRepository.kt:31-40 | openbank-release-steward/src/main/kotlin/com/openbank/releasesteward/infrastructure/persistence/PostgresFindingRepository.kt:31-40 — before extracting anything, compare `openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt` and `openbank-docs-truth-agent/src/main/kotlin/com/openbank/docstruth/infrastructure/persistence/PostgresFindingRepository.kt` as WHOLE FILES: 83% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (9 lines × 17) · ×1
  • Duplicated block (9 lines × 17) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:81 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:81-89 | openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt:81-89 | openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/BillingOutboxRepositoryImpl.kt:108-116 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt:115-123 | openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:74-82 | openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/persistence/repository/ConsentOutboxRepositoryImpl.kt:81-89 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/persistence/repository/DelegationOutboxRepositoryImpl.kt:73-81 | openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/persistence/FraudOutboxRepositoryImpl.kt:73-81 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/persistence/repository/FxOutboxRepositoryImpl.kt:81-89 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/InterestOutboxRepositoryImpl.kt:76-84 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/persistence/repository/LedgerOutboxRepositoryImpl.kt:99-107 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/LendingOutboxRepositoryImpl.kt:84-92 | openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/persistence/repository/SanctionsOutboxRepositoryImpl.kt:81-89 | openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/persistence/repository/ScaOutboxRepositoryImpl.kt:79-87 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/persistence/SettlementOutboxRepositoryImpl.kt:69-77 | openbank-standing-order-service/src/main/kotlin/com/openbank/standingorder/infrastructure/persistence/repository/StandingOrderOutboxRepositoryImpl.kt:81-89 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/repository/TreasuryOutboxRepositoryImpl.kt:65-73 — before extracting anything, compare `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt` and `openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/persistence/repository/BalanceOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:81` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/InterestOutboxRepositoryImpl.kt:73` calls `countProcessable`, `countProcessableUni`, `awaitSuspending` and `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:78` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (9 lines × 5) · ×1
  • Duplicated block (9 lines × 5) openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/messaging/KafkaDelegationOutboxEventPublisher.kt:117 — openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/messaging/KafkaDelegationOutboxEventPublisher.kt:117-125 | openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/kafka/KafkaFraudOutboxEventPublisher.kt:66-74 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/kafka/KafkaInterestOutboxEventPublisher.kt:84-92 | openbank-ledger-service/src/main/kotlin/com/openbank/ledger/infrastructure/messaging/KafkaLedgerOutboxEventPublisher.kt:78-86 | openbank-sdd-service/src/main/kotlin/com/openbank/sdd/infrastructure/kafka/KafkaSddOutboxEventPublisher.kt:72-80 — before extracting anything, compare `openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/messaging/KafkaDelegationOutboxEventPublisher.kt` and `openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/kafka/KafkaFraudOutboxEventPublisher.kt` as WHOLE FILES: 82% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (9 lines × 4) · ×1
  • Duplicated block (9 lines × 4) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt:73 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt:73-81 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/CloseJobRunRepository.kt:40-48 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/CloseJobRunRepository.kt:85-93 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseEvidenceRepository.kt:102-110 — before extracting anything, compare `openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt` and `openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/CloseJobRunRepository.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×1
  • Duplicated block (9 lines × 3) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/scheduler/BillingCloseParticipationScheduler.kt:112 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/scheduler/BillingCloseParticipationScheduler.kt:112-120 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/servicing/LendingCloseParticipationScheduler.kt:128-136 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseParticipationScheduler.kt:122-130 — before extracting anything, compare `openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/servicing/LendingCloseParticipationScheduler.kt` and `openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseParticipationScheduler.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/scheduler/BillingCloseParticipationScheduler.kt:112` 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–9 lines × 2) · ×1
  • Duplicated block (6–9 lines × 2) openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/CustomerIntakeResource.kt:126 — openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/CustomerIntakeResource.kt:126-134 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/rest/CustomerQuoteResource.kt:120-125 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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.
D4 · Code Duplication · Duplicated block (7 lines × 6) · ×1
  • Duplicated block (7 lines × 6) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:33 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt:33-39 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt:34-40 | openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:35-41 | openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/persistence/FraudOutboxRepositoryImpl.kt:39-45 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/persistence/repository/FxOutboxRepositoryImpl.kt:33-39 | openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/persistence/repository/SanctionsOutboxRepositoryImpl.kt:33-39 — before extracting anything, compare `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/persistence/repository/AccountOutboxRepositoryImpl.kt` and `openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/persistence/repository/CardOutboxRepositoryImpl.kt:58` calls `minus` and `openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/persistence/repository/CardProcessingOutboxRepositoryImpl.kt:51` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (6 lines × 24) · ×1
  • Duplicated block (6 lines × 24) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/messaging/KafkaAccountOutboxEventPublisher.kt:24 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/messaging/KafkaAccountOutboxEventPublisher.kt:24-29 | openbank-case-coordinator-agent/src/main/kotlin/com/openbank/casecoordinator/infrastructure/messaging/KafkaCaseOutboxEventPublisher.kt:26-31 | openbank-clearing-service/src/main/kotlin/com/openbank/clearing/infrastructure/kafka/KafkaClearingOutboxEventPublisher.kt:24-29 | openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/messaging/KafkaConsentOutboxEventPublisher.kt:24-29 | openbank-dispute-service/src/main/kotlin/com/openbank/dispute/infrastructure/kafka/KafkaDisputeOutboxEventPublisher.kt:24-29 | openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/kafka/KafkaDomesticPaymentEventPublisher.kt:46-51 | openbank-engagement-service/src/main/kotlin/com/openbank/engagement/infrastructure/outbox/KafkaEngagementOutboxEventPublisher.kt:27-32 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/infrastructure/messaging/KafkaKybOutboxEventPublisher.kt:25-30 | openbank-kyc-service/src/main/kotlin/com/openbank/kyc/infrastructure/kafka/KafkaKycOutboxEventPublisher.kt:24-29 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/outbox/KafkaLendingOutboxEventPublisher.kt:48-53 | openbank-loyalty-service/src/main/kotlin/com/openbank/loyalty/infrastructure/outbox/KafkaLoyaltyOutboxEventPublisher.kt:26-31 | openbank-notification-service/src/main/kotlin/com/openbank/notification/infrastructure/kafka/KafkaNotificationOutboxEventPublisher.kt:25-30 | openbank-party-service/src/main/kotlin/com/openbank/party/infrastructure/kafka/KafkaPartyOutboxEventPublisher.kt:24-29 | openbank-pid-service/src/main/kotlin/com/openbank/pid/infrastructure/messaging/KafkaPidOutboxEventPublisher.kt:24-29 | openbank-risk-engine/src/main/kotlin/com/openbank/risk/infrastructure/messaging/KafkaRiskOutboxEventPublisher.kt:30-35 | openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/messaging/KafkaScaOutboxEventPublisher.kt:24-29 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/kafka/KafkaSepaPaymentEventPublisher.kt:64-69 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/messaging/KafkaSettlementOutboxEventPublisher.kt:25-30 | openbank-standing-order-service/src/main/kotlin/com/openbank/standingorder/infrastructure/kafka/KafkaStandingOrderOutboxEventPublisher.kt:25-30 | openbank-statement-service/src/main/kotlin/com/openbank/statement/infrastructure/kafka/KafkaStatementOutboxEventPublisher.kt:32-37 | openbank-tpp-registry-service/src/main/kotlin/com/openbank/tpp/infrastructure/kafka/KafkaTppOutboxEventPublisher.kt:24-29 | openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/messaging/KafkaTransactionOutboxEventPublisher.kt:26-31 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/messaging/KafkaTreasuryOutboxEventPublisher.kt:30-35 | openbank-wealth-service/src/main/kotlin/com/openbank/wealth/infrastructure/messaging/KafkaWealthOutboxEventPublisher.kt:30-35 — before extracting anything, compare `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/messaging/KafkaAccountOutboxEventPublisher.kt` and `openbank-clearing-service/src/main/kotlin/com/openbank/clearing/infrastructure/kafka/KafkaClearingOutboxEventPublisher.kt` as WHOLE FILES: 92% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/messaging/KafkaAccountOutboxEventPublisher.kt:24` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 7) · ×1
  • Duplicated block (6 lines × 7) openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt:42 — openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt:42-47 | openbank-control-liveness-sentinel/src/main/kotlin/com/openbank/liveness/infrastructure/persistence/PostgresFindingRepository.kt:42-47 | openbank-devops-agent/src/main/kotlin/com/openbank/devops/infrastructure/persistence/PostgresFindingRepository.kt:72-77 | openbank-docs-truth-agent/src/main/kotlin/com/openbank/docstruth/infrastructure/persistence/PostgresFindingRepository.kt:42-47 | openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/infrastructure/persistence/PostgresFindingRepository.kt:42-47 | openbank-governance-auditor/src/main/kotlin/com/openbank/govaudit/infrastructure/persistence/PostgresFindingRepository.kt:42-47 | openbank-release-steward/src/main/kotlin/com/openbank/releasesteward/infrastructure/persistence/PostgresFindingRepository.kt:42-47 — before extracting anything, compare `openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/persistence/PostgresFindingRepository.kt` and `openbank-docs-truth-agent/src/main/kotlin/com/openbank/docstruth/infrastructure/persistence/PostgresFindingRepository.kt` as WHOLE FILES: 83% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: `FindingStatus` names `com.openbank.authzaudit.domain.model.FindingStatus` in one and `com.openbank.devops.domain.model.FindingStatus` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (5–6 lines × 2) · ×1
  • Duplicated block (5–6 lines × 2) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1387 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1387-1391 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1443-1448 — 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 `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:1387` 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 (5 lines × 33) · ×1
  • Duplicated block (5 lines × 33) openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/messaging/KafkaAccountOutboxEventPublisher.kt:23 — openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/messaging/KafkaAccountOutboxEventPublisher.kt:23-27 | openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/kafka/KafkaAmlOutboxEventPublisher.kt:41-45 | openbank-balance-service/src/main/kotlin/com/openbank/balance/infrastructure/kafka/KafkaBalanceOutboxEventPublisher.kt:26-30 | openbank-case-coordinator-agent/src/main/kotlin/com/openbank/casecoordinator/infrastructure/messaging/KafkaCaseOutboxEventPublisher.kt:25-29 | openbank-clearing-service/src/main/kotlin/com/openbank/clearing/infrastructure/kafka/KafkaClearingOutboxEventPublisher.kt:23-27 | openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/messaging/KafkaConsentOutboxEventPublisher.kt:23-27 | openbank-dispute-service/src/main/kotlin/com/openbank/dispute/infrastructure/kafka/KafkaDisputeOutboxEventPublisher.kt:23-27 | openbank-document-service/src/main/kotlin/com/openbank/document/infrastructure/kafka/KafkaDocumentOutboxEventPublisher.kt:25-29 | openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/kafka/KafkaDomesticPaymentEventPublisher.kt:45-49 | openbank-engagement-service/src/main/kotlin/com/openbank/engagement/infrastructure/outbox/KafkaEngagementOutboxEventPublisher.kt:26-30 | openbank-fraud-service/src/main/kotlin/com/openbank/fraud/infrastructure/kafka/KafkaFraudOutboxEventPublisher.kt:31-35 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/kafka/KafkaFxOutboxEventPublisher.kt:32-36 | openbank-kyb-service/src/main/kotlin/com/openbank/kyb/infrastructure/messaging/KafkaKybOutboxEventPublisher.kt:24-28 | openbank-kyc-service/src/main/kotlin/com/openbank/kyc/infrastructure/kafka/KafkaKycOutboxEventPublisher.kt:23-27 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/outbox/KafkaLendingOutboxEventPublisher.kt:47-51 | openbank-loyalty-service/src/main/kotlin/com/openbank/loyalty/infrastructure/outbox/KafkaLoyaltyOutboxEventPublisher.kt:25-29 | openbank-notification-service/src/main/kotlin/com/openbank/notification/infrastructure/kafka/KafkaNotificationOutboxEventPublisher.kt:24-28 | openbank-party-service/src/main/kotlin/com/openbank/party/infrastructure/kafka/KafkaPartyOutboxEventPublisher.kt:23-27 | openbank-pid-service/src/main/kotlin/com/openbank/pid/infrastructure/messaging/KafkaPidOutboxEventPublisher.kt:23-27 | openbank-referral-service/src/main/kotlin/com/openbank/referral/infrastructure/kafka/KafkaReferralOutboxEventPublisher.kt:32-36 | openbank-risk-engine/src/main/kotlin/com/openbank/risk/infrastructure/messaging/KafkaRiskOutboxEventPublisher.kt:29-33 | openbank-sanctions-service/src/main/kotlin/com/openbank/sanctions/infrastructure/kafka/KafkaSanctionsOutboxEventPublisher.kt:29-33 | openbank-sca-service/src/main/kotlin/com/openbank/sca/infrastructure/messaging/KafkaScaOutboxEventPublisher.kt:23-27 | openbank-sdd-service/src/main/kotlin/com/openbank/sdd/infrastructure/kafka/KafkaSddOutboxEventPublisher.kt:37-41 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/kafka/KafkaSepaPaymentEventPublisher.kt:63-67 | openbank-settlement-service/src/main/kotlin/com/openbank/settlement/infrastructure/messaging/KafkaSettlementOutboxEventPublisher.kt:24-28 | openbank-standing-order-service/src/main/kotlin/com/openbank/standingorder/infrastructure/kafka/KafkaStandingOrderOutboxEventPublisher.kt:24-28 | openbank-statement-service/src/main/kotlin/com/openbank/statement/infrastructure/kafka/KafkaStatementOutboxEventPublisher.kt:31-35 | openbank-swift-service/src/main/kotlin/com/openbank/swift/infrastructure/kafka/KafkaSwiftOutboxEventPublisher.kt:31-35 | openbank-tpp-registry-service/src/main/kotlin/com/openbank/tpp/infrastructure/kafka/KafkaTppOutboxEventPublisher.kt:23-27 | openbank-transaction-service/src/main/kotlin/com/openbank/transaction/infrastructure/messaging/KafkaTransactionOutboxEventPublisher.kt:25-29 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/messaging/KafkaTreasuryOutboxEventPublisher.kt:29-33 | openbank-wealth-service/src/main/kotlin/com/openbank/wealth/infrastructure/messaging/KafkaWealthOutboxEventPublisher.kt:29-33 — before extracting anything, compare `openbank-account-service/src/main/kotlin/com/openbank/account/infrastructure/messaging/KafkaAccountOutboxEventPublisher.kt` and `openbank-aml-service/src/main/kotlin/com/openbank/aml/infrastructure/kafka/KafkaAmlOutboxEventPublisher.kt` as WHOLE FILES: 84% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 6) · ×1
  • Duplicated block (5 lines × 6) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:381 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:381-385 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:419-423 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:437-441 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:455-459 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:499-503 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:534-538 — all 6 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 `openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/UpstreamClient.kt:381` 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 (20 lines × 4) · ×1
  • Duplicated block (20 lines × 4) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/BillingOutboxDeadLetterGauge.kt:45 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/outbox/BillingOutboxDeadLetterGauge.kt:45-77 | openbank-card-issuance-service/src/main/kotlin/com/openbank/cardissuance/infrastructure/outbox/CardOutboxDeadLetterGauge.kt:37-69 | openbank-card-processing-service/src/main/kotlin/com/openbank/cardprocessing/infrastructure/outbox/CardProcessingOutboxDeadLetterGauge.kt:35-54 | openbank-referral-service/src/main/kotlin/com/openbank/referral/infrastructure/outbox/ReferralOutboxDeadLetterGauge.kt:29-55 — 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `outboxRepository` to `BillingOutboxRepositoryImpl` in one and `CardOutboxRepository` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (6 lines × 5) · ×1
  • Duplicated block (6 lines × 5) openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt:89 — openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt:89-94 | openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/CloseJobRunRepository.kt:56-61 | openbank-lending-service/src/main/kotlin/com/openbank/lending/infrastructure/persistence/repository/CloseJobRunRepository.kt:101-106 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/close/TreasuryCloseEvidenceRepository.kt:118-123 | openbank-treasury-service/src/main/kotlin/com/openbank/treasury/infrastructure/persistence/intent/PostingIntentRepository.kt:262-267 — before extracting anything, compare `openbank-billing-service/src/main/kotlin/com/openbank/billing/infrastructure/persistence/repository/BillingCloseEvidenceRepository.kt` and `openbank-interest-service/src/main/kotlin/com/openbank/interest/infrastructure/persistence/repository/CloseJobRunRepository.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 6) · ×1
  • Duplicated block (6 lines × 6) openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/persistence/repository/ConsentRepositoryImpl.kt:62 — openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/persistence/repository/ConsentRepositoryImpl.kt:62-67 | openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/persistence/repository/SuppressionRepositoryImpl.kt:45-50 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/persistence/repository/BusinessSigningRepositoryImpl.kt:336-341 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/persistence/repository/DelegationLifecycleApprovalRepositoryImpl.kt:164-169 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/persistence/repository/DelegationRecertificationRepositoryImpl.kt:172-177 | openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/persistence/repository/DelegationRepositoryImpl.kt:87-92 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openbank-consent-service/src/main/kotlin/com/openbank/consent/infrastructure/persistence/repository/ConsentRepositoryImpl.kt:57` calls `awaitSuspending`, `toDomain`, `mergeConsent` and `openbank-delegation-service/src/main/kotlin/com/openbank/delegation/infrastructure/persistence/repository/DelegationLifecycleApprovalRepositoryImpl.kt:162` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (7 lines × 4) · ×1
  • Duplicated block (7 lines × 4) openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerAmlProfileResource.kt:85 — openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerAmlProfileResource.kt:85-91 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerBusinessCompanyResource.kt:184-190 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerBusinessResource.kt:277-284 | openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerProfilesResource.kt:93-100 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, 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.
D4 · Code Duplication · Duplicated block (12 lines × 4) · ×1
  • Duplicated block (12 lines × 4) openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/FraudScoringAdapter.kt:81 — openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/FraudScoringAdapter.kt:81-92 | openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/client/FraudScoringAdapter.kt:81-92 | openbank-sepa-instant/src/main/kotlin/com/openbank/sepainstant/infrastructure/client/FraudScoringAdapter.kt:83-94 | openbank-sepa-payment/src/main/kotlin/com/openbank/sepa/infrastructure/client/FraudScoringAdapter.kt:88-99 — before extracting anything, compare `openbank-domestic-payment/src/main/kotlin/com/openbank/domestic/infrastructure/client/FraudScoringAdapter.kt` and `openbank-fx-service/src/main/kotlin/com/openbank/fx/infrastructure/client/FraudScoringAdapter.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: `FraudScoreCommand` names `com.openbank.domestic.application.port.out.FraudScoreCommand` in one and `com.openbank.fx.application.port.out.FraudScoreCommand` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (7 lines × 8) · ×1
  • Duplicated block (7 lines × 8) openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/CardAuthorizationScenario.kt:293 — openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/CardAuthorizationScenario.kt:293-299 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:339-345 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/FeeBillingScenario.kt:275-281 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/PaymentScenario.kt:178-184 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SddCollectionScenario.kt:262-268 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/StandingOrderExecutionScenario.kt:290-296 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/StandingOrderScenario.kt:252-258 | openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/SwiftScenario.kt:293-299 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 8 call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/DelegatedSpendScenario.kt:336` calls `lineId`, `UUID` and `openbank-simulation/src/main/kotlin/com/openbank/simulation/scenario/CardAuthorizationScenario.kt:290` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (51–70 lines × 2) · ×1
  • Duplicated block (51–70 lines × 2) .github/scripts/check-event-contract-code-agreement.py:931 — .github/scripts/check-event-contract-code-agreement.py:931-981 | .github/scripts/check-event-contract-code-agreement.py:993-1062 — 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 `.github/scripts/check-event-contract-code-agreement.py:931` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (31–33 lines × 2) · ×1
  • Duplicated block (31–33 lines × 2) .github/scripts/check-event-contract-code-agreement.py:1041 — .github/scripts/check-event-contract-code-agreement.py:1041-1073 | .github/scripts/check-event-contract-code-agreement.py:1107-1137 — 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 `.github/scripts/check-event-contract-code-agreement.py:1041` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with 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 (19–33 lines × 2) · ×1
  • Duplicated block (19–33 lines × 2) .github/scripts/check-no-epoch-instant-default.py:128 — .github/scripts/check-no-epoch-instant-default.py:128-160 | openbank-infra/scripts/check-db-migration.py:253-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 `.github/scripts/check-no-epoch-instant-default.py:128` 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 (18–30 lines × 3) · ×1
  • Duplicated block (18–30 lines × 3) .github/scripts/check-authz-pdp-parity.py:123 — .github/scripts/check-authz-pdp-parity.py:123-140 | .github/scripts/check-outbox-has-writer.py:208-237 | .github/scripts/check-pact-twin-state-parity.py:44-62 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `.github/scripts/check-outbox-has-writer.py:208` 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 (30 lines × 2) · ×1
  • Duplicated block (30 lines × 2) .github/scripts/check-opa-bundle-apply-size.py:159 — .github/scripts/check-opa-bundle-apply-size.py:159-188 | .github/scripts/check-opa-bundle-apply-size.py:194-223 — 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.
D4 · Code Duplication · Duplicated block (29–30 lines × 2) · ×1
  • Duplicated block (29–30 lines × 2) .github/scripts/check-product-ir-authoring-parity.py:66 — .github/scripts/check-product-ir-authoring-parity.py:66-95 | .github/scripts/check-product-revision-pinned.py:97-125 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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.
D4 · Code Duplication · Duplicated block (26–27 lines × 2) · ×1
  • Duplicated block (26–27 lines × 2) .github/scripts/check-event-contract-code-agreement.py:169 — .github/scripts/check-event-contract-code-agreement.py:169-195 | .github/scripts/check-oidc-client-secret-wiring.py:93-118 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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.
D4 · Code Duplication · Duplicated block (25 lines × 2) · ×1
  • Duplicated block (25 lines × 2) .github/scripts/check-datasource-pool-self-heal.py:144 — .github/scripts/check-datasource-pool-self-heal.py:144-168 | .github/scripts/check-rest-client-timeouts.py:147-171 — before extracting anything, compare `.github/scripts/check-datasource-pool-self-heal.py` and `.github/scripts/check-rest-client-timeouts.py` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (22–24 lines × 3) · ×1
  • Duplicated block (22–24 lines × 3) .github/scripts/check-enforcement-reachability.py:73 — .github/scripts/check-enforcement-reachability.py:73-94 | .github/scripts/check-event-contract-code-agreement.py:159-182 | .github/scripts/check-oidc-client-secret-wiring.py:84-105 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, 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.
D4 · Code Duplication · Duplicated block (24 lines × 2) · ×1
  • Duplicated block (24 lines × 2) .github/scripts/check-no-epoch-instant-default.py:57 — .github/scripts/check-no-epoch-instant-default.py:57-80 | .github/scripts/check-no-runblocking-in-scheduled.py:111-134 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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.
D4 · Code Duplication · Duplicated block (18–24 lines × 2) · ×1
  • Duplicated block (18–24 lines × 2) openbank-infra/scripts/gitops_facts.py:338 — openbank-infra/scripts/gitops_facts.py:338-361 | openbank-infra/scripts/gitops_facts.py:375-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. 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 (20 lines × 3) · ×1
  • Duplicated block (20 lines × 3) .github/scripts/check-event-contract-code-agreement.py:919 — .github/scripts/check-event-contract-code-agreement.py:919-941 | .github/scripts/check-event-contract-code-agreement.py:1053-1073 | .github/scripts/check-event-contract-code-agreement.py:1117-1136 — 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 `.github/scripts/check-event-contract-code-agreement.py:919` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (15–20 lines × 2) · ×1
  • Duplicated block (15–20 lines × 2) .github/scripts/check-idempotency-contract-parity.py:197 — .github/scripts/check-idempotency-contract-parity.py:197-211 | .github/scripts/check-openapi-route-conformance.py:212-231 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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.
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×1
  • Duplicated block (18 lines × 2) .github/scripts/check-idempotency-contract-parity.py:455 — .github/scripts/check-idempotency-contract-parity.py:455-472 | .github/scripts/check-openapi-route-conformance.py:384-401 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `.github/scripts/check-openapi-route-conformance.py:403` calls `code_routes` and `.github/scripts/check-idempotency-contract-parity.py:474` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (14–15 lines × 3) · ×1
  • Duplicated block (14–15 lines × 3) .github/scripts/check-authz-pdp-parity.py:131 — .github/scripts/check-authz-pdp-parity.py:131-145 | .github/scripts/check-nonnull-jaxrs-params.py:103-116 | .github/scripts/check-pact-twin-state-parity.py:53-66 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, 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.
D4 · Code Duplication · Duplicated block (11–15 lines × 2) · ×1
  • Duplicated block (11–15 lines × 2) .github/scripts/check-cnpg-scrape-coverage.py:181 — .github/scripts/check-cnpg-scrape-coverage.py:181-195 | .github/scripts/check-cnpg-update-resilience.py:151-161 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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.
D4 · Code Duplication · Duplicated block (12–13 lines × 3) · ×1
  • Duplicated block (12–13 lines × 3) .github/scripts/check-entity-column-names.py:180 — .github/scripts/check-entity-column-names.py:180-191 | .github/scripts/check-jaxrs-path-hijack.py:158-170 | .github/scripts/check-provider-type-classpath.py:188-199 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, 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. Note first that the copies are not typed on the same thing: `Path` names `jakarta.ws.rs.Path` in one and `pathlib` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (10–13 lines × 2) · ×1
  • Duplicated block (10–13 lines × 2) .github/scripts/check-synthetic-outbox-taint.py:242 — .github/scripts/check-synthetic-outbox-taint.py:242-251 | .github/scripts/check-synthetic-taint-rest-clients.py:155-167 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, 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.
D4 · Code Duplication · Duplicated block (9–12 lines × 2) · ×1
  • Duplicated block (9–12 lines × 2) .github/scripts/runtime-conformance.py:849 — .github/scripts/runtime-conformance.py:849-857 | .github/scripts/runtime-conformance.py:875-886 — 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 `.github/scripts/runtime-conformance.py:849` 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 (8–11 lines × 2) · ×1
  • Duplicated block (8–11 lines × 2) .github/scripts/check-raw-http-client.py:125 — .github/scripts/check-raw-http-client.py:125-132 | .github/scripts/check-resilience-profile.py:317-327 — before extracting anything, compare `.github/scripts/check-raw-http-client.py` and `.github/scripts/check-resilience-profile.py` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `.github/scripts/check-resilience-profile.py:317` 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 (9–11 lines × 2) · ×1
  • Duplicated block (9–11 lines × 2) .github/scripts/deps-freshness.py:47 — .github/scripts/deps-freshness.py:47-55 | .github/scripts/vex-hotfix.py:57-67 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `.github/scripts/deps-freshness.py:47` 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 (10 lines × 6) · ×1
  • Duplicated block (10 lines × 6) .github/scripts/check-accounting-clock.py:250 — .github/scripts/check-accounting-clock.py:250-259 | .github/scripts/check-evals-registry.py:224-233 | .github/scripts/check-event-contract-coverage.py:153-162 | .github/scripts/check-prompt-registry.py:210-219 | .github/scripts/check-psd2-anonymous-grant-paths.py:276-285 | openbank-infra/scripts/check-threat-models.py:245-254 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `.github/scripts/check-accounting-clock.py: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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `openbank-infra/scripts/check-threat-models.py:241` calls `money_path_services` and `.github/scripts/check-psd2-anonymous-grant-paths.py:275` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (10 lines × 5) · ×1
  • Duplicated block (10 lines × 5) .github/scripts/check-hibernate-sequence-guard.py:300 — .github/scripts/check-hibernate-sequence-guard.py:300-309 | .github/scripts/check-ledger-instance-switches.py:285-294 | .github/scripts/check-principal-name-trust.py:165-174 | .github/scripts/check-synthetic-customer-identity.py:265-274 | .github/scripts/check-xml-factory-hardened.py:104-113 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 5 call sites, 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.
D4 · Code Duplication · Duplicated block (9–10 lines × 3) · ×1
  • Duplicated block (9–10 lines × 3) .github/scripts/check-approval-store-redis-host.py:157 — .github/scripts/check-approval-store-redis-host.py:157-165 | .github/scripts/check-entity-column-names.py:184-193 | .github/scripts/check-jaxrs-path-hijack.py:162-170 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `.github/scripts/check-approval-store-redis-host.py:157` 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. Note first that the copies are not typed on the same thing: `Path` names `jakarta.ws.rs.Path` in one and `pathlib` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (8–10 lines × 3) · ×1
  • Duplicated block (8–10 lines × 3) .github/scripts/check-extension-bean-config.py:205 — .github/scripts/check-extension-bean-config.py:205-213 | .github/scripts/check-opa-sidecar-bundle-shape.py:218-225 | .github/scripts/check-route-exports.py:137-146 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, 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.
D4 · Code Duplication · Duplicated block (8 lines × 7) · ×1
  • Duplicated block (8 lines × 7) .github/scripts/check-accounting-clock.py:254 — .github/scripts/check-accounting-clock.py:254-261 | .github/scripts/check-ai-act-high-risk-inventory.py:232-239 | .github/scripts/check-evals-registry.py:228-235 | .github/scripts/check-event-consumer-liveness.py:341-348 | .github/scripts/check-event-contract-coverage.py:157-164 | .github/scripts/check-prompt-registry.py:214-221 | openbank-infra/scripts/check-threat-models.py:249-256 — 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 (7–8 lines × 3) · ×1
  • Duplicated block (7–8 lines × 3) .github/scripts/check-jaxrs-path-prefix-leading-slash.py:260 — .github/scripts/check-jaxrs-path-prefix-leading-slash.py:260-267 | .github/scripts/check-raw-http-client.py:127-133 | .github/scripts/check-resilience-profile.py:321-328 — before extracting anything, compare `.github/scripts/check-jaxrs-path-prefix-leading-slash.py` and `.github/scripts/check-raw-http-client.py` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (7–8 lines × 2) · ×1
  • Duplicated block (7–8 lines × 2) .github/scripts/check-realm-devci-artifact-parity.py:205 — .github/scripts/check-realm-devci-artifact-parity.py:205-212 | .github/scripts/check-realm-import-parity.py:282-288 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `.github/scripts/check-realm-devci-artifact-parity.py:205` 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 (7 lines × 5) · ×1
  • Duplicated block (7 lines × 5) .github/scripts/check-jaxrs-path-prefix-leading-slash.py:273 — .github/scripts/check-jaxrs-path-prefix-leading-slash.py:273-279 | .github/scripts/check-raw-http-client.py:139-145 | .github/scripts/check-resilience-profile.py:334-340 | .github/scripts/pact-reconcile-deployed-records.py:167-173 | openbank-infra/scripts/check-cnpg-backup-declared.py:200-207 — before extracting anything, compare `.github/scripts/check-jaxrs-path-prefix-leading-slash.py` and `.github/scripts/check-raw-http-client.py` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
D4 · Code Duplication · Duplicated block (2–5 lines × 3) · ×1
  • Duplicated block (2–5 lines × 3) .github/scripts/check-advisory-finding-staleness.py:176 — .github/scripts/check-advisory-finding-staleness.py:176-180 | .github/scripts/check-gate-lifecycle-metadata.py:314-319 | .github/scripts/check-gate-selftest-declaration.py:319-320 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `.github/scripts/check-gate-lifecycle-metadata.py:322` calls `report` and `.github/scripts/check-advisory-finding-staleness.py:183` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (3–5 lines × 3) · ×1
  • Duplicated block (3–5 lines × 3) .github/scripts/check-security-checklist.py:1121 — .github/scripts/check-security-checklist.py:1121-1123 | .github/scripts/check-security-checklist.py:1215-1219 | .github/scripts/check-security-checklist.py:1345-1349 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `.github/scripts/check-security-checklist.py:1221` calls `mkdir`, `write_text` and `.github/scripts/check-security-checklist.py:1125` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (4–5 lines × 3) · ×1
  • Duplicated block (4–5 lines × 3) .github/scripts/merge-train.py:7200 — .github/scripts/merge-train.py:7200-7204 | .github/scripts/merge-train.py:7240-7244 | .github/scripts/merge-train.py:8398-8401 — 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 (19–29 lines × 2) · ×1
  • Duplicated block (19–29 lines × 2) perf/scripts/verify-payment-ledger-v2.py:373 — perf/scripts/verify-payment-ledger-v2.py:373-391 | perf/scripts/verify-payment-ledger.py:491-519 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
D4 · Code Duplication · Duplicated block (12–25 lines × 2) · ×1
  • Duplicated block (12–25 lines × 2) .github/scripts/check-test-intelligence-ecosystem.py:1151 — .github/scripts/check-test-intelligence-ecosystem.py:1151-1162 | .github/scripts/check-test-intelligence-ecosystem.py:1198-1222 — 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.
D4 · Code Duplication · Duplicated block (12–18 lines × 3) · ×1
  • Duplicated block (12–18 lines × 3) .github/scripts/check-test-intelligence-ecosystem.py:1152 — .github/scripts/check-test-intelligence-ecosystem.py:1152-1163 | .github/scripts/check-test-intelligence-ecosystem.py:1176-1192 | .github/scripts/check-test-intelligence-ecosystem.py:1206-1223 — 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.
D4 · Code Duplication · Duplicated block (11–17 lines × 4) · ×1
  • Duplicated block (11–17 lines × 4) .github/scripts/check-test-intelligence-ecosystem.py:1153 — .github/scripts/check-test-intelligence-ecosystem.py:1153-1164 | .github/scripts/check-test-intelligence-ecosystem.py:1178-1193 | .github/scripts/check-test-intelligence-ecosystem.py:1208-1224 | .github/scripts/check-test-intelligence-ecosystem.py:1421-1431 — 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.
D5 · Coupling · Unstable project openbank · ×1
  • Unstable project openbank:openbank-sepa-instant — openbank:openbank-sepa-instant has instability 0.83 with 1 dependents.
D8 · Code Coverage · Coverage not measured · ×1
  • Coverage not measured — JavaScript/TypeScript suite — Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured — the vitest suite in openbank-admin-ui/ ran and not one test passed (Errors 754 errors), so the coverage report describes the failed run, not the code. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository's maintainers can perform; once it passes, the real number is measured on the next scan. Alternatively, commit the lcov/Cobertura report your CI produces and it is read without a re-run.
R10 · Code Duplication · Duplication concentrated across 57 sibling directories (223 clone groups) · ×1
  • Duplication concentrated across 57 sibling directories (223 clone groups) openbank-admin-ui/src/app/aml/page.tsx:23 — 223 duplicated blocks under openbank-admin-ui/src/app/ have copies in at least two of the sibling directories accounts, aml, api, approvals, audit, auth (+51 more sibling(s) not listed) — 109 of them are reported below, and 114 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 223 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 223 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 223 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 3 sibling directories (109 clone groups) · ×1
  • Duplication concentrated across 3 sibling directories (109 clone groups) openbank-admin-ui/src/app/kyc/page.tsx:90 — 109 duplicated blocks under openbank-admin-ui/src/ have copies in at least two of the sibling directories app, components, lib — 46 of them are reported below, and 63 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 109 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 109 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 109 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 34 sibling directories (40 clone groups) · ×1
  • Duplication concentrated across 34 sibling directories (40 clone groups) openbank-admin-ui/src/app/api/finops/right-sizing/route.ts:61 — 40 duplicated blocks under openbank-admin-ui/src/app/api/ have copies in at least two of the sibling directories agent, app-status, approvals, audiences, campaigns, catalog (+28 more sibling(s) not listed) — 32 of them are reported below, and 8 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 40 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 40 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 40 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 31 sibling directories (31 clone groups) · ×1
  • Duplication concentrated across 31 sibling directories (31 clone groups) REDACTED:64 — 31 duplicated blocks under openbank-admin-ui/src/lib/ have copies in at least two of the sibling directories accounts, agent-merge-records, aml, approvals, audit, cards (+25 more sibling(s) not listed) — 18 of them are reported below, and 13 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 31 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 31 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 31 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 19 sibling directories (21 clone groups) · ×1
  • Duplication concentrated across 19 sibling directories (21 clone groups) openbank-admin-ui/src/components/flow/StageBoard.tsx:84 — 21 duplicated blocks under openbank-admin-ui/src/components/ have copies in at least two of the sibling directories approvals, balance-sheet, cards, closings, delegations, devops (+13 more sibling(s) not listed) — 9 of them are reported below, and 12 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 21 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 21 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 21 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 10 sibling directories (17 clone groups) · ×1
  • Duplication concentrated across 10 sibling directories (17 clone groups) openbank-admin-ui/src/app/pension/funds/page.tsx:56 — 17 duplicated blocks under openbank-admin-ui/src/app/pension/ have copies in at least two of the sibling directories annuity, applications, contracts, funds, holdings, incentives (+4 more sibling(s) not listed) — 9 of them are reported below, and 8 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 17 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 17 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 17 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 5 sibling directories (6 clone groups) · ×1
  • Duplication concentrated across 5 sibling directories (6 clone groups) openbank-admin-ui/src/app/treasury/approvals/page.tsx:30 — 6 duplicated blocks under openbank-admin-ui/src/app/treasury/ have copies in at least two of the sibling directories approvals, counterparties, deals, limits, nostro — 4 of them are reported below, and 2 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 6 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 6 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 6 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplication concentrated across 6 sibling directories (5 clone groups) · ×1
  • Duplication concentrated across 6 sibling directories (5 clone groups) openbank-admin-ui/src/app/api/agent/chat/route.ts:32 — 5 of the duplicated blocks reported below have copies in at least two of the sibling directories catalog-reviews, chat, mcp, merge-records, obo-mcp, proposals under openbank-admin-ui/src/app/api/agent/. That concentration is one structural fact, not 5 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 5 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplicated block with local edits (154 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (154 matched lines × 2 locations) openbank-admin-ui/src/app/kyc/page.tsx:90 — openbank-admin-ui/src/app/kyc/page.tsx:90 · openbank-admin-ui/src/components/notifications/NotificationsPage.tsx:147 — the two spans are one implementation copied and then locally edited — 1147 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (115 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (115 matched lines × 2 locations) openbank-admin-ui/src/app/balance-sheet/ledger-backfill/page.tsx:246 — openbank-admin-ui/src/app/balance-sheet/ledger-backfill/page.tsx:246 · openbank-admin-ui/src/app/balance-sheet/ledger-backfill/voids/page.tsx:207 — the two spans are one implementation copied and then locally edited — 1183 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (106 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (106 matched lines × 2 locations) openbank-admin-ui/src/components/flow/StageBoard.tsx:84 — openbank-admin-ui/src/components/flow/StageBoard.tsx:84 · openbank-admin-ui/src/components/lending/OriginationPipeline.tsx:81 — the two spans are one implementation copied and then locally edited — 1103 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (101 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (101 matched lines × 2 locations) openbank-admin-ui/src/app/treasury/approvals/page.tsx:30 — openbank-admin-ui/src/app/treasury/approvals/page.tsx:30 · openbank-admin-ui/src/app/treasury/deals/page.tsx:30 — the two spans are one implementation copied and then locally edited — 1054 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (91 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (91 matched lines × 2 locations) openbank-admin-ui/src/app/aml/page.tsx:23 — openbank-admin-ui/src/app/aml/page.tsx:23 · openbank-admin-ui/src/app/clearing/page.tsx:22 — the two spans are one implementation copied and then locally edited — 1070 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (83 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (83 matched lines × 2 locations) openbank-admin-ui/src/app/iaops/cases/[caseId]/page.tsx:66 — openbank-admin-ui/src/app/iaops/cases/[caseId]/page.tsx:66 · openbank-admin-ui/src/app/iaops/cases/page.tsx:37 — the two spans are one implementation copied and then locally edited — 746 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (76 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (76 matched lines × 2 locations) openbank-admin-ui/src/app/cards/disputes/page.tsx:54 — openbank-admin-ui/src/app/cards/disputes/page.tsx:54 · openbank-admin-ui/src/app/cards/tokens/page.tsx:41 — the two spans are one implementation copied and then locally edited — 579 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (72 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (72 matched lines × 2 locations) openbank-admin-ui/src/app/pension/funds/page.tsx:56 — openbank-admin-ui/src/app/pension/funds/page.tsx:56 · openbank-admin-ui/src/app/pension/strategies/page.tsx:61 — the two spans are one implementation copied and then locally edited — 659 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (70 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (70 matched lines × 2 locations) openbank-admin-ui/src/app/consents/page.tsx:207 — openbank-admin-ui/src/app/consents/page.tsx:207 · openbank-admin-ui/src/app/customer-360/page.tsx:142 — the two spans are one implementation copied and then locally edited — 496 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (69 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (69 matched lines × 2 locations) openbank-admin-ui/src/app/treasury/counterparties/page.tsx:22 — openbank-admin-ui/src/app/treasury/counterparties/page.tsx:22 · openbank-admin-ui/src/app/treasury/limits/page.tsx:24 — the two spans are one implementation copied and then locally edited — 829 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (60 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (60 matched lines × 2 locations) openbank-admin-ui/src/app/pension/contracts/[id]/page.tsx:62 — openbank-admin-ui/src/app/pension/contracts/[id]/page.tsx:62 · openbank-admin-ui/src/app/pension/holdings/page.tsx:45 — the two spans are one implementation copied and then locally edited — 709 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (59 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (59 matched lines × 2 locations) openbank-admin-ui/scripts/admin-login-synthetic.mjs:7 — openbank-admin-ui/scripts/admin-login-synthetic.mjs:7 · openbank-admin-ui/scripts/admin-operator-journey.mjs:20 — the two spans are one implementation copied and then locally edited — 485 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (51 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (51 matched lines × 2 locations) openbank-admin-ui/src/app/day-end/page.tsx:231 — openbank-admin-ui/src/app/day-end/page.tsx:231 · openbank-admin-ui/src/app/day-end/page.tsx:681 — the two spans are one implementation copied and then locally edited — 500 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (49 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (49 matched lines × 2 locations) openbank-admin-ui/src/app/api/finops/right-sizing/route.ts:61 — openbank-admin-ui/src/app/api/finops/right-sizing/route.ts:61 · openbank-admin-ui/src/app/api/temporal/status/route.ts:45 — the two spans are one implementation copied and then locally edited — 380 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (46 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (46 matched lines × 2 locations) openbank-admin-ui/src/app/onboarding/page.tsx:278 — openbank-admin-ui/src/app/onboarding/page.tsx:278 · openbank-admin-ui/src/app/parties/page.tsx:263 — the two spans are one implementation copied and then locally edited — 445 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (41 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (41 matched lines × 2 locations) openbank-admin-ui/src/app/infrastructure/page.tsx:392 — openbank-admin-ui/src/app/infrastructure/page.tsx:392 · openbank-admin-ui/src/app/infrastructure/page.tsx:443 — the two spans are one implementation copied and then locally edited — 480 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (38 lines × 2 locations) · ×1
  • Duplicated block (38 lines × 2 locations) REDACTED:43 — REDACTED:43 · REDACTED:44 — 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.
R10 · Code Duplication · Duplicated block (34 lines × 2 locations) · ×1
  • Duplicated block (34 lines × 2 locations) REDACTED:31 — REDACTED:31 · REDACTED:28 — 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.
R10 · Code Duplication · Duplicated block with local edits (27 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (27 matched lines × 2 locations) openbank-admin-ui/src/app/iaops/agents/[agentId]/page.tsx:147 — openbank-admin-ui/src/app/iaops/agents/[agentId]/page.tsx:147 · openbank-admin-ui/src/app/iaops/cases/[caseId]/page.tsx:96 — the two spans are one implementation copied and then locally edited — 299 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (22 lines × 2 locations) · ×1
  • Duplicated block (22 lines × 2 locations) openbank-admin-ui/src/components/campaigns/StepEditor.tsx:167 — openbank-admin-ui/src/components/campaigns/StepEditor.tsx:167 · openbank-admin-ui/src/components/campaigns/StepEditor.tsx:220 — all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are.
R10 · Code Duplication · Duplicated block with local edits (22 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (22 matched lines × 2 locations) openbank-admin-ui/src/lib/api.ts:177 — openbank-admin-ui/src/lib/api.ts:177 · openbank-admin-ui/src/lib/api.ts:238 — the two spans are one implementation copied and then locally edited — 139 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (21 lines × 2 locations) · ×1
  • Duplicated block (21 lines × 2 locations) openbank-admin-ui/src/app/payments/page.tsx:846 — openbank-admin-ui/src/app/payments/page.tsx:846 · openbank-admin-ui/src/app/payments/page.tsx:983 — all 2 copies are in the same file, 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.
R10 · Code Duplication · Duplicated block with local edits (21 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (21 matched lines × 2 locations) openbank-admin-ui/src/lib/context/amlCaseEvidence.ts:18 — openbank-admin-ui/src/lib/context/amlCaseEvidence.ts:18 · openbank-admin-ui/src/lib/context/authorityHistory.ts:17 — the two spans are one implementation copied and then locally edited — 236 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R2 · Cyclomatic Complexity · Complex function CampaignDetailPage (cyclomatic 103, cognitive 88) · ×1
  • Complex function CampaignDetailPage (cyclomatic 103, cognitive 88) openbank-admin-ui/src/app/campaigns/[id]/page.tsx:174 — CampaignDetailPage has cyclomatic complexity 103 and cognitive complexity 88; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function ProductStudioPage (cyclomatic 86, cognitive 72) · ×1
  • Complex function ProductStudioPage (cyclomatic 86, cognitive 72) openbank-admin-ui/src/app/product-studio/page.tsx:95 — ProductStudioPage has cyclomatic complexity 86 and cognitive complexity 72; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function CreditRiskConsole (cyclomatic 83, cognitive 74) · ×1
  • Complex function CreditRiskConsole (cyclomatic 83, cognitive 74) openbank-admin-ui/src/app/lending/risk/page.tsx:110 — CreditRiskConsole has cyclomatic complexity 83 and cognitive complexity 74; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function validClusterTopology (cyclomatic 81, cognitive 32) · ×1
  • Complex function validClusterTopology (cyclomatic 81, cognitive 32) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:254 — validClusterTopology has cyclomatic complexity 81 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function validServiceGraph (cyclomatic 76, cognitive 49) · ×1
  • Complex function validServiceGraph (cyclomatic 76, cognitive 49) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:124 — validServiceGraph has cyclomatic complexity 76 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function PaymentsContent (cyclomatic 75, cognitive 72) · ×1
  • Complex function PaymentsContent (cyclomatic 75, cognitive 72) openbank-admin-ui/src/app/payments/page.tsx:295 — PaymentsContent has cyclomatic complexity 75 and cognitive complexity 72; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function ProductDetailPanel (cyclomatic 69, cognitive 61) · ×1
  • Complex function ProductDetailPanel (cyclomatic 69, cognitive 61) openbank-admin-ui/src/app/product-catalog/page.tsx:116 — ProductDetailPanel has cyclomatic complexity 69 and cognitive complexity 61; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function NewDeal (cyclomatic 63, cognitive 54) · ×1
  • Complex function NewDeal (cyclomatic 63, cognitive 54) openbank-admin-ui/src/app/treasury/deals/new/page.tsx:41 — NewDeal has cyclomatic complexity 63 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function NewCampaignPage (cyclomatic 61, cognitive 49) · ×1
  • Complex function NewCampaignPage (cyclomatic 61, cognitive 49) openbank-admin-ui/src/app/campaigns/new/page.tsx:148 — NewCampaignPage has cyclomatic complexity 61 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function GameCatalogPage (cyclomatic 61, cognitive 49) · ×1
  • Complex function GameCatalogPage (cyclomatic 61, cognitive 49) openbank-admin-ui/src/app/loyalty/game/page.tsx:35 — GameCatalogPage has cyclomatic complexity 61 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 60, cognitive 61) · ×1
  • Complex function (anonymous) (cyclomatic 60, cognitive 61) REDACTED:165 — (anonymous) has cyclomatic complexity 60 and cognitive complexity 61; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function TemporalPage (cyclomatic 59, cognitive 57) · ×1
  • Complex function TemporalPage (cyclomatic 59, cognitive 57) openbank-admin-ui/src/app/temporal/page.tsx:259 — TemporalPage has cyclomatic complexity 59 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function FinOpsContent (cyclomatic 57, cognitive 55) · ×1
  • Complex function FinOpsContent (cyclomatic 57, cognitive 55) openbank-admin-ui/src/app/finops/page.tsx:228 — FinOpsContent has cyclomatic complexity 57 and cognitive complexity 55; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function SanctionsPage (cyclomatic 57, cognitive 49) · ×1
  • Complex function SanctionsPage (cyclomatic 57, cognitive 49) openbank-admin-ui/src/app/sanctions/page.tsx:207 — SanctionsPage has cyclomatic complexity 57 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function LifecycleStrip (cyclomatic 51, cognitive 47) · ×1
  • Complex function LifecycleStrip (cyclomatic 51, cognitive 47) openbank-admin-ui/src/components/infra/LifecycleStrip.tsx:67 — LifecycleStrip has cyclomatic complexity 51 and cognitive complexity 47; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function validSecurityGraph (cyclomatic 51, cognitive 36) · ×1
  • Complex function validSecurityGraph (cyclomatic 51, cognitive 36) openbank-admin-ui/src/lib/evidence/contentSnapshot.ts:220 — validSecurityGraph has cyclomatic complexity 51 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function buildCustomerGraph (cyclomatic 50, cognitive 67) · ×1
  • Complex function buildCustomerGraph (cyclomatic 50, cognitive 67) openbank-admin-ui/src/lib/context/customerGraph.ts:330 — buildCustomerGraph has cyclomatic complexity 50 and cognitive complexity 67; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function LoyaltyPage (cyclomatic 49, cognitive 39) · ×1
  • Complex function LoyaltyPage (cyclomatic 49, cognitive 39) openbank-admin-ui/src/app/loyalty/page.tsx:42 — LoyaltyPage has cyclomatic complexity 49 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function OperationalEvidence (cyclomatic 48, cognitive 40) · ×1
  • Complex function OperationalEvidence (cyclomatic 48, cognitive 40) openbank-admin-ui/src/components/observability/OperationalEvidence.tsx:47 — OperationalEvidence has cyclomatic complexity 48 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function appEvidence (cyclomatic 48, cognitive 31) · ×1
  • Complex function appEvidence (cyclomatic 48, cognitive 31) openbank-admin-ui/src/lib/agent-merge-records/types.ts:80 — appEvidence has cyclomatic complexity 48 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R3 · Large Files · openbank-admin-ui/src/app/campaigns/new/page.tsx · ×1
  • openbank-admin-ui/src/app/campaigns/new/page.tsx: 1219 lines of code openbank-admin-ui/src/app/campaigns/new/page.tsx:1 — openbank-admin-ui/src/app/campaigns/new/page.tsx has 1219 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/payments/page.tsx · ×1
  • openbank-admin-ui/src/app/payments/page.tsx: 1201 lines of code openbank-admin-ui/src/app/payments/page.tsx:1 — openbank-admin-ui/src/app/payments/page.tsx has 1201 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/campaigns/[id]/page.tsx · ×1
  • openbank-admin-ui/src/app/campaigns/[id]/page.tsx: 1160 lines of code openbank-admin-ui/src/app/campaigns/[id]/page.tsx:1 — openbank-admin-ui/src/app/campaigns/[id]/page.tsx has 1160 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/sanctions/page.tsx · ×1
  • openbank-admin-ui/src/app/sanctions/page.tsx: 1151 lines of code openbank-admin-ui/src/app/sanctions/page.tsx:1 — openbank-admin-ui/src/app/sanctions/page.tsx has 1151 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/finops/page.tsx · ×1
  • openbank-admin-ui/src/app/finops/page.tsx: 1139 lines of code openbank-admin-ui/src/app/finops/page.tsx:1 — openbank-admin-ui/src/app/finops/page.tsx has 1139 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/docs/service-map/page.tsx · ×1
  • openbank-admin-ui/src/app/docs/service-map/page.tsx: 1086 lines of code openbank-admin-ui/src/app/docs/service-map/page.tsx:1 — openbank-admin-ui/src/app/docs/service-map/page.tsx has 1086 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/document-templates/page.tsx · ×1
  • openbank-admin-ui/src/app/document-templates/page.tsx: 1047 lines of code openbank-admin-ui/src/app/document-templates/page.tsx:1 — openbank-admin-ui/src/app/document-templates/page.tsx has 1047 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/day-end/page.tsx · ×1
  • openbank-admin-ui/src/app/day-end/page.tsx: 973 lines of code openbank-admin-ui/src/app/day-end/page.tsx:1 — openbank-admin-ui/src/app/day-end/page.tsx has 973 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/docs/api/page.tsx · ×1
  • openbank-admin-ui/src/app/docs/api/page.tsx: 947 lines of code openbank-admin-ui/src/app/docs/api/page.tsx:1 — openbank-admin-ui/src/app/docs/api/page.tsx has 947 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/merchants/page.tsx · ×1
  • openbank-admin-ui/src/app/merchants/page.tsx: 939 lines of code openbank-admin-ui/src/app/merchants/page.tsx:1 — openbank-admin-ui/src/app/merchants/page.tsx has 939 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/regulatory/page.tsx · ×1
  • openbank-admin-ui/src/app/regulatory/page.tsx: 925 lines of code openbank-admin-ui/src/app/regulatory/page.tsx:1 — openbank-admin-ui/src/app/regulatory/page.tsx has 925 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/loyalty/game/page.tsx · ×1
  • openbank-admin-ui/src/app/loyalty/game/page.tsx: 920 lines of code openbank-admin-ui/src/app/loyalty/game/page.tsx:1 — openbank-admin-ui/src/app/loyalty/game/page.tsx has 920 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/product-catalog/page.tsx · ×1
  • openbank-admin-ui/src/app/product-catalog/page.tsx: 901 lines of code openbank-admin-ui/src/app/product-catalog/page.tsx:1 — openbank-admin-ui/src/app/product-catalog/page.tsx has 901 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/temporal/page.tsx · ×1
  • openbank-admin-ui/src/app/temporal/page.tsx: 855 lines of code openbank-admin-ui/src/app/temporal/page.tsx:1 — openbank-admin-ui/src/app/temporal/page.tsx has 855 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/iaops/page.tsx · ×1
  • openbank-admin-ui/src/app/iaops/page.tsx: 831 lines of code openbank-admin-ui/src/app/iaops/page.tsx:1 — openbank-admin-ui/src/app/iaops/page.tsx has 831 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/fx/page.tsx · ×1
  • openbank-admin-ui/src/app/fx/page.tsx: 807 lines of code openbank-admin-ui/src/app/fx/page.tsx:1 — openbank-admin-ui/src/app/fx/page.tsx has 807 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/product-studio/page.tsx · ×1
  • openbank-admin-ui/src/app/product-studio/page.tsx: 686 lines of code openbank-admin-ui/src/app/product-studio/page.tsx:1 — openbank-admin-ui/src/app/product-studio/page.tsx has 686 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/api/approvals/pending/route.ts · ×1
  • openbank-admin-ui/src/app/api/approvals/pending/route.ts: 626 lines of code openbank-admin-ui/src/app/api/approvals/pending/route.ts:1 — openbank-admin-ui/src/app/api/approvals/pending/route.ts has 626 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/pid/page.tsx · ×1
  • openbank-admin-ui/src/app/pid/page.tsx: 626 lines of code openbank-admin-ui/src/app/pid/page.tsx:1 — openbank-admin-ui/src/app/pid/page.tsx has 626 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/components/cards/IssueCardDialog.tsx · ×1
  • openbank-admin-ui/src/components/cards/IssueCardDialog.tsx: 626 lines of code openbank-admin-ui/src/components/cards/IssueCardDialog.tsx:1 — openbank-admin-ui/src/components/cards/IssueCardDialog.tsx has 626 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/devops/sdlc/page.tsx · ×1
  • openbank-admin-ui/src/app/devops/sdlc/page.tsx: 607 lines of code openbank-admin-ui/src/app/devops/sdlc/page.tsx:1 — openbank-admin-ui/src/app/devops/sdlc/page.tsx has 607 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/security/excellence/page.tsx · ×1
  • openbank-admin-ui/src/app/security/excellence/page.tsx: 607 lines of code openbank-admin-ui/src/app/security/excellence/page.tsx:1 — openbank-admin-ui/src/app/security/excellence/page.tsx has 607 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/parties/[id]/page.tsx · ×1
  • openbank-admin-ui/src/app/parties/[id]/page.tsx: 591 lines of code openbank-admin-ui/src/app/parties/[id]/page.tsx:1 — openbank-admin-ui/src/app/parties/[id]/page.tsx has 591 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/docs/bcp/page.tsx · ×1
  • openbank-admin-ui/src/app/docs/bcp/page.tsx: 583 lines of code openbank-admin-ui/src/app/docs/bcp/page.tsx:1 — openbank-admin-ui/src/app/docs/bcp/page.tsx has 583 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/approvals/page.tsx · ×1
  • openbank-admin-ui/src/app/approvals/page.tsx: 581 lines of code openbank-admin-ui/src/app/approvals/page.tsx:1 — openbank-admin-ui/src/app/approvals/page.tsx has 581 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/loyalty/page.tsx · ×1
  • openbank-admin-ui/src/app/loyalty/page.tsx: 576 lines of code openbank-admin-ui/src/app/loyalty/page.tsx:1 — openbank-admin-ui/src/app/loyalty/page.tsx has 576 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/campaigns/page.tsx · ×1
  • openbank-admin-ui/src/app/campaigns/page.tsx: 571 lines of code openbank-admin-ui/src/app/campaigns/page.tsx:1 — openbank-admin-ui/src/app/campaigns/page.tsx has 571 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/devops/page.tsx · ×1
  • openbank-admin-ui/src/app/devops/page.tsx: 565 lines of code openbank-admin-ui/src/app/devops/page.tsx:1 — openbank-admin-ui/src/app/devops/page.tsx has 565 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/api/test-intelligence/route.ts · ×1
  • openbank-admin-ui/src/app/api/test-intelligence/route.ts: 545 lines of code openbank-admin-ui/src/app/api/test-intelligence/route.ts:1 — openbank-admin-ui/src/app/api/test-intelligence/route.ts has 545 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/business-onboarding/page.tsx · ×1
  • openbank-admin-ui/src/app/business-onboarding/page.tsx: 544 lines of code openbank-admin-ui/src/app/business-onboarding/page.tsx:1 — openbank-admin-ui/src/app/business-onboarding/page.tsx has 544 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/components/campaigns/JourneyEditor.tsx · ×1
  • openbank-admin-ui/src/components/campaigns/JourneyEditor.tsx: 498 lines of code openbank-admin-ui/src/components/campaigns/JourneyEditor.tsx:1 — openbank-admin-ui/src/components/campaigns/JourneyEditor.tsx has 498 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/lib/context/customerGraph.ts · ×1
  • openbank-admin-ui/src/lib/context/customerGraph.ts: 488 lines of code openbank-admin-ui/src/lib/context/customerGraph.ts:1 — openbank-admin-ui/src/lib/context/customerGraph.ts has 488 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/identity-cases/page.tsx · ×1
  • openbank-admin-ui/src/app/identity-cases/page.tsx: 487 lines of code openbank-admin-ui/src/app/identity-cases/page.tsx:1 — openbank-admin-ui/src/app/identity-cases/page.tsx has 487 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/lib/auth/roles.ts · ×1
  • openbank-admin-ui/src/lib/auth/roles.ts: 483 lines of code openbank-admin-ui/src/lib/auth/roles.ts:1 — openbank-admin-ui/src/lib/auth/roles.ts has 483 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/components/notifications/NotificationsPage.tsx · ×1
  • openbank-admin-ui/src/components/notifications/NotificationsPage.tsx: 480 lines of code openbank-admin-ui/src/components/notifications/NotificationsPage.tsx:1 — openbank-admin-ui/src/components/notifications/NotificationsPage.tsx has 480 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/infrastructure/page.tsx · ×1
  • openbank-admin-ui/src/app/infrastructure/page.tsx: 477 lines of code openbank-admin-ui/src/app/infrastructure/page.tsx:1 — openbank-admin-ui/src/app/infrastructure/page.tsx has 477 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/system/config/page.tsx · ×1
  • openbank-admin-ui/src/app/system/config/page.tsx: 467 lines of code openbank-admin-ui/src/app/system/config/page.tsx:1 — openbank-admin-ui/src/app/system/config/page.tsx has 467 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/security/page.tsx · ×1
  • openbank-admin-ui/src/app/security/page.tsx: 466 lines of code openbank-admin-ui/src/app/security/page.tsx:1 — openbank-admin-ui/src/app/security/page.tsx has 466 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/app/communication/edit/[personaKey]/page.tsx · ×1
  • openbank-admin-ui/src/app/communication/edit/[personaKey]/page.tsx: 464 lines of code openbank-admin-ui/src/app/communication/edit/[personaKey]/page.tsx:1 — openbank-admin-ui/src/app/communication/edit/[personaKey]/page.tsx has 464 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · openbank-admin-ui/src/components/campaigns/StepEditor.tsx · ×1
  • openbank-admin-ui/src/components/campaigns/StepEditor.tsx: 464 lines of code openbank-admin-ui/src/components/campaigns/StepEditor.tsx:1 — openbank-admin-ui/src/components/campaigns/StepEditor.tsx has 464 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R8 · Dependency Hygiene · Unlisted import '@sentry/core' · ×1
  • Unlisted import '@sentry/core' openbank-admin-ui/src/lib/telemetry/glitchtip.ts:6 — Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it — but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json.
R8 · Dependency Hygiene · Unused dependency '@hookform/resolvers' · ×1
  • Unused dependency '@hookform/resolvers' — Declared in openbank-admin-ui/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency '@radix-ui/react-dropdown-menu' · ×1
  • Unused dependency '@radix-ui/react-dropdown-menu' — Declared in openbank-admin-ui/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
R8 · Dependency Hygiene · Unused dependency '@radix-ui/react-label' · ×1
  • Unused dependency '@radix-ui/react-label' — Declared in openbank-admin-ui/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
Minor — 1234 finding(s)
D20 · ADR Quality · ADR lacks an enforcement field · ×357
  • ADR lacks an enforcement field docs/adr/0001-record-architecture-decisions.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0002-hexagonal-architecture-per-service.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0003-transactional-outbox-for-kafka.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0004-saga-for-multi-service-workflows.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0005-openapi-design-first.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0006-asyncapi-for-kafka-topics.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0007-vault-for-secrets-management.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0008-opentelemetry-for-observability.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0009-postgres-per-service.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0010-kubernetes-argocd-gitops.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0011-testing-pyramid.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0012-mpl-license-and-dco.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0013-shared-outbox-in-openbank-libs.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0014-openbank-libs-centralization-roadmap.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0016-virtual-threads-not-adopted-yet.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0017-secrets-via-vault.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0018-opa-for-fine-grained-authz.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0019-docs-as-service.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0020-code-coverage-kover-regression-floor.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0021-sca-decoupled-device-approval-no-auto-approve.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0022-analytics-layer-event-fed-clickhouse.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0023-analytics-regulatory-hardening.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0024-multi-currency-account-single-iban-pockets.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0025-per-currency-ledger-balancing-and-fx-revaluation.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • ADR lacks an enforcement field docs/adr/0026-oltp-reconciliation-source-readers.md:13 — Add an `enforcement:` frontmatter field or a plain `Enforcement:` header line (prose/test/analyzer/not-applicable) to make the rung explicit — the other ADRs in this repo already declare one.
  • + 332 more in this group — see findings.md.
D7 · Architectural Integrity · Classify ADR enforcement · ×357
  • Classify ADR enforcement: 1. Record Architecture Decisions docs/adr/0001-record-architecture-decisions.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 2. Hexagonal architecture per service docs/adr/0002-hexagonal-architecture-per-service.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 3. Transactional outbox for Kafka event publishing docs/adr/0003-transactional-outbox-for-kafka.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 4. Saga for multi-service workflows docs/adr/0004-saga-for-multi-service-workflows.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 5. OpenAPI 3.1 design-first for all external APIs docs/adr/0005-openapi-design-first.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 6. AsyncAPI 3.0 for all Kafka topics docs/adr/0006-asyncapi-for-kafka-topics.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 7. HashiCorp Vault for secrets management docs/adr/0007-vault-for-secrets-management.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 8. OpenTelemetry for observability docs/adr/0008-opentelemetry-for-observability.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 9. Postgres per service (database-per-service) docs/adr/0009-postgres-per-service.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 10. Kubernetes with ArgoCD GitOps deployment docs/adr/0010-kubernetes-argocd-gitops.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 11. Testing pyramid: unit + integration (Testcontainers) + E2E + load docs/adr/0011-testing-pyramid.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 12. MPL-2.0 licence + Developer Certificate of Origin docs/adr/0012-mpl-license-and-dco.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: Shared transactional outbox primitives in openbank-libs docs/adr/0013-shared-outbox-in-openbank-libs.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: openbank-libs as the shared service-infrastructure layer docs/adr/0014-openbank-libs-centralization-roadmap.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: Virtual Threads: not adopted yet — keep Kotlin coroutines docs/adr/0016-virtual-threads-not-adopted-yet.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: Move runtime secrets from application.yaml to HashiCorp Vault docs/adr/0017-secrets-via-vault.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: OPA (Open Policy Agent) for fine-grained per-resource authorization docs/adr/0018-opa-for-fine-grained-authz.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 19. Docs-as-Service — services self-publish their bundled documentation docs/adr/0019-docs-as-service.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 20. Code coverage: Kover with a per-module regression floor docs/adr/0020-code-coverage-kover-regression-floor.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 21. SCA push/biometric: decoupled device approval, never auto-approve docs/adr/0021-sca-decoupled-device-approval-no-auto-approve.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 22. Analytics/reporting layer: event-fed ClickHouse, not CDC, not a lakehouse docs/adr/0022-analytics-layer-event-fed-clickhouse.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 23. Analytics layer: closing the 9 regulatory findings (CNB/EBA/DORA/GDPR/BCBS 239) docs/adr/0023-analytics-regulatory-hardening.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 24. Multi-currency current account: single IBAN + currency pockets docs/adr/0024-multi-currency-account-single-iban-pockets.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 25. Per-currency ledger balancing, FX position accounts, and revaluation docs/adr/0025-per-currency-ledger-balancing-and-fx-revaluation.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • Classify ADR enforcement: 26. OLTP source-side reconciliation: per-service reconciliation-summary endpoints docs/adr/0026-oltp-reconciliation-source-readers.md — This record carries no `enforcement:` field, so nothing says whether the decision is checked by anything or is upheld by convention alone — and an unclassified record is counted as UNENFORCED in this dimension's score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or `enforcement: analyzer|test`); if it's a design decision, mark `enforcement: not-applicable` so it isn't counted as unenforced.
  • + 332 more in this group — see findings.md.
D31 · IaC & Container Security · Low IaC · ×254
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 229 more in this group — see findings.md.
D25 · ADR Conformance · ADR accepted but its delivery is incomplete · ×108
  • ADR accepted but its delivery is incomplete docs/adr/0006-asyncapi-for-kafka-topics.md:4 — `docs/adr/0006-asyncapi-for-kafka-topics.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0007-vault-for-secrets-management.md:4 — `docs/adr/0007-vault-for-secrets-management.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0014-openbank-libs-centralization-roadmap.md:4 — `docs/adr/0014-openbank-libs-centralization-roadmap.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0017-secrets-via-vault.md:4 — `docs/adr/0017-secrets-via-vault.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0019-docs-as-service.md:4 — `docs/adr/0019-docs-as-service.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0022-analytics-layer-event-fed-clickhouse.md:4 — `docs/adr/0022-analytics-layer-event-fed-clickhouse.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0023-analytics-regulatory-hardening.md:4 — `docs/adr/0023-analytics-regulatory-hardening.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0024-multi-currency-account-single-iban-pockets.md:4 — `docs/adr/0024-multi-currency-account-single-iban-pockets.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0025-per-currency-ledger-balancing-and-fx-revaluation.md:4 — `docs/adr/0025-per-currency-ledger-balancing-and-fx-revaluation.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0026-oltp-reconciliation-source-readers.md:4 — `docs/adr/0026-oltp-reconciliation-source-readers.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0028-lending-bounded-context.md:4 — `docs/adr/0028-lending-bounded-context.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0029-versioning-release-and-governance-as-code.md:4 — `docs/adr/0029-versioning-release-and-governance-as-code.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0030-supply-chain-security-and-ssdlc-hardening.md:4 — `docs/adr/0030-supply-chain-security-and-ssdlc-hardening.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0031-ai-agent-governance-and-operations.md:4 — `docs/adr/0031-ai-agent-governance-and-operations.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0034-unified-opa-authz-mcp-and-rest.md:4 — `docs/adr/0034-unified-opa-authz-mcp-and-rest.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0041-serverless-tier-scale-to-zero-on-existing-cluster.md:4 — `docs/adr/0041-serverless-tier-scale-to-zero-on-existing-cluster.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0047-governed-runtime-operational-control-plane.md:4 — `docs/adr/0047-governed-runtime-operational-control-plane.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0049-openbank-libs-consolidation-phase-4.md:4 — `docs/adr/0049-openbank-libs-consolidation-phase-4.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0051-generic-service-discovery-and-single-admin-gateway.md:4 — `docs/adr/0051-generic-service-discovery-and-single-admin-gateway.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0055-cross-service-search-contract.md:4 — `docs/adr/0055-cross-service-search-contract.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0061-dora-metrics-from-in-house-sources.md:4 — `docs/adr/0061-dora-metrics-from-in-house-sources.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0063-consumer-driven-contract-testing-pact-git-pact.md:4 — `docs/adr/0063-consumer-driven-contract-testing-pact-git-pact.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0068-onboarding-operations-cockpit.md:4 — `docs/adr/0068-onboarding-operations-cockpit.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0069-customer-onboarding-journey.md:4 — `docs/adr/0069-customer-onboarding-journey.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • ADR accepted but its delivery is incomplete docs/adr/0070-in-app-diagnostics-debug-surface.md:4 — `docs/adr/0070-in-app-diagnostics-debug-surface.md:4` records the decision as `decision-status: accepted` and its delivery as `delivery-status: partial`: by the record's own account the code does not carry out the decision it binds. Both fields are quoted from the ADR itself: this is the repository's own statement, not an inference from the code. Finish the delivery, or record what the code does instead (a superseding decision or an amended scope).
  • + 83 more in this group — see findings.md.
X10 · Duplicated predicate · Duplicated predicate · ×25
  • Duplicated predicate openbank-admin-ui/src/app/docs/lineage/page.tsx:260 — `!!activeNode && (e.from === activeNode || e.to === activeNode)` appears character-identically in 2 files — openbank-admin-ui/src/app/docs/lineage/page.tsx, openbank-admin-ui/src/app/infrastructure/topology/page.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate .github/scripts/main-red-watch-catchup.cjs:246 — `!Number.isSafeInteger(workflowId) || workflowId < 1` appears character-identically in 2 files — .github/scripts/main-red-watch-catchup.cjs, .github/scripts/main-red-watch-checkpoint.cjs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/lib/sdd/sddMandateContract.ts:107 — `!RFC3339.test(createdAt) || Number.isNaN(Date.parse(createdAt))` appears character-identically in 2 files — openbank-admin-ui/src/lib/sdd/sddMandateContract.ts, openbank-admin-ui/src/lib/swift/swiftMessageContract.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/app/api/context/complaints/[reference]/route.ts:22 — `!SAFE_VALUE.test(reference) || !SAFE_VALUE.test(caseId) || !PURPOSE.test(purpose)` appears character-identically in 2 files — openbank-admin-ui/src/app/api/context/complaints/[reference]/route.ts, openbank-admin-ui/src/app/api/context/incidents/[reference]/impact/route.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/app/merchants/page.tsx:692 — `!event.shiftKey && document.activeElement === last` appears character-identically in 5 files — openbank-admin-ui/src/app/merchants/page.tsx, openbank-admin-ui/src/app/product-catalog/page.tsx, openbank-admin-ui/src/components/layout/AppShell.tsx, openbank-admin-ui/src/components/layout/Sidebar.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/lib/accounts/detailContract.ts:25 — `!isRecord(value) || value.id !== requestedId` appears character-identically in 2 files — openbank-admin-ui/src/lib/accounts/detailContract.ts, openbank-admin-ui/src/lib/parties/partyEvidenceContract.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/lib/ledger/ledgerJournalContract.ts:42 — `!parsed || Number.isNaN(parsed.getTime()) || parsed.toISOString().slice(0, 10) !== value` appears character-identically in 3 files — openbank-admin-ui/src/lib/ledger/ledgerJournalContract.ts, openbank-admin-ui/src/lib/sdd/sddMandateContract.ts, openbank-admin-ui/src/lib/transactions/transactionSearchContract.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/app/devops/page.tsx:157 — `!value || typeof value !== 'object' || Array.isArray(value)` appears character-identically in 14 files — openbank-admin-ui/src/app/devops/page.tsx, openbank-admin-ui/src/app/docs/bcp/page.tsx, openbank-admin-ui/src/lib/accounts/openingContract.ts, openbank-admin-ui/src/lib/cards/clientContract.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/app/docs/lineage/page.tsx:145 — `(e.from === activeNode && e.to === id) || (e.to === activeNode && e.from === id)` appears character-identically in 2 files — openbank-admin-ui/src/app/docs/lineage/page.tsx, openbank-admin-ui/src/app/infrastructure/topology/page.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate REDACTED:53 — `Number.isFinite(s.amount) && s.amount > 0` appears character-identically in 2 files — REDACTED, REDACTED. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/lib/closings/evidence.ts:70 — `Number.isSafeInteger(value) && (value as number) >= 0` appears character-identically in 4 files — openbank-admin-ui/src/lib/closings/evidence.ts, openbank-admin-ui/src/lib/evidence/contentSnapshot.ts, openbank-admin-ui/src/lib/onboarding/evidence.ts, openbank-admin-ui/src/lib/security/incidentEvidence.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/scripts/collect-repository-documentation.mjs:51 — `a.service.localeCompare(b.service) || a.key.localeCompare(b.key)` appears character-identically in 2 files — openbank-admin-ui/scripts/collect-repository-documentation.mjs, openbank-admin-ui/src/lib/governance/flags.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/components/flow/StageBoard.tsx:85 — `candidate.length <= max || lines[lines.length - 1] === ''` appears character-identically in 2 files — openbank-admin-ui/src/components/flow/StageBoard.tsx, openbank-admin-ui/src/components/lending/OriginationPipeline.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/app/balance-sheet/snapshots/[id]/irrbb/page.tsx:187 — `curveSetsOrNull === null || curveSets.length === 0` appears character-identically in 2 files — openbank-admin-ui/src/app/balance-sheet/snapshots/[id]/irrbb/page.tsx, openbank-admin-ui/src/app/balance-sheet/snapshots/[id]/liquidity-forecast/page.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/app/balance-sheet/snapshots/[id]/irrbb/page.tsx:227 — `data.worstCase.scenario === s.scenario || data.worstCase.byCurrency[c.currency] === s.scenario` appears character-identically in 2 files — openbank-admin-ui/src/app/balance-sheet/snapshots/[id]/irrbb/page.tsx, openbank-admin-ui/src/components/balance-sheet/irrbbSummary.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/components/cards/IssueCardDialog.tsx:612 — `draft.dailyMinorUnits === null || draft.monthlyMinorUnits === null` appears character-identically in 2 files — openbank-admin-ui/src/components/cards/IssueCardDialog.tsx, openbank-admin-ui/src/lib/cards/issue.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/app/docs/lineage/page.tsx:148 — `e.from === selected || e.to === selected` appears character-identically in 2 files — openbank-admin-ui/src/app/docs/lineage/page.tsx, openbank-admin-ui/src/app/infrastructure/topology/page.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/app/iaops/cases/[caseId]/page.tsx:319 — `entry.signalId && entry.rolloutId && ' · '` appears character-identically in 2 files — openbank-admin-ui/src/app/iaops/cases/[caseId]/page.tsx, openbank-admin-ui/src/components/agent/CaseRuntimeViews.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/app/accounts/new/page.tsx:60 — `error instanceof DOMException && error.name === 'AbortError'` appears character-identically in 3 files — openbank-admin-ui/src/app/accounts/new/page.tsx, REDACTED, openbank-admin-ui/src/app/parties/[id]/page.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/app/docs/api/page.tsx:710 — `event.key !== 'Enter' && event.key !== ' '` appears character-identically in 2 files — openbank-admin-ui/src/app/docs/api/page.tsx, openbank-admin-ui/src/components/campaigns/JourneyEditor.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/app/audit/page.tsx:245 — `event.key === 'Enter' || event.key === ' '` appears character-identically in 3 files — openbank-admin-ui/src/app/audit/page.tsx, openbank-admin-ui/src/app/product-catalog/page.tsx, openbank-admin-ui/src/components/party/CustomerContextGraph.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/app/merchants/page.tsx:691 — `event.shiftKey && document.activeElement === first` appears character-identically in 5 files — openbank-admin-ui/src/app/merchants/page.tsx, openbank-admin-ui/src/app/product-catalog/page.tsx, openbank-admin-ui/src/components/layout/AppShell.tsx, openbank-admin-ui/src/components/layout/Sidebar.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/scripts/generate-governance.mjs:80 — `f.endsWith('.yaml') || f.endsWith('.yml')` appears character-identically in 2 files — openbank-admin-ui/scripts/generate-governance.mjs, openbank-admin-ui/src/lib/governance/flags.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/app/balance-sheet/snapshots/[id]/capital/page.tsx:292 — `g.items.length > 1 || g.unit === 'loans'` appears character-identically in 2 files — openbank-admin-ui/src/app/balance-sheet/snapshots/[id]/capital/page.tsx, openbank-admin-ui/src/app/balance-sheet/snapshots/[id]/liquidity/page.tsx. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate openbank-admin-ui/src/lib/parties/kycEvidenceContract.ts:36 — `isText(value) && Number.isFinite(Date.parse(value))` appears character-identically in 2 files — openbank-admin-ui/src/lib/parties/kycEvidenceContract.ts, openbank-admin-ui/src/lib/parties/partyEvidenceContract.ts. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
D41 · Kernel & Syscall Confinement · No seccomp profile · ×21
  • No seccomp profile REDACTED:111 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:173 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:10 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:100 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:190 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:280 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:370 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:459 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:550 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:641 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:735 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:826 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:917 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:1008 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:1099 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:1190 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:1281 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:1372 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:1466 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:333 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:26 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
X7 · Silent fallback defaults · Silent fallback default in catch · ×20
  • Silent fallback default in catch openbank-libs-runtime/src/main/kotlin/com/openbank/libs/authz/ServiceAccountIdentity.kt:124 — `machineClientId` swallows every exception into `""` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/infrastructure/adapter/TestScanAdapter.kt:123 — `runBlockingViolations` swallows every exception into `emptyList()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/infrastructure/adapter/TestScanAdapter.kt:138 — `pactGatedClasses` swallows every exception into `emptyList()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/infrastructure/adapter/TestScanAdapter.kt:153 — `pactProviderDeclarations` swallows every exception into `emptyList()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch openbank-flaky-test-hunter/src/main/kotlin/com/openbank/flakytest/infrastructure/adapter/TestScanAdapter.kt:177 — `declaredCount` swallows every exception into `0` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/adapter/PolicyScanAdapter.kt:111 — `emittedPrincipalTypes` swallows every exception into `emptySet()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/adapter/PolicyScanAdapter.kt:160 — `principalTypeComparisons` swallows every exception into `emptyList()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/adapter/PolicyScanAdapter.kt:177 — `unwrappedAgentIdComparisons` swallows every exception into `emptyList()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch openbank-authz-policy-auditor/src/main/kotlin/com/openbank/authzaudit/infrastructure/adapter/PolicyScanAdapter.kt:190 — `charterAllowedReferences` swallows every exception into `emptyList()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default in catch .github/scripts/admin_ui_trace_ipc.py:457 — `finish` swallows every exception into `return 1` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch .github/scripts/aggregate-admin-ui-http-trace.py:56 — `client_version` swallows every exception into `return 'unknown'` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch .github/scripts/check-build-time-bean-selection.py:211 — `collect_build_env` swallows every exception into `return {}` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch .github/scripts/check-source-service-presence.py:174 — `produced_topics` swallows every exception into `return set()` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch .github/scripts/verify-audit-anchors.py:142 — `verify_signature` swallows every exception into `return False` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch scripts/push-test-results.py:134 — `run` (in `git_info`) swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch openbank-admin-ui/scripts/request-send-trace.mjs:159 — `createRequestSendTrace.ready` swallows every exception into `return false` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch openbank-admin-ui/scripts/collect-prod-readiness.mjs:134 — `readText` swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch openbank-admin-ui/scripts/collect-prod-readiness.mjs:397 — `committedPacts` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch openbank-admin-ui/scripts/collect-prod-readiness.mjs:638 — `existingBundleCount` swallows every exception into `return 0` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch REDACTED:32 — `readText` swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
X7 · Silent fallback defaults · Silent fallback default on parse failure · ×18
  • Silent fallback default on parse failure openbank-libs-testing/src/main/kotlin/com/openbank/libs/testing/evidence/HistoryClassOrderer.kt:62 — `readPriorities` answers `emptyMap()` when `InvalidPathException` is thrown, with no log or throw — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default on parse failure openbank-libs-runtime/src/main/kotlin/com/openbank/libs/warmup/GenericWarmups.kt:34 — `entities` answers `"no Hibernate Reactive on classpath"` when `ClassNotFoundException` is thrown, with no log or throw — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default on parse failure openbank-libs-runtime/src/main/kotlin/com/openbank/libs/warmup/ReactivePoolWarmup.kt:22 — `selectOne` answers `"no reactive sql client on classpath"` when `ClassNotFoundException` is thrown, with no log or throw — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing.
  • Silent fallback default on parse failure .github/scripts/check-configproperty-supplied.py:175 — `declared_keys` returns `set()` when `(yaml.YAMLError, OSError, UnicodeDecodeError)` is raised, with no log or raise — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default on parse failure .github/scripts/check-configproperty-supplied.py:219 — `empty_valued_keys` returns `{}` when `(yaml.YAMLError, OSError, UnicodeDecodeError)` is raised, with no log or raise — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default on parse failure .github/scripts/check-msg-channel-image-parity.py:264 — `prefetch_full_shas` returns `0` when `ValueError` is raised, with no log or raise — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default on parse failure .github/scripts/check-test-intelligence-ecosystem.py:891 — `service_ci_observer_source` returns `''` when `(KeyError, TypeError, AttributeError, ValueError, OSError, yaml.YAMLError)` is raised, with no log or raise — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default on parse failure .github/scripts/check-test-intelligence-ecosystem.py:993 — `service_ci_evidence_source` returns `''` when `(KeyError, TypeError, AttributeError, ValueError, OSError, StopIteration, yaml.YAMLError)` is raised, with no log or raise — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default on parse failure .github/scripts/record-rerun-flake.py:260 — `parse_junit_failures` returns `[]` when `ET.ParseError` is raised, with no log or raise — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default on parse failure .github/scripts/runtime-conformance.py:655 — `_items` returns `[]` when `json.JSONDecodeError` is raised, with no log or raise — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default on parse failure .github/scripts/trace-admin-ui-curl.py:30 — `destination` returns `'unknown'` when `ValueError` is raised, with no log or raise — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default on parse failure .github/scripts/vex-triage.py:158 — `osv_severity` returns `'high'` when `(urllib.error.URLError, json.JSONDecodeError, TimeoutError)` is raised, with no log or raise — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default on parse failure openbank-infra/scripts/cloud-finops-collect.py:118 — `_f` returns `0.0` when `(TypeError, ValueError)` is raised, with no log or raise — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default on parse failure REDACTED:72 — `dns_check` returns `False` when `(OSError, ValueError, KeyError, TimeoutError)` is raised, with no log or raise — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default on parse failure REDACTED:81 — `website_check` returns `False` when `(OSError, ValueError, TimeoutError)` is raised, with no log or raise — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default on parse failure REDACTED:91 — `login_check` returns `False` when `(OSError, ValueError, KeyError, TimeoutError)` is raised, with no log or raise — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default on parse failure REDACTED:101 — `api_edge_check` returns `False` when `(OSError, ValueError, TimeoutError)` is raised, with no log or raise — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default on parse failure REDACTED:229 — `snapshot_is_fresh` returns `False` when `ValueError` is raised, with no log or raise — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
DM2 · Strongly-typed ids · Primitive id on a domain type · ×9
  • Primitive id on a domain type: ApprovalEvent.resourceId openbank-libs-domain/src/main/kotlin/com/openbank/libs/foureyes/ApprovalEvent.kt:35 — `ApprovalEvent.resourceId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that.
  • Primitive id on a domain type: KybEventPayload.actorId openbank-kyb-service/src/main/kotlin/com/openbank/kyb/domain/model/KybEventPayloads.kt:37 — `KybEventPayload.actorId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that.
  • Primitive id on a domain type: SpendReserved.idempotencyKey openbank-delegation-service/src/main/kotlin/com/openbank/delegation/domain/event/DelegationEvents.kt:221 — `SpendReserved.idempotencyKey` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that.
  • Primitive id on a domain type: ConsentGranted.granteeId openbank-consent-service/src/main/kotlin/com/openbank/consent/domain/event/ConsentEvents.kt:20 — `ConsentGranted.granteeId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that.
  • Primitive id on a domain type: ConsentRevoked.granteeId openbank-consent-service/src/main/kotlin/com/openbank/consent/domain/event/ConsentEvents.kt:74 — `ConsentRevoked.granteeId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that.
  • Primitive id on a domain type: ConsentSuperseded.granteeId openbank-consent-service/src/main/kotlin/com/openbank/consent/domain/event/ConsentEvents.kt:99 — `ConsentSuperseded.granteeId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that.
  • Primitive id on a domain type: ConsentExpired.granteeId openbank-consent-service/src/main/kotlin/com/openbank/consent/domain/event/ConsentEvents.kt:114 — `ConsentExpired.granteeId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that.
  • Primitive id on a domain type: ConsentRejected.granteeId openbank-consent-service/src/main/kotlin/com/openbank/consent/domain/event/ConsentEvents.kt:127 — `ConsentRejected.granteeId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that.
  • Primitive id on a domain type: SavingsWithdrawalApproved.approvalId openbank-account-service/src/main/kotlin/com/openbank/account/domain/event/AccountEvents.kt:111 — `SavingsWithdrawalApproved.approvalId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that.
X6 · Hand-rolled structured-format parsing · Hand-rolled JSON/XML parsing via regex · ×7
  • Hand-rolled JSON/XML parsing via regex openbank-libs-testing/src/main/kotlin/com/openbank/libs/testing/outbox/OutboxRepositoryV2ConformanceIT.kt:92 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex openbank-customer-edge/src/main/kotlin/com/openbank/customeredge/infrastructure/rest/CustomerEdgeResource.kt:5903 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex openbank-campaign-service/src/main/kotlin/com/openbank/campaign/infrastructure/segment/SilverSegmentEvaluator.kt:206 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex openbank-campaign-service/src/main/kotlin/com/openbank/campaign/infrastructure/segment/SilverSegmentEvaluator.kt:207 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JVM code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex openbank-admin-ui/scripts/collect-quality-report.mjs:28 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex openbank-admin-ui/scripts/generate-governance.mjs:121 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex openbank-admin-ui/scripts/generate-origination-graph.mjs:81 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
D29 · Static Analysis (SAST) · REDACTED · ×5
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · Low CVE · ×3
  • REDACTED
  • REDACTED
  • REDACTED
D10 · Test Quality · Mock-dominated test · ×2
  • Mock-dominated test: closes on Escape while idle but not while busy openbank-admin-ui/src/test/devops-remediation-review-dialog.test.tsx:170 — This test sets up 4 test doubles (for example `vi.fn`) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: scrolls to the %s fragment after governance data loads openbank-admin-ui/src/test/iaops-agent-card.test.tsx:98 — This test sets up 3 test doubles (for example `vi.fn`) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
D21 · Naming Consistency · `baseURL` spells `URL` where 64 names in the project spell it `Url` · ×2
  • `baseURL` spells `URL` where 64 names in the project spell it `Url` openbank-admin-ui/e2e/helpers/auth.ts:31 — 64 of 66 names in project repository spell the token `Url` (64 of 66; unit: names in project repository containing `Url`). Peers: route.agentUrl (openbank-admin-ui/src/app/api/agent/mcp/route.ts:12); route.mcpUrl (openbank-admin-ui/src/app/api/agent/obo-mcp/route.ts:33); route.mcpSessionUrl (openbank-admin-ui/src/app/api/agent/obo-mcp/route.ts:40); route.kafkaUiBaseUrl (REDACTED:32); FinOpsAnomaly.proposalPrUrl (REDACTED:74). Rename to `baseUrl`. [rule N6]
  • `baseURL` spells `URL` where 64 names in the project spell it `Url` openbank-admin-ui/e2e/helpers/auth.ts:48 — 64 of 66 names in project repository spell the token `Url` (64 of 66; unit: names in project repository containing `Url`). Peers: route.agentUrl (openbank-admin-ui/src/app/api/agent/mcp/route.ts:12); route.mcpUrl (openbank-admin-ui/src/app/api/agent/obo-mcp/route.ts:33); route.mcpSessionUrl (openbank-admin-ui/src/app/api/agent/obo-mcp/route.ts:40); route.kafkaUiBaseUrl (REDACTED:32); FinOpsAnomaly.proposalPrUrl (REDACTED:74). Rename to `baseUrl`. [rule N6]
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
X7 · Silent fallback defaults · Pending state with no failure state · ×2
  • Pending state with no failure state openbank-admin-ui/src/components/closings/RegulatoryPeriodPanel.tsx:179 — The view draws `<div class="skeleton" style= />` under `loading`, but `loading` is settled by a load that can fail and the component draws no failure state, so a failed load is shown as "not yet" for ever, or as the loaded state over its initial value. Give the component a failure state and draw it.
  • Pending state with no failure state openbank-admin-ui/src/app/onboarding/page.tsx:196 — The view draws `<div role="status" aria-live="polite" aria-busy="true" aria-label= style= >` under `countsLoading`, but `countsLoading` is settled by a load that can fail and the component draws no failure state, so a failed load is shown as "not yet" for ever, or as the loaded state over its initial value. Give the component a failure state and draw it.
C5 · Data-Subject Rights · Partial data-subject-rights support · ×1
  • Partial data-subject-rights support — Corroborated rights: erasure ✓ · export ✗ · consent ✓. Each tick means this scan found code in the repository implementing that right — a deletion/anonymisation path for erasure, a data-export or portability path for export, and consent state recorded alongside the personal data it authorises. A ✗ therefore means no such code was recognised HERE, not that the right is unsupported: a capability provided by a platform, a manual runbook, or code spelled in a way this scan does not match is not visible to it. Confirm before treating a cross as a gap; where it is one, the right has to be fulfilled manually.
D21 · Naming Consistency · `traceID` spells `ID` where 209 names in the project spell it `Id` · ×1
  • `traceID` spells `ID` where 209 names in the project spell it `Id` openbank-admin-ui/src/lib/observability/tempo-evidence.ts:4 — 209 of 210 names in project repository spell the token `Id` (209 of 210; unit: names in project repository containing `Id`). Peers: route.bindSession(sessionId) (openbank-admin-ui/src/app/api/agent/obo-mcp/route.ts:74); CampaignEngagementRow.campaignId (openbank-admin-ui/src/app/api/campaigns/route.ts:20); route.scopedRowsSql(partyId) (openbank-admin-ui/src/app/api/customer-360/[partyId]/route.ts:78); route.empty(partyId) (openbank-admin-ui/src/app/api/customer-360/[partyId]/route.ts:97); route.resourceKey(resourceId) (openbank-admin-ui/src/app/api/delegations/effective-access/[partyId]/route.ts:40). Rename to `traceId`. [rule N6]
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×1
  • Projects may be oversized for their cohesion — 25 of 85 project(s) overshoot their size bounds, lowering Project Cohesion to 4.3/10. The most over is `openbank-admin-ui` (118377 LoC, 1283 module-visible types across 442 directories). Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D28 · Secrets (history) · Rotate the exposed credentials · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
P10 · Library API & versioning · Large public API surface · ×1
  • Large public API surface — 1497/1584 types (95%) declared in the published library are public. For a library, every public type is a stability contract — keep implementation types off the surface and expose only the intended API.
P2 · Observability · Logging is not universal · ×1
  • Logging is not universal — Only 68/73 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `.`, `openbank-admin-ui`, `openbank-document-renderer`, `openbank-libs-testing`, `openbank-products`.
P3 · Security & performance tooling · Dependabot does not watch pip · ×1
  • Dependabot does not watch pip REDACTED:2 — `REDACTED` schedules updates, but no `package-ecosystem` entry covers `pip`, which this tree depends on — so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the `updates:` list.
R7 · Dead Code · Unused export 'IRRBB_GAP_CODES' · ×1
  • Unused export 'IRRBB_GAP_CODES' openbank-admin-ui/src/components/balance-sheet/contracts.ts:133 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'responseProductSchema' · ×1
  • Unused export 'responseProductSchema' openbank-admin-ui/src/components/treasury/contracts.ts:25 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'FxSide' · ×1
  • Unused export 'FxSide' openbank-admin-ui/src/components/treasury/contracts.ts:135 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'FxTerms' · ×1
  • Unused export 'FxTerms' openbank-admin-ui/src/components/treasury/contracts.ts:136 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'TreasuryErrorCode' · ×1
  • Unused export 'TreasuryErrorCode' openbank-admin-ui/src/components/treasury/contracts.ts:145 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'NostroBreak' · ×1
  • Unused export 'NostroBreak' openbank-admin-ui/src/components/treasury/contracts.ts:248 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'NostroStatementEntry' · ×1
  • Unused export 'NostroStatementEntry' openbank-admin-ui/src/components/treasury/contracts.ts:252 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'NostroLedgerLine' · ×1
  • Unused export 'NostroLedgerLine' openbank-admin-ui/src/components/treasury/contracts.ts:253 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'NostroMatch' · ×1
  • Unused export 'NostroMatch' openbank-admin-ui/src/components/treasury/contracts.ts:254 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'OPERATOR_APPROVAL_DOMAINS' · ×1
  • Unused export 'OPERATOR_APPROVAL_DOMAINS' openbank-admin-ui/src/lib/approvals/operator.ts:13 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'GateHealthProvenance' · ×1
  • Unused export 'GateHealthProvenance' openbank-admin-ui/src/lib/evidence/gateHealthSnapshot.ts:87 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'GateHealthSnapshotResult' · ×1
  • Unused export 'GateHealthSnapshotResult' openbank-admin-ui/src/lib/evidence/gateHealthSnapshot.ts:88 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'validateGateHealthManifest' · ×1
  • Unused export 'validateGateHealthManifest' openbank-admin-ui/src/lib/evidence/gateHealthSnapshot.ts:92 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'scalesToZero' · ×1
  • Unused export 'scalesToZero' openbank-admin-ui/src/lib/finops/serverlessTiers.ts:66 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'loadAgentCharter' · ×1
  • Unused export 'loadAgentCharter' openbank-admin-ui/src/lib/governance/agentCharters.ts:130 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'loadThreatModelIndex' · ×1
  • Unused export 'loadThreatModelIndex' openbank-admin-ui/src/lib/governance/docs.ts:165 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'missingThreatModels' · ×1
  • Unused export 'missingThreatModels' openbank-admin-ui/src/lib/governance/docs.ts:176 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'loadAgentCharterDocIndex' · ×1
  • Unused export 'loadAgentCharterDocIndex' openbank-admin-ui/src/lib/governance/docs.ts:211 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'loadFlagCatalog' · ×1
  • Unused export 'loadFlagCatalog' openbank-admin-ui/src/lib/governance/flags.ts:146 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'getGovernanceManifestByService' · ×1
  • Unused export 'getGovernanceManifestByService' openbank-admin-ui/src/lib/governance/governanceLoader.ts:55 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'eksVersion' · ×1
  • Unused export 'eksVersion' openbank-admin-ui/src/lib/platform-versions.ts:57 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'lokiChartVersion' · ×1
  • Unused export 'lokiChartVersion' openbank-admin-ui/src/lib/platform-versions.ts:58 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'nodeGroupSummary' · ×1
  • Unused export 'nodeGroupSummary' openbank-admin-ui/src/lib/platform-versions.ts:61 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'catalogPaths' · ×1
  • Unused export 'catalogPaths' openbank-admin-ui/src/lib/product-catalog-v2.ts:99 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'ParamValue' · ×1
  • Unused export 'ParamValue' openbank-admin-ui/src/lib/reporting/registry.ts:59 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'componentFolder' · ×1
  • Unused export 'componentFolder' REDACTED:68 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'formatDate' · ×1
  • Unused export 'formatDate' openbank-admin-ui/src/lib/utils.ts:20 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'formatIban' · ×1
  • Unused export 'formatIban' openbank-admin-ui/src/lib/utils.ts:30 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused export 'ResilienceConfig' · ×1
  • Unused export 'ResilienceConfig' openbank-admin-ui/src/types/index.ts:171 — Nothing imports this binding — it is safe to review for removal.
R7 · Dead Code · Unused module-local declaration 'KillSwitchEnvelope' · ×1
  • Unused module-local declaration 'KillSwitchEnvelope' openbank-admin-ui/src/app/api/iaops/kill-switch/route.ts:25 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'FxRate' · ×1
  • Unused module-local declaration 'FxRate' openbank-admin-ui/src/app/fx/page.tsx:21 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'MarketDimension' · ×1
  • Unused module-local declaration 'MarketDimension' openbank-admin-ui/src/lib/catalog-offer-selection.ts:8 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R8 · Dependency Hygiene · Test-only dependency 'dompurify' in production deps · ×1
  • Test-only dependency 'dompurify' in production deps openbank-admin-ui/package.json:52 — Only test files import it (first: openbank-admin-ui/src/test/mermaid-labels.test.ts:6) — move it to devDependencies.
X2 · Cancellation propagation · Not all async functions that make a request accept an AbortSignal · ×1
  • Not all async functions that make a request accept an AbortSignal — Only 191/213 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up — a page navigated away from, an unmounted component, a timed-out job. Take a `signal` (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
Minor — 2 finding(s)
D10 · Test Quality · Skipped (documented) · ×1
  • Skipped (documented): (unnamed test) openbank-admin-ui/src/test/bff-tracing.test.ts:113 — Skipped with a documented reason — a deferral, not lazy debt: declared with no body — a pending test the runner lists but never runs
D24 · Comment Value · doc comments repeat the names · ×1
  • doc comments repeat the names openbank-admin-ui/src/lib/loyalty/lipaContent.ts:21 — 0 of 5 documented parameters and 1 of 1152 summaries in `openbank-admin-ui` only repeat the member or parameter name (e.g. "What the rule is." for `rule`). Delete the restating tags, or add what the name does not say.

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)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-a5de9da1b8114ccca67cbc2e7cd030ed/history.json --exit-code 0 --source .2artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-a5de9da1b8114ccca67cbc2e7cd030ed/tree.json --exit-code 0 --source .1artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/canine-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt --exclude openbank-libs-domain/api --exclude openbank-libs-finance/api --exclude openbank-libs-fincrime/api --exclude openbank-libs-iso20022/api --exclude openbank-libs-lending/api --exclude openbank-libs-runtime/api --exclude openbank-libs-temporal/api --exclude openbank-libs-testing/api .282artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update77artifacts/raw/trivy-fs.json
D31 · IaC & Container Securitytrivy—trivy config --format json --quiet .1530artifacts/raw/trivy-config.json
D32 · Data Compliance (PII/GDPR)semgrep—semgrep --config /opt/semgrep-rules/gdpr.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt --exclude openbank-libs-domain/api --exclude openbank-libs-finance/api --exclude openbank-libs-fincrime/api --exclude openbank-libs-iso20022/api --exclude openbank-libs-lending/api --exclude openbank-libs-runtime/api --exclude openbank-libs-temporal/api --exclude openbank-libs-testing/api .8artifacts/raw/semgrep-gdpr.json
D43 · Malicious Dependenciestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update0artifacts/raw/trivy-fs.json

Run 01a1bf11-a30a-7272-8ed5-0713de2756d2 · 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