firebase / quickstart-nodejs
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
  • 7% duplication:
    • 805 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 62 duplicated lines
  • 8 duplicates
system7% (62 lines)
Duplication per Extension
js8% (62 lines)
Duplication per Component (primary)
machine-learning13% (36 lines)
auth-sessions12% (26 lines)
messaging0% (0 lines)
database0% (0 lines)
auth-sessions/public0% (0 lines)
config0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
13 x 2 auth-sessions
auth-sessions
app.js
app.js
189:202 (8%)
212:225 (8%)
view
6 x 2 machine-learning
machine-learning
manage-ml.js
manage-ml.js
231:236 (2%)
293:298 (2%)
view
6 x 2 machine-learning
machine-learning
manage-ml.js
manage-ml.js
55:62 (2%)
80:87 (2%)
view
6 x 2 machine-learning
machine-learning
manage-ml.js
manage-ml.js
231:236 (2%)
277:282 (2%)
view
6 x 2 machine-learning
machine-learning
manage-ml.js
manage-ml.js
210:215 (2%)
231:236 (2%)
view
6 x 2 machine-learning
machine-learning
manage-ml.js
manage-ml.js
210:215 (2%)
293:298 (2%)
view
6 x 2 machine-learning
machine-learning
manage-ml.js
manage-ml.js
277:282 (2%)
293:298 (2%)
view
6 x 2 machine-learning
machine-learning
manage-ml.js
manage-ml.js
210:215 (2%)
277:282 (2%)
view