tests/bundles/tastoria_1.23.0/dist/build/q-Dogkc32W.js   A
last analyzed

Complexity

Total Complexity 6
Complexity/F 1

Size

Lines of Code 1
Function Count 6

Duplication

Duplicated Lines 1
Ratio 100 %

Importance

Changes 0
Metric Value
wmc 6
eloc 1
mnd 0
bc 0
fnc 6
dl 1
loc 1
rs 10
bpm 0
cpm 1
noi 1
c 0
b 0
f 0

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1
import{C as i}from"./q--4QB-cqZ.js";import{L as n}from"./q-5LSN8IXO.js";import{C as r,j as e,K as a,z as o}from"./q-grzRItSl.js";const g="_component_12j16_1",m={component:g},d=s=>r("div",null,{class:m.component},s.data.map(t=>e(n,{children:e(i,{get title(){return t.title},get categories(){return t.categories},get tags(){return t.tags},get image(){return t.image},[a]:{categories:o(t,"categories"),image:o(t,"image"),tags:o(t,"tags"),title:o(t,"title")}},3,"zU_0"),href:`/recipes/${t.id}`,prefetch:!0,[a]:{prefetch:a}},1,t.id)),1,"zU_1");export{d as s_wC2GB5oqF04};
0 ignored issues
show
Bug introduced by
The variable s_wC2GB5oqF04 seems to be never declared. If this is a global, consider adding a /** global: s_wC2GB5oqF04 */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
Duplication introduced by
This code seems to be duplicated in your project.
Loading history...
2