aws / aws-for-fluent-bit
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
  • 17% duplication:
    • 1,002 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 180 duplicated lines
  • 19 duplicates
system17% (180 lines)
Duplication per Extension
yml31% (108 lines)
py35% (60 lines)
yaml3% (12 lines)
Duplication per Component (primary)
ROOT40% (90 lines)
troubleshooting/tools/color-logger15% (72 lines)
integ/resources15% (18 lines)
integ/s30% (0 lines)
integ/validate_cloudwatch0% (0 lines)
integ/clean_cloudwatch0% (0 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 19 longest duplicates.
See data for all 19 duplicates...
Size#FoldersFilesLinesCode
18 x 2 troubleshooting/tools/color-logger
troubleshooting/tools/color-logger
large.py
main.py
28:48 (51%)
33:53 (35%)
view
12 x 2 troubleshooting/tools/color-logger
troubleshooting/tools/color-logger
large.py
main.py
11:26 (34%)
11:26 (23%)
view
9 x 2 ROOT
ROOT
buildspec_publish_dockerhub.yml
buildspec_publish_public_ecr.yml
10:22 (39%)
15:27 (21%)
view
9 x 2 integ/resources
integ/resources
cfn-kinesis-s3-firehose.yml
cfn-kinesis-s3-firehose.yml
13:21 (7%)
30:38 (7%)
view
8 x 2 ROOT
ROOT
buildspec_publish_dockerhub.yml
buildspec_publish_ecr.yml
1:8 (34%)
1:8 (21%)
view
8 x 2 ROOT
ROOT
buildspec_publish_public_ecr.yml
buildspec_publish_ssm.yml
1:8 (19%)
1:8 (38%)
view
8 x 2 ROOT
ROOT
buildspec_publish_ecr.yml
buildspec_publish_public_ecr.yml
1:8 (21%)
1:8 (19%)
view
8 x 2 ROOT
ROOT
buildspec.yml
buildspec_publish_public_ecr.yml
1:8 (27%)
1:8 (19%)
view
8 x 2 ROOT
ROOT
buildspec_publish_dockerhub.yml
buildspec_publish_public_ecr.yml
1:8 (34%)
1:8 (19%)
view
8 x 2 ROOT
ROOT
buildspec.yml
buildspec_publish_ssm.yml
1:8 (27%)
1:8 (38%)
view
8 x 2 ROOT
ROOT
buildspec_publish_ecr.yml
buildspec_publish_ssm.yml
1:8 (21%)
1:8 (38%)
view
8 x 2 ROOT
ROOT
buildspec_publish_dockerhub.yml
buildspec_publish_ssm.yml
1:8 (34%)
1:8 (38%)
view
8 x 2 ROOT
ROOT
buildspec.yml
buildspec_publish_dockerhub.yml
1:8 (27%)
1:8 (34%)
view
8 x 2 ROOT
ROOT
buildspec.yml
buildspec_publish_ecr.yml
1:8 (27%)
1:8 (21%)
view
7 x 2 ROOT
ROOT
buildspec_publish_public_ecr.yml
buildspec_sync.yml
30:36 (17%)
27:33 (14%)
view
6 x 2 ROOT
ROOT
buildspec_publish_dockerhub.yml
buildspec_publish_ecr.yml
10:17 (26%)
10:17 (15%)
view
6 x 2 ROOT
ROOT
buildspec_publish_ecr.yml
buildspec_publish_public_ecr.yml
10:17 (15%)
15:22 (14%)
view
6 x 2 ROOT
ROOT
buildspec_publish_public_ecr.yml
buildspec_sync.yml
42:47 (14%)
39:44 (12%)
view
6 x 2 troubleshooting/tools/color-logger
troubleshooting/tools/color-logger
fluent-bit.yaml
fluent-bit.yaml
183:189 (1%)
194:200 (1%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
12 x 2 troubleshooting/tools/color-logger
troubleshooting/tools/color-logger
large.py
main.py
0:0 
0:0 
view
7 x 2 troubleshooting/tools/color-logger
troubleshooting/tools/color-logger
large.py
main.py
0:0 
0:0 
view