aws-samples / aws-cdk-managed-elkk
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
  • 6% duplication:
    • 1,534 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 100 duplicated lines
  • 12 duplicates
system6% (100 lines)
Duplication per Extension
py6% (100 lines)
Duplication per Component (primary)
helpers9% (26 lines)
logstash9% (21 lines)
elastic11% (15 lines)
ROOT11% (14 lines)
kibana1% (6 lines)
athena12% (6 lines)
filebeat2% (6 lines)
kafka4% (6 lines)
vpc0% (0 lines)
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
9 x 2 elastic
logstash
elastic_stack.py
logstash_stack.py
150:158 (7%)
156:164 (3%)
view
7 x 2 ROOT
ROOT
app.py
app.py
32:38 (8%)
58:64 (8%)
view
6 x 2 helpers
logstash
lambda_env_update.py
logstash_stack.py
68:73 (8%)
64:69 (2%)
view
6 x 2 filebeat
logstash
filebeat_stack.py
logstash_stack.py
58:63 (7%)
189:194 (2%)
view
6 x 2 helpers
helpers
functions.py
lambda_env_update.py
95:100 (4%)
70:75 (8%)
view
6 x 2 elastic
logstash
elastic_stack.py
logstash_stack.py
137:142 (4%)
189:194 (2%)
view
6 x 2 helpers
helpers
lambda_env_update.py
s3_bucket_empty.py
21:28 (8%)
14:21 (31%)
view
6 x 2 elastic
kafka
elastic_stack.py
kafka_stack.py
137:142 (4%)
123:128 (4%)
view
6 x 2 athena
kibana
athena_stack.py
kibana_stack.py
41:46 (12%)
151:156 (3%)
view
6 x 2 filebeat
kafka
filebeat_stack.py
kafka_stack.py
58:63 (7%)
123:128 (4%)
view
6 x 2 elastic
filebeat
elastic_stack.py
filebeat_stack.py
137:142 (4%)
58:63 (7%)
view
6 x 2 kafka
logstash
kafka_stack.py
logstash_stack.py
123:128 (4%)
189:194 (2%)
view