aws-samples / amazon-resilient-fix-engine-demo
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
  • 86% duplication:
    • 8,493 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 7,359 duplicated lines
  • 2,297 duplicates
system86% (7,359 lines)
Duplication per Extension
yml95% (7,303 lines)
cfg64% (56 lines)
Duplication per Component (primary)
cloudformation95% (7,303 lines)
src/main/resources/config64% (56 lines)
src/main/java/com/amazonaws/fixengineonaws0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 2,297 duplicates...
Size#FoldersFilesLinesCode
524 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
343:866 (14%)
351:874 (13%)
view
337 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
1844:2180 (9%)
2009:2345 (8%)
view
332 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
2695:3026 (9%)
3006:3337 (8%)
view
281 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
3107:3387 (7%)
3424:3704 (7%)
view
267 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
868:1134 (7%)
878:1144 (6%)
view
244 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
2212:2455 (6%)
2381:2624 (6%)
view
218 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
1535:1752 (5%)
1681:1898 (5%)
view
140 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
1395:1534 (3%)
1508:1647 (3%)
view
134 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
3513:3646 (3%)
3870:4003 (3%)
view
131 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
61:191 (3%)
61:191 (3%)
view
125 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
3388:3512 (3%)
3733:3857 (3%)
view
91 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
1753:1843 (2%)
1916:2006 (2%)
view
86 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
2464:2549 (2%)
2655:2740 (2%)
view
86 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
1135:1220 (2%)
1147:1232 (2%)
view
80 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
2550:2629 (2%)
2743:2822 (1%)
view
80 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
1221:1300 (2%)
1235:1314 (1%)
view
69 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
192:260 (1%)
198:266 (1%)
view
55 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
1:55 (1%)
1:55 (1%)
view
52 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
3028:3079 (1%)
3341:3392 (1%)
view
41 x 2 cloudformation
cloudformation
FIXEngineApplication.yml
FIXEngineVPCApplication.yml
1354:1394 (1%)
1465:1505 (1%)
view