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

Complexity

Total Complexity 4
Complexity/F 1.33

Size

Lines of Code 1
Function Count 3

Duplication

Duplicated Lines 1
Ratio 100 %

Importance

Changes 0
Metric Value
wmc 4
eloc 1
mnd 1
bc 1
fnc 3
dl 1
loc 1
rs 10
bpm 0.3333
cpm 1.3333
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{I as s}from"./q--mBxzwYW.js";import{C as n,j as a,K as r,b as m}from"./q-grzRItSl.js";import{o as l}from"./q--4QB-cqZ.js";const _='"../../variables.css"',g="#bbc4c3",u="#2e2d32",b="_component_z19zc_4",d="_bigTitle_z19zc_27",e={colors:_,background_2:g,text_1:u,component:b,bigTitle:d},z=t=>{const o=t.title.length<l,c=t.title.length<=2*l?t.title:`${t.title.slice(0,2*l-6)}..`;return n("div",{class:[e.component,{[e.bigTitle]:!o}]},null,[a(s,{get src(){return t.image},[r]:{src:m(i=>i.image,[t])}},3,"lN_0"),n("h3",null,null,c,1,null),n("div",null,null,null,3,null)],1,"lN_1")};export{z as s_vkpVeOfakIU};
0 ignored issues
show
Bug introduced by
The variable s_vkpVeOfakIU seems to be never declared. If this is a global, consider adding a /** global: s_vkpVeOfakIU */ 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