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

Complexity

Total Complexity 11
Complexity/F 1.1

Size

Lines of Code 7
Function Count 10

Duplication

Duplicated Lines 7
Ratio 100 %

Importance

Changes 0
Metric Value
wmc 11
eloc 5
mnd 1
bc 1
fnc 10
dl 7
loc 7
rs 10
bpm 0.1
cpm 1.1
noi 8
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
C q-i4NcBzYb.js ➔ __vite__mapDeps 6 6 11

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 View Code Duplication
import{l as i,M as e,d as a,c,C as r,j as n,K as s,y as p,_,h as m}from"./q-grzRItSl.js";import{_auto_exportBackup as u}from"./q-mXwIeF_6.js";import{B as d}from"./q-YTYDmSU9.js";import{s as x}from"./q-mmDR2EFA.js";import{s as t}from"./q-gEe22Yf7.js";import"./q-kZRfDn4W.js";import"./q-zkGDBpXz.js";import"./q-IQTssp_s.js";import"./q-yQnnJER4.js";const C=()=>{const[o]=i();return u(o.user.value)},h=o=>e(a,{children:e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"-2.4 -2.4 28.8 28.8"},o,{children:e("g",{stroke:"#1C274C",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".384",children:e("path",{d:"M3 15c0 2.828 0 4.243.879 5.121C4.757 21 6.172 21 9 21h6c2.828 0 4.243 0 5.121-.879C21 19.243 21 17.828 21 15M12 3v13m0 0 4-4.375M12 16l-4-4.375"})})}))}),v=()=>{const o=c(x),l=p(()=>_(()=>Promise.resolve().then(()=>g),void 0),"s_EGimzIijxCA",[o]);return r("div",null,{class:t.exportBox},[r("span",null,{class:t.exportText},$localize`pages.import.export_placeholder`,1,null),n(d,{get class(){return[t.exportButton]},children:n(h,{get class(){return[t.icon]},[s]:{class:s}},3,"Cc_0"),onClick:l,[s]:{class:s,onClick:s}},1,"Cc_1")],1,"Cc_2")},g=Object.freeze(Object.defineProperty({__proto__:null,_hW:m,s_EGimzIijxCA:C,s_GHDEXlv2GLM:v},Symbol.toStringTag,{value:"Module"}));export{m as _hW,C as s_EGimzIijxCA,v as s_GHDEXlv2GLM};
0 ignored issues
show
Unused Code introduced by
The constant g seems to be never used. Consider removing it.
Loading history...
Bug introduced by
The variable Symbol seems to be never declared. If this is a global, consider adding a /** global: Symbol */ 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...
Bug introduced by
The variable s_GHDEXlv2GLM seems to be never declared. If this is a global, consider adding a /** global: s_GHDEXlv2GLM */ 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...
Coding Style introduced by
Consider using undefined instead of void(0). It is equivalent and more straightforward to read.
Loading history...
Bug introduced by
The variable _hW seems to be never declared. If this is a global, consider adding a /** global: _hW */ 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...
Bug introduced by
The variable s_EGimzIijxCA seems to be never declared. If this is a global, consider adding a /** global: s_EGimzIijxCA */ 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...
Bug introduced by
The local (let) variable g is used before it is defined. This will cause a reference error.
Loading history...
Bug introduced by
The variable $localize seems to be never declared. If this is a global, consider adding a /** global: $localize */ 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
function __vite__mapDeps(indexes) {
3
  if (!__vite__mapDeps.viteFileDeps) {
4
    __vite__mapDeps.viteFileDeps = []
5
  }
6
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
7
}
8