angular / angularfire
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
  • 13% duplication:
    • 7,420 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 985 duplicated lines
  • 119 duplicates
system13% (985 lines)
Duplication per Extension
ts15% (985 lines)
Duplication per Component (primary)
src/schematics23% (563 lines)
src/firestore49% (164 lines)
src/compat7% (144 lines)
src/auth-guard46% (20 lines)
src/performance14% (13 lines)
src/storage12% (12 lines)
src/database7% (12 lines)
src/functions15% (12 lines)
src/app-check14% (12 lines)
src/analytics3% (10 lines)
src/remote-config8% (10 lines)
src/messaging8% (7 lines)
src/auth3% (6 lines)
site/scripts0% (0 lines)
site0% (0 lines)
site/src0% (0 lines)
tools0% (0 lines)
src0% (0 lines)
src/app0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 119 duplicates...
Size#FoldersFilesLinesCode
30 x 2 src/firestore
src/firestore/lite
firestore.module.ts
lite.module.ts
12:47 (60%)
12:47 (60%)
view
25 x 2 src/schematics
src/schematics
ng-add.jasmine.ts
ng-add.jasmine.ts
144:177 (4%)
233:266 (4%)
view
25 x 2 src/schematics
src/schematics
ng-add.jasmine.ts
ng-add.jasmine.ts
91:126 (4%)
180:215 (4%)
view
23 x 2 src/schematics
src/schematics
ng-add.jasmine.ts
ng-add.jasmine.ts
180:212 (4%)
269:301 (4%)
view
23 x 2 src/schematics
src/schematics
ng-add.jasmine.ts
ng-add.jasmine.ts
183:215 (4%)
305:337 (4%)
view
23 x 2 src/schematics
src/schematics
ng-add.jasmine.ts
ng-add.jasmine.ts
94:126 (4%)
305:337 (4%)
view
23 x 2 src/schematics
src/schematics
ng-add.jasmine.ts
ng-add.jasmine.ts
91:123 (4%)
269:301 (4%)
view
21 x 2 src/schematics/deploy
src/schematics/deploy
actions.ts
actions.ts
156:181 (5%)
268:293 (5%)
view
21 x 2 src/schematics
src/schematics
ng-add.jasmine.ts
ng-add.jasmine.ts
272:301 (4%)
305:334 (4%)
view
18 x 2 src/firestore
src/firestore/lite
firestore.module.ts
lite.module.ts
52:70 (36%)
52:70 (36%)
view
14 x 2 src/compat/firestore/collection-group
src/compat/firestore/collection
collection-group.ts
collection.ts
54:88 (31%)
76:110 (25%)
view
13 x 2 src/schematics
src/schematics
ng-add.jasmine.ts
ng-add.jasmine.ts
233:246 (2%)
362:375 (2%)
view
13 x 2 src/schematics
src/schematics
ng-add.jasmine.ts
ng-add.jasmine.ts
144:157 (2%)
362:375 (2%)
view
13 x 2 src/firestore
src/firestore/lite
firebase.ts
firebase.ts
37:49 (13%)
24:36 (18%)
view
13 x 2 src/firestore
src/firestore/lite
firebase.ts
firebase.ts
87:99 (13%)
60:72 (18%)
view
12 x 2 src/database
src/storage
database.module.ts
storage.module.ts
58:70 (24%)
58:70 (24%)
view
12 x 2 src/firestore
src/storage
firestore.module.ts
storage.module.ts
58:70 (24%)
58:70 (24%)
view
12 x 2 src/firestore/lite
src/storage
lite.module.ts
storage.module.ts
58:70 (24%)
58:70 (24%)
view
12 x 2 src/firestore/lite
src/functions
lite.module.ts
functions.module.ts
58:70 (24%)
58:70 (24%)
view
12 x 2 src/database
src/firestore/lite
database.module.ts
lite.module.ts
58:70 (24%)
58:70 (24%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
18 x 2 src/firestore/lite
src/firestore
lite.module.ts
firestore.module.ts
52:71 
52:71 
view
6 x 2 src/schematics/deploy
src/schematics/deploy
actions.jasmine.ts
actions.jasmine.ts
188:194 
232:238 
view
6 x 2 src/schematics/deploy
src/schematics/deploy
actions.jasmine.ts
actions.jasmine.ts
210:216 
255:261 
view