aws-samples / realtime-fraud-prevention
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
  • 10% duplication:
    • 1,027 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 110 duplicated lines
  • 9 duplicates
system10% (110 lines)
Duplication per Extension
yml14% (110 lines)
Duplication per Component (primary)
ROOT14% (110 lines)
lambda-functions0% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
19 x 2 ROOT
ROOT
Realtime_Fraud_Prevention_CFN.yml
Realtime_Fraud_Prevention_CFN.yml
170:188 (2%)
215:233 (2%)
view
9 x 2 ROOT
ROOT
Realtime_Fraud_Prevention_CFN.yml
Realtime_Fraud_Prevention_CFN.yml
180:188 (1%)
319:327 (1%)
view
9 x 2 ROOT
ROOT
Realtime_Fraud_Prevention_CFN.yml
Realtime_Fraud_Prevention_CFN.yml
170:178 (1%)
309:317 (1%)
view
9 x 2 ROOT
ROOT
Realtime_Fraud_Prevention_CFN.yml
Realtime_Fraud_Prevention_CFN.yml
225:233 (1%)
319:327 (1%)
view
9 x 2 ROOT
ROOT
Realtime_Fraud_Prevention_CFN.yml
Realtime_Fraud_Prevention_CFN.yml
215:223 (1%)
309:317 (1%)
view
7 x 2 ROOT
ROOT
Realtime_Fraud_Prevention_CFN.yml
Realtime_Fraud_Prevention_CFN.yml
396:402 (<1%)
427:433 (<1%)
view
7 x 2 ROOT
ROOT
Realtime_Fraud_Prevention_CFN.yml
Realtime_Fraud_Prevention_CFN.yml
341:347 (<1%)
532:538 (<1%)
view
7 x 2 ROOT
ROOT
Realtime_Fraud_Prevention_CFN.yml
Realtime_Fraud_Prevention_CFN.yml
62:68 (<1%)
75:81 (<1%)
view
6 x 2 ROOT
ROOT
Realtime_Fraud_Prevention_CFN.yml
Realtime_Fraud_Prevention_CFN.yml
200:205 (<1%)
245:250 (<1%)
view