Skip to content

Sonar: duplication — 9,792 duplicated lines (4.8%) across 139 files in 439 blocks #46

Description

@sirdeggen

Tracking issue for #38.

SonarCloud reports:

  • 9,792 duplicated lines (4.8% density)
  • 439 duplicated blocks
  • 139 duplicated files

Suggested approach

  1. Pull the duplications report from SonarCloud UI for top-offending file pairs.
  2. Extract shared helpers into a utils or internal module per package.
  3. For cross-package duplication (e.g. similar transaction-builder logic in helpers/bsv-wallet-helper and wallet/wallet-toolbox), evaluate whether a shared internal package is appropriate.

Reproduce

SonarCloud UI: https://sonarcloud.io/component_measures?id=bsv-blockchain_ts-stack&metric=duplicated_lines_density

Refs: #38

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions