opensearch-project / opensearch-dashboards-functional-test
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 4% duplication:
    • 722 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 36 duplicated lines
  • 3 duplicates
system4% (36 lines)
Duplication per Extension
js5% (36 lines)
Duplication per Component (primary)
cypress/integration/core-opensearch-dashboards/vanilla-opensearch-dashboards7% (24 lines)
cypress/integration/common3% (12 lines)
cypress/plugins0% (0 lines)
cypress/utils0% (0 lines)
cypress/integration/core-opensearch-dashboards/opensearch-dashboards0% (0 lines)
cypress/integration/plugins/anomaly-detection-dashboards-plugin0% (0 lines)
cypress/support0% (0 lines)
ROOT0% (0 lines)
ISSUE_TEMPLATE0% (0 lines)
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
6 x 2 cypress/integration/common
cypress/integration/common
ad_dashboard_sample_data_spec.js
ad_dashboard_sample_data_spec.js
58:65 (8%)
77:84 (8%)
view
6 x 2 cypress/integration/core...a-opensearch-dashboards
cypress/integration/core...a-opensearch-dashboards
dashboard_filtering_spec.js
dashboard_filtering_spec.js
363:369 (1%)
400:405 (1%)
view
6 x 2 cypress/integration/core...a-opensearch-dashboards
cypress/integration/core...a-opensearch-dashboards
dashboard_filtering_spec.js
dashboard_filtering_spec.js
144:149 (1%)
219:224 (1%)
view