aws-samples / aws-appconfig-feature-flags
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:
    • 939 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 46 duplicated lines
  • 3 duplicates
system4% (46 lines)
Duplication per Extension
yaml21% (34 lines)
js1% (12 lines)
Duplication per Component (primary)
backend21% (34 lines)
frontend/src/components3% (12 lines)
frontend/src0% (0 lines)
frontend/src/services0% (0 lines)
frontend/src/context0% (0 lines)
frontend/src/pages0% (0 lines)
frontend/public0% (0 lines)
backend/src/getFeatureFlags0% (0 lines)
backend/src/FeatureFlagLayer0% (0 lines)
backend/src/getAllProducts0% (0 lines)
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
10 x 2 backend
backend
template.yaml
template.yaml
60:69 (6%)
99:108 (6%)
view
7 x 2 backend
backend
template.yaml
template.yaml
53:59 (4%)
90:96 (4%)
view
6 x 2 frontend/src/components
frontend/src/components
CheckoutPayment.js
CheckoutSummary.js
18:23 (14%)
95:100 (5%)
view