awslabs / aws-cross-account-cicd-git-actions-prereq
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
  • 28% duplication:
    • 245 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 69 duplicated lines
  • 14 duplicates
system28% (69 lines)
Duplication per Extension
ts28% (69 lines)
Duplication per Component (primary)
target-account/src44% (62 lines)
tools-account/src9% (7 lines)
target-account0% (0 lines)
tools-account0% (0 lines)
Longest Duplicates
The list of 14 longest duplicates.
See data for all 14 duplicates...
Size#FoldersFilesLinesCode
10 x 2 target-account/src
target-account/src
cdk-stack.ts
cdk-stack.ts
69:78 (7%)
143:152 (7%)
view
8 x 2 target-account/src
target-account/src
cdk-stack.ts
cdk-stack.ts
54:61 (5%)
74:81 (5%)
view
8 x 2 target-account/src
target-account/src
cdk-stack.ts
cdk-stack.ts
74:81 (5%)
83:90 (5%)
view
8 x 2 target-account/src
target-account/src
cdk-stack.ts
cdk-stack.ts
65:72 (5%)
128:135 (5%)
view
8 x 2 target-account/src
target-account/src
cdk-stack.ts
cdk-stack.ts
74:81 (5%)
128:135 (5%)
view
8 x 2 target-account/src
target-account/src
cdk-stack.ts
cdk-stack.ts
65:72 (5%)
83:90 (5%)
view
8 x 2 target-account/src
target-account/src
cdk-stack.ts
cdk-stack.ts
54:61 (5%)
128:135 (5%)
view
8 x 2 target-account/src
target-account/src
cdk-stack.ts
cdk-stack.ts
54:61 (5%)
83:90 (5%)
view
8 x 2 target-account/src
target-account/src
cdk-stack.ts
cdk-stack.ts
54:61 (5%)
65:72 (5%)
view
8 x 2 target-account/src
target-account/src
cdk-stack.ts
cdk-stack.ts
83:90 (5%)
128:135 (5%)
view
8 x 2 target-account/src
target-account/src
cdk-stack.ts
cdk-stack.ts
92:99 (5%)
148:155 (5%)
view
8 x 2 target-account/src
target-account/src
cdk-stack.ts
cdk-stack.ts
65:72 (5%)
74:81 (5%)
view
7 x 2 target-account/src
tools-account/src
cdk-stack.ts
cdk-stack.ts
92:98 (5%)
47:53 (9%)
view
7 x 2 target-account/src
tools-account/src
cdk-stack.ts
cdk-stack.ts
148:154 (5%)
47:53 (9%)
view