aws-samples / aws-serverless-s3-antivirus
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
  • 18% duplication:
    • 348 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 64 duplicated lines
  • 11 duplicates
system18% (64 lines)
Duplication per Extension
py53% (52 lines)
yml4% (12 lines)
Duplication per Component (primary)
function53% (52 lines)
ROOT4% (12 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
13 x 2 function
function
virus-scanner.py
virus-scanner.py
113:126 (13%)
130:143 (13%)
view
10 x 2 function
function
virus-scanner.py
virus-scanner.py
66:76 (10%)
93:103 (10%)
view
6 x 2 function
function
virus-scanner.py
virus-scanner.py
93:99 (6%)
113:119 (6%)
view
6 x 2 function
function
virus-scanner.py
virus-scanner.py
66:72 (6%)
113:119 (6%)
view
6 x 2 function
function
virus-scanner.py
virus-scanner.py
66:72 (6%)
130:136 (6%)
view
6 x 2 function
function
virus-scanner.py
virus-scanner.py
21:27 (6%)
113:119 (6%)
view
6 x 2 function
function
virus-scanner.py
virus-scanner.py
21:27 (6%)
93:99 (6%)
view
6 x 2 function
function
virus-scanner.py
virus-scanner.py
21:27 (6%)
130:136 (6%)
view
6 x 2 function
function
virus-scanner.py
virus-scanner.py
21:27 (6%)
66:72 (6%)
view
6 x 2 function
function
virus-scanner.py
virus-scanner.py
93:99 (6%)
130:136 (6%)
view
6 x 2 ROOT
ROOT
template.yml
template.yml
61:66 (2%)
84:89 (2%)
view