aws / amazon-states-language-service
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
  • 4% duplication:
    • 1,413 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 70 duplicated lines
  • 6 duplicates
system4% (70 lines)
Duplication per Extension
ts5% (70 lines)
Duplication per Component (primary)
src/yaml9% (40 lines)
src/validation8% (30 lines)
src/constants0% (0 lines)
src/validation/utils0% (0 lines)
src/utils0% (0 lines)
src0% (0 lines)
src/completion0% (0 lines)
ROOT0% (0 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
11 x 2 src/validation
src/validation
validationSchema.ts
validationSchema.ts
83:94 (5%)
100:112 (5%)
view
8 x 2 src/validation
src/validation
validationSchema.ts
validationSchema.ts
34:42 (4%)
103:112 (4%)
view
8 x 2 src/validation
src/validation
validationSchema.ts
validationSchema.ts
34:42 (4%)
86:94 (4%)
view
7 x 2 src/yaml
src/yaml
yamlUtils.ts
yamlUtils.ts
366:380 (2%)
415:429 (2%)
view
7 x 2 src/yaml
src/yaml
yamlUtils.ts
yamlUtils.ts
107:114 (2%)
221:228 (2%)
view
6 x 2 src/yaml
src/yaml
aslYamlLanguageService.ts
aslYamlLanguageService.ts
247:254 (3%)
263:270 (3%)
view