microsoft / Microsoft-365-Defender-Hunting-Queries
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:
    • 573 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 165 duplicated lines
  • 8 duplicates
system28% (165 lines)
Duplication per Extension
csl28% (165 lines)
Duplication per Component (primary)
Webcasts35% (148 lines)
Webcasts/l33tSpeak10% (17 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
22 x 2 Webcasts
Webcasts
csl
Airlift 2021 - Lets Invoke.csl
Airlift 2021 - Lets Invoke.csl
295:316 (5%)
394:415 (5%)
view
22 x 2 Webcasts
Webcasts
csl
Airlift 2021 - Lets Invoke.csl
Airlift 2021 - Lets Invoke.csl
362:383 (5%)
394:415 (5%)
view
22 x 2 Webcasts
Webcasts
csl
Airlift 2021 - Lets Invoke.csl
Airlift 2021 - Lets Invoke.csl
395:416 (5%)
434:455 (5%)
view
22 x 2 Webcasts
Webcasts
csl
Airlift 2021 - Lets Invoke.csl
Airlift 2021 - Lets Invoke.csl
295:316 (5%)
362:383 (5%)
view
21 x 2 Webcasts
Webcasts
csl
Airlift 2021 - Lets Invoke.csl
Airlift 2021 - Lets Invoke.csl
296:316 (5%)
434:454 (5%)
view
21 x 2 Webcasts
Webcasts
csl
Airlift 2021 - Lets Invoke.csl
Airlift 2021 - Lets Invoke.csl
102:122 (5%)
132:152 (5%)
view
21 x 2 Webcasts
Webcasts
csl
Airlift 2021 - Lets Invoke.csl
Airlift 2021 - Lets Invoke.csl
363:383 (5%)
434:454 (5%)
view
17 x 2 Webcasts
Webcasts/l33tSpeak
csl
Airlift 2021 - Lets Invoke.csl
l33tspeak 11 Oct 2021 - externaldata ...
201:217 (4%)
35:51 (10%)
view