{"score":72.40005015673977,"report":[{"filePath":"/Users/qlin/code/fes.js/.eslintrc.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":7.692,"halstead":{"bugs":0.063,"difficulty":3.194,"effort":606.911,"length":42,"time":33.717,"vocabulary":23,"volume":189.99,"operands":{"distinct":18,"total":23,"identifiers":["module","exports","extends","\"@webank/eslint-config-webank/vue.js\"","globals","__DEV__","false","rules","\"vue/comment-directive\"","\"off\"","\"global-require\"","\"import/no-unresolved\"","\"no-restricted-syntax\"","\"no-undefined\"","\"vue/valid-template-root\"","env","jest","true"]},"operators":{"distinct":5,"total":19,"identifiers":["=",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":13,"physical":25}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":25,"lineStart":1,"maintainability":62.884,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":7.692,"halstead":{"bugs":0.063,"difficulty":3.194,"effort":606.911,"length":42,"time":33.717,"vocabulary":23,"volume":189.99,"operands":{"distinct":18,"total":23},"operators":{"distinct":5,"total":19}},"paramCount":0,"sloc":{"logical":13,"physical":25}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/build.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.078,"difficulty":3,"effort":699.549,"length":48,"time":38.864,"vocabulary":29,"volume":233.183,"operands":{"distinct":23,"total":23,"identifiers":["module","exports","pkgs","\"create-fes-app\"","\"fes\"","\"fes-compiler\"","\"fes-plugin-access\"","\"fes-plugin-enums\"","\"fes-plugin-icon\"","\"fes-plugin-jest\"","\"fes-plugin-layout\"","\"fes-plugin-locale\"","\"fes-plugin-model\"","\"fes-plugin-monaco-editor\"","\"fes-plugin-qiankun\"","\"fes-plugin-request\"","\"fes-plugin-sass\"","\"fes-plugin-vuex\"","\"fes-preset-built-in\"","\"fes-plugin-windicss\"","\"fes-runtime\"","\"fes-utils\"","copy"]},"operators":{"distinct":6,"total":25,"identifiers":["=",".","{}",":","[]",","]}},"paramCount":0,"sloc":{"logical":3,"physical":27}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":27,"lineStart":1,"maintainability":76.491,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.078,"difficulty":3,"effort":699.549,"length":48,"time":38.864,"vocabulary":29,"volume":233.183,"operands":{"distinct":23,"total":23},"operators":{"distinct":6,"total":25}},"paramCount":0,"sloc":{"logical":3,"physical":27}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/commitlint.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4,"identifiers":["module","exports","extends","\"@commitlint/config-conventional\""]},"operators":{"distinct":5,"total":5,"identifiers":["=",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":2,"physical":2}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":2,"lineStart":1,"maintainability":84.899,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4},"operators":{"distinct":5,"total":5}},"paramCount":0,"sloc":{"logical":2,"physical":2}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/docs/.vuepress/config.ts","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":2.041,"halstead":{"bugs":0.387,"difficulty":5.425,"effort":6293.647,"length":183,"time":349.647,"vocabulary":81,"volume":1160.193,"operands":{"distinct":73,"total":99,"identifiers":["config","UserConfig","DefaultThemeOptions","base","\"/fesjs/\"","head","\"link\"","rel","\"manifest\"","href","\"/fesjs/manifest.webmanifest\"","\"icon\"","/fesjs/logo.png","locales","\"/\"","lang","\"en-US\"","title","\"Fes.js\"","description","\"A Good Front-end Application Solution\"","\"/zh/\"","\"zh-CN\"","\"一个好用的前端应用解决方案\"","themeConfig","logo","\"/logo.png\"","repo","\"WeBankFinTech/fes.js\"","docsDir","\"docs\"","docsBranch","\"vue3\"","navbar","en","sidebar","editLinkText","\"Edit this page on GitHub\"","zh","selectLanguageName","\"简体中文\"","selectLanguageText","\"选择语言\"","selectLanguageAriaLabel","\"在 GitHub 上编辑此页\"","lastUpdatedText","\"上次更新\"","contributorsText","\"贡献者\"","tip","\"提示\"","warning","\"注意\"","danger","\"警告\"","notFound","\"这里什么都没有\"","\"我们怎么到这来了?\"","\"这是一个 404 页面\"","\"看起来我们进入了错误的链接\"","backToHome","\"返回首页\"","openInNewWindow","\"在新窗口打开\"","plugins","\"@vuepress/plugin-pwa\"","\"@vuepress/plugin-pwa-popup\"","message","\"New content is available.\"","buttonText","\"Refresh\"","\"发现新内容可用\"","\"刷新\""]},"operators":{"distinct":8,"total":84,"identifiers":["const","=","{}",":","[]",",","``","."]}},"paramCount":0,"sloc":{"logical":49,"physical":128}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@vuepress/cli","type":"esm"},{"line":2,"path":"@vuepress/theme-default","type":"esm"},{"line":3,"path":"./configs","type":"esm"}],"errors":[],"lineEnd":128,"lineStart":1,"maintainability":45.636,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":2.041,"halstead":{"bugs":0.387,"difficulty":5.425,"effort":6293.647,"length":183,"time":349.647,"vocabulary":81,"volume":1160.193,"operands":{"distinct":73,"total":99},"operators":{"distinct":8,"total":84}},"paramCount":0,"sloc":{"logical":49,"physical":128}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/docs/.vuepress/configs/index.ts","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":3}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":3,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":3}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/docs/.vuepress/configs/navbar/en.ts","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":5.882,"halstead":{"bugs":0.105,"difficulty":4.95,"effort":1558.901,"length":67,"time":86.606,"vocabulary":26,"volume":314.929,"operands":{"distinct":20,"total":33,"identifiers":["en","NavbarConfig","text","\"Guide\"","link","\"/guide/\"","\"Config\"","\"/reference/config/\"","\"API\"","\"/reference/api/\"","\"Plugin\"","\"/reference/plugin/\"","\"CLI\"","\"/reference/cli/\"","\"More\"","children","\"更新日志\"","\"https://github.com/WeBankFinTech/fes.js/blob/master/CHANGELOG.md\"","\"v1 文档\"","\"https://webank.gitee.io/fes.js-v0/\""]},"operators":{"distinct":6,"total":34,"identifiers":["const","=","[]",",","{}",":"]}},"paramCount":0,"sloc":{"logical":17,"physical":39}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@vuepress/theme-default","type":"esm"}],"errors":[],"lineEnd":39,"lineStart":1,"maintainability":58.456,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":5.882,"halstead":{"bugs":0.105,"difficulty":4.95,"effort":1558.901,"length":67,"time":86.606,"vocabulary":26,"volume":314.929,"operands":{"distinct":20,"total":33},"operators":{"distinct":6,"total":34}},"paramCount":0,"sloc":{"logical":17,"physical":39}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/docs/.vuepress/configs/navbar/index.ts","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":3}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":3,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":3}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/docs/.vuepress/configs/navbar/zh.ts","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":5.882,"halstead":{"bugs":0.105,"difficulty":4.95,"effort":1558.901,"length":67,"time":86.606,"vocabulary":26,"volume":314.929,"operands":{"distinct":20,"total":33,"identifiers":["zh","NavbarConfig","text","\"指南\"","link","\"/zh/guide/\"","\"配置\"","\"/zh/reference/config/\"","\"API\"","\"/zh/reference/api/\"","\"插件\"","\"/zh/reference/plugin/\"","\"CLI\"","\"/zh/reference/cli/\"","\"了解更多\"","children","\"更新日志\"","\"https://github.com/WeBankFinTech/fes.js/blob/master/CHANGELOG.md\"","\"v1 文档\"","\"https://webank.gitee.io/fes.js-v0/\""]},"operators":{"distinct":6,"total":34,"identifiers":["const","=","[]",",","{}",":"]}},"paramCount":0,"sloc":{"logical":17,"physical":39}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@vuepress/theme-default","type":"esm"}],"errors":[],"lineEnd":39,"lineStart":1,"maintainability":58.456,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":5.882,"halstead":{"bugs":0.105,"difficulty":4.95,"effort":1558.901,"length":67,"time":86.606,"vocabulary":26,"volume":314.929,"operands":{"distinct":20,"total":33},"operators":{"distinct":6,"total":34}},"paramCount":0,"sloc":{"logical":17,"physical":39}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/docs/.vuepress/configs/sidebar/en.ts","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":5.556,"halstead":{"bugs":0.23,"difficulty":3.652,"effort":2519.099,"length":121,"time":139.95,"vocabulary":52,"volume":689.753,"operands":{"distinct":46,"total":56,"identifiers":["en","SidebarConfig","\"/guide/\"","text","\"介绍\"","children","\"/guide/README.md\"","\"/guide/getting-started.md\"","\"基础\"","\"/guide/directory-structure.md\"","\"/guide/config.md\"","\"/guide/runtime-config.md\"","\"/guide/route.md\"","\"/guide/plugin.md\"","\"/guide/template.md\"","\"/guide/mock.md\"","\"/guide/env.md\"","\"/guide/css.md\"","\"进阶\"","\"/guide/contributing.md\"","\"/guide/faq.md\"","\"/reference/config/\"","\"/reference/config/README.md\"","\"/reference/api/\"","\"/reference/api/README.md\"","\"/reference/plugin/\"","\"Presets\"","\"Plugins\"","\"/reference/plugin/plugins/access.md\"","\"/reference/plugin/plugins/enums.md\"","\"/reference/plugin/plugins/icon.md\"","\"/reference/plugin/plugins/jest.md\"","\"/reference/plugin/plugins/layout.md\"","\"/reference/plugin/plugins/locale.md\"","\"/reference/plugin/plugins/model.md\"","\"/reference/plugin/plugins/request.md\"","\"/reference/plugin/plugins/vuex.md\"","\"/reference/plugin/plugins/qiankun.md\"","\"/reference/plugin/plugins/windicss.md\"","\"/reference/plugin/plugins/sass.md\"","\"/reference/plugin/plugins/editor.md\"","\"插件开发\"","\"/reference/plugin/dev/README.md\"","\"/reference/plugin/dev/api.md\"","\"/reference/cli/\"","\"/reference/cli/README.md\""]},"operators":{"distinct":6,"total":65,"identifiers":["const","=","{}",":","[]",","]}},"paramCount":0,"sloc":{"logical":18,"physical":82}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@vuepress/theme-default","type":"esm"}],"errors":[],"lineEnd":82,"lineStart":1,"maintainability":56.954,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":5.556,"halstead":{"bugs":0.23,"difficulty":3.652,"effort":2519.099,"length":121,"time":139.95,"vocabulary":52,"volume":689.753,"operands":{"distinct":46,"total":56},"operators":{"distinct":6,"total":65}},"paramCount":0,"sloc":{"logical":18,"physical":82}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/docs/.vuepress/configs/sidebar/index.ts","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":3}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":3,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":3}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/docs/.vuepress/configs/sidebar/zh.ts","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":5.556,"halstead":{"bugs":0.23,"difficulty":3.652,"effort":2519.099,"length":121,"time":139.95,"vocabulary":52,"volume":689.753,"operands":{"distinct":46,"total":56,"identifiers":["zh","SidebarConfig","\"/zh/guide/\"","text","\"介绍\"","children","\"/zh/guide/README.md\"","\"/zh/guide/getting-started.md\"","\"基础\"","\"/zh/guide/directory-structure.md\"","\"/zh/guide/config.md\"","\"/zh/guide/runtime-config.md\"","\"/zh/guide/route.md\"","\"/zh/guide/plugin.md\"","\"/zh/guide/template.md\"","\"/zh/guide/mock.md\"","\"/zh/guide/env.md\"","\"/zh/guide/css.md\"","\"进阶\"","\"/zh/guide/contributing.md\"","\"/zh/guide/faq.md\"","\"/zh/reference/config/\"","\"/zh/reference/config/README.md\"","\"/zh/reference/api/\"","\"/zh/reference/api/README.md\"","\"/zh/reference/plugin/\"","\"Presets\"","\"Plugins\"","\"/zh/reference/plugin/plugins/access.md\"","\"/zh/reference/plugin/plugins/enums.md\"","\"/zh/reference/plugin/plugins/icon.md\"","\"/zh/reference/plugin/plugins/jest.md\"","\"/zh/reference/plugin/plugins/layout.md\"","\"/zh/reference/plugin/plugins/locale.md\"","\"/zh/reference/plugin/plugins/model.md\"","\"/zh/reference/plugin/plugins/request.md\"","\"/zh/reference/plugin/plugins/vuex.md\"","\"/zh/reference/plugin/plugins/qiankun.md\"","\"/zh/reference/plugin/plugins/windicss.md\"","\"/zh/reference/plugin/plugins/sass.md\"","\"/zh/reference/plugin/plugins/editor.md\"","\"插件开发\"","\"/zh/reference/plugin/dev/README.md\"","\"/zh/reference/plugin/dev/api.md\"","\"/zh/reference/cli/\"","\"/zh/reference/cli/README.md\""]},"operators":{"distinct":6,"total":65,"identifiers":["const","=","{}",":","[]",","]}},"paramCount":0,"sloc":{"logical":18,"physical":82}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@vuepress/theme-default","type":"esm"}],"errors":[],"lineEnd":82,"lineStart":1,"maintainability":56.954,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":5.556,"halstead":{"bugs":0.23,"difficulty":3.652,"effort":2519.099,"length":121,"time":139.95,"vocabulary":52,"volume":689.753,"operands":{"distinct":46,"total":56},"operators":{"distinct":6,"total":65}},"paramCount":0,"sloc":{"logical":18,"physical":82}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/jest.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.016,"difficulty":3,"effort":139.814,"length":13,"time":7.767,"vocabulary":12,"volume":46.605,"operands":{"distinct":6,"total":6,"identifiers":["module","exports","testPathIgnorePatterns","\"/node_modules/\"","\"fes-template\"","\"fes-template-h5\""]},"operators":{"distinct":6,"total":7,"identifiers":["=",".","{}",":","[]",","]}},"paramCount":0,"sloc":{"logical":2,"physical":9}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":9,"lineStart":1,"maintainability":83.553,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.016,"difficulty":3,"effort":139.814,"length":13,"time":7.767,"vocabulary":12,"volume":46.605,"operands":{"distinct":6,"total":6},"operators":{"distinct":6,"total":7}},"paramCount":0,"sloc":{"logical":2,"physical":9}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/bin/create-fes-app.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["require","\"../lib/cli\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":1,"physical":4}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":3,"path":"../lib/cli","type":"cjs"}],"errors":[],"lineEnd":4,"lineStart":1,"maintainability":98.268,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2},"operators":{"distinct":1,"total":1}},"paramCount":0,"sloc":{"logical":1,"physical":4}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/src/cli.js","report":{"aggregate":{"cyclomatic":8,"cyclomaticDensity":21.622,"halstead":{"bugs":0.352,"difficulty":14.221,"effort":15028.556,"length":173,"time":834.92,"vocabulary":69,"volume":1056.775,"operands":{"distinct":52,"total":87,"identifiers":["args","yParser","process","argv","slice","2","alias","version","\"v\"","help","\"h\"","force","\"f\"","merge","\"m\"","proxy","\"x\"","boolean","\"version\"","\"help\"","\"merge\"","\"force\"","_","length","1","console","log","chalk","yellow","\"\n Warning: You provided more than one argument. The first one will be used as the app's name, the rest are ignored.\"","0","local","existsSync","join","__dirname","\"../.local\"","cyan","\"@local\"","\"\"","name","require","\"../package.json\"","@","\nUsage: create-fes-app \n\nOptions:\n -v, --version Output the current version\n -h, --help Display help for command \n -f, --force Overwrite target directory if it exists\n -m, --merge Merge target directory if it exists\n -x, --proxy Use specified proxy when creating project\n ","\".\"","default","cwd","catch","err","error","message","Create failed, "]},"operators":{"distinct":17,"total":86,"identifiers":["const","=","()",".","{}",":","[]",",","if",">","else","&&","! (prefix)",":?","``","${}","function=>"]}},"paramCount":1,"sloc":{"logical":37,"physical":50}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@fesjs/utils","type":"esm"},{"line":2,"path":"fs","type":"esm"},{"line":3,"path":"path","type":"esm"},{"line":26,"path":"../package.json","type":"cjs"},{"line":40,"path":".","type":"cjs"}],"errors":[],"lineEnd":50,"lineStart":1,"maintainability":53.698,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.016,"difficulty":3.2,"effort":152.156,"length":15,"time":8.453,"vocabulary":9,"volume":47.549,"operands":{"distinct":5,"total":8,"identifiers":["console","error","err","message","Create failed, "]},"operators":{"distinct":4,"total":7,"identifiers":["()",".","``","${}"]}},"paramCount":1,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":48,"lineStart":45,"name":"","paramNames":["err"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":4,"cyclomaticDensity":10.811,"halstead":{"bugs":0.176,"difficulty":7.111,"effort":7514.278,"length":86.5,"time":417.46,"vocabulary":34.5,"volume":528.387,"operands":{"distinct":26,"total":43.5},"operators":{"distinct":8.5,"total":43}},"paramCount":0.5,"sloc":{"logical":18.5,"physical":25}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.016,"difficulty":3.2,"effort":152.156,"length":15,"time":8.453,"vocabulary":9,"volume":47.549,"operands":{"distinct":5,"total":8},"operators":{"distinct":4,"total":7}},"paramCount":1,"sloc":{"logical":2,"physical":4}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/src/generator/App.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":21.429,"halstead":{"bugs":0.083,"difficulty":9.286,"effort":2299.031,"length":54,"time":127.724,"vocabulary":24,"volume":247.588,"operands":{"distinct":14,"total":26,"identifiers":["AppGenerator","Generator","constructor","cwd","args","path","targetDir","writing","copyDirectory","context","version","require","\"../../package.json\"","target"]},"operators":{"distinct":10,"total":28,"identifiers":["class","extends","{}","()","super","=",".","this","async",":"]}},"paramCount":4,"sloc":{"logical":14,"physical":25}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[{"aggregate":{"cyclomatic":2,"cyclomaticDensity":15.385,"halstead":{"bugs":0.072,"difficulty":8,"effort":1728.771,"length":50,"time":96.043,"vocabulary":20,"volume":216.096,"operands":{"distinct":12,"total":24,"identifiers":["constructor","cwd","args","path","targetDir","writing","copyDirectory","context","version","require","\"../../package.json\"","target"]},"operators":{"distinct":8,"total":26,"identifiers":["{}","()","super","=",".","this","async",":"]}},"paramCount":4,"sloc":{"logical":13,"physical":22}},"errors":[],"lineEnd":24,"lineStart":3,"methods":[{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.019,"difficulty":6,"effort":338.837,"length":17,"time":18.824,"vocabulary":10,"volume":56.473,"operands":{"distinct":4,"total":8,"identifiers":["cwd","args","path","targetDir"]},"operators":{"distinct":6,"total":9,"identifiers":["()","super","{}","=",".","this"]}},"paramCount":4,"sloc":{"logical":5,"physical":10},"errors":[],"lineEnd":13,"lineStart":4,"name":"constructor","paramNames":["cwd","args","path","targetDir"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.031,"difficulty":3.125,"effort":289.097,"length":25,"time":16.061,"vocabulary":13,"volume":92.511,"operands":{"distinct":8,"total":10,"identifiers":["copyDirectory","context","version","require","\"../../package.json\"","path","target","targetDir"]},"operators":{"distinct":5,"total":15,"identifiers":["()",".","this","{}",":"]}},"paramCount":0,"sloc":{"logical":6,"physical":9},"errors":[],"lineEnd":23,"lineStart":15,"name":"writing","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":0.667,"cyclomaticDensity":5.128,"halstead":{"bugs":0.024,"difficulty":2.667,"effort":576.257,"length":16.667,"time":32.014,"vocabulary":6.667,"volume":72.032,"operands":{"distinct":4,"total":8},"operators":{"distinct":2.667,"total":8.667}},"paramCount":1.333,"sloc":{"logical":4.333,"physical":7.333}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":18.333,"halstead":{"bugs":0.025,"difficulty":4.563,"effort":313.967,"length":21,"time":17.443,"vocabulary":11.5,"volume":74.492,"operands":{"distinct":6,"total":9},"operators":{"distinct":5.5,"total":12}},"paramCount":2,"sloc":{"logical":5.5,"physical":9.5}},"name":"AppGenerator","superClassName":"Generator","maintainability":72.351}],"dependencies":[{"line":1,"path":"@fesjs/utils","type":"esm"},{"line":18,"path":"../../package.json","type":"cjs"}],"errors":[],"lineEnd":25,"lineStart":1,"maintainability":72.123,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":7.143,"halstead":{"bugs":0.028,"difficulty":3.095,"effort":766.344,"length":18,"time":42.575,"vocabulary":8,"volume":82.529,"operands":{"distinct":4.667,"total":8.667},"operators":{"distinct":3.333,"total":9.333}},"paramCount":1.333,"sloc":{"logical":4.667,"physical":8.333}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":18.333,"halstead":{"bugs":0.025,"difficulty":4.563,"effort":313.967,"length":21,"time":17.443,"vocabulary":11.5,"volume":74.492,"operands":{"distinct":6,"total":9},"operators":{"distinct":5.5,"total":12}},"paramCount":2,"sloc":{"logical":5.5,"physical":9.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/src/index.js","report":{"aggregate":{"cyclomatic":18,"cyclomaticDensity":19.149,"halstead":{"bugs":0.865,"difficulty":23.776,"effort":61671.657,"length":384,"time":3426.203,"vocabulary":108,"volume":2593.877,"operands":{"distinct":87,"total":197,"identifiers":["cwd","args","proxy","process","env","HTTP_PROXY","projectName","_","0","inCurrent","\".\"","name","path","relative","\"../\"","targetDir","resolve","result","validateProjectName","validForNewPackages","console","error","chalk","red","Invalid project name: \"","\"","errors","forEach","err","dim","Error: ","warnings","warn","Warning: ","Error","\"Process exited\"","fs","pathExistsSync","merge","force","remove","clearConsole","ok","inquirer","prompt","\"ok\"","type","\"confirm\"","message","\"Generate project in current directory?\"","null","action","\"action\"","\"list\"","cyan","Target directory "," already exists. Pick an action:","choices","\"Overwrite\"","value","\"overwrite\"","\"Merge\"","\"merge\"","\"Cancel\"","false","log","\nRemoving ","...","template","\"template\"","\"Pick an template:\"","\"PC, suitable for management desk front-end applications\"","\"pc\"","\"H5, suitable for mobile applications\"","\"h5\"","generator","AppGenerator","join","__dirname","../templates/app/","run","green","project "," created successfully, please execute the following command to use:","$ cd ","\"$ yarn\"","\"$ yarn dev\""]},"operators":{"distinct":21,"total":187,"identifiers":["function=>","{}","if",".","=","const","[]","===",":?","()","||","! (prefix)","``","${}","&&","throw","new","else",":","return",","]}},"paramCount":4,"sloc":{"logical":94,"physical":99}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"path","type":"esm"},{"line":2,"path":"@fesjs/utils","type":"esm"},{"line":3,"path":"validate-npm-package-name","type":"esm"},{"line":4,"path":"fs-extra","type":"esm"},{"line":5,"path":"inquirer","type":"esm"},{"line":7,"path":"./utils","type":"esm"},{"line":8,"path":"./generator/App","type":"esm"}],"errors":[],"lineEnd":99,"lineStart":1,"maintainability":49.925,"methods":[{"cyclomatic":15,"cyclomaticDensity":16.854,"halstead":{"bugs":0.788,"difficulty":22.625,"effort":53472.251,"length":352,"time":2970.681,"vocabulary":105,"volume":2363.414,"operands":{"distinct":84,"total":181,"identifiers":["args","proxy","process","env","HTTP_PROXY","projectName","_","0","inCurrent","\".\"","name","path","relative","\"../\"","cwd","targetDir","resolve","result","validateProjectName","validForNewPackages","console","error","chalk","red","Invalid project name: \"","\"","errors","forEach","err","warnings","warn","Error","\"Process exited\"","fs","pathExistsSync","merge","force","remove","clearConsole","ok","inquirer","prompt","\"ok\"","type","\"confirm\"","message","\"Generate project in current directory?\"","null","action","\"action\"","\"list\"","cyan","Target directory "," already exists. Pick an action:","choices","\"Overwrite\"","value","\"overwrite\"","\"Merge\"","\"merge\"","\"Cancel\"","false","log","\nRemoving ","...","template","\"template\"","\"Pick an template:\"","\"PC, suitable for management desk front-end applications\"","\"pc\"","\"H5, suitable for mobile applications\"","\"h5\"","generator","AppGenerator","join","__dirname","../templates/app/","run","green","project "," created successfully, please execute the following command to use:","$ cd ","\"$ yarn\"","\"$ yarn dev\""]},"operators":{"distinct":21,"total":171,"identifiers":["if",".","=","const","[]","===",":?","()","||","! (prefix)","``","${}","&&","function=>","throw","new","else","{}",":","return",","]}},"paramCount":2,"sloc":{"logical":89,"physical":89},"errors":[],"lineEnd":98,"lineStart":10,"name":"","paramNames":["cwd","args"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.016,"difficulty":2,"effort":96.864,"length":14,"time":5.381,"vocabulary":11,"volume":48.432,"operands":{"distinct":7,"total":7,"identifiers":["console","error","chalk","red","dim","err","Error: "]},"operators":{"distinct":4,"total":7,"identifiers":["()",".","``","${}"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":24,"lineStart":22,"name":"","paramNames":["err"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.016,"difficulty":2,"effort":96.864,"length":14,"time":5.381,"vocabulary":11,"volume":48.432,"operands":{"distinct":7,"total":7,"identifiers":["console","error","chalk","red","dim","warn","Warning: "]},"operators":{"distinct":4,"total":7,"identifiers":["()",".","``","${}"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":27,"lineStart":25,"name":"","paramNames":["warn"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":4.5,"cyclomaticDensity":4.787,"halstead":{"bugs":0.216,"difficulty":5.944,"effort":15417.914,"length":96,"time":856.551,"vocabulary":27,"volume":648.469,"operands":{"distinct":21.75,"total":49.25},"operators":{"distinct":5.25,"total":46.75}},"paramCount":1,"sloc":{"logical":23.5,"physical":24.75}},"methodAverage":{"cyclomatic":5.667,"cyclomaticDensity":38.951,"halstead":{"bugs":0.273,"difficulty":8.875,"effort":17888.66,"length":126.667,"time":993.814,"vocabulary":42.333,"volume":820.093,"operands":{"distinct":32.667,"total":65},"operators":{"distinct":9.667,"total":61.667}},"paramCount":1.333,"sloc":{"logical":31,"physical":31.667}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/src/utils.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":40,"halstead":{"bugs":0.075,"difficulty":5.6,"effort":1254.446,"length":51,"time":69.691,"vocabulary":21,"volume":224.008,"operands":{"distinct":15,"total":28,"identifiers":["clearConsole","title","process","stdout","isTTY","blank","\"\n\"","repeat","rows","console","log","readline","cursorTo","0","clearScreenDown"]},"operators":{"distinct":6,"total":23,"identifiers":["const","=","function=>","if",".","()"]}},"paramCount":1,"sloc":{"logical":10,"physical":14}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"readline","type":"esm"}],"errors":[],"lineEnd":14,"lineStart":1,"maintainability":71.465,"methods":[{"cyclomatic":3,"cyclomaticDensity":37.5,"halstead":{"bugs":0.065,"difficulty":4.643,"effort":907.236,"length":46,"time":50.402,"vocabulary":19,"volume":195.405,"operands":{"distinct":14,"total":26,"identifiers":["process","stdout","isTTY","blank","\"\n\"","repeat","rows","console","log","readline","cursorTo","0","clearScreenDown","title"]},"operators":{"distinct":5,"total":20,"identifiers":["if",".","const","=","()"]}},"paramCount":1,"sloc":{"logical":8,"physical":11},"errors":[],"lineEnd":13,"lineStart":3,"name":"","paramNames":["title"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":20,"halstead":{"bugs":0.037,"difficulty":2.8,"effort":627.223,"length":25.5,"time":34.846,"vocabulary":10.5,"volume":112.004,"operands":{"distinct":7.5,"total":14},"operators":{"distinct":3,"total":11.5}},"paramCount":0.5,"sloc":{"logical":5,"physical":7}},"methodAverage":{"cyclomatic":3,"cyclomaticDensity":37.5,"halstead":{"bugs":0.065,"difficulty":4.643,"effort":907.236,"length":46,"time":50.402,"vocabulary":19,"volume":195.405,"operands":{"distinct":14,"total":26},"operators":{"distinct":5,"total":20}},"paramCount":1,"sloc":{"logical":8,"physical":11}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/h5/.eslintrc.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.042,"difficulty":3.077,"effort":384.916,"length":30,"time":21.384,"vocabulary":18,"volume":125.098,"operands":{"distinct":13,"total":16,"identifiers":["module","exports","extends","\"@webank/eslint-config-webank/vue.js\"","globals","__DEV__","false","rules","\"vue/comment-directive\"","\"off\"","\"global-require\"","\"import/no-unresolved\"","\"no-restricted-syntax\""]},"operators":{"distinct":5,"total":14,"identifiers":["=",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":9,"physical":20}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":20,"lineStart":1,"maintainability":67.278,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.042,"difficulty":3.077,"effort":384.916,"length":30,"time":21.384,"vocabulary":18,"volume":125.098,"operands":{"distinct":13,"total":16},"operators":{"distinct":5,"total":14}},"paramCount":0,"sloc":{"logical":9,"physical":20}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/h5/.fes.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":4.545,"halstead":{"bugs":0.118,"difficulty":2.182,"effort":772.893,"length":68,"time":42.939,"vocabulary":37,"volume":354.243,"operands":{"distinct":33,"total":36,"identifiers":["define","request","dataField","\"\"","html","title","\"拉夫德鲁\"","extraPostCSSPlugins","pxtoviewport","unitToConvert","\"px\"","viewportWidth","375","unitPrecision","5","propList","\"*\"","viewportUnit","\"vw\"","fontViewportUnit","selectorBlackList","minPixelValue","1","mediaQuery","false","replace","true","exclude","landscape","landscapeUnit","devServer","port","8000"]},"operators":{"distinct":4,"total":32,"identifiers":["{}",":","[]","()"]}},"paramCount":0,"sloc":{"logical":22,"physical":37}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"@ttou/postcss-px-to-viewport","type":"esm"}],"errors":[],"lineEnd":37,"lineStart":1,"maintainability":57.416,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":4.545,"halstead":{"bugs":0.118,"difficulty":2.182,"effort":772.893,"length":68,"time":42.939,"vocabulary":37,"volume":354.243,"operands":{"distinct":33,"total":36},"operators":{"distinct":4,"total":32}},"paramCount":0,"sloc":{"logical":22,"physical":37}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/h5/src/app.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.014,"difficulty":3,"effort":124.54,"length":12,"time":6.919,"vocabulary":11,"volume":41.513,"operands":{"distinct":5,"total":5,"identifiers":["request","errorConfig","console","log","\"to 404 page\""]},"operators":{"distinct":6,"total":7,"identifiers":["const","=","{}",":","()","."]}},"paramCount":0,"sloc":{"logical":4,"physical":8}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":8,"lineStart":1,"maintainability":77.217,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.014,"difficulty":3,"effort":124.54,"length":12,"time":6.919,"vocabulary":11,"volume":41.513,"operands":{"distinct":5,"total":5},"operators":{"distinct":6,"total":7}},"paramCount":0,"sloc":{"logical":4,"physical":8}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/h5/src/common/service.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":1}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":1,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":1}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/h5/src/common/utils.js","report":{"aggregate":{"cyclomatic":25,"cyclomaticDensity":46.296,"halstead":{"bugs":0.665,"difficulty":21,"effort":41904.163,"length":301,"time":2328.009,"vocabulary":99,"volume":1995.436,"operands":{"distinct":78,"total":156,"identifiers":["resetContainerHeight","dom","originalHeight","document","body","clientHeight","documentElement","window","onresize","resizeHeight","container","querySelector","style","height","resetInputBlur","isWechat","navigator","userAgent","match","/MicroMessenger\\/([\\d.]+)/i","wechatVersion","1","version","appVersion","/OS (\\d+)_(\\d+)_?(\\d+)?/","replace","/\\./g","\"\"","674","12","scrollTo","0","Math","max","getQueryString","name","reg","RegExp","(^|&)","=([^&]*)(&|$)","\"i\"","r","location","search","substr","null","decodeURIComponent","2","simpleRequest","options","xhr","XMLHttpRequest","timeout","3000","type","\"GET\"","open","url","async","true","send","\"POST\"","setRequestHeader","\"Content-Type\"","\"application/json\"","JSON","stringify","data","onreadystatechange","readyState","4","status","200","300","successed","responseText","failed","ontimeout"]},"operators":{"distinct":21,"total":145,"identifiers":["function","const","=","||",".","if","<","()","! (prefix)","return","[]","&&",">=","+ (prefix)","new","``","${}","!=","else","===","{}"]}},"paramCount":3,"sloc":{"logical":54,"physical":67}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":67,"lineStart":1,"maintainability":64.116,"methods":[{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.023,"difficulty":3.214,"effort":218.939,"length":19,"time":12.163,"vocabulary":12,"volume":68.114,"operands":{"distinct":7,"total":9,"identifiers":["originalHeight","document","body","clientHeight","documentElement","window","onresize"]},"operators":{"distinct":5,"total":10,"identifiers":["const","=","||",".","function"]}},"paramCount":1,"sloc":{"logical":3,"physical":12},"errors":[],"lineEnd":19,"lineStart":8,"name":"resetContainerHeight","paramNames":["dom"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":60,"halstead":{"bugs":0.046,"difficulty":5.409,"effort":744.332,"length":33,"time":41.352,"vocabulary":18,"volume":137.608,"operands":{"distinct":11,"total":17,"identifiers":["resizeHeight","document","documentElement","clientHeight","body","originalHeight","container","querySelector","dom","style","height"]},"operators":{"distinct":7,"total":16,"identifiers":["const","=","||",".","if","<","()"]}},"paramCount":0,"sloc":{"logical":5,"physical":8},"errors":[],"lineEnd":18,"lineStart":11,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":36.364,"halstead":{"bugs":0.116,"difficulty":7.792,"effort":2717.665,"length":68,"time":150.981,"vocabulary":35,"volume":348.791,"operands":{"distinct":24,"total":34,"identifiers":["isWechat","window","navigator","userAgent","match","/MicroMessenger\\/([\\d.]+)/i","wechatVersion","1","version","appVersion","/OS (\\d+)_(\\d+)_?(\\d+)?/","replace","/\\./g","\"\"","674","12","scrollTo","0","Math","max","document","body","clientHeight","documentElement"]},"operators":{"distinct":11,"total":34,"identifiers":["const","=","()",".","if","! (prefix)","return","[]","&&",">=","+ (prefix)"]}},"paramCount":0,"sloc":{"logical":11,"physical":11},"errors":[],"lineEnd":32,"lineStart":22,"name":"resetInputBlur","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.062,"difficulty":6.875,"effort":1274.904,"length":39,"time":70.828,"vocabulary":27,"volume":185.441,"operands":{"distinct":16,"total":20,"identifiers":["reg","RegExp","name","(^|&)","=([^&]*)(&|$)","\"i\"","r","window","location","search","substr","1","match","null","decodeURIComponent","2"]},"operators":{"distinct":11,"total":19,"identifiers":["const","=","new","``","${}","()",".","if","!=","return","[]"]}},"paramCount":1,"sloc":{"logical":8,"physical":8},"errors":[],"lineEnd":41,"lineStart":34,"name":"getQueryString","paramNames":["name"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":40,"halstead":{"bugs":0.146,"difficulty":11.5,"effort":5046.916,"length":87,"time":280.384,"vocabulary":33,"volume":438.862,"operands":{"distinct":22,"total":46,"identifiers":["xhr","XMLHttpRequest","timeout","3000","options","type","\"GET\"","open","url","async","true","send","null","\"POST\"","setRequestHeader","\"Content-Type\"","\"application/json\"","JSON","stringify","data","onreadystatechange","ontimeout"]},"operators":{"distinct":11,"total":41,"identifiers":["const","=","new",".","if","else","===","()","||","{}","function"]}},"paramCount":1,"sloc":{"logical":15,"physical":24},"errors":[],"lineEnd":66,"lineStart":43,"name":"simpleRequest","paramNames":["options"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":5,"cyclomaticDensity":83.333,"halstead":{"bugs":0.049,"difficulty":7.2,"effort":1050.821,"length":35,"time":58.379,"vocabulary":18,"volume":145.947,"operands":{"distinct":10,"total":18,"identifiers":["xhr","readyState","4","status","200","300","options","successed","responseText","failed"]},"operators":{"distinct":8,"total":17,"identifiers":["if","===",".","else","&&",">=","<","()"]}},"paramCount":0,"sloc":{"logical":6,"physical":9},"errors":[],"lineEnd":62,"lineStart":54,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.008,"difficulty":2.5,"effort":58.162,"length":9,"time":3.231,"vocabulary":6,"volume":23.265,"operands":{"distinct":3,"total":5,"identifiers":["options","failed","xhr"]},"operators":{"distinct":3,"total":4,"identifiers":["&&",".","()"]}},"paramCount":0,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":65,"lineStart":63,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3.125,"cyclomaticDensity":5.787,"halstead":{"bugs":0.083,"difficulty":2.625,"effort":5238.02,"length":37.625,"time":291.001,"vocabulary":12.375,"volume":249.43,"operands":{"distinct":9.75,"total":19.5},"operators":{"distinct":2.625,"total":18.125}},"paramCount":0.375,"sloc":{"logical":6.75,"physical":8.375}},"methodAverage":{"cyclomatic":3.429,"cyclomaticDensity":58.766,"halstead":{"bugs":0.064,"difficulty":6.356,"effort":1587.391,"length":41.429,"time":88.188,"vocabulary":21.286,"volume":192.575,"operands":{"distinct":13.286,"total":21.286},"operators":{"distinct":8,"total":20.143}},"paramCount":0.429,"sloc":{"logical":7.143,"physical":10.714}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/h5/src/models/user.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":1}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":1,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":1}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/h5/src/pages/index.vue","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":12.5,"halstead":{"bugs":0.095,"difficulty":7.206,"effort":2048.399,"length":62,"time":113.8,"vocabulary":24,"volume":284.268,"operands":{"distinct":17,"total":35,"identifiers":["fes","ref","\"fes upgrade to vue3\"","rotate","90","router","useRouter","onMounted","console","log","\"mounted1!!\"","clickIcon","\"click Icon\"","loading","data","useRequest","\"api\""]},"operators":{"distinct":7,"total":27,"identifiers":["{}","const","=","()","function=>",".","return"]}},"paramCount":0,"sloc":{"logical":24,"physical":27}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"vue","type":"esm"},{"line":3,"path":"@fesjs/fes","type":"esm"}],"errors":[],"lineEnd":27,"lineStart":1,"maintainability":67.248,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.009,"difficulty":1.5,"effort":38.774,"length":10,"time":2.154,"vocabulary":6,"volume":25.85,"operands":{"distinct":4,"total":6,"identifiers":["console","log","router","\"mounted1!!\""]},"operators":{"distinct":2,"total":4,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":13,"lineStart":10,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["console","log","\"click Icon\""]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":16,"lineStart":14,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":4.167,"halstead":{"bugs":0.032,"difficulty":2.402,"effort":682.8,"length":20.667,"time":37.933,"vocabulary":8,"volume":94.756,"operands":{"distinct":5.667,"total":11.667},"operators":{"distinct":2.333,"total":9}},"paramCount":0,"sloc":{"logical":8,"physical":9}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":75,"halstead":{"bugs":0.006,"difficulty":1.25,"effort":25.192,"length":7.5,"time":1.4,"vocabulary":5.5,"volume":18.73,"operands":{"distinct":3.5,"total":4.5},"operators":{"distinct":2,"total":3}},"paramCount":0,"sloc":{"logical":1.5,"physical":3.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/h5/src/pages/onepiece.vue","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.011,"difficulty":4.167,"effort":137.5,"length":11,"time":7.639,"vocabulary":8,"volume":33,"operands":{"distinct":3,"total":5,"identifiers":["fes","ref","\"fes upgrade to vue3\""]},"operators":{"distinct":5,"total":6,"identifiers":["{}","const","=","()","return"]}},"paramCount":0,"sloc":{"logical":5,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"vue","type":"esm"}],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":74.905,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.011,"difficulty":4.167,"effort":137.5,"length":11,"time":7.639,"vocabulary":8,"volume":33,"operands":{"distinct":3,"total":5},"operators":{"distinct":5,"total":6}},"paramCount":0,"sloc":{"logical":5,"physical":12}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/pc/.eslintrc.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.034,"difficulty":3,"effort":306.56,"length":25,"time":17.031,"vocabulary":17,"volume":102.187,"operands":{"distinct":11,"total":11,"identifiers":["module","exports","extends","\"@webank/eslint-config-webank/vue.js\"","overrides","files","\"**/__tests__/*.{j,t}s?(x)\"","\"**/tests/unit/**/*.spec.{j,t}s?(x)\"","env","jest","true"]},"operators":{"distinct":6,"total":14,"identifiers":["=",".","{}",":","[]",","]}},"paramCount":0,"sloc":{"logical":6,"physical":15}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":15,"lineStart":1,"maintainability":71.575,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.034,"difficulty":3,"effort":306.56,"length":25,"time":17.031,"vocabulary":17,"volume":102.187,"operands":{"distinct":11,"total":11},"operators":{"distinct":6,"total":14}},"paramCount":0,"sloc":{"logical":6,"physical":15}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/pc/.fes.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":6.667,"halstead":{"bugs":0.096,"difficulty":2,"effort":574.687,"length":58,"time":31.927,"vocabulary":31,"volume":287.343,"operands":{"distinct":27,"total":27,"identifiers":["publicPath","\"./\"","access","roles","admin","\"*\"","manager","\"/\"","layout","title","\"Fes.js\"","footer","\"Created by MumbleFe\"","multiTabs","false","menus","name","\"index\"","devServer","port","8000","enums","status","\"0\"","\"无效的\"","\"1\"","\"有效的\""]},"operators":{"distinct":4,"total":31,"identifiers":["{}",":","[]",","]}},"paramCount":0,"sloc":{"logical":15,"physical":27}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":27,"lineStart":1,"maintainability":61.637,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":6.667,"halstead":{"bugs":0.096,"difficulty":2,"effort":574.687,"length":58,"time":31.927,"vocabulary":31,"volume":287.343,"operands":{"distinct":27,"total":27},"operators":{"distinct":4,"total":31}},"paramCount":0,"sloc":{"logical":15,"physical":27}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/pc/.fes.prod.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["publicPath","\"\""]},"operators":{"distinct":2,"total":2,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":1,"physical":7}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":7,"lineStart":1,"maintainability":95.841,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2},"operators":{"distinct":2,"total":2}},"paramCount":0,"sloc":{"logical":1,"physical":7}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/pc/src/app.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":21.429,"halstead":{"bugs":0.053,"difficulty":4.923,"effort":778.454,"length":36,"time":43.247,"vocabulary":21,"volume":158.123,"operands":{"distinct":13,"total":16,"identifiers":["beforeRender","loading","setRole","access","Promise","resolve","setTimeout","\"admin\"","userName","\"harrywan\"","1000","layout","customHeader"]},"operators":{"distinct":8,"total":20,"identifiers":["const","=","{}",":","return","new","function=>","()"]}},"paramCount":1,"sloc":{"logical":14,"physical":26}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":3,"path":"@fesjs/fes","type":"esm"},{"line":4,"path":"@/components/PageLoading","type":"esm"},{"line":5,"path":"@/components/UserCenter","type":"esm"}],"errors":[],"lineEnd":26,"lineStart":1,"maintainability":74.289,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["setTimeout","1000"]},"operators":{"distinct":2,"total":2,"identifiers":["()","function=>"]}},"paramCount":1,"sloc":{"logical":2,"physical":9},"errors":[],"lineEnd":19,"lineStart":11,"name":"","paramNames":["resolve"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.009,"difficulty":1.5,"effort":40.5,"length":9,"time":2.25,"vocabulary":8,"volume":27,"operands":{"distinct":5,"total":5,"identifiers":["setRole","\"admin\"","resolve","userName","\"harrywan\""]},"operators":{"distinct":3,"total":4,"identifiers":["()","{}",":"]}},"paramCount":0,"sloc":{"logical":3,"physical":7},"errors":[],"lineEnd":18,"lineStart":12,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":7.143,"halstead":{"bugs":0.018,"difficulty":1.641,"effort":259.485,"length":12,"time":14.416,"vocabulary":7,"volume":52.708,"operands":{"distinct":4.333,"total":5.333},"operators":{"distinct":2.667,"total":6.667}},"paramCount":0.333,"sloc":{"logical":4.667,"physical":8.667}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":41.667,"halstead":{"bugs":0.006,"difficulty":1.25,"effort":24.25,"length":6.5,"time":1.347,"vocabulary":6,"volume":17.5,"operands":{"distinct":3.5,"total":3.5},"operators":{"distinct":2.5,"total":3}},"paramCount":0.5,"sloc":{"logical":2.5,"physical":8}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/pc/src/common/service.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":2}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":2,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":2}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/pc/src/common/utils.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":2}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":2,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":2}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/pc/src/components/PageLoading.vue","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":1.5,"effort":18,"length":6,"time":1,"vocabulary":4,"volume":12,"operands":{"distinct":2,"total":3,"identifiers":["components","Spin"]},"operators":{"distinct":2,"total":3,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":2,"physical":10}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"ant-design-vue/lib/spin","type":"esm"},{"line":3,"path":"ant-design-vue/lib/spin/style/css","type":"esm"}],"errors":[],"lineEnd":10,"lineStart":1,"maintainability":87.653,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":1.5,"effort":18,"length":6,"time":1,"vocabulary":4,"volume":12,"operands":{"distinct":2,"total":3},"operators":{"distinct":2,"total":3}},"paramCount":0,"sloc":{"logical":2,"physical":10}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/pc/src/components/UserCenter.vue","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.011,"difficulty":4.167,"effort":137.5,"length":11,"time":7.639,"vocabulary":8,"volume":33,"operands":{"distinct":3,"total":5,"identifiers":["initialState","useModel","\"@@initialState\""]},"operators":{"distinct":5,"total":6,"identifiers":["{}","const","=","()","return"]}},"paramCount":0,"sloc":{"logical":5,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"@fesjs/fes","type":"esm"}],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":74.905,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.011,"difficulty":4.167,"effort":137.5,"length":11,"time":7.639,"vocabulary":8,"volume":33,"operands":{"distinct":3,"total":5},"operators":{"distinct":5,"total":6}},"paramCount":0,"sloc":{"logical":5,"physical":12}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/pc/src/models/user.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":1}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":1,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":1}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/create-fes-app/templates/app/pc/src/pages/index.vue","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":15.385,"halstead":{"bugs":0.048,"difficulty":8.1,"effort":1169.879,"length":34,"time":64.993,"vocabulary":19,"volume":144.43,"operands":{"distinct":10,"total":18,"identifiers":["fes","ref","\"fes upgrade to vue3\"","count","0","increment","value","enumsGet","enums","get"]},"operators":{"distinct":9,"total":16,"identifiers":["{}","const","=","()","function=>","++ (postfix)",".","return",":"]}},"paramCount":0,"sloc":{"logical":13,"physical":23}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"vue","type":"esm"},{"line":5,"path":"@fesjs/fes","type":"esm"}],"errors":[],"lineEnd":23,"lineStart":1,"maintainability":69.524,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["count","value"]},"operators":{"distinct":2,"total":2,"identifiers":["++ (postfix)","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":13,"lineStart":11,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":7.692,"halstead":{"bugs":0.024,"difficulty":4.05,"effort":584.94,"length":17,"time":32.497,"vocabulary":9.5,"volume":72.215,"operands":{"distinct":5,"total":9},"operators":{"distinct":4.5,"total":8}},"paramCount":0,"sloc":{"logical":6.5,"physical":11.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2},"operators":{"distinct":2,"total":2}},"paramCount":0,"sloc":{"logical":1,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes/bin/fes.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":33.333,"halstead":{"bugs":0.081,"difficulty":10.4,"effort":2521.992,"length":51,"time":140.111,"vocabulary":27,"volume":242.499,"operands":{"distinct":15,"total":26,"identifiers":["resolveCwd","require","\"resolve-cwd\"","name","bin","\"../package.json\"","localCLI","silent","fes","/","process","env","USE_GLOBAL_FES","__filename","\"../lib/cli\""]},"operators":{"distinct":12,"total":25,"identifiers":["const","=","()","{}",".","``","${}","if","else","&&","! (prefix)","!=="]}},"paramCount":0,"sloc":{"logical":12,"physical":14}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":3,"path":"resolve-cwd","type":"cjs"},{"line":5,"path":"../package.json","type":"cjs"},{"line":10,"path":"* dynamic dependency *","type":"cjs"},{"line":12,"path":"../lib/cli","type":"cjs"}],"errors":[],"lineEnd":14,"lineStart":1,"maintainability":59.982,"methods":[],"aggregateAverage":{"cyclomatic":4,"cyclomaticDensity":33.333,"halstead":{"bugs":0.081,"difficulty":10.4,"effort":2521.992,"length":51,"time":140.111,"vocabulary":27,"volume":242.499,"operands":{"distinct":15,"total":26},"operators":{"distinct":12,"total":25}},"paramCount":0,"sloc":{"logical":12,"physical":14}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes/build.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4,"identifiers":["module","exports","copy","\"index.js\""]},"operators":{"distinct":5,"total":5,"identifiers":["=",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":84.899,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4},"operators":{"distinct":5,"total":5}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes/src/cli.js","report":{"aggregate":{"cyclomatic":8,"cyclomaticDensity":16.667,"halstead":{"bugs":0.404,"difficulty":16.138,"effort":19560.753,"length":194,"time":1086.708,"vocabulary":76,"volume":1212.098,"operands":{"distinct":58,"total":104,"identifiers":["requiredVersion","fesPkg","engines","node","checkNodeVersion","wanted","id","semver","satisfies","process","version","includePrerelease","true","console","log","chalk","red","You are using Node ",", but this version of "," requires Node ",".\nPlease upgrade your Node version.","exit","1","\"@fesjs/fes\"","rawArgv","argv","slice","2","args","yParser","command","_","0","\"dev\"","child","fork","scriptPath","require","resolve","\"./forkedDev\"","on","\"SIGINT\"","kill","\"SIGTERM\"","\"build\"","env","NODE_ENV","\"production\"","Service","cwd","getCwd","pkg","getPkg","run","e","error","message","stack"]},"operators":{"distinct":18,"total":90,"identifiers":["const","=",".","function","if","! (prefix)","()","{}",":","``","${}","function=>","try","[]","else","===","new","catch"]}},"paramCount":2,"sloc":{"logical":48,"physical":65}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@fesjs/utils","type":"esm"},{"line":2,"path":"./serviceWithBuiltIn","type":"esm"},{"line":3,"path":"./utils/fork","type":"esm"},{"line":4,"path":"./utils/getCwd","type":"esm"},{"line":5,"path":"./utils/getPkg","type":"esm"},{"line":6,"path":"../package.json","type":"esm"}],"errors":[],"lineEnd":65,"lineStart":1,"maintainability":61.754,"methods":[{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.063,"difficulty":4.889,"effort":919.197,"length":40,"time":51.067,"vocabulary":26,"volume":188.018,"operands":{"distinct":18,"total":22,"identifiers":["semver","satisfies","process","version","wanted","includePrerelease","true","console","log","chalk","red","id","You are using Node ",", but this version of "," requires Node ",".\nPlease upgrade your Node version.","exit","1"]},"operators":{"distinct":8,"total":18,"identifiers":["if","! (prefix)","()",".","{}",":","``","${}"]}},"paramCount":2,"sloc":{"logical":6,"physical":12},"errors":[],"lineEnd":21,"lineStart":10,"name":"checkNodeVersion","paramNames":["wanted","id"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":10.345,"halstead":{"bugs":0.188,"difficulty":10.111,"effort":5706.566,"length":100,"time":317.031,"vocabulary":50,"volume":564.386,"operands":{"distinct":36,"total":52,"identifiers":["command","args","_","0","\"dev\"","child","fork","scriptPath","require","resolve","\"./forkedDev\"","process","on","\"SIGINT\"","\"SIGTERM\"","\"build\"","env","NODE_ENV","\"production\"","Service","cwd","getCwd","pkg","getPkg","fesPkg","run","rawArgv","e","console","error","chalk","red","message","stack","exit","1"]},"operators":{"distinct":14,"total":48,"identifiers":["try","const","=","[]",".","if","else","===","()","{}",":","function=>","new","catch"]}},"paramCount":0,"sloc":{"logical":29,"physical":36},"errors":[],"lineEnd":64,"lineStart":29,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":1,"effort":30,"length":10,"time":1.667,"vocabulary":8,"volume":30,"operands":{"distinct":6,"total":6,"identifiers":["child","kill","\"SIGINT\"","process","exit","1"]},"operators":{"distinct":2,"total":4,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":41,"lineStart":38,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":1,"effort":30,"length":10,"time":1.667,"vocabulary":8,"volume":30,"operands":{"distinct":6,"total":6,"identifiers":["child","kill","\"SIGTERM\"","process","exit","1"]},"operators":{"distinct":2,"total":4,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":45,"lineStart":42,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.6,"cyclomaticDensity":3.333,"halstead":{"bugs":0.081,"difficulty":3.228,"effort":3912.151,"length":38.8,"time":217.342,"vocabulary":15.2,"volume":242.42,"operands":{"distinct":11.6,"total":20.8},"operators":{"distinct":3.6,"total":18}},"paramCount":0.4,"sloc":{"logical":9.6,"physical":13}},"methodAverage":{"cyclomatic":1.75,"cyclomaticDensity":35.92,"halstead":{"bugs":0.068,"difficulty":4.25,"effort":1671.441,"length":40,"time":92.858,"vocabulary":23,"volume":203.101,"operands":{"distinct":16.5,"total":21.5},"operators":{"distinct":6.5,"total":18.5}},"paramCount":0.5,"sloc":{"logical":9.75,"physical":14}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes/src/forkedDev.js","report":{"aggregate":{"cyclomatic":7,"cyclomaticDensity":15.217,"halstead":{"bugs":0.285,"difficulty":12.727,"effort":10885.194,"length":146,"time":604.733,"vocabulary":58,"volume":855.265,"operands":{"distinct":44,"total":80,"identifiers":["args","yParser","process","argv","slice","2","closed","false","onSignal","signal","service","true","applyPlugins","key","\"onExit\"","type","ApplyPluginsType","event","exit","0","env","NODE_ENV","\"development\"","Service","cwd","getCwd","pkg","getPkg","fesPkg","run","name","\"dev\"","once","\"SIGINT\"","\"SIGQUIT\"","\"SIGTERM\"","e","console","error","chalk","red","message","stack","1"]},"operators":{"distinct":14,"total":66,"identifiers":["const","=","()",".","let","function","if","return","{}",":","function=>","try","new","catch"]}},"paramCount":2,"sloc":{"logical":46,"physical":56}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":6,"path":"@fesjs/utils","type":"esm"},{"line":7,"path":"./serviceWithBuiltIn","type":"esm"},{"line":8,"path":"./utils/getCwd","type":"esm"},{"line":9,"path":"./utils/getPkg","type":"esm"},{"line":10,"path":"../package.json","type":"esm"}],"errors":[],"lineEnd":56,"lineStart":1,"maintainability":65.606,"methods":[{"cyclomatic":2,"cyclomaticDensity":22.222,"halstead":{"bugs":0.045,"difficulty":4.25,"effort":578.688,"length":31,"time":32.149,"vocabulary":21,"volume":136.162,"operands":{"distinct":14,"total":17,"identifiers":["closed","true","service","applyPlugins","key","\"onExit\"","type","ApplyPluginsType","event","args","signal","process","exit","0"]},"operators":{"distinct":7,"total":14,"identifiers":["if","return","=","()",".","{}",":"]}},"paramCount":2,"sloc":{"logical":9,"physical":14},"errors":[],"lineEnd":28,"lineStart":15,"name":"onSignal","paramNames":["signal","service"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":4.167,"halstead":{"bugs":0.142,"difficulty":7.679,"effort":3264.023,"length":81,"time":181.335,"vocabulary":38,"volume":425.082,"operands":{"distinct":28,"total":43,"identifiers":["process","env","NODE_ENV","\"development\"","service","Service","cwd","getCwd","pkg","getPkg","fesPkg","run","name","\"dev\"","args","once","\"SIGINT\"","\"SIGQUIT\"","\"SIGTERM\"","e","console","error","chalk","red","message","stack","exit","1"]},"operators":{"distinct":10,"total":38,"identifiers":["try","=",".","const","new","{}",":","()","function=>","catch"]}},"paramCount":0,"sloc":{"logical":24,"physical":26},"errors":[],"lineEnd":55,"lineStart":30,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":0.5,"effort":4,"length":4,"time":0.222,"vocabulary":4,"volume":8,"operands":{"distinct":3,"total":3,"identifiers":["onSignal","\"SIGINT\"","service"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":45,"lineStart":45,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":0.5,"effort":4,"length":4,"time":0.222,"vocabulary":4,"volume":8,"operands":{"distinct":3,"total":3,"identifiers":["onSignal","\"SIGQUIT\"","service"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":47,"lineStart":47,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":0.5,"effort":4,"length":4,"time":0.222,"vocabulary":4,"volume":8,"operands":{"distinct":3,"total":3,"identifiers":["onSignal","\"SIGTERM\"","service"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":49,"lineStart":49,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.167,"cyclomaticDensity":2.536,"halstead":{"bugs":0.048,"difficulty":2.121,"effort":1814.199,"length":24.333,"time":100.789,"vocabulary":9.667,"volume":142.544,"operands":{"distinct":7.333,"total":13.333},"operators":{"distinct":2.333,"total":11}},"paramCount":0.333,"sloc":{"logical":7.667,"physical":9.333}},"methodAverage":{"cyclomatic":1.2,"cyclomaticDensity":35.278,"halstead":{"bugs":0.039,"difficulty":2.686,"effort":770.942,"length":24.8,"time":42.83,"vocabulary":14.2,"volume":117.049,"operands":{"distinct":10.2,"total":13.8},"operators":{"distinct":4,"total":11}},"paramCount":0.4,"sloc":{"logical":7.8,"physical":8.6}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes/src/index.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes/src/serviceWithBuiltIn.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":36.364,"halstead":{"bugs":0.095,"difficulty":10.125,"effort":2871.794,"length":59,"time":159.544,"vocabulary":28,"volume":283.634,"operands":{"distinct":16,"total":27,"identifiers":["Service","CoreService","constructor","opts","process","env","FES_VERSION","require","\"../package\"","version","FES_DIR","dirname","resolve","presets","\"@fesjs/preset-built-in\"","plugins"]},"operators":{"distinct":12,"total":32,"identifiers":["class","extends","=",".","()","super","{}","... (spread)",":","[]",",","||"]}},"paramCount":1,"sloc":{"logical":11,"physical":26}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[{"aggregate":{"cyclomatic":3,"cyclomaticDensity":30,"halstead":{"bugs":0.084,"difficulty":8.929,"effort":2251.544,"length":55,"time":125.086,"vocabulary":24,"volume":252.173,"operands":{"distinct":14,"total":25,"identifiers":["constructor","opts","process","env","FES_VERSION","require","\"../package\"","version","FES_DIR","dirname","resolve","presets","\"@fesjs/preset-built-in\"","plugins"]},"operators":{"distinct":10,"total":30,"identifiers":["=",".","()","super","{}","... (spread)",":","[]",",","||"]}},"paramCount":1,"sloc":{"logical":10,"physical":15}},"errors":[],"lineEnd":23,"lineStart":9,"methods":[{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.08,"difficulty":8.846,"effort":2120.855,"length":53,"time":117.825,"vocabulary":23,"volume":239.749,"operands":{"distinct":13,"total":23,"identifiers":["process","env","FES_VERSION","require","\"../package\"","version","FES_DIR","dirname","resolve","opts","presets","\"@fesjs/preset-built-in\"","plugins"]},"operators":{"distinct":10,"total":30,"identifiers":["=",".","()","super","{}","... (spread)",":","[]",",","||"]}},"paramCount":1,"sloc":{"logical":9,"physical":13},"errors":[],"lineEnd":22,"lineStart":10,"name":"constructor","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":15,"halstead":{"bugs":0.042,"difficulty":4.464,"effort":1125.772,"length":27.5,"time":62.543,"vocabulary":12,"volume":126.086,"operands":{"distinct":7,"total":12.5},"operators":{"distinct":5,"total":15}},"paramCount":0.5,"sloc":{"logical":5,"physical":7.5}},"methodAverage":{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.08,"difficulty":8.846,"effort":2120.855,"length":53,"time":117.825,"vocabulary":23,"volume":239.749,"operands":{"distinct":13,"total":23},"operators":{"distinct":10,"total":30}},"paramCount":1,"sloc":{"logical":9,"physical":13}},"name":"Service","superClassName":"CoreService","maintainability":63.223}],"dependencies":[{"line":6,"path":"path","type":"esm"},{"line":7,"path":"@fesjs/compiler","type":"esm"},{"line":11,"path":"../package","type":"cjs"}],"errors":[],"lineEnd":26,"lineStart":1,"maintainability":68.905,"methods":[],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":18.182,"halstead":{"bugs":0.047,"difficulty":5.063,"effort":1435.897,"length":29.5,"time":79.772,"vocabulary":14,"volume":141.817,"operands":{"distinct":8,"total":13.5},"operators":{"distinct":6,"total":16}},"paramCount":0.5,"sloc":{"logical":5.5,"physical":13}},"methodAverage":{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.08,"difficulty":8.846,"effort":2120.855,"length":53,"time":117.825,"vocabulary":23,"volume":239.749,"operands":{"distinct":13,"total":23},"operators":{"distinct":10,"total":30}},"paramCount":1,"sloc":{"logical":9,"physical":13}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes/src/utils/fork.js","report":{"aggregate":{"cyclomatic":13,"cyclomaticDensity":28.889,"halstead":{"bugs":0.34,"difficulty":25.244,"effort":25748.78,"length":170,"time":1430.488,"vocabulary":64,"volume":1020,"operands":{"distinct":41,"total":90,"identifiers":["usedPorts","CURRENT_PORT","start","scriptPath","execArgv","process","slice","0","inspectArgvIndex","findIndex","argv","includes","\"--inspect-brk\"","1","inspectArgv","splice","replace","/--inspect-brk=(.*)/","match","s1","port","parseInt","10","e","9230","push","--inspect-brk=","env","PORT","child","fork","2","on","\"message\"","data","type","null","\"RESTART\"","kill","\"UPDATE_PORT\"","send"]},"operators":{"distinct":23,"total":80,"identifiers":["const","=","[]","let","function","{}","()",".","function=>","if",">","- (prefix)","try","+","catch","+=","return","``","${}","||","&&","else","==="]}},"paramCount":5,"sloc":{"logical":45,"physical":61}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":3,"path":"child_process","type":"esm"}],"errors":[],"lineEnd":61,"lineStart":1,"maintainability":61.532,"methods":[{"cyclomatic":3,"cyclomaticDensity":15.789,"halstead":{"bugs":0.133,"difficulty":9.625,"effort":3850.809,"length":78,"time":213.934,"vocabulary":35,"volume":400.084,"operands":{"distinct":24,"total":42,"identifiers":["execArgv","process","slice","0","inspectArgvIndex","findIndex","argv","1","inspectArgv","splice","replace","/--inspect-brk=(.*)/","match","s1","CURRENT_PORT","env","PORT","child","fork","scriptPath","2","on","\"message\"","data"]},"operators":{"distinct":11,"total":36,"identifiers":["const","=","()",".","function=>","if",">","- (prefix)","[]","{}","return"]}},"paramCount":1,"sloc":{"logical":19,"physical":53},"errors":[],"lineEnd":60,"lineStart":8,"name":"start","paramNames":["scriptPath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["argv","includes","\"--inspect-brk\""]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":12,"lineStart":12,"name":"","paramNames":["argv"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":18.182,"halstead":{"bugs":0.053,"difficulty":10.364,"effort":1640.819,"length":35,"time":91.157,"vocabulary":23,"volume":158.325,"operands":{"distinct":11,"total":19,"identifiers":["port","parseInt","s1","10","1","e","9230","usedPorts","includes","push","--inspect-brk="]},"operators":{"distinct":12,"total":16,"identifiers":["let","try","=","+","()","catch","if",".","+=","return","``","${}"]}},"paramCount":2,"sloc":{"logical":11,"physical":13},"errors":[],"lineEnd":31,"lineStart":19,"name":"","paramNames":["match","s1"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":60,"halstead":{"bugs":0.063,"difficulty":8.462,"effort":1607.604,"length":42,"time":89.311,"vocabulary":23,"volume":189.99,"operands":{"distinct":13,"total":22,"identifiers":["type","data","null","\"RESTART\"","child","kill","start","scriptPath","\"UPDATE_PORT\"","CURRENT_PORT","port","process","send"]},"operators":{"distinct":10,"total":20,"identifiers":["const","=","||","&&",".","if","else","===","()","{}"]}},"paramCount":1,"sloc":{"logical":10,"physical":13},"errors":[],"lineEnd":57,"lineStart":45,"name":"","paramNames":["data"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.6,"cyclomaticDensity":5.778,"halstead":{"bugs":0.068,"difficulty":5.049,"effort":5149.756,"length":34,"time":286.098,"vocabulary":12.8,"volume":204,"operands":{"distinct":8.2,"total":18},"operators":{"distinct":4.6,"total":16}},"paramCount":1,"sloc":{"logical":9,"physical":12.2}},"methodAverage":{"cyclomatic":3,"cyclomaticDensity":35.993,"halstead":{"bugs":0.063,"difficulty":7.363,"effort":1777.711,"length":40,"time":98.762,"vocabulary":21.5,"volume":190.002,"operands":{"distinct":12.75,"total":21.5},"operators":{"distinct":8.75,"total":18.5}},"paramCount":1.25,"sloc":{"logical":10.5,"physical":20}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes/src/utils/getCwd.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":40,"halstead":{"bugs":0.051,"difficulty":12.667,"effort":1929.06,"length":40,"time":107.17,"vocabulary":14,"volume":152.294,"operands":{"distinct":6,"total":19,"identifiers":["cwd","process","env","APP_ROOT","isAbsolute","join"]},"operators":{"distinct":8,"total":21,"identifiers":["function=>","const","=","()",".","if","! (prefix)","return"]}},"paramCount":0,"sloc":{"logical":10,"physical":14}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"path","type":"esm"}],"errors":[],"lineEnd":14,"lineStart":1,"maintainability":70.604,"methods":[{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.048,"difficulty":11.083,"effort":1599.515,"length":39,"time":88.862,"vocabulary":13,"volume":144.317,"operands":{"distinct":6,"total":19,"identifiers":["cwd","process","env","APP_ROOT","isAbsolute","join"]},"operators":{"distinct":7,"total":20,"identifiers":["const","=","()",".","if","! (prefix)","return"]}},"paramCount":0,"sloc":{"logical":9,"physical":11},"errors":[],"lineEnd":13,"lineStart":3,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":20,"halstead":{"bugs":0.025,"difficulty":6.333,"effort":964.53,"length":20,"time":53.585,"vocabulary":7,"volume":76.147,"operands":{"distinct":3,"total":9.5},"operators":{"distinct":4,"total":10.5}},"paramCount":0,"sloc":{"logical":5,"physical":7}},"methodAverage":{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.048,"difficulty":11.083,"effort":1599.515,"length":39,"time":88.862,"vocabulary":13,"volume":144.317,"operands":{"distinct":6,"total":19},"operators":{"distinct":7,"total":20}},"paramCount":0,"sloc":{"logical":9,"physical":11}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes/src/utils/getPkg.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":15.385,"halstead":{"bugs":0.031,"difficulty":3.75,"effort":346.916,"length":25,"time":19.273,"vocabulary":13,"volume":92.511,"operands":{"distinct":8,"total":12,"identifiers":["dir","require","join","getCwd","\"package.json\"","error","err","null"]},"operators":{"distinct":5,"total":13,"identifiers":["function=>","try","return","()","catch"]}},"paramCount":1,"sloc":{"logical":13,"physical":17}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"path","type":"esm"},{"line":2,"path":"./getCwd","type":"esm"},{"line":7,"path":"* dynamic dependency *","type":"cjs"},{"line":11,"path":"* dynamic dependency *","type":"cjs"}],"errors":[],"lineEnd":17,"lineStart":1,"maintainability":71.955,"methods":[{"cyclomatic":1,"cyclomaticDensity":8.333,"halstead":{"bugs":0.027,"difficulty":2.75,"effort":226.749,"length":23,"time":12.597,"vocabulary":12,"volume":82.454,"operands":{"distinct":8,"total":11,"identifiers":["require","join","getCwd","\"package.json\"","error","dir","err","null"]},"operators":{"distinct":4,"total":12,"identifiers":["try","return","()","catch"]}},"paramCount":1,"sloc":{"logical":12,"physical":13},"errors":[],"lineEnd":16,"lineStart":4,"name":"","paramNames":["dir"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":7.692,"halstead":{"bugs":0.015,"difficulty":1.875,"effort":173.458,"length":12.5,"time":9.637,"vocabulary":6.5,"volume":46.255,"operands":{"distinct":4,"total":6},"operators":{"distinct":2.5,"total":6.5}},"paramCount":0.5,"sloc":{"logical":6.5,"physical":8.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":8.333,"halstead":{"bugs":0.027,"difficulty":2.75,"effort":226.749,"length":23,"time":12.597,"vocabulary":12,"volume":82.454,"operands":{"distinct":8,"total":11},"operators":{"distinct":4,"total":12}},"paramCount":1,"sloc":{"logical":12,"physical":13}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes/types.d.ts","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":6}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":6,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":6}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-compiler/src/config/index.js","report":{"aggregate":{"cyclomatic":50,"cyclomaticDensity":21.459,"halstead":{"bugs":2.248,"difficulty":52.967,"effort":357150.006,"length":909,"time":19841.667,"vocabulary":171,"volume":6742.828,"operands":{"distinct":138,"total":443,"identifiers":["CONFIG_FILES","\".fes.js\"","Config","cwd","service","config","localConfig","configFile","constructor","opts","process","getDefaultConfig","pluginIds","Object","keys","plugins","defaultConfig","reduce","memo","pluginId","key","\"default\"","default","getConfig","assert","stage","ServiceStage","pluginReady","\"Config.getConfig() failed, it should not be executed before plugin is ready.\"","userConfig","getUserConfig","userConfigKeys","filter","false","forEach","schema","value","getUserConfigWithKey","joi","isSchema","schema return from plugin "," is not valid schema.","error","validate","e","Error","message","Validate config \"","\" failed, ","stack","index","indexOf","split","\".\"","0","1","splice","newValue","mergeDefault","updateUserConfigWithKey","length","\"keys\"","\"key\"","join","\", \"","Invalid config ",": ","getConfigFile","requireDeps","file","concat","parseRequireDeps","cleanRequireCache","babelRegister","setOnlyMap","\"config\"","mergeConfig","requireConfigs","addAffix","affix","ext","extname","replace","RegExp","$",".","configFiles","map","f","compatESModuleRequire","require","configs","ret","deepmerge","find","existsSync","winPath","envConfigFile","env","FES_ENV","get user config failed, "," does not exist, but process.env.FES_ENV is set to ","files","\"local\"","getWatchFilesAndDirectories","fesEnv","lodash","clone","push","configDir","startsWith","watch","paths","watcher","chokidar","ignoreInitial","true","on","\"all\"","event","path","console","log","chalk","green","[","] ","newPaths","diffs","difference","add","newUserConfig","pluginChanged","valueChanged","isEqual","changed","onChange","close"]},"operators":{"distinct":33,"total":466,"identifiers":["const","=","[]","class",".","this","||","()","async","function=>","{}","if","in","return",">=","!==","! (prefix)","===","``","${}","new","throw","- (prefix)",":",":?",">","... (spread)","... (rest)","let","forof",",","&&","else"]}},"paramCount":25,"sloc":{"logical":233,"physical":283}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[{"aggregate":{"cyclomatic":49,"cyclomaticDensity":21.212,"halstead":{"bugs":2.223,"difficulty":51.765,"effort":345160.346,"length":902,"time":19175.575,"vocabulary":168,"volume":6667.87,"operands":{"distinct":136,"total":440,"identifiers":["cwd","service","config","localConfig","configFile","constructor","opts","process","getDefaultConfig","pluginIds","Object","keys","plugins","defaultConfig","reduce","memo","pluginId","key","\"default\"","default","getConfig","assert","stage","ServiceStage","pluginReady","\"Config.getConfig() failed, it should not be executed before plugin is ready.\"","userConfig","getUserConfig","userConfigKeys","filter","false","forEach","schema","value","getUserConfigWithKey","joi","isSchema","schema return from plugin "," is not valid schema.","error","validate","e","Error","message","Validate config \"","\" failed, ","stack","index","indexOf","split","\".\"","0","1","splice","newValue","mergeDefault","updateUserConfigWithKey","length","\"keys\"","\"key\"","join","\", \"","Invalid config ",": ","getConfigFile","requireDeps","file","concat","parseRequireDeps","cleanRequireCache","babelRegister","setOnlyMap","\"config\"","mergeConfig","requireConfigs","addAffix","affix","ext","extname","replace","RegExp","$",".","configFiles","map","f","compatESModuleRequire","require","configs","ret","deepmerge","CONFIG_FILES","find","existsSync","winPath","envConfigFile","env","FES_ENV","get user config failed, "," does not exist, but process.env.FES_ENV is set to ","files","\"local\"","getWatchFilesAndDirectories","fesEnv","lodash","clone","push","configDir","startsWith","watch","paths","watcher","chokidar","ignoreInitial","true","on","\"all\"","event","path","console","log","chalk","green","[","] ","newPaths","diffs","difference","add","newUserConfig","pluginChanged","valueChanged","isEqual","changed","onChange","close"]},"operators":{"distinct":32,"total":462,"identifiers":["=",".","this","||","()","async","const","function=>","{}","[]","if","in","return",">=","!==","! (prefix)","===","``","${}","new","throw","- (prefix)",":",":?",">","... (spread)","... (rest)","let","forof",",","&&","else"]}},"paramCount":25,"sloc":{"logical":231,"physical":251}},"errors":[],"lineEnd":282,"lineStart":32,"methods":[{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.029,"difficulty":5.5,"effort":475.036,"length":26,"time":26.391,"vocabulary":10,"volume":86.37,"operands":{"distinct":5,"total":11,"identifiers":["cwd","opts","process","service","localConfig"]},"operators":{"distinct":5,"total":15,"identifiers":["=",".","this","||","()"]}},"paramCount":1,"sloc":{"logical":4,"physical":5},"errors":[],"lineEnd":47,"lineStart":43,"name":"constructor","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.034,"difficulty":4.889,"effort":499.579,"length":25,"time":27.754,"vocabulary":17,"volume":102.187,"operands":{"distinct":9,"total":11,"identifiers":["pluginIds","Object","keys","service","plugins","defaultConfig","reduce","memo","pluginId"]},"operators":{"distinct":8,"total":14,"identifiers":["const","=","()",".","this","function=>","{}","return"]}},"paramCount":0,"sloc":{"logical":6,"physical":12},"errors":[],"lineEnd":60,"lineStart":49,"name":"getDefaultConfig","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.038,"difficulty":7.875,"effort":901.286,"length":28,"time":50.071,"vocabulary":17,"volume":114.449,"operands":{"distinct":8,"total":14,"identifiers":["key","config","service","plugins","pluginId","\"default\"","memo","default"]},"operators":{"distinct":9,"total":14,"identifiers":["const","=","{}","[]",".","this","if","in","return"]}},"paramCount":2,"sloc":{"logical":7,"physical":5},"errors":[],"lineEnd":57,"lineStart":53,"name":"","paramNames":["memo","pluginId"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":18.75,"halstead":{"bugs":0.145,"difficulty":10.962,"effort":4756.888,"length":81,"time":264.272,"vocabulary":41,"volume":433.962,"operands":{"distinct":26,"total":38,"identifiers":["assert","service","stage","ServiceStage","pluginReady","\"Config.getConfig() failed, it should not be executed before plugin is ready.\"","userConfig","getUserConfig","userConfigKeys","Object","keys","filter","key","pluginIds","plugins","forEach","pluginId","length","1","\"keys\"","\"key\"","Error","join","\", \"","Invalid config ",": "]},"operators":{"distinct":15,"total":43,"identifiers":["()",">=",".","this","const","=","function=>","if",":?",">","throw","new","``","${}","return"]}},"paramCount":1,"sloc":{"logical":16,"physical":71},"errors":[],"lineEnd":132,"lineStart":62,"name":"getConfig","paramNames":["defaultConfig"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["userConfig","key","false"]},"operators":{"distinct":2,"total":2,"identifiers":["!==","[]"]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":72,"lineStart":72,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":16.216,"halstead":{"bugs":0.276,"difficulty":20.357,"effort":16870.042,"length":144,"time":937.225,"vocabulary":54,"volume":828.704,"operands":{"distinct":35,"total":75,"identifiers":["key","config","service","plugins","pluginId","schema","value","getUserConfigWithKey","userConfig","false","joi","assert","isSchema","schema return from plugin "," is not valid schema.","error","validate","e","Error","message","Validate config \"","\" failed, ","stack","index","userConfigKeys","indexOf","split","\".\"","0","1","splice","defaultConfig","newValue","mergeDefault","updateUserConfigWithKey"]},"operators":{"distinct":19,"total":69,"identifiers":["const","=","{}","[]",".","this","if","! (prefix)","return","()","===","``","${}","new","throw","!==","- (prefix)","in",":"]}},"paramCount":1,"sloc":{"logical":37,"physical":46},"errors":[],"lineEnd":122,"lineStart":77,"name":"","paramNames":["pluginId"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":13.333,"halstead":{"bugs":0.102,"difficulty":9.028,"effort":2772.974,"length":62,"time":154.054,"vocabulary":31,"volume":307.16,"operands":{"distinct":18,"total":25,"identifiers":["configFile","getConfigFile","length","0","requireDeps","reduce","memo","file","forEach","cleanRequireCache","service","babelRegister","setOnlyMap","key","\"config\"","value","mergeConfig","requireConfigs"]},"operators":{"distinct":13,"total":37,"identifiers":["const","=","()",".","this","if",">","function=>","[]","{}",":","return","... (spread)"]}},"paramCount":0,"sloc":{"logical":15,"physical":20},"errors":[],"lineEnd":153,"lineStart":134,"name":"getUserConfig","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.011,"difficulty":3,"effort":99,"length":11,"time":5.5,"vocabulary":8,"volume":33,"operands":{"distinct":4,"total":6,"identifiers":["memo","concat","parseRequireDeps","file"]},"operators":{"distinct":4,"total":5,"identifiers":["=","()",".","return"]}},"paramCount":2,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":142,"lineStart":139,"name":"","paramNames":["memo","file"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.031,"difficulty":5.5,"effort":506,"length":23,"time":28.111,"vocabulary":16,"volume":92,"operands":{"distinct":8,"total":11,"identifiers":["ext","extname","file","replace","RegExp","$","affix","."]},"operators":{"distinct":8,"total":12,"identifiers":["const","=","()","return",".","new","``","${}"]}},"paramCount":2,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":158,"lineStart":155,"name":"addAffix","paramNames":["file","affix"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.007,"difficulty":2,"effort":39.303,"length":7,"time":2.183,"vocabulary":7,"volume":19.651,"operands":{"distinct":3,"total":3,"identifiers":["configFiles","map","f"]},"operators":{"distinct":4,"total":4,"identifiers":["return","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":163,"lineStart":160,"name":"requireConfigs","paramNames":["configFiles"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.003,"difficulty":0.5,"effort":5,"length":5,"time":0.278,"vocabulary":4,"volume":10,"operands":{"distinct":3,"total":3,"identifiers":["compatESModuleRequire","require","f"]},"operators":{"distinct":1,"total":2,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":3,"physical":1},"errors":[],"lineEnd":162,"lineStart":162,"name":"","paramNames":["f"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.018,"difficulty":7,"effort":387.456,"length":16,"time":21.525,"vocabulary":11,"volume":55.351,"operands":{"distinct":4,"total":8,"identifiers":["ret","config","configs","deepmerge"]},"operators":{"distinct":7,"total":8,"identifiers":["let","=","{}","forof","const","()","return"]}},"paramCount":1,"sloc":{"logical":5,"physical":8},"errors":[],"lineEnd":172,"lineStart":165,"name":"mergeConfig","paramNames":["configs"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":5,"cyclomaticDensity":20.833,"halstead":{"bugs":0.174,"difficulty":17,"effort":8895.332,"length":99,"time":494.185,"vocabulary":39,"volume":523.255,"operands":{"distinct":22,"total":44,"identifiers":["configFile","CONFIG_FILES","find","f","winPath","envConfigFile","process","env","FES_ENV","addAffix","existsSync","join","cwd","Error","get user config failed, "," does not exist, but process.env.FES_ENV is set to ",".","files","localConfig","\"local\"","filter","map"]},"operators":{"distinct":17,"total":55,"identifiers":["let","=","()",".","function=>","if","! (prefix)","return","[]","this","throw","new","``","${}","const",",","&&"]}},"paramCount":0,"sloc":{"logical":24,"physical":29},"errors":[],"lineEnd":202,"lineStart":174,"name":"getConfigFile","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":33.688,"length":8,"time":1.872,"vocabulary":7,"volume":22.459,"operands":{"distinct":4,"total":4,"identifiers":["existsSync","join","cwd","f"]},"operators":{"distinct":3,"total":4,"identifiers":["()",".","this"]}},"paramCount":1,"sloc":{"logical":3,"physical":1},"errors":[],"lineEnd":176,"lineStart":176,"name":"","paramNames":["f"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1.5,"length":3,"time":0.083,"vocabulary":2,"volume":3,"operands":{"distinct":1,"total":1,"identifiers":["f"]},"operators":{"distinct":1,"total":2,"identifiers":["! (prefix)"]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":198,"lineStart":198,"name":"","paramNames":["f"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["join","cwd","f"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","this"]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":199,"lineStart":199,"name":"","paramNames":["f"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["existsSync","f"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":200,"lineStart":200,"name":"","paramNames":["f"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":6.667,"halstead":{"bugs":0.09,"difficulty":5.2,"effort":1399.902,"length":56,"time":77.772,"vocabulary":28,"volume":269.212,"operands":{"distinct":20,"total":26,"identifiers":["fesEnv","process","env","FES_ENV","configFiles","lodash","clone","CONFIG_FILES","forEach","f","configDir","winPath","join","cwd","\"config\"","files","reduce","memo","filter","concat"]},"operators":{"distinct":8,"total":30,"identifiers":["const","=",".","()","function=>","this","[]","return"]}},"paramCount":0,"sloc":{"logical":15,"physical":24},"errors":[],"lineEnd":227,"lineStart":204,"name":"getWatchFilesAndDirectories","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":50,"halstead":{"bugs":0.03,"difficulty":3.429,"effort":308.384,"length":26,"time":17.132,"vocabulary":11,"volume":89.945,"operands":{"distinct":7,"total":12,"identifiers":["localConfig","configFiles","push","addAffix","f","\"local\"","fesEnv"]},"operators":{"distinct":4,"total":14,"identifiers":["if",".","this","()"]}},"paramCount":1,"sloc":{"logical":6,"physical":4},"errors":[],"lineEnd":210,"lineStart":207,"name":"","paramNames":["f"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":18.182,"halstead":{"bugs":0.044,"difficulty":6.4,"effort":854.001,"length":32,"time":47.444,"vocabulary":18,"volume":133.438,"operands":{"distinct":10,"total":16,"identifiers":["file","winPath","join","cwd","f","existsSync","memo","concat","parseRequireDeps","push"]},"operators":{"distinct":8,"total":16,"identifiers":["const","=","()",".","this","if","else","return"]}},"paramCount":2,"sloc":{"logical":11,"physical":9},"errors":[],"lineEnd":223,"lineStart":215,"name":"","paramNames":["memo","f"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["f","startsWith","configDir"]},"operators":{"distinct":3,"total":3,"identifiers":["! (prefix)","()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":224,"lineStart":224,"name":"","paramNames":["f"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":9.091,"halstead":{"bugs":0.061,"difficulty":6.429,"effort":1178.99,"length":40,"time":65.499,"vocabulary":24,"volume":183.399,"operands":{"distinct":14,"total":18,"identifiers":["paths","getWatchFilesAndDirectories","userConfig","opts","watcher","chokidar","watch","ignoreInitial","true","cwd","on","\"all\"","event","path"]},"operators":{"distinct":10,"total":22,"identifiers":["let","=","()",".","this","const","{}",":","function=>","return"]}},"paramCount":1,"sloc":{"logical":11,"physical":53},"errors":[],"lineEnd":281,"lineStart":229,"name":"watch","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":17.391,"halstead":{"bugs":0.18,"difficulty":10.065,"effort":5439.707,"length":99,"time":302.206,"vocabulary":44,"volume":540.484,"operands":{"distinct":31,"total":48,"identifiers":["console","log","chalk","green","event","path","[","] ","newPaths","getWatchFilesAndDirectories","diffs","lodash","difference","paths","length","watcher","add","concat","newUserConfig","getUserConfig","pluginChanged","valueChanged","Object","keys","service","plugins","forEach","pluginId","opts","onChange","userConfig"]},"operators":{"distinct":13,"total":51,"identifiers":["()",".","``","${}","const","=","this","if","[]","function=>","||","{}",":"]}},"paramCount":2,"sloc":{"logical":23,"physical":41},"errors":[],"lineEnd":276,"lineStart":236,"name":"","paramNames":["event","path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":5,"cyclomaticDensity":33.333,"halstead":{"bugs":0.098,"difficulty":14.393,"effort":4243.058,"length":62,"time":235.725,"vocabulary":27,"volume":294.803,"operands":{"distinct":14,"total":31,"identifiers":["key","config","service","plugins","pluginId","schema","isEqual","newUserConfig","userConfig","changed","false","pluginChanged","push","valueChanged"]},"operators":{"distinct":13,"total":31,"identifiers":["const","=","{}","[]",".","this","if","! (prefix)","return","()","else","||","==="]}},"paramCount":1,"sloc":{"logical":15,"physical":19},"errors":[],"lineEnd":266,"lineStart":248,"name":"","paramNames":["pluginId"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["watcher","close"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":280,"lineStart":278,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.885,"cyclomaticDensity":0.816,"halstead":{"bugs":0.085,"difficulty":1.991,"effort":13275.398,"length":34.692,"time":737.522,"vocabulary":6.462,"volume":256.457,"operands":{"distinct":5.231,"total":16.923},"operators":{"distinct":1.231,"total":17.769}},"paramCount":0.962,"sloc":{"logical":8.885,"physical":9.654}},"methodAverage":{"cyclomatic":1.96,"cyclomaticDensity":36.761,"halstead":{"bugs":0.056,"difficulty":5.881,"effort":1989.426,"length":35.08,"time":110.524,"vocabulary":17.6,"volume":167.928,"operands":{"distinct":10.36,"total":16.72},"operators":{"distinct":7.24,"total":18.36}},"paramCount":1,"sloc":{"logical":8.84,"physical":14.72}},"name":"Config","maintainability":63.769}],"dependencies":[{"line":6,"path":"fs","type":"esm"},{"line":7,"path":"path","type":"esm"},{"line":17,"path":"@fesjs/utils","type":"esm"},{"line":18,"path":"assert","type":"esm"},{"line":19,"path":"joi","type":"esm"},{"line":20,"path":"../service/enums","type":"esm"},{"line":24,"path":"./utils/configUtils","type":"esm"},{"line":25,"path":"./utils/isEqual","type":"esm"},{"line":26,"path":"./utils/mergeDefault","type":"esm"},{"line":162,"path":"* dynamic dependency *","type":"cjs"}],"errors":[],"lineEnd":283,"lineStart":1,"maintainability":59.787,"methods":[],"aggregateAverage":{"cyclomatic":1.923,"cyclomaticDensity":0.825,"halstead":{"bugs":0.086,"difficulty":2.037,"effort":13736.539,"length":34.962,"time":763.141,"vocabulary":6.577,"volume":259.34,"operands":{"distinct":5.308,"total":17.038},"operators":{"distinct":1.269,"total":17.923}},"paramCount":0.962,"sloc":{"logical":8.962,"physical":10.885}},"methodAverage":{"cyclomatic":1.96,"cyclomaticDensity":36.761,"halstead":{"bugs":0.056,"difficulty":5.881,"effort":1989.426,"length":35.08,"time":110.524,"vocabulary":17.6,"volume":167.928,"operands":{"distinct":10.36,"total":16.72},"operators":{"distinct":7.24,"total":18.36}},"paramCount":1,"sloc":{"logical":8.84,"physical":14.72}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-compiler/src/config/utils/configUtils.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":60,"halstead":{"bugs":0.028,"difficulty":4.688,"effort":398.954,"length":23,"time":22.164,"vocabulary":13,"volume":85.11,"operands":{"distinct":8,"total":15,"identifiers":["updateUserConfigWithKey","key","value","userConfig","set","getUserConfigWithKey","lodash","get"]},"operators":{"distinct":5,"total":8,"identifiers":["function","{}","()","return","."]}},"paramCount":5,"sloc":{"logical":5,"physical":18}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@fesjs/utils","type":"esm"},{"line":2,"path":"set-value","type":"esm"}],"errors":[],"lineEnd":18,"lineStart":1,"maintainability":85.38,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":0.5,"effort":5.805,"length":5,"time":0.322,"vocabulary":5,"volume":11.61,"operands":{"distinct":4,"total":4,"identifiers":["set","userConfig","key","value"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":3,"sloc":{"logical":1,"physical":7},"errors":[],"lineEnd":10,"lineStart":4,"name":"updateUserConfigWithKey","paramNames":["key","value","userConfig"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":29.477,"length":7,"time":1.638,"vocabulary":7,"volume":19.651,"operands":{"distinct":4,"total":4,"identifiers":["lodash","get","userConfig","key"]},"operators":{"distinct":3,"total":3,"identifiers":["return","()","."]}},"paramCount":2,"sloc":{"logical":2,"physical":6},"errors":[],"lineEnd":17,"lineStart":12,"name":"getUserConfigWithKey","paramNames":["key","userConfig"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.009,"difficulty":1.563,"effort":132.985,"length":7.667,"time":7.388,"vocabulary":4.333,"volume":28.37,"operands":{"distinct":2.667,"total":5},"operators":{"distinct":1.667,"total":2.667}},"paramCount":1.667,"sloc":{"logical":1.667,"physical":6}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":75,"halstead":{"bugs":0.005,"difficulty":1,"effort":17.641,"length":6,"time":0.98,"vocabulary":6,"volume":15.631,"operands":{"distinct":4,"total":4},"operators":{"distinct":2,"total":2}},"paramCount":2.5,"sloc":{"logical":1.5,"physical":6.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-compiler/src/config/utils/isEqual.js","report":{"aggregate":{"cyclomatic":6,"cyclomaticDensity":31.579,"halstead":{"bugs":0.091,"difficulty":11.786,"effort":3229.139,"length":59,"time":179.397,"vocabulary":25,"volume":273.988,"operands":{"distinct":14,"total":30,"identifiers":["funcToStr","obj","\"function\"","toString","lodash","isPlainObject","Object","keys","reduce","memo","key","a","b","isEqual"]},"operators":{"distinct":11,"total":29,"identifiers":["function","if","===","typeof (prefix)","return","()",".","function=>","=","[]","{}"]}},"paramCount":5,"sloc":{"logical":19,"physical":17}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@fesjs/utils","type":"esm"}],"errors":[],"lineEnd":17,"lineStart":1,"maintainability":71.614,"methods":[{"cyclomatic":3,"cyclomaticDensity":30,"halstead":{"bugs":0.043,"difficulty":5.6,"effort":723.899,"length":31,"time":40.217,"vocabulary":18,"volume":129.268,"operands":{"distinct":10,"total":14,"identifiers":["obj","\"function\"","toString","lodash","isPlainObject","Object","keys","reduce","memo","key"]},"operators":{"distinct":8,"total":17,"identifiers":["if","===","typeof (prefix)","return","()",".","function=>","{}"]}},"paramCount":1,"sloc":{"logical":10,"physical":10},"errors":[],"lineEnd":12,"lineStart":3,"name":"funcToStr","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.011,"difficulty":3,"effort":99,"length":11,"time":5.5,"vocabulary":8,"volume":33,"operands":{"distinct":4,"total":6,"identifiers":["memo","key","funcToStr","obj"]},"operators":{"distinct":4,"total":5,"identifiers":["=","[]","()","return"]}},"paramCount":2,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":9,"lineStart":6,"name":"","paramNames":["memo","key"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.011,"difficulty":1.8,"effort":59.4,"length":11,"time":3.3,"vocabulary":8,"volume":33,"operands":{"distinct":5,"total":6,"identifiers":["lodash","isEqual","funcToStr","a","b"]},"operators":{"distinct":3,"total":5,"identifiers":["return","()","."]}},"paramCount":2,"sloc":{"logical":4,"physical":3},"errors":[],"lineEnd":16,"lineStart":14,"name":"","paramNames":["a","b"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":7.895,"halstead":{"bugs":0.023,"difficulty":2.946,"effort":807.285,"length":14.75,"time":44.849,"vocabulary":6.25,"volume":68.497,"operands":{"distinct":3.5,"total":7.5},"operators":{"distinct":2.75,"total":7.25}},"paramCount":1.25,"sloc":{"logical":4.75,"physical":4.25}},"methodAverage":{"cyclomatic":1.667,"cyclomaticDensity":29.444,"halstead":{"bugs":0.022,"difficulty":3.467,"effort":294.1,"length":17.667,"time":16.339,"vocabulary":11.333,"volume":65.089,"operands":{"distinct":6.333,"total":8.667},"operators":{"distinct":5,"total":9}},"paramCount":1.667,"sloc":{"logical":5.667,"physical":5.667}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-compiler/src/config/utils/mergeDefault.js","report":{"aggregate":{"cyclomatic":5,"cyclomaticDensity":71.429,"halstead":{"bugs":0.039,"difficulty":12.5,"effort":1450,"length":29,"time":80.556,"vocabulary":16,"volume":116,"operands":{"distinct":6,"total":15,"identifiers":["defaultConfig","config","lodash","isPlainObject","deepmerge","\"undefined\""]},"operators":{"distinct":10,"total":14,"identifiers":["function=>","{}","if","&&","()",".","return",":?","!==","typeof (prefix)"]}},"paramCount":2,"sloc":{"logical":7,"physical":10}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@fesjs/utils","type":"esm"}],"errors":[],"lineEnd":10,"lineStart":1,"maintainability":74.424,"methods":[{"cyclomatic":4,"cyclomaticDensity":66.667,"halstead":{"bugs":0.032,"difficulty":8.667,"effort":824.927,"length":25,"time":45.829,"vocabulary":14,"volume":95.184,"operands":{"distinct":6,"total":13,"identifiers":["lodash","isPlainObject","defaultConfig","config","deepmerge","\"undefined\""]},"operators":{"distinct":8,"total":12,"identifiers":["if","&&","()",".","return",":?","!==","typeof (prefix)"]}},"paramCount":2,"sloc":{"logical":6,"physical":6},"errors":[],"lineEnd":9,"lineStart":4,"name":"","paramNames":["defaultConfig","config"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.5,"cyclomaticDensity":35.714,"halstead":{"bugs":0.019,"difficulty":6.25,"effort":725,"length":14.5,"time":40.278,"vocabulary":8,"volume":58,"operands":{"distinct":3,"total":7.5},"operators":{"distinct":5,"total":7}},"paramCount":1,"sloc":{"logical":3.5,"physical":5}},"methodAverage":{"cyclomatic":4,"cyclomaticDensity":66.667,"halstead":{"bugs":0.032,"difficulty":8.667,"effort":824.927,"length":25,"time":45.829,"vocabulary":14,"volume":95.184,"operands":{"distinct":6,"total":13},"operators":{"distinct":8,"total":12}},"paramCount":2,"sloc":{"logical":6,"physical":6}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-compiler/src/index.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":22}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":7,"path":"./config","type":"esm"},{"line":8,"path":"./logger","type":"esm"},{"line":9,"path":"./service","type":"esm"},{"line":10,"path":"./service/pluginAPI","type":"esm"},{"line":11,"path":"./service/enums","type":"esm"},{"line":12,"path":"./service/utils/pluginUtils","type":"esm"}],"errors":[],"lineEnd":22,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":22}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-compiler/src/logger/index.js","report":{"aggregate":{"cyclomatic":15,"cyclomaticDensity":27.778,"halstead":{"bugs":0.714,"difficulty":29.069,"effort":62300.645,"length":324,"time":3461.147,"vocabulary":98,"volume":2143.166,"operands":{"distinct":72,"total":161,"identifiers":["Logger","LOG","chalk","black","bgBlue","\"LOG\"","INFO","\"INFO\"","WARN","bgHex","\"#faad14\"","\"WARN\"","ERROR","bgRed","\"ERROR\"","PROFILE","bgCyan","\"PROFILE\"","constructor","namespace","Error","\"logger needs namespace\"","profilers","debug","createDebug","log","args","console","info","error","warn","formatTiming","timing","60","1000","Math","round","10","100","s","600","m","profile","id","message","time","Date","now",":","msg","timeEnd","process","stderr","write"," ","cyan","└ "," Completed in ","┌ ","\"\"","clearConsole","title","stdout","isTTY","blank","\"\n\"","repeat","rows","readline","cursorTo","0","clearScreenDown"]},"operators":{"distinct":26,"total":163,"identifiers":["class","()",".","if","! (prefix)","throw","new","=","this","{}","... (rest)","... (spread)","return",":?","<","*","``","${}","/","const","let","else","[]","delete (prefix)","-","||"]}},"paramCount":9,"sloc":{"logical":54,"physical":94}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[{"aggregate":{"cyclomatic":14,"cyclomaticDensity":26.415,"halstead":{"bugs":0.707,"difficulty":28.169,"effort":59728.392,"length":322,"time":3318.244,"vocabulary":96,"volume":2120.358,"operands":{"distinct":71,"total":160,"identifiers":["LOG","chalk","black","bgBlue","\"LOG\"","INFO","\"INFO\"","WARN","bgHex","\"#faad14\"","\"WARN\"","ERROR","bgRed","\"ERROR\"","PROFILE","bgCyan","\"PROFILE\"","constructor","namespace","Error","\"logger needs namespace\"","profilers","debug","createDebug","log","args","console","info","error","warn","formatTiming","timing","60","1000","Math","round","10","100","s","600","m","profile","id","message","time","Date","now",":","msg","timeEnd","process","stderr","write"," ","cyan","└ "," Completed in ","┌ ","\"\"","clearConsole","title","stdout","isTTY","blank","\"\n\"","repeat","rows","readline","cursorTo","0","clearScreenDown"]},"operators":{"distinct":25,"total":162,"identifiers":["()",".","if","! (prefix)","throw","new","=","this","{}","... (rest)","... (spread)","return",":?","<","*","``","${}","/","const","let","else","[]","delete (prefix)","-","||"]}},"paramCount":9,"sloc":{"logical":53,"physical":82}},"errors":[],"lineEnd":93,"lineStart":12,"methods":[{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.034,"difficulty":6.75,"effort":685.659,"length":26,"time":38.092,"vocabulary":15,"volume":101.579,"operands":{"distinct":6,"total":9,"identifiers":["namespace","Error","\"logger needs namespace\"","profilers","debug","createDebug"]},"operators":{"distinct":9,"total":17,"identifiers":["if","! (prefix)","throw","new","=",".","this","{}","()"]}},"paramCount":1,"sloc":{"logical":6,"physical":9},"errors":[],"lineEnd":31,"lineStart":23,"name":"constructor","paramNames":["namespace"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.009,"difficulty":2,"effort":54,"length":9,"time":3,"vocabulary":8,"volume":27,"operands":{"distinct":4,"total":4,"identifiers":["console","log","LOG","args"]},"operators":{"distinct":4,"total":5,"identifiers":["()",".","this","... (spread)"]}},"paramCount":1,"sloc":{"logical":1,"physical":4},"errors":[],"lineEnd":36,"lineStart":33,"name":"log","paramNames":["args"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.009,"difficulty":2,"effort":54,"length":9,"time":3,"vocabulary":8,"volume":27,"operands":{"distinct":4,"total":4,"identifiers":["console","log","INFO","args"]},"operators":{"distinct":4,"total":5,"identifiers":["()",".","this","... (spread)"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":44,"lineStart":42,"name":"info","paramNames":["args"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.009,"difficulty":2,"effort":54,"length":9,"time":3,"vocabulary":8,"volume":27,"operands":{"distinct":4,"total":4,"identifiers":["console","error","ERROR","args"]},"operators":{"distinct":4,"total":5,"identifiers":["()",".","this","... (spread)"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":48,"lineStart":46,"name":"error","paramNames":["args"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.009,"difficulty":2,"effort":54,"length":9,"time":3,"vocabulary":8,"volume":27,"operands":{"distinct":4,"total":4,"identifiers":["console","warn","WARN","args"]},"operators":{"distinct":4,"total":5,"identifiers":["()",".","this","... (spread)"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":52,"lineStart":50,"name":"warn","paramNames":["args"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.044,"difficulty":6.75,"effort":888.879,"length":31,"time":49.382,"vocabulary":19,"volume":131.686,"operands":{"distinct":10,"total":15,"identifiers":["timing","60","1000","Math","round","10","100","s","600","m"]},"operators":{"distinct":9,"total":16,"identifiers":["return",":?","<","*","``","${}","/","()","."]}},"paramCount":1,"sloc":{"logical":3,"physical":5},"errors":[],"lineEnd":58,"lineStart":54,"name":"formatTiming","paramNames":["timing"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":16.667,"halstead":{"bugs":0.211,"difficulty":15.938,"effort":10108.332,"length":120,"time":561.574,"vocabulary":39,"volume":634.248,"operands":{"distinct":24,"total":51,"identifiers":["time","Date","now","namespace","id",":","msg","profilers","timeEnd","process","stderr","write","PROFILE"," ","chalk","cyan","└ ","formatTiming"," Completed in ","console","log","┌ ","message","\"\""]},"operators":{"distinct":15,"total":69,"identifiers":["const","=","()",".","``","${}","this","let","if","else","[]","delete (prefix)","-","||","return"]}},"paramCount":2,"sloc":{"logical":18,"physical":21},"errors":[],"lineEnd":80,"lineStart":60,"name":"profile","paramNames":["id","message"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":37.5,"halstead":{"bugs":0.065,"difficulty":4.643,"effort":907.236,"length":46,"time":50.402,"vocabulary":19,"volume":195.405,"operands":{"distinct":14,"total":26,"identifiers":["process","stdout","isTTY","blank","\"\n\"","repeat","rows","console","log","readline","cursorTo","0","clearScreenDown","title"]},"operators":{"distinct":5,"total":20,"identifiers":["if",".","const","=","()"]}},"paramCount":1,"sloc":{"logical":8,"physical":11},"errors":[],"lineEnd":92,"lineStart":82,"name":"clearConsole","paramNames":["title"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.556,"cyclomaticDensity":2.935,"halstead":{"bugs":0.079,"difficulty":3.13,"effort":6636.488,"length":35.778,"time":368.694,"vocabulary":10.667,"volume":235.595,"operands":{"distinct":7.889,"total":17.778},"operators":{"distinct":2.778,"total":18}},"paramCount":1,"sloc":{"logical":5.889,"physical":9.111}},"methodAverage":{"cyclomatic":1.75,"cyclomaticDensity":69.271,"halstead":{"bugs":0.049,"difficulty":5.26,"effort":1600.763,"length":32.375,"time":88.931,"vocabulary":15.5,"volume":146.365,"operands":{"distinct":8.75,"total":14.625},"operators":{"distinct":6.75,"total":17.75}},"paramCount":1.125,"sloc":{"logical":4.875,"physical":7.375}},"name":"Logger","maintainability":69.909}],"dependencies":[{"line":9,"path":"@fesjs/utils","type":"esm"},{"line":10,"path":"readline","type":"esm"}],"errors":[],"lineEnd":94,"lineStart":1,"maintainability":65.042,"methods":[],"aggregateAverage":{"cyclomatic":1.667,"cyclomaticDensity":3.086,"halstead":{"bugs":0.079,"difficulty":3.23,"effort":6922.294,"length":36,"time":384.572,"vocabulary":10.889,"volume":238.13,"operands":{"distinct":8,"total":17.889},"operators":{"distinct":2.889,"total":18.111}},"paramCount":1,"sloc":{"logical":6,"physical":10.444}},"methodAverage":{"cyclomatic":1.75,"cyclomaticDensity":69.271,"halstead":{"bugs":0.049,"difficulty":5.26,"effort":1600.763,"length":32.375,"time":88.931,"vocabulary":15.5,"volume":146.365,"operands":{"distinct":8.75,"total":14.625},"operators":{"distinct":6.75,"total":17.75}},"paramCount":1.125,"sloc":{"logical":4.875,"physical":7.375}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-compiler/src/service/babelRegister.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":16,"halstead":{"bugs":0.186,"difficulty":7.7,"effort":4295.674,"length":101,"time":238.649,"vocabulary":46,"volume":557.88,"operands":{"distinct":35,"total":49,"identifiers":["BabelRegister","only","setOnlyMap","key","value","register","lodash","uniq","Object","keys","reduce","memo","concat","map","winPath","require","\"@babel/register\"","presets","resolve","\"@babel/preset-env\"","targets","node","\"current\"","modules","\"commonjs\"","ignore","/node_modules/","extensions","\".jsx\"","\".js\"","\".ts\"","\".tsx\"","babelrc","false","cache"]},"operators":{"distinct":11,"total":52,"identifiers":["class","{}","=","[]",".","this","()","const","function=>",":",","]}},"paramCount":4,"sloc":{"logical":25,"physical":44}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[{"aggregate":{"cyclomatic":3,"cyclomaticDensity":12.5,"halstead":{"bugs":0.18,"difficulty":7.059,"effort":3815.179,"length":99,"time":211.954,"vocabulary":44,"volume":540.484,"operands":{"distinct":34,"total":48,"identifiers":["only","setOnlyMap","key","value","register","lodash","uniq","Object","keys","reduce","memo","concat","map","winPath","require","\"@babel/register\"","presets","resolve","\"@babel/preset-env\"","targets","node","\"current\"","modules","\"commonjs\"","ignore","/node_modules/","extensions","\".jsx\"","\".js\"","\".ts\"","\".tsx\"","babelrc","false","cache"]},"operators":{"distinct":10,"total":51,"identifiers":["{}","=","[]",".","this","()","const","function=>",":",","]}},"paramCount":4,"sloc":{"logical":24,"physical":37}},"errors":[],"lineEnd":43,"lineStart":7,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.012,"difficulty":2.5,"effort":87.173,"length":11,"time":4.843,"vocabulary":9,"volume":34.869,"operands":{"distinct":4,"total":4,"identifiers":["only","key","value","register"]},"operators":{"distinct":5,"total":7,"identifiers":["=","[]",".","this","()"]}},"paramCount":2,"sloc":{"logical":2,"physical":7},"errors":[],"lineEnd":16,"lineStart":10,"name":"setOnlyMap","paramNames":["key","value"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":5.556,"halstead":{"bugs":0.128,"difficulty":5.833,"effort":2235.21,"length":72,"time":124.178,"vocabulary":40,"volume":383.179,"operands":{"distinct":30,"total":35,"identifiers":["only","lodash","uniq","Object","keys","reduce","memo","key","map","winPath","require","\"@babel/register\"","presets","resolve","\"@babel/preset-env\"","targets","node","\"current\"","modules","\"commonjs\"","ignore","/node_modules/","extensions","\".jsx\"","\".js\"","\".ts\"","\".tsx\"","babelrc","false","cache"]},"operators":{"distinct":10,"total":37,"identifiers":["const","=","()",".","this","function=>","[]","{}",":",","]}},"paramCount":0,"sloc":{"logical":18,"physical":25},"errors":[],"lineEnd":42,"lineStart":18,"name":"register","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.009,"difficulty":2,"effort":54,"length":9,"time":3,"vocabulary":8,"volume":27,"operands":{"distinct":4,"total":4,"identifiers":["memo","concat","only","key"]},"operators":{"distinct":4,"total":5,"identifiers":["()",".","[]","this"]}},"paramCount":2,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":21,"lineStart":21,"name":"","paramNames":["memo","key"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":0.75,"cyclomaticDensity":3.125,"halstead":{"bugs":0.045,"difficulty":1.765,"effort":953.795,"length":24.75,"time":52.989,"vocabulary":11,"volume":135.121,"operands":{"distinct":8.5,"total":12},"operators":{"distinct":2.5,"total":12.75}},"paramCount":1,"sloc":{"logical":6,"physical":9.25}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":35.185,"halstead":{"bugs":0.049,"difficulty":3.444,"effort":792.128,"length":30.667,"time":44.007,"vocabulary":19,"volume":148.349,"operands":{"distinct":12.667,"total":14.333},"operators":{"distinct":6.333,"total":16.333}},"paramCount":1.333,"sloc":{"logical":7.333,"physical":11}},"name":"BabelRegister","maintainability":67.775}],"dependencies":[{"line":4,"path":"@fesjs/utils","type":"esm"},{"line":24,"path":"@babel/register","type":"cjs"}],"errors":[],"lineEnd":44,"lineStart":1,"maintainability":68.681,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":4,"halstead":{"bugs":0.046,"difficulty":1.925,"effort":1073.919,"length":25.25,"time":59.662,"vocabulary":11.5,"volume":139.47,"operands":{"distinct":8.75,"total":12.25},"operators":{"distinct":2.75,"total":13}},"paramCount":1,"sloc":{"logical":6.25,"physical":11}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":35.185,"halstead":{"bugs":0.049,"difficulty":3.444,"effort":792.128,"length":30.667,"time":44.007,"vocabulary":19,"volume":148.349,"operands":{"distinct":12.667,"total":14.333},"operators":{"distinct":6.333,"total":16.333}},"paramCount":1.333,"sloc":{"logical":7.333,"physical":11}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-compiler/src/service/enums.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":4.348,"halstead":{"bugs":0.135,"difficulty":2,"effort":812.794,"length":74,"time":45.155,"vocabulary":45,"volume":406.397,"operands":{"distinct":41,"total":41,"identifiers":["PluginType","preset","\"preset\"","plugin","\"plugin\"","ServiceStage","uninitialized","0","constructor","1","init","2","initPlugins","3","initHooks","4","pluginReady","5","getConfig","6","getPaths","7","run","8","ConfigChangeType","reload","\"reload\"","regenerateTmpFiles","\"regenerateTmpFiles\"","ApplyPluginsType","add","\"add\"","modify","\"modify\"","event","\"event\"","EnableBy","register","\"register\"","config","\"config\""]},"operators":{"distinct":4,"total":33,"identifiers":["const","=","{}",":"]}},"paramCount":0,"sloc":{"logical":23,"physical":33}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":33,"lineStart":1,"maintainability":56.894,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":4.348,"halstead":{"bugs":0.135,"difficulty":2,"effort":812.794,"length":74,"time":45.155,"vocabulary":45,"volume":406.397,"operands":{"distinct":41,"total":41},"operators":{"distinct":4,"total":33}},"paramCount":0,"sloc":{"logical":23,"physical":33}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-compiler/src/service/getPaths.js","report":{"aggregate":{"cyclomatic":10,"cyclomaticDensity":28.571,"halstead":{"bugs":0.221,"difficulty":17,"effort":11282.454,"length":117,"time":626.803,"vocabulary":51,"volume":663.674,"operands":{"distinct":34,"total":68,"identifiers":["isDirectoryAndExist","path","existsSync","statSync","isDirectory","normalizeWithWinPath","obj","lodash","mapValues","value","winPath","getServicePaths","cwd","config","env","absSrcPath","join","\"src\"","absPagesPath","singular","\"page\"","\"pages\"","tmpDir","\".fes\"","\"development\"","filter","Boolean","\"-\"","absNodeModulesPath","\"node_modules\"","absOutputPath","outputPath","\"./dist\"","absTmpPath"]},"operators":{"distinct":17,"total":49,"identifiers":["function","return","&&","()",".","function=>","{}","let","=","if","const",":?","[]",",","!==",":","||"]}},"paramCount":6,"sloc":{"logical":35,"physical":44}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":6,"path":"path","type":"esm"},{"line":7,"path":"fs","type":"esm"},{"line":8,"path":"@fesjs/utils","type":"esm"}],"errors":[],"lineEnd":44,"lineStart":1,"maintainability":65.717,"methods":[{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.011,"difficulty":2.5,"effort":82.5,"length":11,"time":4.583,"vocabulary":8,"volume":33,"operands":{"distinct":4,"total":5,"identifiers":["existsSync","path","statSync","isDirectory"]},"operators":{"distinct":4,"total":6,"identifiers":["return","&&","()","."]}},"paramCount":1,"sloc":{"logical":4,"physical":3},"errors":[],"lineEnd":12,"lineStart":10,"name":"isDirectoryAndExist","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.008,"difficulty":2,"effort":48,"length":8,"time":2.667,"vocabulary":8,"volume":24,"operands":{"distinct":4,"total":4,"identifiers":["lodash","mapValues","obj","value"]},"operators":{"distinct":4,"total":4,"identifiers":["return","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":3,"physical":3},"errors":[],"lineEnd":16,"lineStart":14,"name":"normalizeWithWinPath","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["winPath","value"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":15,"lineStart":15,"name":"","paramNames":["value"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":5,"cyclomaticDensity":21.739,"halstead":{"bugs":0.146,"difficulty":15.312,"effort":6717.416,"length":83,"time":373.19,"vocabulary":39,"volume":438.688,"operands":{"distinct":24,"total":49,"identifiers":["absSrcPath","cwd","isDirectoryAndExist","join","\"src\"","absPagesPath","config","singular","\"page\"","\"pages\"","tmpDir","\".fes\"","env","\"development\"","filter","Boolean","\"-\"","normalizeWithWinPath","absNodeModulesPath","\"node_modules\"","absOutputPath","outputPath","\"./dist\"","absTmpPath"]},"operators":{"distinct":15,"total":34,"identifiers":["let","=","if","()","const",":?",".","[]",",","&&","!==","return","{}",":","||"]}},"paramCount":3,"sloc":{"logical":23,"physical":26},"errors":[],"lineEnd":43,"lineStart":18,"name":"getServicePaths","paramNames":["cwd","config","env"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":5.714,"halstead":{"bugs":0.044,"difficulty":3.4,"effort":2256.491,"length":23.4,"time":125.361,"vocabulary":10.2,"volume":132.735,"operands":{"distinct":6.8,"total":13.6},"operators":{"distinct":3.4,"total":9.8}},"paramCount":1.2,"sloc":{"logical":7,"physical":8.8}},"methodAverage":{"cyclomatic":2.25,"cyclomaticDensity":38.768,"halstead":{"bugs":0.042,"difficulty":5.078,"effort":1712.573,"length":26.25,"time":95.143,"vocabulary":14.5,"volume":125.111,"operands":{"distinct":8.5,"total":15},"operators":{"distinct":6,"total":11.25}},"paramCount":1.5,"sloc":{"logical":8,"physical":8.25}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-compiler/src/service/index.js","report":{"aggregate":{"cyclomatic":86,"cyclomaticDensity":23.497,"halstead":{"bugs":4.369,"difficulty":64.136,"effort":840658.115,"length":1635,"time":46703.229,"vocabulary":259,"volume":13107.482,"operands":{"distinct":221,"total":746,"identifiers":["Service","EventEmitter","cwd","pkg","skipPluginIds","Set","stage","ServiceStage","uninitialized","commands","plugins","pluginMethods","initialPresets","initialPlugins","_extraPresets","_extraPlugins","userConfig","configInstance","config","null","babelRegister","hooksByPluginId","hooks","paths","env","ApplyPluginsType","EnableBy","ConfigChangeType","args","constructor","opts","process","resolvePackage","NODE_ENV","fesPkg","assert","existsSync","cwd "," does not exist.","BabelRegister","loadEnv","Config","service","localConfig","\"development\"","getUserConfig","getPaths","program","initCommand","baseOpts","resolvePresets","presets","userConfigPresets","resolvePlugins","userConfigPlugins","setStage","require","join","\"package.json\"","e","basePath","\".env\"","localPath",".local","loadDotEnv","FES_ENV",".","init","initPresetsAndPlugins","initHooks","Object","keys","forEach","id","hook","key","pluginId","concat","pluginReady","applyPlugins","\"onPluginReady\"","type","event","getConfig","setConfig","outputPath","absOutputPath","\"modifyPaths\"","modify","initialValue","defaultConfig","\"modifyDefaultConfig\"","getDefaultConfig","\"modifyConfig\"","initPresets","length","initPreset","shift","initPlugins","push","initPlugin","getPluginAPI","pluginAPI","PluginAPI","\"onStart\"","name","registerMethod","exitsError","false","Proxy","get","target","prop","\"applyPlugins\"","\"ApplyPluginsType\"","\"EnableBy\"","\"ConfigChangeType\"","\"babelRegister\"","\"stage\"","\"ServiceStage\"","\"paths\"","\"cwd\"","\"pkg\"","\"configInstance\"","\"userConfig\"","\"config\"","\"env\"","\"args\"","\"hasPlugins\"","\"hasPresets\"","\"setConfig\"","includes","\"function\"","bind","applyAPI","ret","apply","api","isPromise","preset","isPreset","true","registerPlugin","Array","isArray","presets returned from preset "," must be Array.","splice","0","map","path","pathToObj","PluginType","extraPresets","lodash","clone","plugins returned from preset ","plugin","getPluginOptsWithKey","getUserConfigWithKey","isPluginEnable","has","enableBy","hasPresets","presetIds","every","presetId","hasPlugins","pluginIds","\"initialValue\"","\"applyPlugins failed, opts.initialValue must be Array if opts.type is add.\"","tAdd","AsyncSeriesWaterfallHook","\"memo\"","tapPromise","before","memo","items","fn","promise","add","tModify","tEvent","\"_\"","Error","applyPlugin failed, type is not defined or is not matched, got ","command","Command","usage","\" [options]\"","version","@fesjs/fes ","\"-v, --vers\"","\"output the current version\"","description","chalk","cyan","\"一个好用的前端应用解决方案\"","run","rawArgv","runCommand","\"service is not initialized.\"","commandOptionConfig","c","options","option","Option","default","choices","addOption","action","parseCommand","on","\"--help\"","console","log","\"fes --help\""," Run "," for detailed usage of given command.","parseAsync","argv"]},"operators":{"distinct":38,"total":889,"identifiers":["class","extends","new",".","{}","[]","()","super","=","this","||","``","${}",":","===","const","... (spread)","try","return","catch","if","async","function=>","while",",",":?","typeof (prefix)","let","&&","! (prefix)","in","switch","case","forof","continue","default","throw",">="]}},"paramCount":31,"sloc":{"logical":366,"physical":565}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[{"aggregate":{"cyclomatic":85,"cyclomaticDensity":23.288,"halstead":{"bugs":4.346,"difficulty":61.151,"effort":797330.967,"length":1631,"time":44296.165,"vocabulary":255,"volume":13038.79,"operands":{"distinct":219,"total":744,"identifiers":["cwd","pkg","skipPluginIds","Set","stage","ServiceStage","uninitialized","commands","plugins","pluginMethods","initialPresets","initialPlugins","_extraPresets","_extraPlugins","userConfig","configInstance","config","null","babelRegister","hooksByPluginId","hooks","paths","env","ApplyPluginsType","EnableBy","ConfigChangeType","args","constructor","opts","process","resolvePackage","NODE_ENV","fesPkg","assert","existsSync","cwd "," does not exist.","BabelRegister","loadEnv","Config","service","localConfig","\"development\"","getUserConfig","getPaths","program","initCommand","baseOpts","resolvePresets","presets","userConfigPresets","resolvePlugins","userConfigPlugins","setStage","require","join","\"package.json\"","e","basePath","\".env\"","localPath",".local","loadDotEnv","FES_ENV",".","init","initPresetsAndPlugins","initHooks","Object","keys","forEach","id","hook","key","pluginId","concat","pluginReady","applyPlugins","\"onPluginReady\"","type","event","getConfig","setConfig","outputPath","absOutputPath","\"modifyPaths\"","modify","initialValue","defaultConfig","\"modifyDefaultConfig\"","getDefaultConfig","\"modifyConfig\"","initPresets","length","initPreset","shift","initPlugins","push","initPlugin","getPluginAPI","pluginAPI","PluginAPI","\"onStart\"","name","registerMethod","exitsError","false","Proxy","get","target","prop","\"applyPlugins\"","\"ApplyPluginsType\"","\"EnableBy\"","\"ConfigChangeType\"","\"babelRegister\"","\"stage\"","\"ServiceStage\"","\"paths\"","\"cwd\"","\"pkg\"","\"configInstance\"","\"userConfig\"","\"config\"","\"env\"","\"args\"","\"hasPlugins\"","\"hasPresets\"","\"setConfig\"","includes","\"function\"","bind","applyAPI","ret","apply","api","isPromise","preset","isPreset","true","registerPlugin","Array","isArray","presets returned from preset "," must be Array.","splice","0","map","path","pathToObj","PluginType","extraPresets","lodash","clone","plugins returned from preset ","plugin","getPluginOptsWithKey","getUserConfigWithKey","isPluginEnable","has","enableBy","hasPresets","presetIds","every","presetId","hasPlugins","pluginIds","\"initialValue\"","\"applyPlugins failed, opts.initialValue must be Array if opts.type is add.\"","tAdd","AsyncSeriesWaterfallHook","\"memo\"","tapPromise","before","memo","items","fn","promise","add","tModify","tEvent","\"_\"","Error","applyPlugin failed, type is not defined or is not matched, got ","command","Command","usage","\" [options]\"","version","@fesjs/fes ","\"-v, --vers\"","\"output the current version\"","description","chalk","cyan","\"一个好用的前端应用解决方案\"","run","rawArgv","runCommand","\"service is not initialized.\"","commandOptionConfig","c","options","option","Option","default","choices","addOption","action","parseCommand","on","\"--help\"","console","log","\"fes --help\""," Run "," for detailed usage of given command.","parseAsync","argv"]},"operators":{"distinct":36,"total":887,"identifiers":["new",".","{}","[]","()","super","=","this","||","``","${}",":","===","const","... (spread)","try","return","catch","if","async","function=>","while",",",":?","typeof (prefix)","let","&&","! (prefix)","in","switch","case","forof","continue","default","throw",">="]}},"paramCount":31,"sloc":{"logical":365,"physical":534}},"errors":[],"lineEnd":564,"lineStart":31,"methods":[{"cyclomatic":9,"cyclomaticDensity":25.714,"halstead":{"bugs":0.374,"difficulty":14.792,"effort":16613.116,"length":198,"time":922.951,"vocabulary":51,"volume":1123.14,"operands":{"distinct":36,"total":71,"identifiers":["cwd","opts","process","pkg","resolvePackage","env","NODE_ENV","fesPkg","assert","existsSync","cwd "," does not exist.","babelRegister","BabelRegister","loadEnv","configInstance","Config","service","localConfig","\"development\"","userConfig","getUserConfig","paths","getPaths","config","program","initCommand","baseOpts","initialPresets","resolvePresets","presets","userConfigPresets","initialPlugins","resolvePlugins","plugins","userConfigPlugins"]},"operators":{"distinct":15,"total":127,"identifiers":["()","super","=",".","this","||","{}","``","${}","new",":","===","const","... (spread)","[]"]}},"paramCount":1,"sloc":{"logical":35,"physical":51},"errors":[],"lineEnd":140,"lineStart":90,"name":"constructor","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":3,"effort":30,"length":5,"time":1.667,"vocabulary":4,"volume":10,"operands":{"distinct":1,"total":2,"identifiers":["stage"]},"operators":{"distinct":3,"total":3,"identifiers":["=",".","this"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":144,"lineStart":142,"name":"setStage","paramNames":["stage"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.017,"difficulty":3.5,"effort":175.663,"length":14,"time":9.759,"vocabulary":12,"volume":50.189,"operands":{"distinct":5,"total":5,"identifiers":["require","join","cwd","\"package.json\"","e"]},"operators":{"distinct":7,"total":9,"identifiers":["try","return","()",".","this","catch","{}"]}},"paramCount":0,"sloc":{"logical":6,"physical":8},"errors":[],"lineEnd":153,"lineStart":146,"name":"resolvePackage","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.057,"difficulty":7.273,"effort":1235.761,"length":40,"time":68.653,"vocabulary":19,"volume":169.917,"operands":{"distinct":11,"total":20,"identifiers":["basePath","join","cwd","\".env\"","localPath",".local","loadDotEnv","process","env","FES_ENV","."]},"operators":{"distinct":8,"total":20,"identifiers":["const","=","()",".","this","``","${}","if"]}},"paramCount":0,"sloc":{"logical":7,"physical":9},"errors":[],"lineEnd":163,"lineStart":155,"name":"loadEnv","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":7.407,"halstead":{"bugs":0.212,"difficulty":7.759,"effort":4926.718,"length":121,"time":273.707,"vocabulary":38,"volume":634.999,"operands":{"distinct":29,"total":50,"identifiers":["setStage","ServiceStage","init","initPresetsAndPlugins","initHooks","Object","keys","hooksByPluginId","forEach","id","pluginReady","applyPlugins","key","\"onPluginReady\"","type","ApplyPluginsType","event","getConfig","setConfig","getPaths","config","outputPath","paths","absOutputPath","join","cwd","\"modifyPaths\"","modify","initialValue"]},"operators":{"distinct":9,"total":71,"identifiers":["()",".","this","function=>","{}",":","if","=","const"]}},"paramCount":0,"sloc":{"logical":27,"physical":44},"errors":[],"lineEnd":208,"lineStart":165,"name":"init","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.017,"difficulty":4.2,"effort":210.796,"length":14,"time":11.711,"vocabulary":12,"volume":50.189,"operands":{"distinct":5,"total":6,"identifiers":["hooks","hooksByPluginId","id","forEach","hook"]},"operators":{"distinct":7,"total":8,"identifiers":["const","=","[]",".","this","()","function=>"]}},"paramCount":1,"sloc":{"logical":3,"physical":8},"errors":[],"lineEnd":179,"lineStart":172,"name":"","paramNames":["id"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.036,"difficulty":8,"effort":852.848,"length":28,"time":47.38,"vocabulary":14,"volume":106.606,"operands":{"distinct":6,"total":12,"identifiers":["key","hook","pluginId","id","hooks","concat"]},"operators":{"distinct":8,"total":16,"identifiers":["const","=","{}",".","[]","this","()","||"]}},"paramCount":1,"sloc":{"logical":5,"physical":5},"errors":[],"lineEnd":178,"lineStart":174,"name":"","paramNames":["hook"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.008,"difficulty":4,"effort":93.059,"length":9,"time":5.17,"vocabulary":6,"volume":23.265,"operands":{"distinct":2,"total":4,"identifiers":["paths","key"]},"operators":{"distinct":4,"total":5,"identifiers":["=","[]",".","this"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":207,"lineStart":205,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":7.692,"halstead":{"bugs":0.081,"difficulty":5.923,"effort":1433.55,"length":56,"time":79.642,"vocabulary":20,"volume":242.028,"operands":{"distinct":13,"total":22,"identifiers":["defaultConfig","applyPlugins","key","\"modifyDefaultConfig\"","type","ApplyPluginsType","modify","initialValue","configInstance","getDefaultConfig","config","\"modifyConfig\"","getConfig"]},"operators":{"distinct":7,"total":34,"identifiers":["const","=","()",".","this","{}",":"]}},"paramCount":0,"sloc":{"logical":13,"physical":14},"errors":[],"lineEnd":223,"lineStart":210,"name":"setConfig","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":25,"halstead":{"bugs":0.086,"difficulty":5.833,"effort":1511.554,"length":61,"time":83.975,"vocabulary":19,"volume":259.124,"operands":{"distinct":12,"total":20,"identifiers":["setStage","ServiceStage","initPresets","_extraPlugins","initialPresets","length","initPreset","shift","initPlugins","push","initialPlugins","initPlugin"]},"operators":{"distinct":7,"total":41,"identifiers":["()",".","this","=","[]","while","... (spread)"]}},"paramCount":0,"sloc":{"logical":12,"physical":15},"errors":[],"lineEnd":239,"lineStart":225,"name":"initPresetsAndPlugins","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.048,"difficulty":5.893,"effort":848.333,"length":31,"time":47.13,"vocabulary":25,"volume":143.96,"operands":{"distinct":14,"total":15,"identifiers":["pluginAPI","PluginAPI","opts","\"onPluginReady\"","\"modifyPaths\"","\"onStart\"","\"modifyDefaultConfig\"","\"modifyConfig\"","forEach","name","Proxy","get","target","prop"]},"operators":{"distinct":11,"total":16,"identifiers":["const","=","new","()",".","[]",",","function=>","return","{}",":"]}},"paramCount":1,"sloc":{"logical":6,"physical":52},"errors":[],"lineEnd":292,"lineStart":241,"name":"getPluginAPI","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.011,"difficulty":2.4,"effort":76.078,"length":10,"time":4.227,"vocabulary":9,"volume":31.699,"operands":{"distinct":5,"total":6,"identifiers":["pluginAPI","registerMethod","name","exitsError","false"]},"operators":{"distinct":4,"total":4,"identifiers":["()",".","{}",":"]}},"paramCount":1,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":256,"lineStart":251,"name":"","paramNames":["name"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":57.143,"halstead":{"bugs":0.127,"difficulty":6.458,"effort":2464.24,"length":75,"time":136.902,"vocabulary":34,"volume":381.56,"operands":{"distinct":24,"total":31,"identifiers":["pluginMethods","prop","\"applyPlugins\"","\"ApplyPluginsType\"","\"EnableBy\"","\"ConfigChangeType\"","\"babelRegister\"","\"stage\"","\"ServiceStage\"","\"paths\"","\"cwd\"","\"pkg\"","\"configInstance\"","\"userConfig\"","\"config\"","\"env\"","\"args\"","\"hasPlugins\"","\"hasPresets\"","\"setConfig\"","includes","\"function\"","bind","target"]},"operators":{"distinct":10,"total":44,"identifiers":["if","[]",".","this","return","()",",",":?","===","typeof (prefix)"]}},"paramCount":2,"sloc":{"logical":7,"physical":32},"errors":[],"lineEnd":290,"lineStart":259,"name":"","paramNames":["target","prop"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":42.857,"halstead":{"bugs":0.027,"difficulty":8,"effort":651.277,"length":22,"time":36.182,"vocabulary":13,"volume":81.41,"operands":{"distinct":5,"total":10,"identifiers":["ret","opts","apply","api","isPromise"]},"operators":{"distinct":8,"total":12,"identifiers":["let","=","()",".","if","return","||","{}"]}},"paramCount":1,"sloc":{"logical":7,"physical":7},"errors":[],"lineEnd":300,"lineStart":294,"name":"applyAPI","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":11.111,"halstead":{"bugs":0.247,"difficulty":14.438,"effort":10686.021,"length":134,"time":593.668,"vocabulary":46,"volume":740.157,"operands":{"distinct":32,"total":66,"identifiers":["id","key","apply","preset","isPreset","true","api","getPluginAPI","service","registerPlugin","presets","plugins","applyAPI","assert","Array","isArray","presets returned from preset "," must be Array.","_extraPresets","splice","0","map","path","extraPresets","lodash","clone","length","initPreset","shift","plugins returned from preset ","_extraPlugins","push"]},"operators":{"distinct":14,"total":68,"identifiers":["const","=","{}",".","()","this",":","if","``","${}","... (spread)","function=>","[]","while"]}},"paramCount":1,"sloc":{"logical":36,"physical":53},"errors":[],"lineEnd":354,"lineStart":302,"name":"initPreset","paramNames":["preset"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.017,"difficulty":3.333,"effort":172.972,"length":15,"time":9.61,"vocabulary":11,"volume":51.891,"operands":{"distinct":6,"total":8,"identifiers":["pathToObj","type","PluginType","preset","path","cwd"]},"operators":{"distinct":5,"total":7,"identifiers":["()","{}",":",".","this"]}},"paramCount":1,"sloc":{"logical":5,"physical":5},"errors":[],"lineEnd":329,"lineStart":325,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.017,"difficulty":3.333,"effort":172.972,"length":15,"time":9.61,"vocabulary":11,"volume":51.891,"operands":{"distinct":6,"total":8,"identifiers":["pathToObj","type","PluginType","plugin","path","cwd"]},"operators":{"distinct":5,"total":7,"identifiers":["()","{}",":",".","this"]}},"paramCount":1,"sloc":{"logical":5,"physical":5},"errors":[],"lineEnd":351,"lineStart":347,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":7.143,"halstead":{"bugs":0.052,"difficulty":8.167,"effort":1274,"length":39,"time":70.778,"vocabulary":16,"volume":156,"operands":{"distinct":9,"total":21,"identifiers":["id","key","apply","plugin","api","getPluginAPI","service","registerPlugin","applyAPI"]},"operators":{"distinct":7,"total":18,"identifiers":["const","=","{}","()",".","this",":"]}},"paramCount":1,"sloc":{"logical":14,"physical":16},"errors":[],"lineEnd":372,"lineStart":357,"name":"initPlugin","paramNames":["plugin"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.012,"difficulty":5,"effort":174.346,"length":11,"time":9.686,"vocabulary":9,"volume":34.869,"operands":{"distinct":3,"total":5,"identifiers":["getUserConfigWithKey","key","userConfig"]},"operators":{"distinct":6,"total":6,"identifiers":["return","()","{}",":",".","this"]}},"paramCount":1,"sloc":{"logical":4,"physical":6},"errors":[],"lineEnd":379,"lineStart":374,"name":"getPluginOptsWithKey","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.008,"difficulty":2.667,"effort":67.377,"length":9,"time":3.743,"vocabulary":7,"volume":25.266,"operands":{"distinct":3,"total":4,"identifiers":["plugins","plugin","id"]},"operators":{"distinct":4,"total":5,"identifiers":["=","[]",".","this"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":383,"lineStart":381,"name":"registerPlugin","paramNames":["plugin"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":42.857,"halstead":{"bugs":0.092,"difficulty":14,"effort":3882.563,"length":59,"time":215.698,"vocabulary":26,"volume":277.326,"operands":{"distinct":12,"total":24,"identifiers":["skipPluginIds","has","pluginId","false","key","enableBy","plugins","userConfig","EnableBy","config","\"function\"","true"]},"operators":{"distinct":14,"total":35,"identifiers":["if","()",".","this","return","const","=","{}","[]","===","&&","! (prefix)","in","typeof (prefix)"]}},"paramCount":1,"sloc":{"logical":14,"physical":22},"errors":[],"lineEnd":406,"lineStart":385,"name":"isPluginEnable","paramNames":["pluginId"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.007,"difficulty":2,"effort":39.303,"length":7,"time":2.183,"vocabulary":7,"volume":19.651,"operands":{"distinct":3,"total":3,"identifiers":["presetIds","every","presetId"]},"operators":{"distinct":4,"total":4,"identifiers":["return","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":413,"lineStart":408,"name":"hasPresets","paramNames":["presetIds"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":100,"halstead":{"bugs":0.025,"difficulty":6.4,"effort":473.656,"length":20,"time":26.314,"vocabulary":13,"volume":74.009,"operands":{"distinct":5,"total":8,"identifiers":["preset","plugins","presetId","isPreset","isPluginEnable"]},"operators":{"distinct":8,"total":12,"identifiers":["const","=","[]",".","this","return","&&","()"]}},"paramCount":1,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":412,"lineStart":409,"name":"","paramNames":["presetId"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.007,"difficulty":2,"effort":39.303,"length":7,"time":2.183,"vocabulary":7,"volume":19.651,"operands":{"distinct":3,"total":3,"identifiers":["pluginIds","every","pluginId"]},"operators":{"distinct":4,"total":4,"identifiers":["return","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":420,"lineStart":415,"name":"hasPlugins","paramNames":["pluginIds"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":100,"halstead":{"bugs":0.027,"difficulty":7.2,"effort":575.672,"length":21,"time":31.982,"vocabulary":14,"volume":79.954,"operands":{"distinct":5,"total":8,"identifiers":["plugin","plugins","pluginId","isPreset","isPluginEnable"]},"operators":{"distinct":9,"total":13,"identifiers":["const","=","[]",".","this","return","&&","! (prefix)","()"]}},"paramCount":1,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":419,"lineStart":416,"name":"","paramNames":["pluginId"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":13,"cyclomaticDensity":28.261,"halstead":{"bugs":0.407,"difficulty":33.803,"effort":41224.301,"length":210,"time":2290.239,"vocabulary":56,"volume":1219.545,"operands":{"distinct":33,"total":97,"identifiers":["hooks","opts","key","type","\"initialValue\"","assert","Array","isArray","initialValue","\"applyPlugins failed, opts.initialValue must be Array if opts.type is add.\"","tAdd","AsyncSeriesWaterfallHook","\"memo\"","hook","isPluginEnable","pluginId","tapPromise","name","stage","0","before","memo","promise","ApplyPluginsType","add","tModify","modify","tEvent","\"_\"","event","Error","applyPlugin failed, type is not defined or is not matched, got ","."]},"operators":{"distinct":23,"total":113,"identifiers":["const","=","||","[]",".","this","switch","case","if","in","()","new","forof","! (prefix)","continue","{}",":","function=>","return","default","throw","``","${}"]}},"paramCount":1,"sloc":{"logical":46,"physical":74},"errors":[],"lineEnd":495,"lineStart":422,"name":"applyPlugins","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.019,"difficulty":2.857,"effort":163.884,"length":16,"time":9.105,"vocabulary":12,"volume":57.359,"operands":{"distinct":7,"total":8,"identifiers":["items","hook","fn","opts","args","memo","concat"]},"operators":{"distinct":5,"total":8,"identifiers":["const","=","()",".","return"]}},"paramCount":1,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":448,"lineStart":445,"name":"","paramNames":["memo"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.007,"difficulty":1,"effort":22.459,"length":8,"time":1.248,"vocabulary":7,"volume":22.459,"operands":{"distinct":5,"total":5,"identifiers":["hook","fn","memo","opts","args"]},"operators":{"distinct":2,"total":3,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":466,"lineStart":466,"name":"","paramNames":["memo"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.006,"difficulty":1,"effort":18.095,"length":7,"time":1.005,"vocabulary":6,"volume":18.095,"operands":{"distinct":4,"total":4,"identifiers":["hook","fn","opts","args"]},"operators":{"distinct":2,"total":3,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":486,"lineStart":484,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.049,"difficulty":5.538,"effort":815.047,"length":33,"time":45.28,"vocabulary":22,"volume":147.161,"operands":{"distinct":13,"total":16,"identifiers":["command","Command","usage","\" [options]\"","version","fesPkg","@fesjs/fes ","\"-v, --vers\"","\"output the current version\"","description","chalk","cyan","\"一个好用的前端应用解决方案\""]},"operators":{"distinct":9,"total":17,"identifiers":["const","=","new","()",".","``","${}","this","return"]}},"paramCount":0,"sloc":{"logical":6,"physical":8},"errors":[],"lineEnd":504,"lineStart":497,"name":"initCommand","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":7.692,"halstead":{"bugs":0.055,"difficulty":4.154,"effort":688.164,"length":39,"time":38.231,"vocabulary":19,"volume":165.669,"operands":{"distinct":13,"total":18,"identifiers":["init","setStage","ServiceStage","run","applyPlugins","key","\"onStart\"","type","ApplyPluginsType","event","args","runCommand","rawArgv"]},"operators":{"distinct":6,"total":21,"identifiers":["()",".","this","{}",":","return"]}},"paramCount":2,"sloc":{"logical":13,"physical":14},"errors":[],"lineEnd":519,"lineStart":506,"name":"run","paramNames":["rawArgv","args"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.037,"difficulty":3,"effort":331.084,"length":27,"time":18.394,"vocabulary":17,"volume":110.361,"operands":{"distinct":11,"total":11,"identifiers":["assert","stage","ServiceStage","init","\"service is not initialized.\"","Object","keys","commands","forEach","command","parseCommand"]},"operators":{"distinct":6,"total":16,"identifiers":["()",">=",".","this","function=>","return"]}},"paramCount":2,"sloc":{"logical":6,"physical":29},"errors":[],"lineEnd":549,"lineStart":521,"name":"runCommand","paramNames":["rawArgv","args"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":25,"halstead":{"bugs":0.079,"difficulty":8.308,"effort":1963.522,"length":53,"time":109.085,"vocabulary":22,"volume":236.35,"operands":{"distinct":13,"total":24,"identifiers":["commandOptionConfig","commands","command","program","c","description","Array","isArray","options","forEach","config","fn","action"]},"operators":{"distinct":9,"total":29,"identifiers":["const","=","[]",".","this","let","()","if","function=>"]}},"paramCount":1,"sloc":{"logical":12,"physical":24},"errors":[],"lineEnd":546,"lineStart":523,"name":"","paramNames":["command"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":42.857,"halstead":{"bugs":0.052,"difficulty":7.333,"effort":1146.021,"length":40,"time":63.668,"vocabulary":15,"volume":156.276,"operands":{"distinct":9,"total":22,"identifiers":["option","Option","config","name","description","default","choices","c","addOption"]},"operators":{"distinct":6,"total":18,"identifiers":["const","=","new",".","if","()"]}},"paramCount":1,"sloc":{"logical":7,"physical":10},"errors":[],"lineEnd":537,"lineStart":528,"name":"","paramNames":["config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.02,"difficulty":2.75,"effort":167.597,"length":17,"time":9.311,"vocabulary":12,"volume":60.944,"operands":{"distinct":8,"total":11,"identifiers":["commandOptionConfig","fn","rawArgv","args","options","c","opts","program"]},"operators":{"distinct":4,"total":6,"identifiers":["()",".","{}",":"]}},"paramCount":0,"sloc":{"logical":7,"physical":5},"errors":[],"lineEnd":544,"lineStart":540,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.036,"difficulty":3.056,"effort":325.74,"length":28,"time":18.097,"vocabulary":14,"volume":106.606,"operands":{"distinct":9,"total":11,"identifiers":["program","on","\"--help\"","commands","forEach","c","parseAsync","process","argv"]},"operators":{"distinct":5,"total":17,"identifiers":["()",".","this","function=>","return"]}},"paramCount":0,"sloc":{"logical":6,"physical":13},"errors":[],"lineEnd":563,"lineStart":551,"name":"parseCommand","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.024,"difficulty":3.143,"effort":228.322,"length":21,"time":12.685,"vocabulary":11,"volume":72.648,"operands":{"distinct":7,"total":11,"identifiers":["console","log","chalk","cyan","\"fes --help\""," Run "," for detailed usage of given command."]},"operators":{"distinct":4,"total":10,"identifiers":["()",".","``","${}"]}},"paramCount":0,"sloc":{"logical":4,"physical":9},"errors":[],"lineEnd":560,"lineStart":552,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["c","on","\"--help\""]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","function=>"]}},"paramCount":1,"sloc":{"logical":3,"physical":1},"errors":[],"lineEnd":561,"lineStart":561,"name":"","paramNames":["c"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["console","log"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":561,"lineStart":561,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.125,"cyclomaticDensity":0.582,"halstead":{"bugs":0.109,"difficulty":1.529,"effort":19933.274,"length":40.775,"time":1107.404,"vocabulary":6.375,"volume":325.97,"operands":{"distinct":5.475,"total":18.6},"operators":{"distinct":0.9,"total":22.175}},"paramCount":0.775,"sloc":{"logical":9.125,"physical":13.35}},"methodAverage":{"cyclomatic":2.179,"cyclomaticDensity":36.631,"halstead":{"bugs":0.062,"difficulty":6,"effort":2456.582,"length":39.231,"time":136.477,"vocabulary":17.077,"volume":185.532,"operands":{"distinct":10.051,"total":17.308},"operators":{"distinct":7.026,"total":21.923}},"paramCount":0.795,"sloc":{"logical":8.821,"physical":14.949}},"name":"Service","superClassName":"EventEmitter","maintainability":63.306}],"dependencies":[{"line":5,"path":"path","type":"esm"},{"line":6,"path":"events","type":"esm"},{"line":7,"path":"assert","type":"esm"},{"line":8,"path":"tapable","type":"esm"},{"line":9,"path":"fs","type":"esm"},{"line":10,"path":"@fesjs/utils","type":"esm"},{"line":11,"path":"commander","type":"esm"},{"line":12,"path":"./utils/pluginUtils","type":"esm"},{"line":13,"path":"./utils/loadDotEnv","type":"esm"},{"line":14,"path":"./utils/isPromise","type":"esm"},{"line":15,"path":"./babelRegister","type":"esm"},{"line":16,"path":"./pluginAPI","type":"esm"},{"line":23,"path":"./enums","type":"esm"},{"line":24,"path":"../config","type":"esm"},{"line":25,"path":"../config/utils/configUtils","type":"esm"},{"line":26,"path":"./getPaths","type":"esm"},{"line":149,"path":"* dynamic dependency *","type":"cjs"}],"errors":[],"lineEnd":565,"lineStart":1,"maintainability":58.674,"methods":[],"aggregateAverage":{"cyclomatic":2.15,"cyclomaticDensity":0.587,"halstead":{"bugs":0.109,"difficulty":1.603,"effort":21016.453,"length":40.875,"time":1167.581,"vocabulary":6.475,"volume":327.687,"operands":{"distinct":5.525,"total":18.65},"operators":{"distinct":0.95,"total":22.225}},"paramCount":0.775,"sloc":{"logical":9.15,"physical":14.125}},"methodAverage":{"cyclomatic":2.179,"cyclomaticDensity":36.631,"halstead":{"bugs":0.062,"difficulty":6,"effort":2456.582,"length":39.231,"time":136.477,"vocabulary":17.077,"volume":185.532,"operands":{"distinct":10.051,"total":17.308},"operators":{"distinct":7.026,"total":21.923}},"paramCount":0.795,"sloc":{"logical":8.821,"physical":14.949}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-compiler/src/service/pluginAPI.js","report":{"aggregate":{"cyclomatic":33,"cyclomaticDensity":38.824,"halstead":{"bugs":1.214,"difficulty":40.343,"effort":146928.305,"length":534,"time":8162.684,"vocabulary":113,"volume":3641.976,"operands":{"distinct":86,"total":257,"identifiers":["PluginAPI","constructor","opts","id","key","service","utils","logger","Logger","fes:plugin:","describe","config","enableBy","plugins","name","isPreset","\"preset\"","\"plugin\"","Error","path","api.describe() failed, "," "," is already registered by ",".","EnableBy","register","hook","assert","\"string\"","api.register() failed, hook.key must supplied and should be string, but got ","fn","\"function\"","api.register() failed, hook.fn must supplied and should be function, but got ","hooksByPluginId","concat","registerCommand","commandOption","command","commands","api.registerCommand() failed, the command "," is exists.","\"api.registerCommand() failed, the command must be String.\"","\"api.registerCommand() failed, the fn must be function.\"","registerPlugins","stage","ServiceStage","initPresets","initPlugins","\"api.registerPlugins() failed, it should only be used in registering stage.\"","Array","isArray","\"api.registerPlugins() failed, plugins must be Array.\"","extraPlugins","map","plugin","isValidPlugin","pathToObj","type","PluginType","cwd","_extraPlugins","push","splice","0","registerPresets","presets","\"api.registerPresets() failed, it should only used in presets.\"","\"api.registerPresets() failed, presets must be Array.\"","extraPresets","preset","_extraPresets","registerMethod","exitsError","true","pluginMethods","api.registerMethod() failed, method "," is already exist.","hookFn","lodash","isPlainObject","skipPlugins","pluginIds","forEach","pluginId","skipPluginIds","add"]},"operators":{"distinct":27,"total":277,"identifiers":["class","=",".","this","new","``","${}","||","{}","const","if","&&","!==","[]",":?","throw","delete (prefix)","()","===","typeof (prefix)","! (prefix)","function=>",":","else","... (spread)","return","function"]}},"paramCount":18,"sloc":{"logical":85,"physical":166}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[{"aggregate":{"cyclomatic":32,"cyclomaticDensity":38.095,"halstead":{"bugs":1.205,"difficulty":39.153,"effort":141523.366,"length":532,"time":7862.409,"vocabulary":111,"volume":3614.629,"operands":{"distinct":85,"total":256,"identifiers":["constructor","opts","id","key","service","utils","logger","Logger","fes:plugin:","describe","config","enableBy","plugins","name","isPreset","\"preset\"","\"plugin\"","Error","path","api.describe() failed, "," "," is already registered by ",".","EnableBy","register","hook","assert","\"string\"","api.register() failed, hook.key must supplied and should be string, but got ","fn","\"function\"","api.register() failed, hook.fn must supplied and should be function, but got ","hooksByPluginId","concat","registerCommand","commandOption","command","commands","api.registerCommand() failed, the command "," is exists.","\"api.registerCommand() failed, the command must be String.\"","\"api.registerCommand() failed, the fn must be function.\"","registerPlugins","stage","ServiceStage","initPresets","initPlugins","\"api.registerPlugins() failed, it should only be used in registering stage.\"","Array","isArray","\"api.registerPlugins() failed, plugins must be Array.\"","extraPlugins","map","plugin","isValidPlugin","pathToObj","type","PluginType","cwd","_extraPlugins","push","splice","0","registerPresets","presets","\"api.registerPresets() failed, it should only used in presets.\"","\"api.registerPresets() failed, presets must be Array.\"","extraPresets","preset","_extraPresets","registerMethod","exitsError","true","pluginMethods","api.registerMethod() failed, method "," is already exist.","hookFn","lodash","isPlainObject","skipPlugins","pluginIds","forEach","pluginId","skipPluginIds","add"]},"operators":{"distinct":26,"total":276,"identifiers":["=",".","this","new","``","${}","||","{}","const","if","&&","!==","[]",":?","throw","delete (prefix)","()","===","typeof (prefix)","! (prefix)","function=>",":","else","... (spread)","return","function"]}},"paramCount":18,"sloc":{"logical":84,"physical":152}},"errors":[],"lineEnd":165,"lineStart":14,"methods":[{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.055,"difficulty":7,"effort":1148.626,"length":42,"time":63.813,"vocabulary":15,"volume":164.089,"operands":{"distinct":8,"total":16,"identifiers":["id","opts","key","service","utils","logger","Logger","fes:plugin:"]},"operators":{"distinct":7,"total":26,"identifiers":["=",".","this","new","``","${}","||"]}},"paramCount":1,"sloc":{"logical":5,"physical":7},"errors":[],"lineEnd":21,"lineStart":15,"name":"constructor","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":9,"cyclomaticDensity":56.25,"halstead":{"bugs":0.207,"difficulty":24.889,"effort":15447.798,"length":122,"time":858.211,"vocabulary":34,"volume":620.67,"operands":{"distinct":18,"total":56,"identifiers":["plugins","service","id","name","isPreset","\"preset\"","\"plugin\"","Error","path","api.describe() failed, "," "," is already registered by ",".","key","config","enableBy","EnableBy","register"]},"operators":{"distinct":16,"total":66,"identifiers":["const","=","{}",".","this","if","&&","!==","[]",":?","throw","new","``","${}","delete (prefix)","||"]}},"paramCount":4,"sloc":{"logical":16,"physical":32},"errors":[],"lineEnd":55,"lineStart":24,"name":"describe","paramNames":["id","key","config","enableBy"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":100,"halstead":{"bugs":0.096,"difficulty":11.846,"effort":3421.793,"length":63,"time":190.1,"vocabulary":24,"volume":288.853,"operands":{"distinct":13,"total":28,"identifiers":["assert","hook","key","\"string\"","api.register() failed, hook.key must supplied and should be string, but got ",".","fn","\"function\"","api.register() failed, hook.fn must supplied and should be function, but got ","service","hooksByPluginId","id","concat"]},"operators":{"distinct":11,"total":35,"identifiers":["()","&&",".","===","typeof (prefix)","``","${}","=","[]","this","||"]}},"paramCount":1,"sloc":{"logical":4,"physical":13},"errors":[],"lineEnd":69,"lineStart":57,"name":"register","paramNames":["hook"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.07,"difficulty":12,"effort":2530.899,"length":46,"time":140.606,"vocabulary":24,"volume":210.908,"operands":{"distinct":12,"total":24,"identifiers":["command","fn","commandOption","assert","service","commands","api.registerCommand() failed, the command "," is exists.","\"string\"","\"api.registerCommand() failed, the command must be String.\"","\"function\"","\"api.registerCommand() failed, the fn must be function.\""]},"operators":{"distinct":12,"total":22,"identifiers":["const","=","{}","()","! (prefix)","[]",".","this","``","${}","===","typeof (prefix)"]}},"paramCount":1,"sloc":{"logical":7,"physical":16},"errors":[],"lineEnd":86,"lineStart":71,"name":"registerCommand","paramNames":["commandOption"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":30,"halstead":{"bugs":0.117,"difficulty":10.083,"effort":3526.894,"length":72,"time":195.939,"vocabulary":29,"volume":349.775,"operands":{"distinct":18,"total":33,"identifiers":["assert","service","stage","ServiceStage","initPresets","initPlugins","\"api.registerPlugins() failed, it should only be used in registering stage.\"","Array","isArray","plugins","\"api.registerPlugins() failed, plugins must be Array.\"","extraPlugins","map","plugin","_extraPlugins","push","splice","0"]},"operators":{"distinct":11,"total":39,"identifiers":["()","||","===",".","this","const","=","function=>","if","else","... (spread)"]}},"paramCount":1,"sloc":{"logical":10,"physical":23},"errors":[],"lineEnd":111,"lineStart":89,"name":"registerPlugins","paramNames":["plugins"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.029,"difficulty":4.5,"effort":394.061,"length":23,"time":21.892,"vocabulary":14,"volume":87.569,"operands":{"distinct":8,"total":12,"identifiers":["isValidPlugin","plugin","pathToObj","type","PluginType","path","cwd","service"]},"operators":{"distinct":6,"total":11,"identifiers":[":?","()","{}",":",".","this"]}},"paramCount":1,"sloc":{"logical":6,"physical":7},"errors":[],"lineEnd":105,"lineStart":99,"name":"","paramNames":["plugin"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.063,"difficulty":5.25,"effort":986.913,"length":41,"time":54.829,"vocabulary":24,"volume":187.983,"operands":{"distinct":16,"total":21,"identifiers":["assert","service","stage","ServiceStage","initPresets","\"api.registerPresets() failed, it should only used in presets.\"","Array","isArray","presets","\"api.registerPresets() failed, presets must be Array.\"","extraPresets","map","preset","_extraPresets","splice","0"]},"operators":{"distinct":8,"total":20,"identifiers":["()","===",".","this","const","=","function=>","... (spread)"]}},"paramCount":1,"sloc":{"logical":7,"physical":19},"errors":[],"lineEnd":131,"lineStart":113,"name":"registerPresets","paramNames":["presets"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.029,"difficulty":4.5,"effort":394.061,"length":23,"time":21.892,"vocabulary":14,"volume":87.569,"operands":{"distinct":8,"total":12,"identifiers":["isValidPlugin","preset","pathToObj","type","PluginType","path","cwd","service"]},"operators":{"distinct":6,"total":11,"identifiers":[":?","()","{}",":",".","this"]}},"paramCount":1,"sloc":{"logical":6,"physical":7},"errors":[],"lineEnd":128,"lineStart":122,"name":"","paramNames":["preset"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":57.143,"halstead":{"bugs":0.048,"difficulty":9.389,"effort":1339.811,"length":32,"time":74.434,"vocabulary":22,"volume":142.702,"operands":{"distinct":9,"total":13,"identifiers":["service","pluginMethods","name","exitsError","Error","api.registerMethod() failed, method "," is already exist.","fn","hookFn"]},"operators":{"distinct":13,"total":19,"identifiers":["if","[]",".","this","else","throw","new","``","${}","return","=","||","function"]}},"paramCount":4,"sloc":{"logical":7,"physical":26},"errors":[],"lineEnd":158,"lineStart":133,"name":"registerMethod","paramNames":["name","fn","exitsError","true"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.036,"difficulty":6,"effort":650.508,"length":26,"time":36.139,"vocabulary":18,"volume":108.418,"operands":{"distinct":9,"total":12,"identifiers":["hook","key","name","utils","lodash","isPlainObject","hookFn","fn","register"]},"operators":{"distinct":9,"total":14,"identifiers":["const","=","{}",":","... (spread)",":?","()",".","this"]}},"paramCount":1,"sloc":{"logical":5,"physical":8},"errors":[],"lineEnd":157,"lineStart":150,"name":"","paramNames":["hookFn"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["pluginIds","forEach","pluginId"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","function=>"]}},"paramCount":1,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":164,"lineStart":160,"name":"skipPlugins","paramNames":["pluginIds"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.008,"difficulty":1.5,"effort":37.899,"length":9,"time":2.106,"vocabulary":7,"volume":25.266,"operands":{"distinct":4,"total":4,"identifiers":["service","skipPluginIds","add","pluginId"]},"operators":{"distinct":3,"total":5,"identifiers":["()",".","this"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":163,"lineStart":161,"name":"","paramNames":["pluginId"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.462,"cyclomaticDensity":2.93,"halstead":{"bugs":0.093,"difficulty":3.012,"effort":10886.413,"length":40.923,"time":604.801,"vocabulary":8.538,"volume":278.048,"operands":{"distinct":6.538,"total":19.692},"operators":{"distinct":2,"total":21.231}},"paramCount":1.385,"sloc":{"logical":6.462,"physical":11.692}},"methodAverage":{"cyclomatic":2.667,"cyclomaticDensity":47.386,"halstead":{"bugs":0.064,"difficulty":8.205,"effort":2491.877,"length":42.083,"time":138.438,"vocabulary":19.25,"volume":190.776,"operands":{"distinct":10.5,"total":19.5},"operators":{"distinct":8.75,"total":22.583}},"paramCount":1.5,"sloc":{"logical":6.333,"physical":13.833}},"name":"PluginAPI","maintainability":66.298}],"dependencies":[{"line":6,"path":"assert","type":"esm"},{"line":7,"path":"@fesjs/utils","type":"esm"},{"line":8,"path":"./utils/pluginUtils","type":"esm"},{"line":9,"path":"./enums","type":"esm"},{"line":10,"path":"../logger","type":"esm"}],"errors":[],"lineEnd":166,"lineStart":1,"maintainability":63.001,"methods":[],"aggregateAverage":{"cyclomatic":2.538,"cyclomaticDensity":2.986,"halstead":{"bugs":0.093,"difficulty":3.103,"effort":11302.177,"length":41.077,"time":627.899,"vocabulary":8.692,"volume":280.152,"operands":{"distinct":6.615,"total":19.769},"operators":{"distinct":2.077,"total":21.308}},"paramCount":1.385,"sloc":{"logical":6.538,"physical":12.769}},"methodAverage":{"cyclomatic":2.667,"cyclomaticDensity":47.386,"halstead":{"bugs":0.064,"difficulty":8.205,"effort":2491.877,"length":42.083,"time":138.438,"vocabulary":19.25,"volume":190.776,"operands":{"distinct":10.5,"total":19.5},"operators":{"distinct":8.75,"total":22.583}},"paramCount":1.5,"sloc":{"logical":6.333,"physical":13.833}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-compiler/src/service/utils/isPromise.js","report":{"aggregate":{"cyclomatic":5,"cyclomaticDensity":250,"halstead":{"bugs":0.03,"difficulty":8,"effort":710.484,"length":24,"time":39.471,"vocabulary":13,"volume":88.811,"operands":{"distinct":5,"total":10,"identifiers":["isPromise","obj","\"object\"","\"function\"","then"]},"operators":{"distinct":8,"total":14,"identifiers":["function","return","&&","! (prefix)","||","===","typeof (prefix)","."]}},"paramCount":1,"sloc":{"logical":2,"physical":8}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":8,"lineStart":1,"maintainability":87.719,"methods":[{"cyclomatic":4,"cyclomaticDensity":400,"halstead":{"bugs":0.024,"difficulty":7,"effort":508.536,"length":21,"time":28.252,"vocabulary":11,"volume":72.648,"operands":{"distinct":4,"total":8,"identifiers":["obj","\"object\"","\"function\"","then"]},"operators":{"distinct":7,"total":13,"identifiers":["return","&&","! (prefix)","||","===","typeof (prefix)","."]}},"paramCount":1,"sloc":{"logical":1,"physical":7},"errors":[],"lineEnd":7,"lineStart":1,"name":"isPromise","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.5,"cyclomaticDensity":125,"halstead":{"bugs":0.015,"difficulty":4,"effort":355.242,"length":12,"time":19.736,"vocabulary":6.5,"volume":44.405,"operands":{"distinct":2.5,"total":5},"operators":{"distinct":4,"total":7}},"paramCount":0.5,"sloc":{"logical":1,"physical":4}},"methodAverage":{"cyclomatic":4,"cyclomaticDensity":400,"halstead":{"bugs":0.024,"difficulty":7,"effort":508.536,"length":21,"time":28.252,"vocabulary":11,"volume":72.648,"operands":{"distinct":4,"total":8},"operators":{"distinct":7,"total":13}},"paramCount":1,"sloc":{"logical":1,"physical":7}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-compiler/src/service/utils/loadDotEnv.js","report":{"aggregate":{"cyclomatic":5,"cyclomaticDensity":50,"halstead":{"bugs":0.056,"difficulty":7.308,"effort":1223.102,"length":37,"time":67.95,"vocabulary":23,"volume":167.372,"operands":{"distinct":13,"total":19,"identifiers":["loadDotEnv","envPath","existsSync","parsed","parse","readFileSync","\"utf-8\"","Object","keys","forEach","key","process","env"]},"operators":{"distinct":10,"total":18,"identifiers":["function","if","()","const","=","||","{}",".","function=>","[]"]}},"paramCount":2,"sloc":{"logical":10,"physical":17}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"fs","type":"esm"},{"line":2,"path":"dotenv","type":"esm"}],"errors":[],"lineEnd":17,"lineStart":1,"maintainability":76.274,"methods":[{"cyclomatic":3,"cyclomaticDensity":37.5,"halstead":{"bugs":0.035,"difficulty":4.8,"effort":500.391,"length":25,"time":27.8,"vocabulary":18,"volume":104.248,"operands":{"distinct":10,"total":12,"identifiers":["existsSync","envPath","parsed","parse","readFileSync","\"utf-8\"","Object","keys","forEach","key"]},"operators":{"distinct":8,"total":13,"identifiers":["if","()","const","=","||","{}",".","function=>"]}},"paramCount":1,"sloc":{"logical":8,"physical":9},"errors":[],"lineEnd":16,"lineStart":8,"name":"loadDotEnv","paramNames":["envPath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.008,"difficulty":1.875,"effort":47.374,"length":9,"time":2.632,"vocabulary":7,"volume":25.266,"operands":{"distinct":4,"total":5,"identifiers":["process","env","key","parsed"]},"operators":{"distinct":3,"total":4,"identifiers":["=","[]","."]}},"paramCount":1,"sloc":{"logical":1,"physical":4},"errors":[],"lineEnd":14,"lineStart":11,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.667,"cyclomaticDensity":16.667,"halstead":{"bugs":0.019,"difficulty":2.436,"effort":407.701,"length":12.333,"time":22.65,"vocabulary":7.667,"volume":55.791,"operands":{"distinct":4.333,"total":6.333},"operators":{"distinct":3.333,"total":6}},"paramCount":0.667,"sloc":{"logical":3.333,"physical":5.667}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":68.75,"halstead":{"bugs":0.022,"difficulty":3.338,"effort":273.883,"length":17,"time":15.216,"vocabulary":12.5,"volume":64.757,"operands":{"distinct":7,"total":8.5},"operators":{"distinct":5.5,"total":8.5}},"paramCount":1,"sloc":{"logical":4.5,"physical":6.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-compiler/src/service/utils/pluginUtils.js","report":{"aggregate":{"cyclomatic":32,"cyclomaticDensity":24.242,"halstead":{"bugs":1.169,"difficulty":36.263,"effort":127206.214,"length":507,"time":7067.012,"vocabulary":121,"volume":3507.864,"operands":{"distinct":95,"total":265,"identifiers":["RE","PluginType","plugin","/^(@fesjs\\/|@webank\\/fes-|fes-)plugin-/","preset","/^(@fesjs\\/|@webank\\/fes-|fes-)preset-/","isPluginOrPreset","type","name","hasScope","charAt","0","\"@\"","re","test","split","\"/\"","1","getPluginsOrPresets","opts","upperCaseType","toUpperCase","\"presets\"","\"plugins\"","process","env","FES_","S","\"\"","\",\"","filter","Boolean","Object","keys","pkg","devDependencies","concat","dependencies","bind","null","\"userConfigPresets\"","\"userConfigPlugins\"","map","path","resolve","sync","basedir","cwd","extensions","\".js\"","\".ts\"","nameToKey","\".\"","part","lodash","camelCase","join","pkgNameToKey","pkgName","startsWith","\"@fesjs/\"","replace","pathToObj","isPkgPlugin","false","pkgJSONPath","pkgUp","require","winPath","dirname","main","\"index.js\"","id","relative","./","\"@fesjs/preset-built-in/lib/plugins\"","\"@@\"","/\\.js$/","key","basename","extname","ret","compatESModuleRequire","e","Error","message","Register "," failed, since ","defaultConfig","resolvePresets","presets","resolvePlugins","plugins","isValidPlugin","apply"]},"operators":{"distinct":26,"total":242,"identifiers":["const","=","{}",":",".","function","===","()","[]","if","return","||",",","... (spread)",":?","``","${}","function=>","&&","! (prefix)","let","else","try","catch","throw","new"]}},"paramCount":17,"sloc":{"logical":132,"physical":136}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":3,"path":"path","type":"esm"},{"line":10,"path":"@fesjs/utils","type":"esm"},{"line":12,"path":"../enums","type":"esm"},{"line":72,"path":"* dynamic dependency *","type":"cjs"},{"line":102,"path":"* dynamic dependency *","type":"cjs"}],"errors":[],"lineEnd":136,"lineStart":1,"maintainability":59.137,"methods":[{"cyclomatic":3,"cyclomaticDensity":30,"halstead":{"bugs":0.061,"difficulty":7.875,"effort":1452.759,"length":42,"time":80.709,"vocabulary":21,"volume":184.477,"operands":{"distinct":12,"total":21,"identifiers":["hasScope","name","charAt","0","\"@\"","re","RE","type","test","split","\"/\"","1"]},"operators":{"distinct":9,"total":21,"identifiers":["const","=","===","()",".","[]","if","return","||"]}},"paramCount":2,"sloc":{"logical":10,"physical":8},"errors":[],"lineEnd":26,"lineStart":19,"name":"isPluginOrPreset","paramNames":["type","name"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":8,"cyclomaticDensity":66.667,"halstead":{"bugs":0.179,"difficulty":10.75,"effort":5785.667,"length":98,"time":321.426,"vocabulary":45,"volume":538.202,"operands":{"distinct":30,"total":43,"identifiers":["upperCaseType","type","toUpperCase","opts","PluginType","preset","\"presets\"","\"plugins\"","process","env","FES_","S","\"\"","split","\",\"","filter","Boolean","Object","keys","pkg","devDependencies","concat","dependencies","isPluginOrPreset","bind","null","\"userConfigPresets\"","\"userConfigPlugins\"","map","path"]},"operators":{"distinct":15,"total":55,"identifiers":["const","=","()",".","return","[]",",","... (spread)","||",":?","===","``","${}","{}","function=>"]}},"paramCount":2,"sloc":{"logical":12,"physical":20},"errors":[],"lineEnd":47,"lineStart":28,"name":"getPluginsOrPresets","paramNames":["type","opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.022,"difficulty":3,"effort":199.251,"length":17,"time":11.07,"vocabulary":15,"volume":66.417,"operands":{"distinct":9,"total":9,"identifiers":["resolve","sync","path","basedir","opts","cwd","extensions","\".js\"","\".ts\""]},"operators":{"distinct":6,"total":8,"identifiers":["()",".","{}",":","[]",","]}},"paramCount":1,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":46,"lineStart":43,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.017,"difficulty":2.333,"effort":116.267,"length":15,"time":6.459,"vocabulary":10,"volume":49.829,"operands":{"distinct":6,"total":7,"identifiers":["name","split","\".\"","map","part","join"]},"operators":{"distinct":4,"total":8,"identifiers":["return","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":5,"physical":6},"errors":[],"lineEnd":57,"lineStart":52,"name":"nameToKey","paramNames":["name"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["lodash","camelCase","part"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":55,"lineStart":55,"name":"","paramNames":["part"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":37.5,"halstead":{"bugs":0.053,"difficulty":5.786,"effort":916.021,"length":35,"time":50.89,"vocabulary":23,"volume":158.325,"operands":{"distinct":14,"total":18,"identifiers":["pkgName","charAt","0","\"@\"","startsWith","\"@fesjs/\"","split","\"/\"","1","nameToKey","replace","RE","type","\"\""]},"operators":{"distinct":9,"total":17,"identifiers":["if","&&","===","()",".","! (prefix)","=","[]","return"]}},"paramCount":2,"sloc":{"logical":8,"physical":6},"errors":[],"lineEnd":64,"lineStart":59,"name":"pkgNameToKey","paramNames":["pkgName","type"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":7,"cyclomaticDensity":12.281,"halstead":{"bugs":0.338,"difficulty":22.897,"effort":23204.965,"length":173,"time":1289.165,"vocabulary":58,"volume":1013.431,"operands":{"distinct":39,"total":94,"identifiers":["pkg","null","isPkgPlugin","false","pkgJSONPath","pkgUp","sync","cwd","path","require","winPath","join","dirname","main","\"index.js\"","id","name","startsWith","relative","./","replace","\"@fesjs/preset-built-in/lib/plugins\"","\"@@\"","/\\.js$/","\"\"","key","pkgNameToKey","type","nameToKey","basename","extname","ret","compatESModuleRequire","e","Error","message","Register "," failed, since ","defaultConfig"]},"operators":{"distinct":19,"total":79,"identifiers":["let","=","const","()",".","{}",":","if","===","||","else","``","${}",":?","return","try","catch","throw","new"]}},"paramCount":3,"sloc":{"logical":57,"physical":46},"errors":[],"lineEnd":111,"lineStart":66,"name":"pathToObj","paramNames":["path","type","cwd"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.029,"difficulty":5,"effort":440,"length":22,"time":24.444,"vocabulary":16,"volume":88,"operands":{"distinct":8,"total":10,"identifiers":["type","PluginType","preset","presets","getPluginsOrPresets","opts","map","path"]},"operators":{"distinct":8,"total":12,"identifiers":["const","=",".","[]","... (spread)","()","return","function=>"]}},"paramCount":1,"sloc":{"logical":6,"physical":9},"errors":[],"lineEnd":121,"lineStart":113,"name":"resolvePresets","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.013,"difficulty":3.2,"effort":121.725,"length":12,"time":6.763,"vocabulary":9,"volume":38.039,"operands":{"distinct":5,"total":8,"identifiers":["pathToObj","type","path","cwd","opts"]},"operators":{"distinct":4,"total":4,"identifiers":["()","{}",":","."]}},"paramCount":1,"sloc":{"logical":5,"physical":5},"errors":[],"lineEnd":120,"lineStart":116,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.025,"difficulty":3.75,"effort":285.552,"length":20,"time":15.864,"vocabulary":14,"volume":76.147,"operands":{"distinct":8,"total":10,"identifiers":["type","PluginType","plugin","plugins","getPluginsOrPresets","opts","map","path"]},"operators":{"distinct":6,"total":10,"identifiers":["const","=",".","()","return","function=>"]}},"paramCount":1,"sloc":{"logical":6,"physical":9},"errors":[],"lineEnd":131,"lineStart":123,"name":"resolvePlugins","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.013,"difficulty":3.2,"effort":121.725,"length":12,"time":6.763,"vocabulary":9,"volume":38.039,"operands":{"distinct":5,"total":8,"identifiers":["pathToObj","path","type","cwd","opts"]},"operators":{"distinct":4,"total":4,"identifiers":["()","{}",":","."]}},"paramCount":1,"sloc":{"logical":5,"physical":5},"errors":[],"lineEnd":130,"lineStart":126,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":300,"halstead":{"bugs":0.011,"difficulty":2.25,"effort":75.799,"length":12,"time":4.211,"vocabulary":7,"volume":33.688,"operands":{"distinct":4,"total":6,"identifiers":["plugin","id","key","apply"]},"operators":{"distinct":3,"total":6,"identifiers":["return","&&","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":135,"lineStart":133,"name":"isValidPlugin","paramNames":["plugin"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.462,"cyclomaticDensity":1.865,"halstead":{"bugs":0.09,"difficulty":2.789,"effort":9785.093,"length":39,"time":543.616,"vocabulary":9.308,"volume":269.836,"operands":{"distinct":7.308,"total":20.385},"operators":{"distinct":2,"total":18.615}},"paramCount":1.308,"sloc":{"logical":10.154,"physical":10.462}},"methodAverage":{"cyclomatic":2.583,"cyclomaticDensity":51.232,"halstead":{"bugs":0.064,"difficulty":5.92,"effort":2727.612,"length":38.583,"time":151.534,"vocabulary":19.333,"volume":191.35,"operands":{"distinct":11.917,"total":19.75},"operators":{"distinct":7.417,"total":18.833}},"paramCount":1.417,"sloc":{"logical":10.083,"physical":10.167}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-access/build.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4,"identifiers":["module","exports","copy","\"runtime\""]},"operators":{"distinct":5,"total":5,"identifiers":["=",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":84.899,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4},"operators":{"distinct":5,"total":5}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-access/src/index.js","report":{"aggregate":{"cyclomatic":7,"cyclomaticDensity":14.583,"halstead":{"bugs":0.297,"difficulty":11.08,"effort":9887.743,"length":153,"time":549.319,"vocabulary":57,"volume":892.432,"operands":{"distinct":44,"total":75,"identifiers":["namespace","\"plugin-access\"","api","utils","Mustache","describe","config","joi","object","roles","default","absoluteFilePath","join","\"core.js\"","absRuntimeFilePath","\"runtime.js\"","onGenerateFiles","access","writeTmpFile","path","content","render","readFileSync","__dirname","\"runtime/core.tpl\"","\"utf-8\"","REPLACE_ROLES","JSON","stringify","lodashPath","resolvePkg","\"lodash-es\"","copyTmpFiles","\"runtime\"","ignore","\".tpl\"","addPluginExports","specifiers","\"access\"","\"useAccess\"","source","addRuntimePluginKey","addRuntimePlugin","@@/"]},"operators":{"distinct":13,"total":78,"identifiers":["const","=","function=>","{}",":","()",".","return","||","[]",",","``","${}"]}},"paramCount":1,"sloc":{"logical":48,"physical":60}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"fs","type":"esm"},{"line":2,"path":"path","type":"esm"},{"line":3,"path":"@fesjs/utils","type":"esm"}],"errors":[],"lineEnd":60,"lineStart":1,"maintainability":65.395,"methods":[{"cyclomatic":1,"cyclomaticDensity":4.348,"halstead":{"bugs":0.106,"difficulty":6.316,"effort":2012.068,"length":67,"time":111.782,"vocabulary":27,"volume":318.577,"operands":{"distinct":19,"total":30,"identifiers":["utils","Mustache","api","describe","config","joi","object","roles","default","absoluteFilePath","join","namespace","\"core.js\"","absRuntimeFilePath","\"runtime.js\"","onGenerateFiles","addPluginExports","addRuntimePluginKey","addRuntimePlugin"]},"operators":{"distinct":8,"total":37,"identifiers":["const","=","{}",":","()",".","return","function=>"]}},"paramCount":1,"sloc":{"logical":23,"physical":53},"errors":[],"lineEnd":59,"lineStart":7,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":11.111,"halstead":{"bugs":0.109,"difficulty":5.231,"effort":1703.126,"length":64,"time":94.618,"vocabulary":34,"volume":325.598,"operands":{"distinct":26,"total":34,"identifiers":["roles","api","config","access","writeTmpFile","path","absoluteFilePath","content","Mustache","render","readFileSync","join","__dirname","\"runtime/core.tpl\"","\"utf-8\"","REPLACE_ROLES","JSON","stringify","lodashPath","resolvePkg","\"lodash-es\"","copyTmpFiles","namespace","\"runtime\"","ignore","\".tpl\""]},"operators":{"distinct":8,"total":30,"identifiers":["const","=","{}","||",".","()",":","[]"]}},"paramCount":0,"sloc":{"logical":18,"physical":21},"errors":[],"lineEnd":47,"lineStart":27,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.012,"difficulty":2,"effort":69.738,"length":11,"time":3.874,"vocabulary":9,"volume":34.869,"operands":{"distinct":5,"total":5,"identifiers":["specifiers","\"access\"","\"useAccess\"","source","absoluteFilePath"]},"operators":{"distinct":4,"total":6,"identifiers":["[]","{}",":",","]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":54,"lineStart":49,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":1,"total":1,"identifiers":["\"access\""]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":56,"lineStart":56,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["absRuntimeFilePath","@@/"]},"operators":{"distinct":2,"total":2,"identifiers":["``","${}"]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":58,"lineStart":58,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.167,"cyclomaticDensity":2.431,"halstead":{"bugs":0.05,"difficulty":1.847,"effort":1647.957,"length":25.5,"time":91.553,"vocabulary":9.5,"volume":148.739,"operands":{"distinct":7.333,"total":12.5},"operators":{"distinct":2.167,"total":13}},"paramCount":0.167,"sloc":{"logical":8,"physical":10}},"methodAverage":{"cyclomatic":1.2,"cyclomaticDensity":49.758,"halstead":{"bugs":0.046,"difficulty":2.909,"effort":758.587,"length":29.4,"time":42.144,"vocabulary":15,"volume":137.409,"operands":{"distinct":10.6,"total":14.4},"operators":{"distinct":4.4,"total":15}},"paramCount":0.2,"sloc":{"logical":9.2,"physical":16.4}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-access/src/runtime/createComponent.js","report":{"aggregate":{"cyclomatic":5,"cyclomaticDensity":55.556,"halstead":{"bugs":0.048,"difficulty":9.167,"effort":1307.383,"length":33,"time":72.632,"vocabulary":20,"volume":142.624,"operands":{"distinct":9,"total":15,"identifiers":["createComponent","useAccess","props","slots","access","id","value","default","null"]},"operators":{"distinct":11,"total":18,"identifiers":["function","return","function=>","{}","const","=","()",".","if","||","! (prefix)"]}},"paramCount":3,"sloc":{"logical":9,"physical":8}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":8,"lineStart":1,"maintainability":77.139,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":1.5,"effort":17.414,"length":5,"time":0.967,"vocabulary":5,"volume":11.61,"operands":{"distinct":2,"total":2,"identifiers":["props","slots"]},"operators":{"distinct":3,"total":3,"identifiers":["return","function=>","{}"]}},"paramCount":1,"sloc":{"logical":2,"physical":7},"errors":[],"lineEnd":7,"lineStart":1,"name":"createComponent","paramNames":["useAccess"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":50,"halstead":{"bugs":0.033,"difficulty":5.5,"effort":550,"length":25,"time":30.556,"vocabulary":16,"volume":100,"operands":{"distinct":8,"total":11,"identifiers":["access","useAccess","props","id","value","slots","default","null"]},"operators":{"distinct":8,"total":14,"identifiers":["const","=","()",".","if","||","! (prefix)","return"]}},"paramCount":2,"sloc":{"logical":6,"physical":5},"errors":[],"lineEnd":6,"lineStart":2,"name":"","paramNames":["props","slots"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.667,"cyclomaticDensity":18.519,"halstead":{"bugs":0.016,"difficulty":3.056,"effort":435.794,"length":11,"time":24.211,"vocabulary":6.667,"volume":47.541,"operands":{"distinct":3,"total":5},"operators":{"distinct":3.667,"total":6}},"paramCount":1,"sloc":{"logical":3,"physical":2.667}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.019,"difficulty":3.5,"effort":283.707,"length":15,"time":15.762,"vocabulary":10.5,"volume":55.805,"operands":{"distinct":5,"total":6.5},"operators":{"distinct":5.5,"total":8.5}},"paramCount":1.5,"sloc":{"logical":4,"physical":6}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-access/src/runtime/createDirective.js","report":{"aggregate":{"cyclomatic":10,"cyclomaticDensity":24.39,"halstead":{"bugs":0.266,"difficulty":27.158,"effort":21661.832,"length":161,"time":1203.435,"vocabulary":31,"volume":797.626,"operands":{"distinct":19,"total":86,"identifiers":["cache","WeakMap","setDispaly","el","access","value","style","display","_display","\"none\"","createDirective","useAccess","ctx","watch","path","set","binding","get","unwatch"]},"operators":{"distinct":12,"total":75,"identifiers":["const","=","new","function=>","if","else",".","function","return","{}","||","()"]}},"paramCount":4,"sloc":{"logical":41,"physical":47}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"vue","type":"esm"}],"errors":[],"lineEnd":47,"lineStart":1,"maintainability":62.913,"methods":[{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.024,"difficulty":3.143,"effort":228.322,"length":21,"time":12.685,"vocabulary":11,"volume":72.648,"operands":{"distinct":7,"total":11,"identifiers":["access","value","el","style","display","_display","\"none\""]},"operators":{"distinct":4,"total":10,"identifiers":["if","else",".","="]}},"paramCount":2,"sloc":{"logical":4,"physical":7},"errors":[],"lineEnd":10,"lineStart":4,"name":"","paramNames":["el","access"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":16,"halstead":{"bugs":0.131,"difficulty":20,"effort":7839.459,"length":94,"time":435.526,"vocabulary":18,"volume":391.973,"operands":{"distinct":10,"total":50,"identifiers":["el","ctx","watch","path","cache","set","binding","get","unwatch","value"]},"operators":{"distinct":8,"total":44,"identifiers":["return","{}","const","=",".","function=>","()","if"]}},"paramCount":1,"sloc":{"logical":25,"physical":36},"errors":[],"lineEnd":46,"lineStart":11,"name":"createDirective","paramNames":["useAccess"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.037,"difficulty":5.833,"effort":653.333,"length":28,"time":36.296,"vocabulary":16,"volume":112,"operands":{"distinct":9,"total":15,"identifiers":["el","_display","style","display","access","useAccess","path","setDispaly","watch"]},"operators":{"distinct":7,"total":13,"identifiers":["=",".","||","const","()","return","function=>"]}},"paramCount":1,"sloc":{"logical":7,"physical":8},"errors":[],"lineEnd":22,"lineStart":15,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":0.5,"effort":4,"length":4,"time":0.222,"vocabulary":4,"volume":8,"operands":{"distinct":3,"total":3,"identifiers":["setDispaly","el","access"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":21,"lineStart":19,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":4.878,"halstead":{"bugs":0.053,"difficulty":5.432,"effort":4332.366,"length":32.2,"time":240.687,"vocabulary":6.2,"volume":159.525,"operands":{"distinct":3.8,"total":17.2},"operators":{"distinct":2.4,"total":15}},"paramCount":0.8,"sloc":{"logical":8.2,"physical":9.4}},"methodAverage":{"cyclomatic":2.25,"cyclomaticDensity":48.643,"halstead":{"bugs":0.049,"difficulty":7.369,"effort":2181.279,"length":36.75,"time":121.182,"vocabulary":12.25,"volume":146.155,"operands":{"distinct":7.25,"total":19.75},"operators":{"distinct":5,"total":17}},"paramCount":1,"sloc":{"logical":9.25,"physical":13.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-access/src/runtime/runtime.js","report":{"aggregate":{"cyclomatic":11,"cyclomaticDensity":30.556,"halstead":{"bugs":0.252,"difficulty":20,"effort":15134.56,"length":137,"time":840.809,"vocabulary":46,"volume":756.728,"operands":{"distinct":30,"total":75,"identifiers":["onRouterCreated","router","beforeEach","to","from","next","runtimeConfig","plugin","applyPlugins","key","\"access\"","type","ApplyPluginsType","modify","initialValue","matched","length","0","noFoundHandler","\"function\"","path","1","canRoute","access","hasAccess","unAccessHandler","false","onAppCreated","app","install"]},"operators":{"distinct":16,"total":62,"identifiers":["function","{}","()",".","function=>","const","=",":","if","===","&&","typeof (prefix)","return","let","else","[]"]}},"paramCount":5,"sloc":{"logical":36,"physical":40}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@@/core/coreExports","type":"esm"},{"line":2,"path":"./core","type":"esm"}],"errors":[],"lineEnd":40,"lineStart":1,"maintainability":62.116,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.008,"difficulty":1.5,"effort":36,"length":8,"time":2,"vocabulary":8,"volume":24,"operands":{"distinct":5,"total":5,"identifiers":["router","beforeEach","to","from","next"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","function=>"]}},"paramCount":1,"sloc":{"logical":2,"physical":32},"errors":[],"lineEnd":35,"lineStart":4,"name":"onRouterCreated","paramNames":["router"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":8,"cyclomaticDensity":25.806,"halstead":{"bugs":0.208,"difficulty":17.92,"effort":11176.3,"length":118,"time":620.906,"vocabulary":39,"volume":623.677,"operands":{"distinct":25,"total":64,"identifiers":["runtimeConfig","plugin","applyPlugins","key","\"access\"","type","ApplyPluginsType","modify","initialValue","to","matched","length","0","noFoundHandler","\"function\"","router","from","next","path","1","canRoute","access","hasAccess","unAccessHandler","false"]},"operators":{"distinct":14,"total":54,"identifiers":["const","=","()",".","{}",":","if","===","&&","typeof (prefix)","return","let","else","[]"]}},"paramCount":3,"sloc":{"logical":31,"physical":30},"errors":[],"lineEnd":34,"lineStart":5,"name":"","paramNames":["to","from","next"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["install","app"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":39,"lineStart":37,"name":"onAppCreated","paramNames":["app"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.75,"cyclomaticDensity":7.639,"halstead":{"bugs":0.063,"difficulty":5,"effort":3783.64,"length":34.25,"time":210.202,"vocabulary":11.5,"volume":189.182,"operands":{"distinct":7.5,"total":18.75},"operators":{"distinct":4,"total":15.5}},"paramCount":1.25,"sloc":{"logical":9,"physical":10}},"methodAverage":{"cyclomatic":3.333,"cyclomaticDensity":58.602,"halstead":{"bugs":0.072,"difficulty":6.64,"effort":3738.226,"length":43,"time":207.679,"vocabulary":16.667,"volume":217.477,"operands":{"distinct":10.667,"total":23.667},"operators":{"distinct":6,"total":19.333}},"paramCount":1.667,"sloc":{"logical":11.333,"physical":21.667}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-enums/build.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4,"identifiers":["module","exports","copy","\"runtime\""]},"operators":{"distinct":5,"total":5,"identifiers":["=",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":84.899,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4},"operators":{"distinct":5,"total":5}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-enums/src/index.js","report":{"aggregate":{"cyclomatic":5,"cyclomaticDensity":14.286,"halstead":{"bugs":0.224,"difficulty":8.243,"effort":5540.327,"length":121,"time":307.796,"vocabulary":47,"volume":672.105,"operands":{"distinct":37,"total":61,"identifiers":["namespace","\"plugin-enums\"","api","utils","Mustache","describe","key","\"enums\"","config","joi","object","onChange","ConfigChangeType","regenerateTmpFiles","absoluteFilePath","join","\"core.js\"","onGenerateFiles","enums","writeTmpFile","path","content","render","readFileSync","__dirname","\"runtime/core.tpl\"","\"utf-8\"","REPLACE_ENUMS","JSON","stringify","copyTmpFiles","\"runtime\"","ignore","\".tpl\"","addPluginExports","specifiers","source"]},"operators":{"distinct":10,"total":60,"identifiers":["const","=","function=>","{}",":","()",".","return","||","[]"]}},"paramCount":1,"sloc":{"logical":35,"physical":49}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"fs","type":"esm"},{"line":2,"path":"path","type":"esm"}],"errors":[],"lineEnd":49,"lineStart":1,"maintainability":64.854,"methods":[{"cyclomatic":1,"cyclomaticDensity":6.25,"halstead":{"bugs":0.078,"difficulty":5.333,"effort":1253.451,"length":50,"time":69.636,"vocabulary":26,"volume":235.022,"operands":{"distinct":18,"total":24,"identifiers":["utils","Mustache","api","describe","key","\"enums\"","config","joi","object","onChange","ConfigChangeType","regenerateTmpFiles","absoluteFilePath","join","namespace","\"core.js\"","onGenerateFiles","addPluginExports"]},"operators":{"distinct":8,"total":26,"identifiers":["const","=","{}",":","()",".","return","function=>"]}},"paramCount":1,"sloc":{"logical":16,"physical":43},"errors":[],"lineEnd":48,"lineStart":6,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":14.286,"halstead":{"bugs":0.092,"difficulty":5.455,"effort":1498.832,"length":56,"time":83.268,"vocabulary":30,"volume":274.786,"operands":{"distinct":22,"total":30,"identifiers":["enums","api","config","writeTmpFile","path","absoluteFilePath","content","Mustache","render","readFileSync","join","__dirname","\"runtime/core.tpl\"","\"utf-8\"","REPLACE_ENUMS","JSON","stringify","copyTmpFiles","namespace","\"runtime\"","ignore","\".tpl\""]},"operators":{"distinct":8,"total":26,"identifiers":["const","=","||",".","{}","()",":","[]"]}},"paramCount":0,"sloc":{"logical":14,"physical":19},"errors":[],"lineEnd":40,"lineStart":22,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.008,"difficulty":1.5,"effort":37.899,"length":9,"time":2.106,"vocabulary":7,"volume":25.266,"operands":{"distinct":4,"total":4,"identifiers":["specifiers","\"enums\"","source","absoluteFilePath"]},"operators":{"distinct":3,"total":5,"identifiers":["[]","{}",":"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":47,"lineStart":42,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.25,"cyclomaticDensity":3.571,"halstead":{"bugs":0.056,"difficulty":2.061,"effort":1385.082,"length":30.25,"time":76.949,"vocabulary":11.75,"volume":168.026,"operands":{"distinct":9.25,"total":15.25},"operators":{"distinct":2.5,"total":15}},"paramCount":0.25,"sloc":{"logical":8.75,"physical":12.25}},"methodAverage":{"cyclomatic":1.333,"cyclomaticDensity":17.956,"halstead":{"bugs":0.059,"difficulty":4.096,"effort":930.061,"length":38.333,"time":51.67,"vocabulary":21,"volume":178.358,"operands":{"distinct":14.667,"total":19.333},"operators":{"distinct":6.333,"total":19}},"paramCount":0.333,"sloc":{"logical":11,"physical":22.667}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-icon/build.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4,"identifiers":["module","exports","copy","\"runtime\""]},"operators":{"distinct":5,"total":5,"identifiers":["=",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":84.899,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4},"operators":{"distinct":5,"total":5}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-icon/src/index.js","report":{"aggregate":{"cyclomatic":8,"cyclomaticDensity":12.308,"halstead":{"bugs":0.511,"difficulty":15.238,"effort":23369.724,"length":244,"time":1298.318,"vocabulary":78,"volume":1533.638,"operands":{"distinct":63,"total":128,"identifiers":["api","addRuntimePluginKey","\"\"","describe","key","\"icon\"","config","joi","object","namespace","\"plugin-icon\"","absRuntimeFilePath","join","\"runtime.js\"","addTmpGenerateWatcherPaths","paths","absSrcPath","\"icons\"","generatedOnce","false","onGenerateFiles","base","iconFiles","utils","glob","sync","\"**/*\"","cwd","svgDatas","optimizeSvg","map","item","iconNames","SVG_COMPONENT_TMPLATE","\"export default () => (SVG)\"","fileName","data","push","basename","\".svg\"","writeTmpFile","path","/icons/",".js","content","replace","\"SVG\"","/icons.js","Mustache","render","readFileSync","__dirname","\"runtime/icons.tpl\"","\"utf-8\"","ICON_NAMES","\"runtime/runtime.tpl\"","true","copyTmpFiles","\"runtime\"","ignore","\".tpl\"","addRuntimePlugin","@@/"]},"operators":{"distinct":15,"total":116,"identifiers":["function=>","()",".","{}",":","return","const","=","let","[]","forof","``","${}","if","! (prefix)"]}},"paramCount":2,"sloc":{"logical":65,"physical":69}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"fs","type":"esm"},{"line":2,"path":"path","type":"esm"},{"line":3,"path":"./optimizeSvg","type":"esm"}],"errors":[],"lineEnd":69,"lineStart":1,"maintainability":62.583,"methods":[{"cyclomatic":1,"cyclomaticDensity":5.556,"halstead":{"bugs":0.082,"difficulty":6,"effort":1483.525,"length":52,"time":82.418,"vocabulary":27,"volume":247.254,"operands":{"distinct":18,"total":24,"identifiers":["api","addRuntimePluginKey","describe","key","\"icon\"","config","joi","object","namespace","\"plugin-icon\"","absRuntimeFilePath","join","\"runtime.js\"","addTmpGenerateWatcherPaths","generatedOnce","false","onGenerateFiles","addRuntimePlugin"]},"operators":{"distinct":9,"total":28,"identifiers":["()",".","function=>","{}",":","return","const","=","let"]}},"paramCount":1,"sloc":{"logical":18,"physical":64},"errors":[],"lineEnd":68,"lineStart":5,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":1,"total":1,"identifiers":["\"\""]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":6,"lineStart":6,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.007,"difficulty":1,"effort":22.459,"length":8,"time":1.248,"vocabulary":7,"volume":22.459,"operands":{"distinct":5,"total":5,"identifiers":["join","api","paths","absSrcPath","\"icons\""]},"operators":{"distinct":2,"total":3,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":21,"lineStart":21,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":5,"halstead":{"bugs":0.342,"difficulty":12.458,"effort":12782.469,"length":173,"time":710.137,"vocabulary":61,"volume":1026.018,"operands":{"distinct":48,"total":92,"identifiers":["base","join","api","paths","absSrcPath","\"icons\"","iconFiles","utils","glob","sync","\"**/*\"","cwd","svgDatas","optimizeSvg","map","item","iconNames","SVG_COMPONENT_TMPLATE","\"export default () => (SVG)\"","fileName","data","push","basename","\".svg\"","writeTmpFile","path","namespace","/icons/",".js","content","replace","\"SVG\"","/icons.js","Mustache","render","readFileSync","__dirname","\"runtime/icons.tpl\"","\"utf-8\"","ICON_NAMES","absRuntimeFilePath","\"runtime/runtime.tpl\"","generatedOnce","true","copyTmpFiles","\"runtime\"","ignore","\".tpl\""]},"operators":{"distinct":13,"total":81,"identifiers":["const","=","()",".","{}",":","function=>","[]","forof","``","${}","if","! (prefix)"]}},"paramCount":0,"sloc":{"logical":40,"physical":42},"errors":[],"lineEnd":65,"lineStart":24,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":0.5,"effort":4,"length":4,"time":0.222,"vocabulary":4,"volume":8,"operands":{"distinct":3,"total":3,"identifiers":["join","base","item"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":29,"lineStart":29,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["absRuntimeFilePath","@@/"]},"operators":{"distinct":2,"total":2,"identifiers":["``","${}"]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":67,"lineStart":67,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.143,"cyclomaticDensity":1.758,"halstead":{"bugs":0.073,"difficulty":2.177,"effort":3338.532,"length":34.857,"time":185.474,"vocabulary":11.143,"volume":219.091,"operands":{"distinct":9,"total":18.286},"operators":{"distinct":2.143,"total":16.571}},"paramCount":0.286,"sloc":{"logical":9.286,"physical":9.857}},"methodAverage":{"cyclomatic":1.167,"cyclomaticDensity":51.759,"halstead":{"bugs":0.073,"difficulty":3.493,"effort":2383.409,"length":40.333,"time":132.412,"vocabulary":17.333,"volume":218.622,"operands":{"distinct":12.833,"total":21.167},"operators":{"distinct":4.5,"total":19.167}},"paramCount":0.333,"sloc":{"logical":10.667,"physical":18.333}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-icon/src/optimizeSvg.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":14.815,"halstead":{"bugs":0.171,"difficulty":10.887,"effort":5592.606,"length":93,"time":310.7,"vocabulary":46,"volume":513.691,"operands":{"distinct":31,"total":45,"identifiers":["presetDefault","name","\"preset-default\"","params","overrides","sortAttrs","true","removeDimensions","\"removeAttrs\"","attrs","\"(fill|stroke|class)\"","optimizeSvg","files","optimizedSvgData","filePath","statSync","isFile","extname","\".svg\"","data","readFileSync","\"utf-8\"","svgData","optimize","path","plugins","push","fileName","basename","Promise","all"]},"operators":{"distinct":15,"total":48,"identifiers":["const","=","[]",",","{}",":","function","forof","if","&&","()",".","===","... (spread)","return"]}},"paramCount":1,"sloc":{"logical":27,"physical":38}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"path","type":"esm"},{"line":2,"path":"fs","type":"esm"},{"line":3,"path":"svgo","type":"esm"}],"errors":[],"lineEnd":38,"lineStart":1,"maintainability":59.065,"methods":[{"cyclomatic":3,"cyclomaticDensity":17.647,"halstead":{"bugs":0.099,"difficulty":9.425,"effort":2805.061,"length":59,"time":155.837,"vocabulary":33,"volume":297.619,"operands":{"distinct":20,"total":29,"identifiers":["optimizedSvgData","filePath","files","statSync","isFile","extname","\".svg\"","data","readFileSync","\"utf-8\"","svgData","optimize","path","plugins","presetDefault","push","fileName","basename","Promise","all"]},"operators":{"distinct":13,"total":30,"identifiers":["const","=","[]","forof","if","&&","()",".","===","{}",":","... (spread)","return"]}},"paramCount":1,"sloc":{"logical":17,"physical":14},"errors":[],"lineEnd":37,"lineStart":24,"name":"optimizeSvg","paramNames":["files"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":7.407,"halstead":{"bugs":0.086,"difficulty":5.444,"effort":2796.303,"length":46.5,"time":155.35,"vocabulary":23,"volume":256.846,"operands":{"distinct":15.5,"total":22.5},"operators":{"distinct":7.5,"total":24}},"paramCount":0.5,"sloc":{"logical":13.5,"physical":19}},"methodAverage":{"cyclomatic":3,"cyclomaticDensity":17.647,"halstead":{"bugs":0.099,"difficulty":9.425,"effort":2805.061,"length":59,"time":155.837,"vocabulary":33,"volume":297.619,"operands":{"distinct":20,"total":29},"operators":{"distinct":13,"total":30}},"paramCount":1,"sloc":{"logical":17,"physical":14}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-icon/src/runtime/Icon/Icon.vue","report":{"aggregate":{"cyclomatic":12,"cyclomaticDensity":38.71,"halstead":{"bugs":0.241,"difficulty":21,"effort":15203.073,"length":127,"time":844.615,"vocabulary":52,"volume":723.956,"operands":{"distinct":31,"total":62,"identifiers":["noop","name","\"FesIcon\"","props","\"type\"","\"spin\"","\"rotate\"","\"tabIndex\"","attrs","CurrentIcon","computed","icons","type","iconTabIndex","tabIndex","null","onClick","1","svgStyle","rotate","msTransform","rotate(","deg)","transform","svgCls","\"inner-icon--spin\"","spin","\"loading\"","value","\"img\"","\"inner-icon\""]},"operators":{"distinct":21,"total":65,"identifiers":["const","=","function=>","{}",":","[]",",","()",".","let","if","&&","==","- (prefix)","return",":?","``","${}","||","! (prefix)","==="]}},"paramCount":0,"sloc":{"logical":31,"physical":41}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"vue","type":"esm"},{"line":4,"path":"../icons","type":"esm"}],"errors":[],"lineEnd":41,"lineStart":1,"maintainability":70.221,"methods":[{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":1},"errors":[],"lineEnd":6,"lineStart":6,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["icons","props","type"]},"operators":{"distinct":2,"total":2,"identifiers":["[]","."]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":12,"lineStart":12,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":75,"halstead":{"bugs":0.025,"difficulty":6.667,"effort":507.647,"length":20,"time":28.203,"vocabulary":14,"volume":76.147,"operands":{"distinct":6,"total":10,"identifiers":["tabIndex","props","null","attrs","onClick","1"]},"operators":{"distinct":8,"total":10,"identifiers":["let","=",".","if","&&","==","- (prefix)","return"]}},"paramCount":0,"sloc":{"logical":4,"physical":7},"errors":[],"lineEnd":19,"lineStart":13,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.03,"difficulty":5.571,"effort":494.802,"length":24,"time":27.489,"vocabulary":13,"volume":88.811,"operands":{"distinct":7,"total":13,"identifiers":["props","rotate","msTransform","rotate(","deg)","transform","null"]},"operators":{"distinct":6,"total":11,"identifiers":[":?",".","{}",":","``","${}"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":25,"lineStart":20,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.016,"difficulty":3.6,"effort":174.355,"length":14,"time":9.686,"vocabulary":11,"volume":48.432,"operands":{"distinct":5,"total":6,"identifiers":["\"inner-icon--spin\"","props","spin","type","\"loading\""]},"operators":{"distinct":6,"total":8,"identifiers":["{}",":","||","! (prefix)",".","==="]}},"paramCount":0,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":28,"lineStart":26,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":200,"halstead":{"bugs":0.018,"difficulty":1.222,"effort":67.651,"length":16,"time":3.758,"vocabulary":11,"volume":55.351,"operands":{"distinct":9,"total":11,"identifiers":["iconTabIndex","value","\"img\"","\"inner-icon\"","attrs","onClick","noop","svgCls","svgStyle"]},"operators":{"distinct":2,"total":5,"identifiers":[".","||"]}},"paramCount":0,"sloc":{"logical":1,"physical":10},"errors":[],"lineEnd":38,"lineStart":29,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.714,"cyclomaticDensity":5.53,"halstead":{"bugs":0.034,"difficulty":3,"effort":2171.868,"length":18.143,"time":120.659,"vocabulary":7.429,"volume":103.422,"operands":{"distinct":4.429,"total":8.857},"operators":{"distinct":3,"total":9.286}},"paramCount":0,"sloc":{"logical":4.429,"physical":5.857}},"methodAverage":{"cyclomatic":1.833,"cyclomaticDensity":90.278,"halstead":{"bugs":0.016,"difficulty":3.01,"effort":209.344,"length":13.167,"time":11.63,"vocabulary":9,"volume":46.725,"operands":{"distinct":5,"total":7.167},"operators":{"distinct":4,"total":6}},"paramCount":0,"sloc":{"logical":1.833,"physical":4.667}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-icon/src/runtime/Icon/index.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":1,"total":1,"identifiers":["Icon"]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./Icon","type":"esm"},{"line":2,"path":"./icon.less","type":"esm"}],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":1,"total":1},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-jest/helpers/transformers/javascript.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":10,"halstead":{"bugs":0.062,"difficulty":4.471,"effort":830.431,"length":40,"time":46.135,"vocabulary":25,"volume":185.754,"operands":{"distinct":17,"total":19,"identifiers":["babelJest","require","\"babel-jest\"","default","module","exports","createTransformer","presets","\"@babel/preset-env\"","targets","node","\"current\"","plugins","\"@vue/babel-plugin-jsx\"","babelrc","false","configFile"]},"operators":{"distinct":8,"total":21,"identifiers":["const","=",".","()","{}",":","[]",","]}},"paramCount":0,"sloc":{"logical":10,"physical":11}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"babel-jest","type":"cjs"}],"errors":[],"lineEnd":11,"lineStart":1,"maintainability":64.742,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":10,"halstead":{"bugs":0.062,"difficulty":4.471,"effort":830.431,"length":40,"time":46.135,"vocabulary":25,"volume":185.754,"operands":{"distinct":17,"total":19},"operators":{"distinct":8,"total":21}},"paramCount":0,"sloc":{"logical":10,"physical":11}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-jest/src/createDefaultConfig.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":14.286,"halstead":{"bugs":0.268,"difficulty":8.815,"effort":7083.101,"length":132,"time":393.506,"vocabulary":68,"volume":803.545,"operands":{"distinct":54,"total":68,"identifiers":["cwd","args","testMatchTypes","\"spec\"","\"test\"","e2e","push","\"e2e\"","hasSrc","existsSync","join","\"src\"","collectCoverageFrom","\"index.{js,jsx,vue}\"","\"src/**/*.{js,jsx,vue}\"","\"!**/.fes/**\"","\"!**/typings/**\"","\"!**/types/**\"","\"!**/fixtures/**\"","\"!**/examples/**\"","\"!**/*.d.ts\"","filter","Boolean","moduleFileExtensions","\"js\"","\"jsx\"","\"json\"","\"vue\"","transform","\"^.+\\.vue$\"","require","resolve","\"vue3-jest\"","\".+\\.(css|styl|less|sass|scss|jpg|jpeg|png|svg|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$\"","\"jest-transform-stub\"","\"^.+\\.jsx?$\"","\"../helpers/transformers/javascript\"","transformIgnorePatterns","\"/node_modules/\"","moduleNameMapper","\"^@/(.*)$\"","\"/src/$1\"","testMatch","\"|\"","**/tests/**/*.(",").[jt]s?(x)","\"**/__tests__/**/*.[jt]s?(x)\"","testURL","\"http://localhost/\"","watchPlugins","\"jest-watch-typeahead/filename\"","\"jest-watch-typeahead/testname\"","verbose","true"]},"operators":{"distinct":14,"total":64,"identifiers":["function=>","const","=","[]",",","if",".","()","return","{}",":","&&","``","${}"]}},"paramCount":2,"sloc":{"logical":28,"physical":55}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"fs","type":"esm"},{"line":2,"path":"path","type":"esm"}],"errors":[],"lineEnd":55,"lineStart":1,"maintainability":58.248,"methods":[{"cyclomatic":3,"cyclomaticDensity":11.111,"halstead":{"bugs":0.261,"difficulty":7.944,"effort":6216.73,"length":129,"time":345.374,"vocabulary":67,"volume":782.526,"operands":{"distinct":54,"total":66,"identifiers":["testMatchTypes","\"spec\"","\"test\"","args","e2e","push","\"e2e\"","hasSrc","existsSync","join","cwd","\"src\"","collectCoverageFrom","\"index.{js,jsx,vue}\"","\"src/**/*.{js,jsx,vue}\"","\"!**/.fes/**\"","\"!**/typings/**\"","\"!**/types/**\"","\"!**/fixtures/**\"","\"!**/examples/**\"","\"!**/*.d.ts\"","filter","Boolean","moduleFileExtensions","\"js\"","\"jsx\"","\"json\"","\"vue\"","transform","\"^.+\\.vue$\"","require","resolve","\"vue3-jest\"","\".+\\.(css|styl|less|sass|scss|jpg|jpeg|png|svg|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$\"","\"jest-transform-stub\"","\"^.+\\.jsx?$\"","\"../helpers/transformers/javascript\"","transformIgnorePatterns","\"/node_modules/\"","moduleNameMapper","\"^@/(.*)$\"","\"/src/$1\"","testMatch","\"|\"","**/tests/**/*.(",").[jt]s?(x)","\"**/__tests__/**/*.[jt]s?(x)\"","testURL","\"http://localhost/\"","watchPlugins","\"jest-watch-typeahead/filename\"","\"jest-watch-typeahead/testname\"","verbose","true"]},"operators":{"distinct":13,"total":63,"identifiers":["const","=","[]",",","if",".","()","return","{}",":","&&","``","${}"]}},"paramCount":2,"sloc":{"logical":27,"physical":51},"errors":[],"lineEnd":54,"lineStart":4,"name":"","paramNames":["cwd","args"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":7.143,"halstead":{"bugs":0.134,"difficulty":4.407,"effort":3541.551,"length":66,"time":196.753,"vocabulary":34,"volume":401.773,"operands":{"distinct":27,"total":34},"operators":{"distinct":7,"total":32}},"paramCount":1,"sloc":{"logical":14,"physical":27.5}},"methodAverage":{"cyclomatic":3,"cyclomaticDensity":11.111,"halstead":{"bugs":0.261,"difficulty":7.944,"effort":6216.73,"length":129,"time":345.374,"vocabulary":67,"volume":782.526,"operands":{"distinct":54,"total":66},"operators":{"distinct":13,"total":63}},"paramCount":2,"sloc":{"logical":27,"physical":51}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-jest/src/index.js","report":{"aggregate":{"cyclomatic":21,"cyclomaticDensity":25.61,"halstead":{"bugs":0.777,"difficulty":26.812,"effort":62504.905,"length":360,"time":3472.495,"vocabulary":89,"volume":2331.264,"operands":{"distinct":69,"total":185,"identifiers":["logger","Logger","\"fes:plugin-unit-jest\"","getCommandOptiton","opts","Object","keys","CliOptions","forEach","key","option","opt","\"version\"","alias","name","-"," --","--","description","push","api","utils","mergeConfig","cwd","registerCommand","command","\"test\"","\"run unit tests with jest\"","options","args","process","env","NODE_ENV","_","0","shift","debug","log","JSON","stringify","args: ","userJestConfigFile","join","\"jest.config.js\"","userJestConfig","existsSync","require","config from jest.config.js: ","packageJSONPath","\"package.json\"","packageJestConfig","jest","jest config from package.json: ","config","createDefaultConfig","final config: ","argsConfig","reduce","prev","config from args: ","runCLI","\"jest\"","result","$0","\"\"","assert","results","success","\"Test with jest failed\""]},"operators":{"distinct":20,"total":175,"identifiers":["const","=","new","function","[]","()",".","function=>","{}","if","!==","else","``","${}","return",":","===","&&","||","... (spread)"]}},"paramCount":4,"sloc":{"logical":82,"physical":99}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"assert","type":"esm"},{"line":3,"path":"path","type":"esm"},{"line":4,"path":"fs","type":"esm"},{"line":5,"path":"@fesjs/compiler","type":"esm"},{"line":7,"path":"./jestArgs","type":"esm"},{"line":8,"path":"./createDefaultConfig","type":"esm"},{"line":48,"path":"* dynamic dependency *","type":"cjs"},{"line":53,"path":"* dynamic dependency *","type":"cjs"},{"line":77,"path":"jest","type":"cjs"}],"errors":[],"lineEnd":99,"lineStart":1,"maintainability":53.793,"methods":[{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.02,"difficulty":4.083,"effort":241.762,"length":16,"time":13.431,"vocabulary":13,"volume":59.207,"operands":{"distinct":6,"total":7,"identifiers":["opts","Object","keys","CliOptions","forEach","key"]},"operators":{"distinct":7,"total":9,"identifiers":["const","=","[]","()",".","function=>","return"]}},"paramCount":0,"sloc":{"logical":5,"physical":17},"errors":[],"lineEnd":28,"lineStart":12,"name":"getCommandOptiton","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.079,"difficulty":11,"effort":2622.599,"length":52,"time":145.7,"vocabulary":24,"volume":238.418,"operands":{"distinct":13,"total":26,"identifiers":["option","CliOptions","key","opt","\"version\"","alias","name","-"," --","--","description","opts","push"]},"operators":{"distinct":11,"total":26,"identifiers":["const","=","[]","{}","if","!==","else",".","``","${}","()"]}},"paramCount":1,"sloc":{"logical":9,"physical":13},"errors":[],"lineEnd":26,"lineStart":14,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":12,"cyclomaticDensity":20.69,"halstead":{"bugs":0.508,"difficulty":17.277,"effort":26349.47,"length":248,"time":1463.859,"vocabulary":71,"volume":1525.137,"operands":{"distinct":56,"total":129,"identifiers":["utils","mergeConfig","cwd","api","registerCommand","command","\"test\"","description","\"run unit tests with jest\"","options","getCommandOptiton","args","process","env","NODE_ENV","_","0","shift","debug","logger","log","JSON","stringify","args: ","userJestConfigFile","join","\"jest.config.js\"","userJestConfig","existsSync","require","config from jest.config.js: ","packageJSONPath","\"package.json\"","packageJestConfig","jest","jest config from package.json: ","config","createDefaultConfig","final config: ","argsConfig","Object","keys","CliOptions","reduce","prev","name","config from args: ","runCLI","\"jest\"","result","$0","\"\"","assert","results","success","\"Test with jest failed\""]},"operators":{"distinct":15,"total":119,"identifiers":["const","=","{}",":","()",".","if","===","[]","&&","``","${}","function=>","||","... (spread)"]}},"paramCount":1,"sloc":{"logical":58,"physical":69},"errors":[],"lineEnd":98,"lineStart":30,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":57.143,"halstead":{"bugs":0.041,"difficulty":12.6,"effort":1535.798,"length":34,"time":85.322,"vocabulary":12,"volume":121.889,"operands":{"distinct":5,"total":18,"identifiers":["args","name","prev","alias","CliOptions"]},"operators":{"distinct":7,"total":16,"identifiers":["if","[]","=","const","{}","&&","return"]}},"paramCount":2,"sloc":{"logical":7,"physical":8},"errors":[],"lineEnd":73,"lineStart":66,"name":"","paramNames":["prev","name"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":4.2,"cyclomaticDensity":5.122,"halstead":{"bugs":0.155,"difficulty":5.362,"effort":12500.981,"length":72,"time":694.499,"vocabulary":17.8,"volume":466.253,"operands":{"distinct":13.8,"total":37},"operators":{"distinct":4,"total":35}},"paramCount":0.8,"sloc":{"logical":16.4,"physical":19.8}},"methodAverage":{"cyclomatic":5,"cyclomaticDensity":32.791,"halstead":{"bugs":0.162,"difficulty":11.24,"effort":7687.407,"length":87.5,"time":427.078,"vocabulary":30,"volume":486.163,"operands":{"distinct":20,"total":45},"operators":{"distinct":10,"total":42.5}},"paramCount":1,"sloc":{"logical":19.75,"physical":26.75}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-jest/src/jestArgs.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0.293,"halstead":{"bugs":3.427,"difficulty":7.29,"effort":74950.853,"length":1227,"time":4163.936,"vocabulary":333,"volume":10281.497,"operands":{"distinct":326,"total":679,"identifiers":["usage","\"Usage: $0 [--config=] [TestPathPattern]\"","docs","\"Documentation: https://jestjs.io/\"","options","all","description","\"The opposite of `onlyChanged`. If `onlyChanged` is set by \"","\"default, running jest with `--all` will force Jest to run all tests \"","\"instead of running only tests related to changed files.\"","type","\"boolean\"","automock","\"Automock all files by default.\"","bail","alias","\"b\"","\"Exit the test suite immediately after `n` number of failing tests.\"","browser","\"Respect the \"browser\" field in package.json \"","\"when resolving modules. Some packages export different versions \"","\"based on whether they are operating in node.js or a browser.\"","cache","\"Whether to use the transform cache. Disable the cache \"","\"using --no-cache.\"","cacheDirectory","\"The directory where Jest should store its cached \"","\" dependency information.\"","\"string\"","changedFilesWithAncestor","\"Runs tests related to the current changes and the changes made in the \"","\"last commit. Behaves similarly to `--onlyChanged`.\"","changedSince","\"Runs tests related to the changes since the provided branch. If the \"","\"current branch has diverged from the given branch, then only changes \"","\"made locally will be tested. Behaves similarly to `--onlyChanged`.\"","nargs","1","ci","\"Whether to run Jest in continuous integration (CI) mode. \"","\"This option is on by default in most popular CI environments. It will \"","\"prevent snapshots from being written unless explicitly requested.\"","clearCache","\"Clears the configured Jest cache directory and then exits. \"","\"Default directory can be found by calling jest --showConfig\"","clearMocks","\"Automatically clear mock calls and instances between every \"","\"test. Equivalent to calling jest.clearAllMocks() between each test.\"","collectCoverage","\"Alias for --coverage.\"","collectCoverageFrom","\"A glob pattern relative to matching the files that coverage \"","\"info needs to be collected from.\"","collectCoverageOnlyFrom","\"Explicit list of paths coverage will be restricted to.\"","string","true","\"array\"","color","\"Forces test results output color highlighting (even if \"","\"stdout is not a TTY). Set to false if you would like to have no colors.\"","colors","\"Alias for `--color`.\"","config","\"c\"","\"The path to a jest config file specifying how to find \"","\"and execute tests. If no rootDir is set in the config, the directory \"","\"containing the config file is assumed to be the rootDir for the project.\"","\"This can also be a JSON encoded value which Jest will use as configuration.\"","coverage","\"Indicates that test coverage information should be \"","\"collected and reported in the output.\"","coverageDirectory","\"The directory where Jest should output its coverage files.\"","coveragePathIgnorePatterns","\"An array of regexp pattern strings that are matched \"","\"against all file paths before executing the test. If the file path\"","\"matches any of the patterns, coverage information will be skipped.\"","coverageProvider","choices","\"babel\"","\"v8\"","\"Select between Babel and V8 to collect coverage\"","coverageReporters","\"A list of reporter names that Jest uses when writing \"","\"coverage reports. Any istanbul reporter can be used.\"","coverageThreshold","\"A JSON string with which will be used to configure \"","\"minimum threshold enforcement for coverage results\"","debug","\"Print debugging info about your jest config.\"","detectLeaks","\"**EXPERIMENTAL**: Detect memory leaks in tests. After executing a \"","\"test, it will try to garbage collect the global object used, and fail \"","\"if it was leaked\"","detectOpenHandles","\"Print out remaining open handles preventing Jest from exiting at the \"","\"end of a test run. Implies `runInBand`.\"","env","\"The test environment used for all tests. This can point to \"","\"any file or node module. Examples: `jsdom`, `node` or \"","\"`path/to/my-environment.js`\"","errorOnDeprecated","\"Make calling deprecated APIs throw helpful error messages.\"","expand","\"e\"","\"Use this flag to show full diffs instead of a patch.\"","filter","\"Path to a module exporting a filtering function. This method receives \"","\"a list of tests which can be manipulated to exclude tests from \"","\"running. Especially useful when used in conjunction with a testing \"","\"infrastructure to filter known broken tests.\"","findRelatedTests","\"Find related tests for a list of source files that were \"","\"passed in as arguments. Useful for pre-commit hook integration to run \"","\"the minimal amount of tests necessary.\"","forceExit","\"Force Jest to exit after all tests have completed running. \"","\"This is useful when resources set up by test code cannot be \"","\"adequately cleaned up.\"","globalSetup","\"The path to a module that runs before All Tests.\"","globalTeardown","\"The path to a module that runs after All Tests.\"","globals","\"A JSON string with map of global variables that need \"","\"to be available in all test environments.\"","haste","\"A JSON string with map of variables for the haste module system\"","init","\"Generate a basic configuration file\"","injectGlobals","\"Should Jest inject global variables or not\"","json","\"Prints the test results in JSON. This mode will send all \"","\"other test output and user messages to stderr.\"","lastCommit","\"Run all tests affected by file changes in the last commit made. \"","\"Behaves similarly to `--onlyChanged`.\"","listTests","\"Lists all tests Jest will run given the arguments and \"","\"exits. Most useful in a CI system together with `--findRelatedTests` \"","\"to determine the tests Jest will run based on specific files\"","logHeapUsage","\"Logs the heap usage after every test. Useful to debug \"","\"memory leaks. Use together with `--runInBand` and `--expose-gc` in \"","\"node.\"","maxConcurrency","\"Specifies the maximum number of tests that are allowed to run\"","\"concurrently. This only affects tests using `test.concurrent`.\"","\"number\"","maxWorkers","\"w\"","\"Specifies the maximum number of workers the worker-pool \"","\"will spawn for running tests. This defaults to the number of the \"","\"cores available on your machine. (its usually best not to override \"","\"this default)\"","moduleDirectories","\"An array of directory names to be searched recursively \"","\"up from the requiring module's location.\"","moduleFileExtensions","\"An array of file extensions your modules use. If you \"","\"require modules without specifying a file extension, these are the \"","\"extensions Jest will look for. \"","moduleNameMapper","\"A JSON string with a map from regular expressions to \"","\"module names or to arrays of module names that allow to stub \"","\"out resources, like images or styles with a single module\"","modulePathIgnorePatterns","\"against all module paths before those paths are to be considered \"","\"\"visible\" to the module loader.\"","modulePaths","\"An alternative API to setting the NODE_PATH env variable, \"","\"modulePaths is an array of absolute paths to additional locations to \"","\"search when resolving modules.\"","noStackTrace","\"Disables stack trace in test results output\"","notify","\"Activates notifications for test results.\"","notifyMode","\"Specifies when notifications will appear for test results.\"","onlyChanged","\"o\"","\"Attempts to identify which tests to run based on which \"","\"files have changed in the current repository. Only works if you're \"","\"running tests in a git or hg repository at the moment.\"","onlyFailures","\"f\"","\"Run tests that failed in the previous execution.\"","outputFile","\"Write test results to a file when the --json option is \"","\"also specified.\"","passWithNoTests","\"Will not fail if no tests are found (for example while using `--testPathPattern`.)\"","preset","\"A preset that is used as a base for Jest's configuration.\"","prettierPath","\"The path to the \"prettier\" module used for inline snapshots.\"","projects","\"A list of projects that use Jest to run all tests of all \"","\"projects in a single instance of Jest.\"","reporters","\"A list of custom reporters for the test suite.\"","resetMocks","\"Automatically reset mock state between every test. \"","\"Equivalent to calling jest.resetAllMocks() between each test.\"","resetModules","\"If enabled, the module registry for every test file will \"","\"be reset before running each individual test.\"","resolver","\"A JSON string which allows the use of a custom resolver.\"","restoreMocks","\"Automatically restore mock state and implementation between every test. \"","\"Equivalent to calling jest.restoreAllMocks() between each test.\"","rootDir","\"The root directory that Jest should scan for tests and \"","\"modules within.\"","roots","\"A list of paths to directories that Jest should use to \"","\"search for files in.\"","runInBand","\"i\"","\"Run all tests serially in the current process (rather than \"","\"creating a worker pool of child processes that run tests). This \"","\"is sometimes useful for debugging, but such use cases are pretty \"","\"rare.\"","runTestsByPath","\"Used when provided patterns are exact file paths. This avoids \"","\"converting them into a regular expression and matching it against \"","\"every single file.\"","runner","\"Allows to use a custom runner instead of Jest's default test runner.\"","selectProjects","\"Run only the tests of the specified projects.\"","\"Jest uses the attribute `displayName` in the configuration to identify each project.\"","setupFiles","\"A list of paths to modules that run some code to configure or \"","\"set up the testing environment before each test. \"","setupFilesAfterEnv","\"set up the testing framework before each test \"","showConfig","\"Print your jest config and then exits.\"","silent","\"Prevent tests from printing messages through the console.\"","skipFilter","\"Disables the filter provided by --filter. Useful for CI jobs, or \"","\"local enforcement when fixing tests.\"","snapshotSerializers","\"A list of paths to snapshot serializer modules Jest should \"","\"use for snapshot testing.\"","testEnvironment","\"Alias for --env\"","testEnvironmentOptions","\"Test environment options that will be passed to the testEnvironment. \"","\"The relevant options depend on the environment.\"","testFailureExitCode","\"Exit code of `jest` command if the test run failed\"","testLocationInResults","\"Add `location` information to the test results\"","testMatch","\"The glob patterns Jest uses to detect test files.\"","testNamePattern","\"t\"","\"Run only tests with a name that matches the regex pattern.\"","testPathIgnorePatterns","\"against all test paths before executing the test. If the test path \"","\"matches any of the patterns, it will be skipped.\"","testPathPattern","\"A regexp pattern string that is matched against all tests \"","\"paths before executing the test.\"","testRegex","\"A string or array of string regexp patterns that Jest uses to detect test files.\"","testResultsProcessor","\"Allows the use of a custom results processor. \"","\"This processor must be a node module that exports \"","\"a function expecting as the first argument the result object.\"","testRunner","\"Allows to specify a custom test runner. The default is\"","\" `jest-circus/runner`. A path to a custom test runner can be provided:\"","\" `/path/to/testRunner.js`.\"","testSequencer","\"Allows to specify a custom test sequencer. The default is \"","\"`@jest/test-sequencer`. A path to a custom test sequencer can be \"","\"provided: `/path/to/testSequencer.js`\"","testTimeout","\"This option sets the default timeouts of test cases.\"","testURL","\"This option sets the URL for the jsdom environment.\"","timers","\"Setting this value to fake allows the use of fake timers \"","\"for functions such as setTimeout.\"","transform","\"A JSON string which maps from regular expressions to paths \"","\"to transformers.\"","transformIgnorePatterns","\"against all source file paths before transformation.\"","unmockedModulePathPatterns","\"against all modules before the module loader will automatically \"","\"return a mock for them.\"","updateSnapshot","\"u\"","\"Use this flag to re-record snapshots. \"","\"Can be used together with a test suite pattern or with \"","\"`--testNamePattern` to re-record snapshot for test matching \"","\"the pattern\"","useStderr","\"Divert all output to stderr.\"","verbose","\"Display individual test results with the test suite hierarchy.\"","version","\"v\"","\"Print the version and exit\"","watch","\"Watch files for changes and rerun tests related to \"","\"changed files. If you want to re-run all tests when a file has \"","\"changed, use the `--watchAll` option.\"","watchAll","\"Watch files for changes and rerun all tests. If you want \"","\"to re-run only the tests related to the changed files, use the \"","\"`--watch` option.\"","watchPathIgnorePatterns","\"against all paths before trigger test re-run in watch mode. \"","\"If the test path matches any of the patterns, it will be skipped.\"","watchman","\"Whether to use watchman for file crawling. Disable using \"","\"--no-watchman.\""]},"operators":{"distinct":7,"total":548,"identifiers":["const","=","{}",":","+","[]",","]}},"paramCount":0,"sloc":{"logical":341,"physical":623}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":623,"lineStart":1,"maintainability":22.301,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0.293,"halstead":{"bugs":3.427,"difficulty":7.29,"effort":74950.853,"length":1227,"time":4163.936,"vocabulary":333,"volume":10281.497,"operands":{"distinct":326,"total":679},"operators":{"distinct":7,"total":548}},"paramCount":0,"sloc":{"logical":341,"physical":623}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-layout/build.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4,"identifiers":["module","exports","copy","\"runtime\""]},"operators":{"distinct":5,"total":5,"identifiers":["=",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":84.899,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4},"operators":{"distinct":5,"total":5}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-layout/src/index.js","report":{"aggregate":{"cyclomatic":9,"cyclomaticDensity":12.676,"halstead":{"bugs":0.573,"difficulty":11.649,"effort":20040.856,"length":265,"time":1113.381,"vocabulary":90,"volume":1720.341,"operands":{"distinct":77,"total":138,"identifiers":["namespace","\"plugin-layout\"","api","utils","Mustache","helper","require","\"./node/helper\"","describe","key","\"layout\"","config","joi","object","onChange","ConfigChangeType","regenerateTmpFiles","addRuntimePluginKey","absFilePath","join","\"index.js\"","absRuntimeFilePath","\"runtime.js\"","onGenerateFiles","name","pkg","HAS_LOCALE","hasPlugins","\"@fesjs/plugin-locale\"","userConfig","title","footer","\"Created by Fes.js\"","layout","routes","getRoutes","menus","fillMenuByRoute","icons","getIconsFromMenu","iconsString","map","iconName","import "," from '@ant-design/icons-vue/es/icons/","'","writeTmpFile","path","\"icons.js\"","content","\";\n\"","\",\n\"","\n ","\n export default {\n ","\n }","render","readFileSync","__dirname","\"runtime/index.tpl\"","\"utf-8\"","REPLACE_USER_CONFIG","JSON","stringify","copyTmpFiles","\"runtime\"","ignore","\".tpl\"","addRuntimePlugin","@@/","modifyRoutes","\"/\"","component","winPath","paths","absTmpPath","\"\"","children"]},"operators":{"distinct":13,"total":127,"identifiers":["const","=","function=>","{}",":","()",".","return","[]","... (spread)","||","``","${}"]}},"paramCount":3,"sloc":{"logical":71,"physical":92}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"fs","type":"esm"},{"line":2,"path":"path","type":"esm"},{"line":3,"path":"@fesjs/utils","type":"esm"},{"line":12,"path":"./node/helper","type":"cjs"}],"errors":[],"lineEnd":92,"lineStart":1,"maintainability":61.985,"methods":[{"cyclomatic":1,"cyclomaticDensity":4.167,"halstead":{"bugs":0.125,"difficulty":5.538,"effort":2085.077,"length":74,"time":115.838,"vocabulary":34,"volume":376.472,"operands":{"distinct":26,"total":36,"identifiers":["utils","Mustache","api","helper","require","\"./node/helper\"","describe","key","\"layout\"","config","joi","object","onChange","ConfigChangeType","regenerateTmpFiles","addRuntimePluginKey","absFilePath","join","namespace","\"index.js\"","absRuntimeFilePath","\"runtime.js\"","onGenerateFiles","addRuntimePlugin","modifyRoutes","routes"]},"operators":{"distinct":8,"total":38,"identifiers":["const","=","{}",":","()",".","return","function=>"]}},"paramCount":1,"sloc":{"logical":24,"physical":85},"errors":[],"lineEnd":91,"lineStart":7,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":1,"total":1,"identifiers":["\"layout\""]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":24,"lineStart":24,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":5.556,"halstead":{"bugs":0.294,"difficulty":10.085,"effort":8899.062,"length":150,"time":494.392,"vocabulary":59,"volume":882.396,"operands":{"distinct":47,"total":79,"identifiers":["name","api","pkg","HAS_LOCALE","hasPlugins","\"@fesjs/plugin-locale\"","userConfig","title","footer","\"Created by Fes.js\"","config","layout","routes","getRoutes","menus","helper","fillMenuByRoute","icons","getIconsFromMenu","iconsString","map","iconName","writeTmpFile","path","join","namespace","\"icons.js\"","content","\";\n\"","\",\n\"","\n ","\n export default {\n ","\n }","absFilePath","Mustache","render","readFileSync","__dirname","\"runtime/index.tpl\"","\"utf-8\"","REPLACE_USER_CONFIG","JSON","stringify","copyTmpFiles","\"runtime\"","ignore","\".tpl\""]},"operators":{"distinct":12,"total":71,"identifiers":["const","=","{}",".","()","[]",":","... (spread)","||","function=>","``","${}"]}},"paramCount":0,"sloc":{"logical":36,"physical":48},"errors":[],"lineEnd":77,"lineStart":30,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.007,"difficulty":1.25,"effort":25.85,"length":8,"time":1.436,"vocabulary":6,"volume":20.68,"operands":{"distinct":4,"total":5,"identifiers":["iconName","import "," from '@ant-design/icons-vue/es/icons/","'"]},"operators":{"distinct":2,"total":3,"identifiers":["``","${}"]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":50,"lineStart":50,"name":"","paramNames":["iconName"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["absRuntimeFilePath","@@/"]},"operators":{"distinct":2,"total":2,"identifiers":["``","${}"]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":79,"lineStart":79,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.031,"difficulty":3,"effort":275.215,"length":22,"time":15.29,"vocabulary":18,"volume":91.738,"operands":{"distinct":12,"total":12,"identifiers":["path","\"/\"","component","winPath","join","api","paths","absTmpPath","\"\"","absFilePath","children","routes"]},"operators":{"distinct":6,"total":10,"identifiers":["[]","{}",":","()","||","."]}},"paramCount":1,"sloc":{"logical":6,"physical":9},"errors":[],"lineEnd":90,"lineStart":82,"name":"","paramNames":["routes"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.286,"cyclomaticDensity":1.811,"halstead":{"bugs":0.082,"difficulty":1.664,"effort":2862.979,"length":37.857,"time":159.054,"vocabulary":12.857,"volume":245.763,"operands":{"distinct":11,"total":19.714},"operators":{"distinct":1.857,"total":18.143}},"paramCount":0.429,"sloc":{"logical":10.143,"physical":13.143}},"methodAverage":{"cyclomatic":1.333,"cyclomaticDensity":57.176,"halstead":{"bugs":0.077,"difficulty":3.479,"effort":1882.201,"length":43.167,"time":104.567,"vocabulary":20.333,"volume":229.881,"operands":{"distinct":15.333,"total":22.5},"operators":{"distinct":5,"total":20.667}},"paramCount":0.5,"sloc":{"logical":11.5,"physical":24.167}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-layout/src/runtime/helpers/pluginAccess.js","report":{"aggregate":{"cyclomatic":17,"cyclomaticDensity":47.222,"halstead":{"bugs":0.241,"difficulty":21.12,"effort":15275.452,"length":135,"time":848.636,"vocabulary":41,"volume":723.27,"operands":{"distinct":25,"total":66,"identifiers":["useAccess","Error","\"[plugin-layout]: pLugin-layout depends on plugin-access,please install plugin-access first!\"","hasAccessByMenuItem","item","res","path","children","length","0","computed","some","child","rst","value","_addAccessTag","arr","Array","isArray","forEach","access","transform","menus","originData","unref"]},"operators":{"distinct":16,"total":69,"identifiers":["if","! (prefix)","throw","new","const","=","function=>","let","else","&&",".","||","===","()",">","return"]}},"paramCount":5,"sloc":{"logical":36,"physical":41}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"vue","type":"esm"},{"line":3,"path":"../../plugin-access/core","type":"esm"}],"errors":[],"lineEnd":41,"lineStart":1,"maintainability":68.591,"methods":[{"cyclomatic":6,"cyclomaticDensity":60,"halstead":{"bugs":0.067,"difficulty":17.875,"effort":3611.583,"length":46,"time":200.644,"vocabulary":21,"volume":202.047,"operands":{"distinct":8,"total":22,"identifiers":["res","item","path","children","length","0","useAccess","computed"]},"operators":{"distinct":13,"total":24,"identifiers":["let","if","else","&&",".","||","! (prefix)","===","=","()",">","function=>","return"]}},"paramCount":1,"sloc":{"logical":10,"physical":12},"errors":[],"lineEnd":22,"lineStart":11,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":33.688,"length":8,"time":1.872,"vocabulary":7,"volume":22.459,"operands":{"distinct":4,"total":4,"identifiers":["item","children","some","child"]},"operators":{"distinct":3,"total":4,"identifiers":["()",".","function=>"]}},"paramCount":0,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":19,"lineStart":16,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.013,"difficulty":4.5,"effort":179.384,"length":12,"time":9.966,"vocabulary":10,"volume":39.863,"operands":{"distinct":4,"total":6,"identifiers":["rst","hasAccessByMenuItem","child","value"]},"operators":{"distinct":6,"total":6,"identifiers":["const","=","()","return","&&","."]}},"paramCount":1,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":19,"lineStart":16,"name":"","paramNames":["child"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.013,"difficulty":2.4,"effort":91.294,"length":12,"time":5.072,"vocabulary":9,"volume":38.039,"operands":{"distinct":5,"total":6,"identifiers":["Array","isArray","arr","forEach","item"]},"operators":{"distinct":4,"total":6,"identifiers":["if","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":4,"physical":10},"errors":[],"lineEnd":33,"lineStart":24,"name":"","paramNames":["arr"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":75,"halstead":{"bugs":0.03,"difficulty":5.571,"effort":494.802,"length":24,"time":27.489,"vocabulary":13,"volume":88.811,"operands":{"distinct":7,"total":13,"identifiers":["item","access","hasAccessByMenuItem","children","length","0","_addAccessTag"]},"operators":{"distinct":6,"total":11,"identifiers":["=",".","()","if","&&",">"]}},"paramCount":1,"sloc":{"logical":4,"physical":6},"errors":[],"lineEnd":31,"lineStart":26,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.011,"difficulty":3,"effort":99,"length":11,"time":5.5,"vocabulary":8,"volume":33,"operands":{"distinct":4,"total":6,"identifiers":["originData","unref","menus","_addAccessTag"]},"operators":{"distinct":4,"total":5,"identifiers":["const","=","()","return"]}},"paramCount":1,"sloc":{"logical":4,"physical":6},"errors":[],"lineEnd":40,"lineStart":35,"name":"","paramNames":["menus"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.429,"cyclomaticDensity":6.746,"halstead":{"bugs":0.034,"difficulty":3.017,"effort":2182.207,"length":19.286,"time":121.234,"vocabulary":5.857,"volume":103.324,"operands":{"distinct":3.571,"total":9.429},"operators":{"distinct":2.286,"total":9.857}},"paramCount":0.714,"sloc":{"logical":5.143,"physical":5.857}},"methodAverage":{"cyclomatic":2.5,"cyclomaticDensity":51.667,"halstead":{"bugs":0.024,"difficulty":5.808,"effort":751.625,"length":18.833,"time":41.757,"vocabulary":11.333,"volume":70.703,"operands":{"distinct":5.333,"total":9.5},"operators":{"distinct":6,"total":9.333}},"paramCount":0.833,"sloc":{"logical":4.667,"physical":7}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-layout/src/runtime/helpers/pluginLocale.js","report":{"aggregate":{"cyclomatic":11,"cyclomaticDensity":34.375,"halstead":{"bugs":0.175,"difficulty":10.625,"effort":5567.592,"length":103,"time":309.311,"vocabulary":34,"volume":524.009,"operands":{"distinct":24,"total":51,"identifiers":["transTitle","name","sharedLocale","plugin","getShared","\"locale\"","t","useI18n","_transform","arr","Array","isArray","forEach","item","title","_title","computed","children","length","0","transform","menus","originData","unref"]},"operators":{"distinct":10,"total":52,"identifiers":["const","=","function=>","()",".","if","{}","return","&&",">"]}},"paramCount":4,"sloc":{"logical":32,"physical":34}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"vue","type":"esm"},{"line":2,"path":"@@/core/coreExports","type":"esm"}],"errors":[],"lineEnd":34,"lineStart":1,"maintainability":70.121,"methods":[{"cyclomatic":2,"cyclomaticDensity":22.222,"halstead":{"bugs":0.032,"difficulty":6,"effort":571.103,"length":25,"time":31.728,"vocabulary":14,"volume":95.184,"operands":{"distinct":7,"total":12,"identifiers":["sharedLocale","plugin","getShared","\"locale\"","t","useI18n","name"]},"operators":{"distinct":7,"total":13,"identifiers":["const","=","()",".","if","{}","return"]}},"paramCount":1,"sloc":{"logical":9,"physical":8},"errors":[],"lineEnd":12,"lineStart":5,"name":"","paramNames":["name"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.013,"difficulty":2.4,"effort":91.294,"length":12,"time":5.072,"vocabulary":9,"volume":38.039,"operands":{"distinct":5,"total":6,"identifiers":["Array","isArray","arr","forEach","item"]},"operators":{"distinct":4,"total":6,"identifiers":["if","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":4,"physical":13},"errors":[],"lineEnd":27,"lineStart":15,"name":"","paramNames":["arr"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":57.143,"halstead":{"bugs":0.046,"difficulty":7.875,"effort":1076.837,"length":35,"time":59.824,"vocabulary":15,"volume":136.741,"operands":{"distinct":8,"total":18,"identifiers":["item","title","_title","computed","children","length","0","_transform"]},"operators":{"distinct":7,"total":17,"identifiers":["if",".","=","()","function=>","&&",">"]}},"paramCount":1,"sloc":{"logical":7,"physical":9},"errors":[],"lineEnd":25,"lineStart":17,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["transTitle","item","_title"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":20,"lineStart":20,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.011,"difficulty":3,"effort":99,"length":11,"time":5.5,"vocabulary":8,"volume":33,"operands":{"distinct":4,"total":6,"identifiers":["originData","unref","menus","_transform"]},"operators":{"distinct":4,"total":5,"identifiers":["const","=","()","return"]}},"paramCount":1,"sloc":{"logical":4,"physical":5},"errors":[],"lineEnd":33,"lineStart":29,"name":"","paramNames":["menus"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.833,"cyclomaticDensity":5.729,"halstead":{"bugs":0.029,"difficulty":1.771,"effort":927.932,"length":17.167,"time":51.552,"vocabulary":5.667,"volume":87.335,"operands":{"distinct":4,"total":8.5},"operators":{"distinct":1.667,"total":8.667}},"paramCount":0.667,"sloc":{"logical":5.333,"physical":5.667}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":40.873,"halstead":{"bugs":0.021,"difficulty":4.055,"effort":369.969,"length":17.6,"time":20.554,"vocabulary":10.2,"volume":62.915,"operands":{"distinct":5.4,"total":9},"operators":{"distinct":4.8,"total":8.6}},"paramCount":0.8,"sloc":{"logical":5.2,"physical":7.2}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-layout/src/runtime/helpers/svg.js","report":{"aggregate":{"cyclomatic":16,"cyclomaticDensity":43.243,"halstead":{"bugs":0.351,"difficulty":28,"effort":29488.044,"length":183,"time":1638.225,"vocabulary":54,"volume":1053.144,"operands":{"distinct":33,"total":88,"identifiers":["isStr","str","\"string\"","isValid","elm","nodeType","1","nodeName","toLowerCase","\"script\"","false","i","0","attributes","length","val","value","indexOf","\"on\"","childNodes","true","validateContent","svgContent","div","document","createElement","\"div\"","innerHTML","\"svg\"","removeChild","svgElm","firstElementChild","\"\""]},"operators":{"distinct":21,"total":95,"identifiers":["const","=","function","return","===","typeof (prefix)","function=>","if",".","()","for","let","<","++ (postfix)","[]","&&","! (prefix)","-",">=","-- (postfix)","!=="]}},"paramCount":3,"sloc":{"logical":37,"physical":50}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":50,"lineStart":1,"maintainability":60.303,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1.5,"effort":17.414,"length":5,"time":0.967,"vocabulary":5,"volume":11.61,"operands":{"distinct":2,"total":2,"identifiers":["str","\"string\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","typeof (prefix)"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":3,"lineStart":1,"name":"","paramNames":["str"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":8,"cyclomaticDensity":50,"halstead":{"bugs":0.143,"difficulty":15.105,"effort":6476.737,"length":85,"time":359.819,"vocabulary":33,"volume":428.774,"operands":{"distinct":19,"total":41,"identifiers":["elm","nodeType","1","nodeName","toLowerCase","\"script\"","false","i","0","attributes","length","val","value","isStr","indexOf","\"on\"","childNodes","isValid","true"]},"operators":{"distinct":14,"total":44,"identifiers":["if","===",".","()","return","for","let","=","<","++ (postfix)","const","[]","&&","! (prefix)"]}},"paramCount":1,"sloc":{"logical":16,"physical":21},"errors":[],"lineEnd":25,"lineStart":5,"name":"","paramNames":["elm"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":42.857,"halstead":{"bugs":0.132,"difficulty":15.395,"effort":6108.972,"length":78,"time":339.387,"vocabulary":34,"volume":396.822,"operands":{"distinct":19,"total":39,"identifiers":["div","document","createElement","\"div\"","innerHTML","svgContent","i","childNodes","length","1","0","nodeName","toLowerCase","\"svg\"","removeChild","svgElm","firstElementChild","isValid","\"\""]},"operators":{"distinct":15,"total":39,"identifiers":["const","=","()",".","for","let","-",">=","-- (postfix)","if","!==","[]","&&","===","return"]}},"paramCount":1,"sloc":{"logical":14,"physical":23},"errors":[],"lineEnd":49,"lineStart":27,"name":"","paramNames":["svgContent"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":4,"cyclomaticDensity":10.811,"halstead":{"bugs":0.088,"difficulty":7,"effort":7372.011,"length":45.75,"time":409.556,"vocabulary":13.5,"volume":263.286,"operands":{"distinct":8.25,"total":22},"operators":{"distinct":5.25,"total":23.75}},"paramCount":0.75,"sloc":{"logical":9.25,"physical":12.5}},"methodAverage":{"cyclomatic":5,"cyclomaticDensity":64.286,"halstead":{"bugs":0.093,"difficulty":10.667,"effort":4201.041,"length":56,"time":233.391,"vocabulary":24,"volume":279.068,"operands":{"distinct":13.333,"total":27.333},"operators":{"distinct":10.667,"total":28.667}},"paramCount":1,"sloc":{"logical":10.333,"physical":15.667}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-layout/src/runtime/runtime.js","report":{"aggregate":{"cyclomatic":12,"cyclomaticDensity":17.143,"halstead":{"bugs":0.469,"difficulty":30.817,"effort":43323.873,"length":238,"time":2406.882,"vocabulary":60,"volume":1405.84,"operands":{"distinct":41,"total":133,"identifiers":["accessApi","Error","\"[plugin-layout]: pLugin-layout depends on plugin-access,please install plugin-access first!\"","handle","type","router","accesssIds","getAccess","path","/","name","Exception","components","404","Exception404","403","Exception403","includes","setAccess","concat","hasRoute","addRoute","component","access","memo","to","from","next","runtimeConfig","plugin","applyPlugins","key","\"layout\"","ApplyPluginsType","modify","initialValue","unAccessHandler","\"function\"","\"/404\"","\"/403\"","noFoundHandler"]},"operators":{"distinct":19,"total":105,"identifiers":["if","! (prefix)","throw","new","const","=","function=>","()",".","``","${}","{}",":","[]","&&","===","typeof (prefix)","return","... (spread)"]}},"paramCount":3,"sloc":{"logical":70,"physical":72}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@@/core/coreExports","type":"esm"},{"line":3,"path":"../plugin-access/core","type":"esm"},{"line":4,"path":"./views/404","type":"esm"},{"line":5,"path":"./views/403","type":"esm"}],"errors":[],"lineEnd":72,"lineStart":1,"maintainability":50.193,"methods":[{"cyclomatic":3,"cyclomaticDensity":17.647,"halstead":{"bugs":0.114,"difficulty":9.35,"effort":3196.2,"length":69,"time":177.567,"vocabulary":31,"volume":341.84,"operands":{"distinct":20,"total":34,"identifiers":["accesssIds","accessApi","getAccess","path","type","/","name","Exception","components","404","Exception404","403","Exception403","includes","setAccess","concat","router","hasRoute","addRoute","component"]},"operators":{"distinct":11,"total":35,"identifiers":["const","=","()",".","``","${}","{}",":","if","! (prefix)","[]"]}},"paramCount":2,"sloc":{"logical":17,"physical":15},"errors":[],"lineEnd":27,"lineStart":13,"name":"","paramNames":["type","router"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":7,"cyclomaticDensity":14.894,"halstead":{"bugs":0.258,"difficulty":23.739,"effort":18386.473,"length":151,"time":1021.471,"vocabulary":35,"volume":774.522,"operands":{"distinct":23,"total":91,"identifiers":["router","to","from","next","runtimeConfig","plugin","applyPlugins","key","\"layout\"","type","ApplyPluginsType","modify","initialValue","unAccessHandler","\"function\"","path","\"/404\"","handle","404","403","\"/403\"","noFoundHandler","memo"]},"operators":{"distinct":12,"total":60,"identifiers":["{}","const","=","()",".",":","if","&&","===","typeof (prefix)","return","... (spread)"]}},"paramCount":1,"sloc":{"logical":47,"physical":43},"errors":[],"lineEnd":71,"lineStart":29,"name":"","paramNames":["memo"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":4,"cyclomaticDensity":5.714,"halstead":{"bugs":0.156,"difficulty":10.272,"effort":14441.291,"length":79.333,"time":802.294,"vocabulary":20,"volume":468.613,"operands":{"distinct":13.667,"total":44.333},"operators":{"distinct":6.333,"total":35}},"paramCount":1,"sloc":{"logical":23.333,"physical":24}},"methodAverage":{"cyclomatic":5,"cyclomaticDensity":16.27,"halstead":{"bugs":0.186,"difficulty":16.545,"effort":10791.336,"length":110,"time":599.519,"vocabulary":33,"volume":558.181,"operands":{"distinct":21.5,"total":62.5},"operators":{"distinct":11.5,"total":47.5}},"paramCount":1.5,"sloc":{"logical":32,"physical":29}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-layout/src/runtime/views/403.vue","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":18.182,"halstead":{"bugs":0.041,"difficulty":7,"effort":868,"length":31,"time":48.222,"vocabulary":16,"volume":124,"operands":{"distinct":8,"total":14,"identifiers":["components","Result","name","Button","router","useRouter","click","back"]},"operators":{"distinct":8,"total":17,"identifiers":["{}",":",".","const","=","()","function=>","return"]}},"paramCount":0,"sloc":{"logical":11,"physical":23}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"@@/core/coreExports","type":"esm"},{"line":3,"path":"ant-design-vue/lib/result","type":"esm"},{"line":4,"path":"ant-design-vue/lib/result/style/css","type":"esm"},{"line":5,"path":"ant-design-vue/lib/button","type":"esm"},{"line":6,"path":"ant-design-vue/lib/button/style/css","type":"esm"}],"errors":[],"lineEnd":23,"lineStart":1,"maintainability":71.704,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["router","back"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":17,"lineStart":15,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":9.091,"halstead":{"bugs":0.021,"difficulty":3.5,"effort":434,"length":15.5,"time":24.111,"vocabulary":8,"volume":62,"operands":{"distinct":4,"total":7},"operators":{"distinct":4,"total":8.5}},"paramCount":0,"sloc":{"logical":5.5,"physical":11.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2},"operators":{"distinct":2,"total":2}},"paramCount":0,"sloc":{"logical":1,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-layout/src/runtime/views/404.vue","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":18.182,"halstead":{"bugs":0.041,"difficulty":7,"effort":868,"length":31,"time":48.222,"vocabulary":16,"volume":124,"operands":{"distinct":8,"total":14,"identifiers":["components","Result","name","Button","router","useRouter","click","back"]},"operators":{"distinct":8,"total":17,"identifiers":["{}",":",".","const","=","()","function=>","return"]}},"paramCount":0,"sloc":{"logical":11,"physical":23}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"@@/core/coreExports","type":"esm"},{"line":3,"path":"ant-design-vue/lib/result","type":"esm"},{"line":4,"path":"ant-design-vue/lib/result/style/css","type":"esm"},{"line":5,"path":"ant-design-vue/lib/button","type":"esm"},{"line":6,"path":"ant-design-vue/lib/button/style/css","type":"esm"}],"errors":[],"lineEnd":23,"lineStart":1,"maintainability":71.704,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["router","back"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":17,"lineStart":15,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":9.091,"halstead":{"bugs":0.021,"difficulty":3.5,"effort":434,"length":15.5,"time":24.111,"vocabulary":8,"volume":62,"operands":{"distinct":4,"total":7},"operators":{"distinct":4,"total":8.5}},"paramCount":0,"sloc":{"logical":5.5,"physical":11.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2},"operators":{"distinct":2,"total":2}},"paramCount":0,"sloc":{"logical":1,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-layout/src/runtime/views/BaseLayout.vue","report":{"aggregate":{"cyclomatic":20,"cyclomaticDensity":18.018,"halstead":{"bugs":0.872,"difficulty":30.589,"effort":79984.302,"length":398,"time":4443.572,"vocabulary":95,"volume":2614.803,"operands":{"distinct":73,"total":203,"identifiers":["components","Layout","name","Sider","Content","Header","Footer","Menu","MultiTabProvider","props","menus","type","Array","title","String","default","\"\"","locale","Boolean","false","logo","defaultLogo","theme","\"dark\"","navigation","\"side\"","fixedHeader","fixedSideBar","true","multiTabs","sideWidth","Number","200","footer","collapsed","ref","route","useRoute","routeLayoutDefault","side","top","routeLayout","computed","config","metaLayoutConfig","meta","layout","undefined","\"boolean\"","\"object\"","console","error","\"[plugin-layout]: meta layout must be object or boolean!\"","routeQueryLayoutConfig","query","JSON","parse","\"[plugin-layout]: query layout must be object or boolean!\"","siderTheme","\"mixin\"","\"light\"","currentFixedHeader","siderFixedStuffStyle","value","width","\"80px\"","px","headerFixedStyle","left","calc(100% - ","px)","0","\"100%\""]},"operators":{"distinct":22,"total":195,"identifiers":["{}",":",".","return","[]","const","=","()","function=>","let",":?","===","if","else","typeof (prefix)","... (spread)","&&","!==","||","``","${}","! (prefix)"]}},"paramCount":0,"sloc":{"logical":111,"physical":138}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"vue","type":"esm"},{"line":3,"path":"@@/core/coreExports","type":"esm"},{"line":4,"path":"ant-design-vue/lib/layout","type":"esm"},{"line":5,"path":"ant-design-vue/lib/layout/style/css","type":"esm"},{"line":6,"path":"./Menu","type":"esm"},{"line":7,"path":"./MultiTabProvider","type":"esm"},{"line":8,"path":"../assets/logo.png","type":"esm"}],"errors":[],"lineEnd":138,"lineStart":1,"maintainability":52.658,"methods":[{"cyclomatic":10,"cyclomaticDensity":50,"halstead":{"bugs":0.175,"difficulty":19.737,"effort":10342.276,"length":103,"time":574.571,"vocabulary":34,"volume":524.009,"operands":{"distinct":19,"total":50,"identifiers":["config","metaLayoutConfig","route","meta","layout","undefined","true","\"boolean\"","routeLayoutDefault","false","\"object\"","console","error","\"[plugin-layout]: meta layout must be object or boolean!\"","routeQueryLayoutConfig","query","JSON","parse","\"[plugin-layout]: query layout must be object or boolean!\""]},"operators":{"distinct":15,"total":53,"identifiers":["let","const","=",":?","===",".","if","else","typeof (prefix)","{}","... (spread)","()","&&","!==","return"]}},"paramCount":0,"sloc":{"logical":20,"physical":22},"errors":[],"lineEnd":94,"lineStart":73,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.013,"difficulty":2.4,"effort":91.294,"length":12,"time":5.072,"vocabulary":9,"volume":38.039,"operands":{"distinct":5,"total":6,"identifiers":["props","navigation","\"mixin\"","\"light\"","theme"]},"operators":{"distinct":4,"total":6,"identifiers":["if","===",".","return"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":100,"lineStart":95,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":200,"halstead":{"bugs":0.008,"difficulty":1.875,"effort":47.374,"length":9,"time":2.632,"vocabulary":7,"volume":25.266,"operands":{"distinct":4,"total":5,"identifiers":["props","fixedHeader","navigation","\"mixin\""]},"operators":{"distinct":3,"total":4,"identifiers":["||",".","==="]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":101,"lineStart":101,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.024,"difficulty":4,"effort":289.359,"length":19,"time":16.075,"vocabulary":14,"volume":72.34,"operands":{"distinct":7,"total":8,"identifiers":["collapsed","value","width","\"80px\"","props","sideWidth","px"]},"operators":{"distinct":7,"total":11,"identifiers":["if",".","return","{}",":","``","${}"]}},"paramCount":0,"sloc":{"logical":5,"physical":10},"errors":[],"lineEnd":111,"lineStart":102,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.059,"difficulty":6.231,"effort":1111.428,"length":40,"time":61.746,"vocabulary":22,"volume":178.377,"operands":{"distinct":13,"total":18,"identifiers":["currentFixedHeader","value","props","navigation","\"side\"","left","sideWidth","px","width","calc(100% - ","px)","0","\"100%\""]},"operators":{"distinct":9,"total":22,"identifiers":["if","! (prefix)",".","return","{}","===",":","``","${}"]}},"paramCount":0,"sloc":{"logical":9,"physical":15},"errors":[],"lineEnd":126,"lineStart":112,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3.333,"cyclomaticDensity":3.003,"halstead":{"bugs":0.145,"difficulty":5.098,"effort":13330.717,"length":66.333,"time":740.595,"vocabulary":15.833,"volume":435.8,"operands":{"distinct":12.167,"total":33.833},"operators":{"distinct":3.667,"total":32.5}},"paramCount":0,"sloc":{"logical":18.5,"physical":23}},"methodAverage":{"cyclomatic":3.8,"cyclomaticDensity":78,"halstead":{"bugs":0.056,"difficulty":6.849,"effort":2376.346,"length":36.6,"time":132.019,"vocabulary":17.2,"volume":167.606,"operands":{"distinct":9.6,"total":17.4},"operators":{"distinct":7.6,"total":19.2}},"paramCount":0,"sloc":{"logical":7.6,"physical":10.8}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-layout/src/runtime/views/Menu.vue","report":{"aggregate":{"cyclomatic":5,"cyclomaticDensity":11.364,"halstead":{"bugs":0.253,"difficulty":9.987,"effort":7569.885,"length":135,"time":420.549,"vocabulary":49,"volume":757.986,"operands":{"distinct":38,"total":69,"identifiers":["components","Menu","name","SubMenu","Item","MenuIcon","props","menus","type","Array","theme","String","default","\"dark\"","toRefs","route","useRoute","router","useRouter","fixedMenus","transformByLocale","transformByAccess","onMenuClick","e","path","key","/^https?:\\/\\//","test","window","open","\"_blank\"","/^\\//","push","console","warn","\"[plugin-layout]: 菜单的path只能使以http(s)开头的网址或者路由地址\"","selectedKeys","computed"]},"operators":{"distinct":11,"total":66,"identifiers":["{}",":",".","return","[]","const","=","()","function=>","if","else"]}},"paramCount":1,"sloc":{"logical":44,"physical":54}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"vue","type":"esm"},{"line":3,"path":"@@/core/coreExports","type":"esm"},{"line":4,"path":"ant-design-vue/lib/menu","type":"esm"},{"line":5,"path":"ant-design-vue/lib/menu/style/css","type":"esm"},{"line":6,"path":"./MenuIcon","type":"esm"},{"line":7,"path":"../helpers/pluginAccess","type":"esm"},{"line":8,"path":"../helpers/pluginLocale","type":"esm"}],"errors":[],"lineEnd":54,"lineStart":1,"maintainability":58.592,"methods":[{"cyclomatic":3,"cyclomaticDensity":30,"halstead":{"bugs":0.052,"difficulty":4.071,"effort":633.471,"length":36,"time":35.193,"vocabulary":20,"volume":155.589,"operands":{"distinct":14,"total":19,"identifiers":["path","e","key","/^https?:\\/\\//","test","window","open","\"_blank\"","/^\\//","router","push","console","warn","\"[plugin-layout]: 菜单的path只能使以http(s)开头的网址或者路由地址\""]},"operators":{"distinct":6,"total":17,"identifiers":["const","=",".","if","else","()"]}},"paramCount":1,"sloc":{"logical":10,"physical":12},"errors":[],"lineEnd":45,"lineStart":34,"name":"","paramNames":["e"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["route","path"]},"operators":{"distinct":2,"total":2,"identifiers":["[]","."]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":46,"lineStart":46,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.667,"cyclomaticDensity":3.788,"halstead":{"bugs":0.084,"difficulty":3.329,"effort":2523.295,"length":45,"time":140.183,"vocabulary":16.333,"volume":252.662,"operands":{"distinct":12.667,"total":23},"operators":{"distinct":3.667,"total":22}},"paramCount":0.333,"sloc":{"logical":14.667,"physical":18}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":65,"halstead":{"bugs":0.027,"difficulty":2.536,"effort":320.736,"length":20,"time":17.819,"vocabulary":12,"volume":81.795,"operands":{"distinct":8,"total":10.5},"operators":{"distinct":4,"total":9.5}},"paramCount":0.5,"sloc":{"logical":5.5,"physical":6.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-layout/src/runtime/views/MenuIcon.vue","report":{"aggregate":{"cyclomatic":10,"cyclomaticDensity":34.483,"halstead":{"bugs":0.171,"difficulty":14.955,"effort":7654.074,"length":99,"time":425.226,"vocabulary":36,"volume":511.823,"operands":{"distinct":22,"total":47,"identifiers":["props","icon","String","Object","AIcon","ref","null","AText","onBeforeMount","type","\"icon\"","value","Icons","name","fetch","then","rsp","ok","text","svgContent","validateContent","\"fes-layout-icon anticon\""]},"operators":{"distinct":14,"total":52,"identifiers":["{}",":","[]",",","const","=","()","function=>","if","else","&&",".","===","return"]}},"paramCount":2,"sloc":{"logical":29,"physical":44}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":3,"path":"vue","type":"esm"},{"line":5,"path":"../icons","type":"esm"},{"line":6,"path":"../helpers/svg","type":"esm"}],"errors":[],"lineEnd":44,"lineStart":1,"maintainability":68.274,"methods":[{"cyclomatic":3,"cyclomaticDensity":50,"halstead":{"bugs":0.049,"difficulty":6.955,"effort":1021.94,"length":34,"time":56.774,"vocabulary":20,"volume":146.946,"operands":{"distinct":11,"total":17,"identifiers":["props","icon","type","\"icon\"","AIcon","value","Icons","name","fetch","then","rsp"]},"operators":{"distinct":9,"total":17,"identifiers":["if","else","&&",".","===","=","[]","()","function=>"]}},"paramCount":0,"sloc":{"logical":6,"physical":13},"errors":[],"lineEnd":28,"lineStart":16,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.016,"difficulty":3,"effort":139.521,"length":14,"time":7.751,"vocabulary":10,"volume":46.507,"operands":{"distinct":5,"total":6,"identifiers":["rsp","ok","text","then","svgContent"]},"operators":{"distinct":5,"total":8,"identifiers":["if",".","return","()","function=>"]}},"paramCount":1,"sloc":{"logical":5,"physical":7},"errors":[],"lineEnd":26,"lineStart":20,"name":"","paramNames":["rsp"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":29.477,"length":7,"time":1.638,"vocabulary":7,"volume":19.651,"operands":{"distinct":4,"total":4,"identifiers":["AText","value","validateContent","svgContent"]},"operators":{"distinct":3,"total":3,"identifiers":["=",".","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":24,"lineStart":22,"name":"","paramNames":["svgContent"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":60,"halstead":{"bugs":0.016,"difficulty":2.4,"effort":115.2,"length":16,"time":6.4,"vocabulary":8,"volume":48,"operands":{"distinct":5,"total":8,"identifiers":["AIcon","value","AText","\"fes-layout-icon anticon\"","null"]},"operators":{"distinct":3,"total":8,"identifiers":["if",".","return"]}},"paramCount":0,"sloc":{"logical":5,"physical":12},"errors":[],"lineEnd":41,"lineStart":30,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":6.897,"halstead":{"bugs":0.034,"difficulty":2.991,"effort":1530.815,"length":19.8,"time":85.045,"vocabulary":7.2,"volume":102.365,"operands":{"distinct":4.4,"total":9.4},"operators":{"distinct":2.8,"total":10.4}},"paramCount":0.4,"sloc":{"logical":5.8,"physical":8.8}},"methodAverage":{"cyclomatic":2.25,"cyclomaticDensity":50,"halstead":{"bugs":0.022,"difficulty":3.464,"effort":326.534,"length":17.75,"time":18.141,"vocabulary":11.25,"volume":65.276,"operands":{"distinct":6.25,"total":8.75},"operators":{"distinct":5,"total":9}},"paramCount":0.5,"sloc":{"logical":4.5,"physical":8.75}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-layout/src/runtime/views/MultiTabProvider.vue","report":{"aggregate":{"cyclomatic":23,"cyclomaticDensity":20.909,"halstead":{"bugs":0.731,"difficulty":33.375,"effort":73203.9,"length":350,"time":4066.883,"vocabulary":77,"volume":2193.375,"operands":{"distinct":56,"total":178,"identifiers":["i","0","getKey","components","Dropdown","name","Menu","Item","Tabs","TabPane","ReloadOutlined","MoreOutlined","route","useRoute","router","useRouter","pageList","ref","createPage","title","meta","path","computed","transTitle","key","findPage","value","find","item","unref","onMounted","beforeEach","to","true","switchPage","selectedPage","push","query","params","onEdit","targetKey","action","\"remove\"","list","index","indexOf","splice","1","reloadPage","closeOtherPage","getPageKey","_route","\"\"","handlerMore","\"closeOtherPage\"","\"reloadPage\""]},"operators":{"distinct":21,"total":172,"identifiers":["let","=","const","function=>","++ (prefix)","{}",":",".","()","[]","return","===","if","! (prefix)",",","... (spread)","||","switch","case","break","default"]}},"paramCount":11,"sloc":{"logical":110,"physical":114}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":4,"path":"vue","type":"esm"},{"line":5,"path":"ant-design-vue/lib/tabs","type":"esm"},{"line":6,"path":"ant-design-vue/lib/dropdown","type":"esm"},{"line":7,"path":"ant-design-vue/lib/menu","type":"esm"},{"line":8,"path":"ant-design-vue/lib/menu/style/css","type":"esm"},{"line":9,"path":"ant-design-vue/lib/dropdown/style/css","type":"esm"},{"line":10,"path":"ant-design-vue/lib/tabs/style/css","type":"esm"},{"line":11,"path":"@ant-design/icons-vue","type":"esm"},{"line":12,"path":"@@/core/coreExports","type":"esm"},{"line":13,"path":"../helpers/pluginLocale","type":"esm"}],"errors":[],"lineEnd":114,"lineStart":1,"maintainability":63.057,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["i"]},"operators":{"distinct":1,"total":1,"identifiers":["++ (prefix)"]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":16,"lineStart":16,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":10,"halstead":{"bugs":0.044,"difficulty":8.5,"effort":1122,"length":33,"time":62.333,"vocabulary":16,"volume":132,"operands":{"distinct":8,"total":17,"identifiers":["title","route","meta","path","name","computed","key","getKey"]},"operators":{"distinct":8,"total":16,"identifiers":["const","=",".","return","{}",":","()","function=>"]}},"paramCount":1,"sloc":{"logical":10,"physical":10},"errors":[],"lineEnd":41,"lineStart":32,"name":"","paramNames":["route"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["transTitle","title"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":38,"lineStart":38,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":33.688,"length":8,"time":1.872,"vocabulary":7,"volume":22.459,"operands":{"distinct":4,"total":4,"identifiers":["pageList","value","find","item"]},"operators":{"distinct":3,"total":4,"identifiers":["()",".","function=>"]}},"paramCount":1,"sloc":{"logical":3,"physical":1},"errors":[],"lineEnd":43,"lineStart":43,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.008,"difficulty":2.5,"effort":58.162,"length":9,"time":3.231,"vocabulary":6,"volume":23.265,"operands":{"distinct":3,"total":5,"identifiers":["unref","item","path"]},"operators":{"distinct":3,"total":4,"identifiers":["===","()","."]}},"paramCount":1,"sloc":{"logical":3,"physical":1},"errors":[],"lineEnd":43,"lineStart":43,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.008,"difficulty":2,"effort":48,"length":8,"time":2.667,"vocabulary":8,"volume":24,"operands":{"distinct":4,"total":4,"identifiers":["pageList","value","createPage","route"]},"operators":{"distinct":4,"total":4,"identifiers":["=",".","[]","()"]}},"paramCount":0,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":47,"lineStart":45,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.029,"difficulty":6.429,"effort":565.714,"length":22,"time":31.429,"vocabulary":16,"volume":88,"operands":{"distinct":7,"total":10,"identifiers":["findPage","to","path","pageList","value","createPage","true"]},"operators":{"distinct":9,"total":12,"identifiers":["if","! (prefix)","()",".","=","[]",",","... (spread)","return"]}},"paramCount":1,"sloc":{"logical":5,"physical":6},"errors":[],"lineEnd":54,"lineStart":49,"name":"","paramNames":["to"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.038,"difficulty":7,"effort":793.099,"length":29,"time":44.061,"vocabulary":15,"volume":113.3,"operands":{"distinct":8,"total":16,"identifiers":["selectedPage","findPage","path","router","push","query","route","params"]},"operators":{"distinct":7,"total":13,"identifiers":["const","=","()","if",".","{}",":"]}},"paramCount":1,"sloc":{"logical":7,"physical":10},"errors":[],"lineEnd":65,"lineStart":56,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.053,"difficulty":6.333,"effort":1012.772,"length":37,"time":56.265,"vocabulary":20,"volume":159.911,"operands":{"distinct":12,"total":19,"identifiers":["action","\"remove\"","selectedPage","findPage","targetKey","list","pageList","value","index","indexOf","splice","1"]},"operators":{"distinct":8,"total":18,"identifiers":["if","===","const","=","()","[]","... (spread)","."]}},"paramCount":2,"sloc":{"logical":8,"physical":9},"errors":[],"lineEnd":74,"lineStart":66,"name":"","paramNames":["targetKey","action"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":50,"halstead":{"bugs":0.025,"difficulty":4.286,"effort":317.181,"length":20,"time":17.621,"vocabulary":13,"volume":74.009,"operands":{"distinct":7,"total":10,"identifiers":["selectedPage","findPage","path","unref","route","key","getKey"]},"operators":{"distinct":6,"total":10,"identifiers":["const","=","()","||",".","if"]}},"paramCount":1,"sloc":{"logical":6,"physical":6},"errors":[],"lineEnd":80,"lineStart":75,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.022,"difficulty":3.857,"effort":256.916,"length":18,"time":14.273,"vocabulary":13,"volume":66.608,"operands":{"distinct":7,"total":9,"identifiers":["selectedPage","findPage","path","unref","route","pageList","value"]},"operators":{"distinct":6,"total":9,"identifiers":["const","=","()","||",".","[]"]}},"paramCount":1,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":84,"lineStart":81,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.019,"difficulty":4,"effort":229.438,"length":16,"time":12.747,"vocabulary":12,"volume":57.359,"operands":{"distinct":6,"total":8,"identifiers":["selectedPage","findPage","_route","path","key","\"\""]},"operators":{"distinct":6,"total":8,"identifiers":["const","=","()",".","if","return"]}},"paramCount":1,"sloc":{"logical":5,"physical":7},"errors":[],"lineEnd":91,"lineStart":85,"name":"","paramNames":["_route"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":37.5,"halstead":{"bugs":0.014,"difficulty":2.5,"effort":107.963,"length":13,"time":5.998,"vocabulary":10,"volume":43.185,"operands":{"distinct":5,"total":5,"identifiers":["key","closeOtherPage","\"closeOtherPage\"","reloadPage","\"reloadPage\""]},"operators":{"distinct":5,"total":8,"identifiers":["switch","case","()","break","default"]}},"paramCount":1,"sloc":{"logical":8,"physical":11},"errors":[],"lineEnd":102,"lineStart":92,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.643,"cyclomaticDensity":1.494,"halstead":{"bugs":0.052,"difficulty":2.384,"effort":5228.85,"length":25,"time":290.492,"vocabulary":5.5,"volume":156.67,"operands":{"distinct":4,"total":12.714},"operators":{"distinct":1.5,"total":12.286}},"paramCount":0.786,"sloc":{"logical":7.857,"physical":8.143}},"methodAverage":{"cyclomatic":1.692,"cyclomaticDensity":42.134,"halstead":{"bugs":0.021,"difficulty":3.839,"effort":349.87,"length":16.769,"time":19.437,"vocabulary":10.846,"volume":62.373,"operands":{"distinct":5.692,"total":8.462},"operators":{"distinct":5.154,"total":8.308}},"paramCount":0.846,"sloc":{"logical":4.923,"physical":5.385}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-locale/build.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4,"identifiers":["module","exports","copy","\"runtime\""]},"operators":{"distinct":5,"total":5,"identifiers":["=",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":84.899,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4},"operators":{"distinct":5,"total":5}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-locale/src/index.js","report":{"aggregate":{"cyclomatic":8,"cyclomaticDensity":12.308,"halstead":{"bugs":0.493,"difficulty":13.566,"effort":20064.499,"length":232,"time":1114.694,"vocabulary":83,"volume":1479.009,"operands":{"distinct":68,"total":123,"identifiers":["namespace","\"plugin-locale\"","api","utils","Mustache","describe","key","\"locale\"","config","joi","object","default","onChange","ConfigChangeType","regenerateTmpFiles","addRuntimePluginKey","absoluteFilePath","join","\"core.js\"","absRuntimeFilePath","\"runtime.js\"","getLocaleFileBasePath","paths","absSrcPath","singular","\"locales\"","addTmpGenerateWatcherPaths","onGenerateFiles","userConfig","locale","\"zh-CN\"","fallbackLocale","legacy","true","baseNavigator","share","localeConfigFileBasePath","locales","getLocalesJSON","writeTmpFile","path","content","render","readFileSync","__dirname","\"runtime/core.tpl\"","\"utf-8\"","REPLACE_LOCALES","REPLACE_DEFAULT_OPTIONS","JSON","stringify","null","2","BASE_NAVIGATOR","SHARE","VUE_I18N_PATH","resolvePkg","\"vue-i18n\"","copyTmpFiles","\"runtime\"","ignore","\".tpl\"","addPluginExports","specifiers","\"useI18n\"","source","addRuntimePlugin","@@/"]},"operators":{"distinct":15,"total":109,"identifiers":["const","=","function=>","{}",":","()",".","return","function",":?","... (spread)","[]",",","``","${}"]}},"paramCount":1,"sloc":{"logical":65,"physical":86}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"fs","type":"esm"},{"line":2,"path":"path","type":"esm"},{"line":3,"path":"@fesjs/utils","type":"esm"},{"line":4,"path":"./utils","type":"esm"}],"errors":[],"lineEnd":86,"lineStart":1,"maintainability":62.888,"methods":[{"cyclomatic":1,"cyclomaticDensity":4,"halstead":{"bugs":0.131,"difficulty":6.66,"effort":2608.953,"length":77,"time":144.942,"vocabulary":34,"volume":391.735,"operands":{"distinct":25,"total":37,"identifiers":["utils","Mustache","api","describe","key","\"locale\"","config","joi","object","default","onChange","ConfigChangeType","regenerateTmpFiles","addRuntimePluginKey","absoluteFilePath","join","namespace","\"core.js\"","absRuntimeFilePath","\"runtime.js\"","getLocaleFileBasePath","addTmpGenerateWatcherPaths","onGenerateFiles","addPluginExports","addRuntimePlugin"]},"operators":{"distinct":9,"total":40,"identifiers":["const","=","{}",":","()",".","return","function=>","function"]}},"paramCount":1,"sloc":{"logical":25,"physical":78},"errors":[],"lineEnd":85,"lineStart":8,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":1,"total":1,"identifiers":["\"locale\""]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":24,"lineStart":24,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.019,"difficulty":2.25,"effort":129.059,"length":16,"time":7.17,"vocabulary":12,"volume":57.359,"operands":{"distinct":8,"total":9,"identifiers":["join","api","paths","absSrcPath","config","singular","\"locale\"","\"locales\""]},"operators":{"distinct":4,"total":7,"identifiers":["return","()",".",":?"]}},"paramCount":0,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":32,"lineStart":30,"name":"getLocaleFileBasePath","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":3.226,"halstead":{"bugs":0.219,"difficulty":6.439,"effort":4229.931,"length":117,"time":234.996,"vocabulary":49,"volume":656.921,"operands":{"distinct":41,"total":66,"identifiers":["userConfig","locale","\"zh-CN\"","fallbackLocale","legacy","true","baseNavigator","share","api","config","localeConfigFileBasePath","getLocaleFileBasePath","locales","getLocalesJSON","writeTmpFile","path","absoluteFilePath","content","Mustache","render","readFileSync","join","__dirname","\"runtime/core.tpl\"","\"utf-8\"","REPLACE_LOCALES","REPLACE_DEFAULT_OPTIONS","JSON","stringify","null","2","BASE_NAVIGATOR","SHARE","VUE_I18N_PATH","resolvePkg","\"vue-i18n\"","copyTmpFiles","namespace","\"runtime\"","ignore","\".tpl\""]},"operators":{"distinct":8,"total":51,"identifiers":["const","=","{}",":","... (spread)",".","()","[]"]}},"paramCount":0,"sloc":{"logical":31,"physical":39},"errors":[],"lineEnd":75,"lineStart":37,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.012,"difficulty":2,"effort":69.738,"length":11,"time":3.874,"vocabulary":9,"volume":34.869,"operands":{"distinct":5,"total":5,"identifiers":["specifiers","\"useI18n\"","\"locale\"","source","absoluteFilePath"]},"operators":{"distinct":4,"total":6,"identifiers":["[]","{}",":",","]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":82,"lineStart":77,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["absRuntimeFilePath","@@/"]},"operators":{"distinct":2,"total":2,"identifiers":["``","${}"]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":84,"lineStart":84,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.143,"cyclomaticDensity":1.758,"halstead":{"bugs":0.07,"difficulty":1.938,"effort":2866.357,"length":33.143,"time":159.242,"vocabulary":11.857,"volume":211.287,"operands":{"distinct":9.714,"total":17.571},"operators":{"distinct":2.143,"total":15.571}},"paramCount":0.143,"sloc":{"logical":9.286,"physical":12.286}},"methodAverage":{"cyclomatic":1.167,"cyclomaticDensity":56.76,"halstead":{"bugs":0.064,"difficulty":3.058,"effort":1174.28,"length":37.667,"time":65.238,"vocabulary":18.167,"volume":191.481,"operands":{"distinct":13.667,"total":20},"operators":{"distinct":4.5,"total":17.667}},"paramCount":0.167,"sloc":{"logical":10.5,"physical":21.333}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-locale/src/runtime/langUConfigMap.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0.385,"halstead":{"bugs":1.986,"difficulty":2.388,"effort":14227.504,"length":781,"time":790.417,"vocabulary":198,"volume":5958.528,"operands":{"distinct":196,"total":468,"identifiers":["\"ar-EG\"","lang","label","\"العربية\"","icon","\"🇪🇬\"","title","\"لغة\"","\"az-AZ\"","\"Azərbaycan dili\"","\"🇦🇿\"","\"Dil\"","\"bg-BG\"","\"Български език\"","\"🇧🇬\"","\"език\"","\"ca-ES\"","\"Catalá\"","\"🇨🇦\"","\"llengua\"","\"cs-CZ\"","\"Čeština\"","\"🇨🇿\"","\"Jazyk\"","\"da-DK\"","\"Dansk\"","\"🇩🇰\"","\"Sprog\"","\"de-DE\"","\"Deutsch\"","\"🇩🇪\"","\"Sprache\"","\"el-GR\"","\"Ελληνικά\"","\"🇬🇷\"","\"Γλώσσα\"","\"en-GB\"","\"English\"","\"🇬🇧\"","\"Language\"","\"en-US\"","\"🇺🇸\"","\"es-ES\"","\"Español\"","\"🇪🇸\"","\"Idioma\"","\"et-EE\"","\"Eesti\"","\"🇪🇪\"","\"Keel\"","\"fa-IR\"","\"فارسی\"","\"🇮🇷\"","\"زبان\"","\"fi-FI\"","\"Suomi\"","\"🇫🇮\"","\"Kieli\"","\"fr-BE\"","\"Français\"","\"🇧🇪\"","\"Langue\"","\"fr-FR\"","\"🇫🇷\"","\"ga-IE\"","\"Gaeilge\"","\"🇮🇪\"","\"Teanga\"","\"he-IL\"","\"עברית\"","\"🇮🇱\"","\"שפה\"","\"hi-IN\"","\"हिन्दी, हिंदी\"","\"🇮🇳\"","\"भाषा: हिन्दी\"","\"hr-HR\"","\"Hrvatski jezik\"","\"🇭🇷\"","\"Jezik\"","\"hu-HU\"","\"Magyar\"","\"🇭🇺\"","\"Nyelv\"","\"hy-AM\"","\"Հայերեն\"","\"🇦🇲\"","\"Լեզու\"","\"id-ID\"","\"Bahasa Indonesia\"","\"🇮🇩\"","\"Bahasa\"","\"it-IT\"","\"Italiano\"","\"🇮🇹\"","\"Linguaggio\"","\"is-IS\"","\"Íslenska\"","\"🇮🇸\"","\"Tungumál\"","\"ja-JP\"","\"日本語\"","\"🇯🇵\"","\"言語\"","\"ku-IQ\"","\"کوردی\"","\"🇮🇶\"","\"Ziman\"","\"kn-IN\"","\"zh-TW\"","\"ಕನ್ನಡ\"","\"ಭಾಷೆ\"","\"ko-KR\"","\"한국어\"","\"🇰🇷\"","\"언어\"","\"lv-LV\"","\"Latviešu valoda\"","\"🇱🇮\"","\"Kalba\"","\"mk-MK\"","\"македонски јазик\"","\"🇲🇰\"","\"Јазик\"","\"mn-MN\"","\"Монгол хэл\"","\"🇲🇳\"","\"Хэл\"","\"ms-MY\"","\"بهاس ملايو‎\"","\"🇲🇾\"","\"nb-NO\"","\"Norsk\"","\"🇳🇴\"","\"Språk\"","\"ne-NP\"","\"नेपाली\"","\"🇳🇵\"","\"भाषा\"","\"nl-BE\"","\"Vlaams\"","\"Taal\"","\"nl-NL\"","\"🇳🇱\"","\"pt-BR\"","\"Português\"","\"🇧🇷\"","\"Idiomas\"","\"pt-PT\"","\"🇵🇹\"","\"ro-RO\"","\"Română\"","\"🇷🇴\"","\"Limba\"","\"ru-RU\"","\"русский\"","\"🇷🇺\"","\"язык\"","\"sk-SK\"","\"Slovenčina\"","\"🇸🇰\"","\"sr-RS\"","\"српски језик\"","\"🇸🇷\"","\"Језик\"","\"sl-SI\"","\"Slovenščina\"","\"🇸🇱\"","\"sv-SE\"","\"Svenska\"","\"🇸🇪\"","\"ta-IN\"","\"தமிழ்\"","\"மொழி\"","\"th-TH\"","\"ไทย\"","\"🇹🇭\"","\"ภาษา\"","\"tr-TR\"","\"Türkçe\"","\"🇹🇷\"","\"uk-UA\"","\"Українська\"","\"🇺🇰\"","\"Мова\"","\"vi-VN\"","\"Tiếng Việt\"","\"🇻🇳\"","\"Ngôn ngữ\"","\"zh-CN\"","\"简体中文\"","\"🇨🇳\"","\"语言\"","\"繁体中文\"","\"🇭🇰\"","\"語言\""]},"operators":{"distinct":2,"total":313,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":260,"physical":315}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":315,"lineStart":1,"maintainability":28.194,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0.385,"halstead":{"bugs":1.986,"difficulty":2.388,"effort":14227.504,"length":781,"time":790.417,"vocabulary":198,"volume":5958.528,"operands":{"distinct":196,"total":468},"operators":{"distinct":2,"total":313}},"paramCount":0,"sloc":{"logical":260,"physical":315}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-locale/src/runtime/runtime.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.006,"difficulty":2,"effort":36.189,"length":7,"time":2.011,"vocabulary":6,"volume":18.095,"operands":{"distinct":3,"total":4,"identifiers":["onAppCreated","app","install"]},"operators":{"distinct":3,"total":3,"identifiers":["function","{}","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":6}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./core","type":"esm"}],"errors":[],"lineEnd":6,"lineStart":1,"maintainability":94.209,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["install","app"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":5,"lineStart":3,"name":"onAppCreated","paramNames":["app"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":18.095,"length":3.5,"time":1.005,"vocabulary":3,"volume":9.047,"operands":{"distinct":1.5,"total":2},"operators":{"distinct":1.5,"total":1.5}},"paramCount":0.5,"sloc":{"logical":1,"physical":3}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2},"operators":{"distinct":1,"total":1}},"paramCount":1,"sloc":{"logical":1,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-locale/src/runtime/views/SelectLang.vue","report":{"aggregate":{"cyclomatic":6,"cyclomaticDensity":18.75,"halstead":{"bugs":0.186,"difficulty":10,"effort":5574.115,"length":107,"time":309.673,"vocabulary":37,"volume":557.412,"operands":{"distinct":27,"total":54,"identifiers":["components","Dropdown","name","Menu","Item","GlobalOutlined","messages","locale","useI18n","selectedKeys","computed","value","configs","arr","Object","keys","sort","forEach","item","push","langUConfigMap","handleClick","key","window","localStorage","setItem","\"fes_locale\""]},"operators":{"distinct":10,"total":53,"identifiers":["{}",":",".","const","=","()","function=>","[]","||","return"]}},"paramCount":2,"sloc":{"logical":32,"physical":41}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"ant-design-vue/lib/dropdown","type":"esm"},{"line":3,"path":"ant-design-vue/lib/menu","type":"esm"},{"line":4,"path":"ant-design-vue/lib/dropdown/style/css","type":"esm"},{"line":5,"path":"ant-design-vue/lib/menu/style/css","type":"esm"},{"line":6,"path":"@ant-design/icons-vue","type":"esm"},{"line":7,"path":"vue-i18n","type":"esm"},{"line":8,"path":"vue","type":"esm"},{"line":9,"path":"../langUConfigMap","type":"esm"}],"errors":[],"lineEnd":41,"lineStart":1,"maintainability":68.274,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["locale","value"]},"operators":{"distinct":2,"total":2,"identifiers":["[]","."]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":20,"lineStart":20,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.027,"difficulty":3.938,"effort":323.051,"length":21,"time":17.947,"vocabulary":15,"volume":82.045,"operands":{"distinct":8,"total":9,"identifiers":["arr","Object","keys","messages","value","sort","forEach","item"]},"operators":{"distinct":7,"total":12,"identifiers":["const","=","[]","()",".","function=>","return"]}},"paramCount":0,"sloc":{"logical":6,"physical":9},"errors":[],"lineEnd":29,"lineStart":21,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":200,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4,"identifiers":["arr","push","langUConfigMap","item"]},"operators":{"distinct":5,"total":5,"identifiers":["()",".","||","[]","{}"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":27,"lineStart":25,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.014,"difficulty":1.714,"effort":74.032,"length":13,"time":4.113,"vocabulary":10,"volume":43.185,"operands":{"distinct":7,"total":8,"identifiers":["locale","value","key","window","localStorage","setItem","\"fes_locale\""]},"operators":{"distinct":3,"total":5,"identifiers":["=",".","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":33,"lineStart":30,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.2,"cyclomaticDensity":3.75,"halstead":{"bugs":0.037,"difficulty":2,"effort":1114.823,"length":21.4,"time":61.935,"vocabulary":7.4,"volume":111.482,"operands":{"distinct":5.4,"total":10.8},"operators":{"distinct":2,"total":10.6}},"paramCount":0.4,"sloc":{"logical":6.4,"physical":8.2}},"methodAverage":{"cyclomatic":1.25,"cyclomaticDensity":91.667,"halstead":{"bugs":0.013,"difficulty":2.288,"effort":119.101,"length":11.75,"time":6.617,"vocabulary":9.5,"volume":40.44,"operands":{"distinct":5.25,"total":5.75},"operators":{"distinct":4.25,"total":6}},"paramCount":0.5,"sloc":{"logical":2.5,"physical":4.25}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-locale/src/utils/index.js","report":{"aggregate":{"cyclomatic":8,"cyclomaticDensity":26.667,"halstead":{"bugs":0.21,"difficulty":10.263,"effort":6462.087,"length":111,"time":359.005,"vocabulary":51,"volume":629.639,"operands":{"distinct":38,"total":60,"identifiers":["getLocales","cwd","files","glob","sync","\"*.js\"","filter","file","endsWith","\".d.ts\"","\".test.js\"","\".test.jsx\"","map","fileName","locale","basename","\".js\"","message","join","require('","').default","getLocalesJSON","locales","JSON","stringify","null","2","replace","/\"message\": (\"(.+?)\")/g","global","m1","m2","/\\^/g","\"\"\"","\"message\": ","/\\\\r\\\\n/g","\"\r\n\"","/\\\\n/g"]},"operators":{"distinct":13,"total":51,"identifiers":["function","const","=","()",".","{}","function=>","&&","! (prefix)","return",":","``","${}"]}},"paramCount":7,"sloc":{"logical":30,"physical":34}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@fesjs/utils","type":"esm"},{"line":2,"path":"path","type":"esm"}],"errors":[],"lineEnd":34,"lineStart":1,"maintainability":70.621,"methods":[{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.031,"difficulty":4.278,"effort":393.556,"length":23,"time":21.864,"vocabulary":16,"volume":92,"operands":{"distinct":9,"total":11,"identifiers":["files","glob","sync","\"*.js\"","cwd","filter","file","map","fileName"]},"operators":{"distinct":7,"total":12,"identifiers":["const","=","()",".","{}","function=>","return"]}},"paramCount":1,"sloc":{"logical":8,"physical":19},"errors":[],"lineEnd":22,"lineStart":4,"name":"getLocales","paramNames":["cwd"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":75,"halstead":{"bugs":0.021,"difficulty":3.6,"effort":228.235,"length":20,"time":12.68,"vocabulary":9,"volume":63.399,"operands":{"distinct":5,"total":9,"identifiers":["file","endsWith","\".d.ts\"","\".test.js\"","\".test.jsx\""]},"operators":{"distinct":4,"total":11,"identifiers":["&&","! (prefix)","()","."]}},"paramCount":1,"sloc":{"logical":4,"physical":3},"errors":[],"lineEnd":12,"lineStart":10,"name":"","paramNames":["file"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.029,"difficulty":5.333,"effort":457.796,"length":21,"time":25.433,"vocabulary":17,"volume":85.837,"operands":{"distinct":9,"total":12,"identifiers":["locale","basename","fileName","\".js\"","message","join","cwd","require('","').default"]},"operators":{"distinct":8,"total":9,"identifiers":["const","=","()","return","{}",":","``","${}"]}},"paramCount":1,"sloc":{"logical":6,"physical":7},"errors":[],"lineEnd":19,"lineStart":13,"name":"","paramNames":["fileName"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.047,"difficulty":3.8,"effort":534.106,"length":32,"time":29.673,"vocabulary":21,"volume":140.554,"operands":{"distinct":15,"total":19,"identifiers":["locales","getLocales","cwd","JSON","stringify","null","2","replace","/\"message\": (\"(.+?)\")/g","global","m1","m2","/\\\\r\\\\n/g","\"\r\n\"","/\\\\n/g"]},"operators":{"distinct":6,"total":13,"identifiers":["const","=","()","return",".","function=>"]}},"paramCount":1,"sloc":{"logical":8,"physical":10},"errors":[],"lineEnd":33,"lineStart":24,"name":"getLocalesJSON","paramNames":["cwd"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2,"effort":57.059,"length":9,"time":3.17,"vocabulary":9,"volume":28.529,"operands":{"distinct":5,"total":5,"identifiers":["m2","replace","/\\^/g","\"\"\"","\"message\": "]},"operators":{"distinct":4,"total":4,"identifiers":["``","${}","()","."]}},"paramCount":3,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":29,"lineStart":29,"name":"","paramNames":["global","m1","m2"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.333,"cyclomaticDensity":4.444,"halstead":{"bugs":0.035,"difficulty":1.711,"effort":1077.014,"length":18.5,"time":59.834,"vocabulary":8.5,"volume":104.94,"operands":{"distinct":6.333,"total":10},"operators":{"distinct":2.167,"total":8.5}},"paramCount":1.167,"sloc":{"logical":5,"physical":5.667}},"methodAverage":{"cyclomatic":1.4,"cyclomaticDensity":33.333,"halstead":{"bugs":0.027,"difficulty":3.802,"effort":334.15,"length":21,"time":18.564,"vocabulary":14.4,"volume":82.064,"operands":{"distinct":8.6,"total":11.2},"operators":{"distinct":5.8,"total":9.8}},"paramCount":1.4,"sloc":{"logical":5.6,"physical":8}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-model/build.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4,"identifiers":["module","exports","copy","\"runtime\""]},"operators":{"distinct":5,"total":5,"identifiers":["=",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":84.899,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4},"operators":{"distinct":5,"total":5}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-model/src/index.js","report":{"aggregate":{"cyclomatic":10,"cyclomaticDensity":14.286,"halstead":{"bugs":0.483,"difficulty":14.119,"effort":20449.712,"length":234,"time":1136.095,"vocabulary":73,"volume":1448.419,"operands":{"distinct":59,"total":119,"identifiers":["namespace","\"plugin-model\"","api","paths","utils","Mustache","getModelDir","config","singular","\"model\"","\"models\"","getModelsPath","join","absSrcPath","getAllModels","srcModelsPath","lodash","uniq","getModels","absCoreFilePath","\"core.js\"","absRuntimeFilePath","\"runtime.js\"","absInitlaStateFilePath","\"models/initialState.js\"","register","key","\"addExtraModels\"","fn","absPath","winPath","absTmpPath","\"@@initialState\"","onGenerateFiles","files","additionalModels","applyPlugins","type","ApplyPluginsType","add","initialValue","tmpFiles","getTmpFile","writeTmpFile","path","content","render","readFileSync","__dirname","\"runtime/core.tpl\"","\"utf-8\"","\"runtime/runtime.tpl\"","\"runtime/models/initialState.tpl\"","addPluginExports","specifiers","\"useModel\"","source","addRuntimePlugin","@@/"]},"operators":{"distinct":14,"total":115,"identifiers":["const","=","function=>","{}",":","function","return",":?",".","()","[]","... (spread)","``","${}"]}},"paramCount":1,"sloc":{"logical":70,"physical":88}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"fs","type":"esm"},{"line":3,"path":"path","type":"esm"},{"line":4,"path":"@fesjs/utils","type":"esm"},{"line":5,"path":"./utils/getModels","type":"esm"},{"line":6,"path":"./utils/getTmpFile","type":"esm"}],"errors":[],"lineEnd":88,"lineStart":1,"maintainability":65.048,"methods":[{"cyclomatic":1,"cyclomaticDensity":4.348,"halstead":{"bugs":0.105,"difficulty":5.818,"effort":1827.148,"length":64,"time":101.508,"vocabulary":30,"volume":314.041,"operands":{"distinct":22,"total":32,"identifiers":["paths","utils","Mustache","api","getModelDir","getModelsPath","getAllModels","absCoreFilePath","join","namespace","\"core.js\"","absRuntimeFilePath","\"runtime.js\"","absInitlaStateFilePath","\"models/initialState.js\"","register","key","\"addExtraModels\"","fn","onGenerateFiles","addPluginExports","addRuntimePlugin"]},"operators":{"distinct":8,"total":32,"identifiers":["const","=","{}",":","function","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":23,"physical":78},"errors":[],"lineEnd":87,"lineStart":10,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":200,"halstead":{"bugs":0.009,"difficulty":1.5,"effort":40.5,"length":9,"time":2.25,"vocabulary":8,"volume":27,"operands":{"distinct":5,"total":5,"identifiers":["api","config","singular","\"model\"","\"models\""]},"operators":{"distinct":3,"total":4,"identifiers":["return",":?","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":18,"lineStart":16,"name":"getModelDir","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":33.688,"length":8,"time":1.872,"vocabulary":7,"volume":22.459,"operands":{"distinct":4,"total":4,"identifiers":["join","paths","absSrcPath","getModelDir"]},"operators":{"distinct":3,"total":4,"identifiers":["return","()","."]}},"paramCount":0,"sloc":{"logical":3,"physical":3},"errors":[],"lineEnd":22,"lineStart":20,"name":"getModelsPath","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.018,"difficulty":4.2,"effort":225.853,"length":15,"time":12.547,"vocabulary":12,"volume":53.774,"operands":{"distinct":5,"total":6,"identifiers":["srcModelsPath","getModelsPath","lodash","uniq","getModels"]},"operators":{"distinct":7,"total":9,"identifiers":["const","=","()","return",".","[]","... (spread)"]}},"paramCount":0,"sloc":{"logical":5,"physical":11},"errors":[],"lineEnd":34,"lineStart":24,"name":"getAllModels","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.019,"difficulty":2.5,"effort":138.766,"length":15,"time":7.709,"vocabulary":13,"volume":55.507,"operands":{"distinct":8,"total":8,"identifiers":["absPath","winPath","join","paths","absTmpPath","absInitlaStateFilePath","namespace","\"@@initialState\""]},"operators":{"distinct":5,"total":7,"identifiers":["[]","{}",":","()","."]}},"paramCount":0,"sloc":{"logical":5,"physical":4},"errors":[],"lineEnd":45,"lineStart":42,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":3.704,"halstead":{"bugs":0.182,"difficulty":7.333,"effort":4002.419,"length":104,"time":222.357,"vocabulary":38,"volume":545.784,"operands":{"distinct":30,"total":55,"identifiers":["files","getAllModels","additionalModels","api","applyPlugins","key","\"addExtraModels\"","type","ApplyPluginsType","add","initialValue","tmpFiles","getTmpFile","paths","absSrcPath","writeTmpFile","path","absCoreFilePath","content","Mustache","render","readFileSync","join","__dirname","\"runtime/core.tpl\"","\"utf-8\"","absRuntimeFilePath","\"runtime/runtime.tpl\"","absInitlaStateFilePath","\"runtime/models/initialState.tpl\""]},"operators":{"distinct":8,"total":49,"identifiers":["const","=","()",".","{}",":","[]","... (spread)"]}},"paramCount":0,"sloc":{"logical":27,"physical":30},"errors":[],"lineEnd":77,"lineStart":48,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.008,"difficulty":1.5,"effort":37.899,"length":9,"time":2.106,"vocabulary":7,"volume":25.266,"operands":{"distinct":4,"total":4,"identifiers":["specifiers","\"useModel\"","source","absCoreFilePath"]},"operators":{"distinct":3,"total":5,"identifiers":["[]","{}",":"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":84,"lineStart":79,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["absRuntimeFilePath","@@/"]},"operators":{"distinct":2,"total":2,"identifiers":["``","${}"]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":86,"lineStart":86,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.111,"cyclomaticDensity":1.587,"halstead":{"bugs":0.054,"difficulty":1.569,"effort":2272.19,"length":26,"time":126.233,"vocabulary":8.111,"volume":160.935,"operands":{"distinct":6.556,"total":13.222},"operators":{"distinct":1.556,"total":12.778}},"paramCount":0.111,"sloc":{"logical":7.778,"physical":9.778}},"methodAverage":{"cyclomatic":1.125,"cyclomaticDensity":51.84,"halstead":{"bugs":0.044,"difficulty":3.169,"effort":789.284,"length":28.5,"time":43.849,"vocabulary":14.875,"volume":131.479,"operands":{"distinct":10,"total":14.5},"operators":{"distinct":4.875,"total":14}},"paramCount":0.125,"sloc":{"logical":8.5,"physical":17}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-model/src/utils/getModels.js","report":{"aggregate":{"cyclomatic":6,"cyclomaticDensity":50,"halstead":{"bugs":0.073,"difficulty":9.429,"effort":2057.892,"length":47,"time":114.327,"vocabulary":25,"volume":218.261,"operands":{"distinct":14,"total":24,"identifiers":["getModels","cwd","pattern","files","glob","sync","\"**/*.{js,jsx}\"","filter","file","endsWith","\".d.ts\"","\".test.js\"","\".test.jsx\"","getValidFiles"]},"operators":{"distinct":11,"total":23,"identifiers":["function","const","=","()",".","||","{}","function=>","&&","! (prefix)","return"]}},"paramCount":3,"sloc":{"logical":12,"physical":17}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@fesjs/utils","type":"esm"},{"line":2,"path":".","type":"esm"}],"errors":[],"lineEnd":17,"lineStart":1,"maintainability":73.4,"methods":[{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.031,"difficulty":5.333,"effort":501.395,"length":23,"time":27.855,"vocabulary":17,"volume":94.012,"operands":{"distinct":9,"total":12,"identifiers":["files","glob","sync","pattern","\"**/*.{js,jsx}\"","cwd","filter","file","getValidFiles"]},"operators":{"distinct":8,"total":11,"identifiers":["const","=","()",".","||","{}","function=>","return"]}},"paramCount":2,"sloc":{"logical":7,"physical":13},"errors":[],"lineEnd":16,"lineStart":4,"name":"getModels","paramNames":["cwd","pattern"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":75,"halstead":{"bugs":0.021,"difficulty":3.6,"effort":228.235,"length":20,"time":12.68,"vocabulary":9,"volume":63.399,"operands":{"distinct":5,"total":9,"identifiers":["file","endsWith","\".d.ts\"","\".test.js\"","\".test.jsx\""]},"operators":{"distinct":4,"total":11,"identifiers":["&&","! (prefix)","()","."]}},"paramCount":1,"sloc":{"logical":4,"physical":3},"errors":[],"lineEnd":12,"lineStart":10,"name":"","paramNames":["file"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":16.667,"halstead":{"bugs":0.024,"difficulty":3.143,"effort":685.964,"length":15.667,"time":38.109,"vocabulary":8.333,"volume":72.754,"operands":{"distinct":4.667,"total":8},"operators":{"distinct":3.667,"total":7.667}},"paramCount":1,"sloc":{"logical":4,"physical":5.667}},"methodAverage":{"cyclomatic":2.5,"cyclomaticDensity":51.786,"halstead":{"bugs":0.026,"difficulty":4.467,"effort":364.815,"length":21.5,"time":20.268,"vocabulary":13,"volume":78.705,"operands":{"distinct":7,"total":10.5},"operators":{"distinct":6,"total":11}},"paramCount":1.5,"sloc":{"logical":5.5,"physical":8}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-model/src/utils/getTmpFile.js","report":{"aggregate":{"cyclomatic":10,"cyclomaticDensity":21.739,"halstead":{"bugs":0.357,"difficulty":18.778,"effort":20137.469,"length":191,"time":1118.748,"vocabulary":49,"volume":1072.41,"operands":{"distinct":36,"total":104,"identifiers":["getModels","files","absSrcPath","sortedModels","genModels","map","ele","namespace","replace","/'/g","\"\\'\"","importName","'","': ","join","\", \"","getExtraModels","models","extraModels","genExtraModels","exportName","getExtraImports","winPath","importPath","import { "," } from '","';","import "," from '","EOL","getTmpFile","extra","userImports","genImports","userModels","extraImports"]},"operators":{"distinct":13,"total":87,"identifiers":["function","const","=","()","return",".","function=>","``","${}","[]","||","if","{}"]}},"paramCount":12,"sloc":{"logical":46,"physical":54}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"os","type":"esm"},{"line":2,"path":"@fesjs/utils","type":"esm"},{"line":5,"path":"./index","type":"esm"}],"errors":[],"lineEnd":54,"lineStart":1,"maintainability":67.636,"methods":[{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.023,"difficulty":3.375,"effort":231.297,"length":18,"time":12.85,"vocabulary":14,"volume":68.532,"operands":{"distinct":8,"total":9,"identifiers":["sortedModels","genModels","files","absSrcPath","map","ele","join","\", \""]},"operators":{"distinct":6,"total":9,"identifiers":["const","=","()","return",".","function=>"]}},"paramCount":2,"sloc":{"logical":6,"physical":6},"errors":[],"lineEnd":12,"lineStart":7,"name":"getModels","paramNames":["files","absSrcPath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.019,"difficulty":2.25,"effort":129.059,"length":16,"time":7.17,"vocabulary":12,"volume":57.359,"operands":{"distinct":8,"total":9,"identifiers":["ele","namespace","replace","/'/g","\"\\'\"","importName","'","': "]},"operators":{"distinct":4,"total":7,"identifiers":["``","${}","()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":10,"lineStart":10,"name":"","paramNames":["ele"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.023,"difficulty":3.375,"effort":231.297,"length":18,"time":12.85,"vocabulary":14,"volume":68.532,"operands":{"distinct":8,"total":9,"identifiers":["extraModels","genExtraModels","models","absSrcPath","map","ele","join","\", \""]},"operators":{"distinct":6,"total":9,"identifiers":["const","=","()","return",".","function=>"]}},"paramCount":2,"sloc":{"logical":6,"physical":6},"errors":[],"lineEnd":19,"lineStart":14,"name":"getExtraModels","paramNames":["models","absSrcPath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":200,"halstead":{"bugs":0.017,"difficulty":2.667,"effort":132.877,"length":15,"time":7.382,"vocabulary":10,"volume":49.829,"operands":{"distinct":6,"total":8,"identifiers":["ele","namespace","exportName","importName","'","': "]},"operators":{"distinct":4,"total":7,"identifiers":["``","${}",".","||"]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":17,"lineStart":17,"name":"","paramNames":["ele"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.023,"difficulty":3.375,"effort":231.297,"length":18,"time":12.85,"vocabulary":14,"volume":68.532,"operands":{"distinct":8,"total":9,"identifiers":["extraModels","genExtraModels","models","absSrcPath","map","ele","join","EOL"]},"operators":{"distinct":6,"total":9,"identifiers":["const","=","()","return",".","function=>"]}},"paramCount":2,"sloc":{"logical":6,"physical":15},"errors":[],"lineEnd":35,"lineStart":21,"name":"getExtraImports","paramNames":["models","absSrcPath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.062,"difficulty":5.538,"effort":1035.187,"length":44,"time":57.51,"vocabulary":19,"volume":186.909,"operands":{"distinct":13,"total":24,"identifiers":["ele","exportName","winPath","importPath","replace","/'/g","\"\\'\"","import { "," } from '","';","importName","import "," from '"]},"operators":{"distinct":6,"total":20,"identifiers":["if",".","return","``","${}","()"]}},"paramCount":1,"sloc":{"logical":7,"physical":10},"errors":[],"lineEnd":33,"lineStart":24,"name":"","paramNames":["ele"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":7.692,"halstead":{"bugs":0.049,"difficulty":5.227,"effort":773.636,"length":37,"time":42.98,"vocabulary":16,"volume":148,"operands":{"distinct":11,"total":23,"identifiers":["userImports","genImports","files","userModels","getModels","absSrcPath","extraImports","getExtraImports","extra","extraModels","getExtraModels"]},"operators":{"distinct":5,"total":14,"identifiers":["const","=","()","return","{}"]}},"paramCount":3,"sloc":{"logical":13,"physical":17},"errors":[],"lineEnd":53,"lineStart":37,"name":"","paramNames":["files","extra","absSrcPath"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.25,"cyclomaticDensity":2.717,"halstead":{"bugs":0.045,"difficulty":2.347,"effort":2517.184,"length":23.875,"time":139.844,"vocabulary":6.125,"volume":134.051,"operands":{"distinct":4.5,"total":13},"operators":{"distinct":1.625,"total":10.875}},"paramCount":1.5,"sloc":{"logical":5.75,"physical":6.75}},"methodAverage":{"cyclomatic":1.286,"cyclomaticDensity":48.038,"halstead":{"bugs":0.031,"difficulty":3.687,"effort":394.95,"length":23.714,"time":21.942,"vocabulary":14.143,"volume":92.528,"operands":{"distinct":8.857,"total":13},"operators":{"distinct":5.286,"total":10.714}},"paramCount":1.714,"sloc":{"logical":5.857,"physical":8}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-model/src/utils/index.js","report":{"aggregate":{"cyclomatic":53,"cyclomaticDensity":22.845,"halstead":{"bugs":2.243,"difficulty":49.205,"effort":331062.343,"length":900,"time":18392.352,"vocabulary":178,"volume":6728.16,"operands":{"distinct":146,"total":449,"identifiers":["getFileName","name","fileName","path","basename","extname","endsWith","\".model\"","\".models\"","split","\".\"","slice","0","1","join","getName","absPath","absSrcPath","relativePath","relative","dirList","dirname","sep","validDirs","filter","ele","\"src\"","\"page\"","\"pages\"","\"model\"","\"models\"","includes","length",".","e","getPath","info","parse","winPath","dir","replace","/'/","\"'\"","genImports","imports","map","index","import model"," from \"","\";","EOL","genExtraModels","models","\"string\"","importPath","importName","namespace","exportName","sort","ns","final","forEach","item","use","itemGroup","cannotUse","i","v","push","errorList","Error","\", \"","Circular dependencies: "," can't use ","intersection","finalIndex","indexOf","concat","Set","genModels","contents","content","readFileSync","toString","allUserModel","checkDuplicates","list","size","raw","ast","parser","sourceType","\"module\"","plugins","\"jsx\"","\"typescript\"","traverse","astPath","isIdentifier","\"useModel\"","parentPath","node","arguments","value","model","\"plugin-model: models 中包含重复的 namespace!\"","a","b","isValidHook","filePath","encoding","\"utf-8\"","\"classProperties\"","\"dynamicImport\"","\"exportDefaultFrom\"","\"exportNamespaceFrom\"","\"functionBind\"","\"nullishCoalescingOperator\"","\"objectRestSpread\"","\"optionalChaining\"","\"decorators-legacy\"","Boolean","valid","false","identifierName","\"\"","p","isExportDefaultDeclaration","type","declaration","\"ArrowFunctionExpression\"","\"FunctionDeclaration\"","true","\"Identifier\"","console","error","program","body","id","\"VariableDeclaration\"","declarations","init","getValidFiles","files","modelsDir","file"]},"operators":{"distinct":32,"total":451,"identifiers":["const","=","function=>","()",".","if","||","return","- (prefix)","try","! (prefix)","[]",",","&&","``","${}","catch","===","typeof (prefix)","{}",":","let","... (spread)","for","<=","+=","throw","else","+","new","!==","-"]}},"paramCount":33,"sloc":{"logical":232,"physical":226}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"path","type":"esm"},{"line":2,"path":"os","type":"esm"},{"line":3,"path":"fs","type":"esm"},{"line":4,"path":"@fesjs/utils","type":"esm"}],"errors":[],"lineEnd":226,"lineStart":1,"maintainability":59.945,"methods":[{"cyclomatic":3,"cyclomaticDensity":27.273,"halstead":{"bugs":0.064,"difficulty":6.286,"effort":1205.321,"length":43,"time":66.962,"vocabulary":22,"volume":191.756,"operands":{"distinct":14,"total":22,"identifiers":["fileName","path","basename","name","extname","endsWith","\".model\"","\".models\"","split","\".\"","slice","0","1","join"]},"operators":{"distinct":8,"total":21,"identifiers":["const","=","()",".","if","||","return","- (prefix)"]}},"paramCount":1,"sloc":{"logical":11,"physical":7},"errors":[],"lineEnd":12,"lineStart":6,"name":"","paramNames":["name"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":16.667,"halstead":{"bugs":0.101,"difficulty":10,"effort":3042.272,"length":62,"time":169.015,"vocabulary":30,"volume":304.227,"operands":{"distinct":18,"total":30,"identifiers":["relativePath","path","relative","absSrcPath","absPath","dirList","dirname","split","sep","validDirs","filter","ele","length","join","\".\"","getFileName",".","e"]},"operators":{"distinct":12,"total":32,"identifiers":["const","=","()",".","try","function=>","if","&&","return","``","${}","catch"]}},"paramCount":2,"sloc":{"logical":18,"physical":16},"errors":[],"lineEnd":29,"lineStart":14,"name":"","paramNames":["absPath","absSrcPath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.018,"difficulty":2.5,"effort":134.436,"length":15,"time":7.469,"vocabulary":12,"volume":53.774,"operands":{"distinct":7,"total":7,"identifiers":["\"src\"","\"page\"","\"pages\"","\"model\"","\"models\"","includes","ele"]},"operators":{"distinct":5,"total":8,"identifiers":["! (prefix)","()",".","[]",","]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":20,"lineStart":20,"name":"","paramNames":["ele"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.035,"difficulty":3.182,"effort":330.909,"length":26,"time":18.384,"vocabulary":16,"volume":104,"operands":{"distinct":11,"total":14,"identifiers":["info","path","parse","absPath","winPath","join","dir","name","replace","/'/","\"'\""]},"operators":{"distinct":5,"total":12,"identifiers":["const","=","()",".","return"]}},"paramCount":1,"sloc":{"logical":6,"physical":4},"errors":[],"lineEnd":34,"lineStart":31,"name":"","paramNames":["absPath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.012,"difficulty":1.5,"effort":52.304,"length":11,"time":2.906,"vocabulary":9,"volume":34.869,"operands":{"distinct":6,"total":6,"identifiers":["imports","map","ele","index","join","EOL"]},"operators":{"distinct":3,"total":5,"identifiers":["()",".","function=>"]}},"paramCount":1,"sloc":{"logical":4,"physical":5},"errors":[],"lineEnd":40,"lineStart":36,"name":"","paramNames":["imports"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.013,"difficulty":1.5,"effort":59.795,"length":12,"time":3.322,"vocabulary":10,"volume":39.863,"operands":{"distinct":7,"total":7,"identifiers":["index","winPath","getPath","ele","import model"," from \"","\";"]},"operators":{"distinct":3,"total":5,"identifiers":["``","${}","()"]}},"paramCount":2,"sloc":{"logical":3,"physical":1},"errors":[],"lineEnd":38,"lineStart":38,"name":"","paramNames":["ele","index"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["models","map","ele"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","function=>"]}},"paramCount":2,"sloc":{"logical":3,"physical":15},"errors":[],"lineEnd":56,"lineStart":42,"name":"","paramNames":["models","absSrcPath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":11.765,"halstead":{"bugs":0.099,"difficulty":10.2,"effort":3039.83,"length":65,"time":168.879,"vocabulary":24,"volume":298.023,"operands":{"distinct":15,"total":34,"identifiers":["ele","\"string\"","importPath","getPath","importName","path","basename","split","\".\"","0","namespace","getName","absSrcPath","absPath","exportName"]},"operators":{"distinct":9,"total":31,"identifiers":["if","===","typeof (prefix)","return","{}",":","()","[]","."]}},"paramCount":1,"sloc":{"logical":17,"physical":15},"errors":[],"lineEnd":56,"lineStart":42,"name":"","paramNames":["ele"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.022,"difficulty":5.25,"effort":348.69,"length":17,"time":19.372,"vocabulary":15,"volume":66.417,"operands":{"distinct":6,"total":7,"identifiers":["final","ns","forEach","item","index","Set"]},"operators":{"distinct":9,"total":10,"identifiers":["let","=","[]","()",".","function=>","return","... (spread)","new"]}},"paramCount":1,"sloc":{"logical":4,"physical":46},"errors":[],"lineEnd":103,"lineStart":58,"name":"","paramNames":["ns"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":9,"cyclomaticDensity":26.471,"halstead":{"bugs":0.328,"difficulty":33.444,"effort":32874.33,"length":176,"time":1826.352,"vocabulary":48,"volume":982.953,"operands":{"distinct":27,"total":86,"identifiers":["item","use","length","itemGroup","namespace","cannotUse","i","0","index","1","ns","filter","v","includes","push","errorList","Error","join","\", \"","Circular dependencies: "," can't use ","intersection","final","finalIndex","indexOf","slice","concat"]},"operators":{"distinct":21,"total":90,"identifiers":["if","&&",".","const","=","[]",",","... (spread)","for","let","<=","+=","()","function=>","! (prefix)","- (prefix)","throw","``","${}","else","+"]}},"paramCount":2,"sloc":{"logical":34,"physical":41},"errors":[],"lineEnd":100,"lineStart":60,"name":"","paramNames":["item","index"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["cannotUse","includes","v"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":66,"lineStart":66,"name":"","paramNames":["v"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["cannotUse","includes","v"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":74,"lineStart":74,"name":"","paramNames":["v"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["itemGroup","includes","v"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":83,"lineStart":83,"name":"","paramNames":["v"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":9.091,"halstead":{"bugs":0.092,"difficulty":7,"effort":1925.684,"length":60,"time":106.982,"vocabulary":24,"volume":275.098,"operands":{"distinct":16,"total":28,"identifiers":["contents","imports","map","absPath","allUserModel","checkDuplicates","list","raw","ele","index","models","sort","Error","\"plugin-model: models 中包含重复的 namespace!\"","a","b"]},"operators":{"distinct":8,"total":32,"identifiers":["const","=","()",".","function=>","if","throw","return"]}},"paramCount":2,"sloc":{"logical":22,"physical":45},"errors":[],"lineEnd":149,"lineStart":105,"name":"","paramNames":["imports","absSrcPath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.017,"difficulty":2.286,"effort":118.609,"length":15,"time":6.589,"vocabulary":11,"volume":51.891,"operands":{"distinct":7,"total":8,"identifiers":["namespace","getName","absPath","absSrcPath","content","readFileSync","toString"]},"operators":{"distinct":4,"total":7,"identifiers":["{}",":","()","."]}},"paramCount":1,"sloc":{"logical":6,"physical":4},"errors":[],"lineEnd":109,"lineStart":106,"name":"","paramNames":["absPath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":0.5,"effort":4,"length":4,"time":0.222,"vocabulary":4,"volume":8,"operands":{"distinct":3,"total":3,"identifiers":["getName","absPath","absSrcPath"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":110,"lineStart":110,"name":"","paramNames":["absPath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.008,"difficulty":1.875,"effort":47.374,"length":9,"time":2.632,"vocabulary":7,"volume":25.266,"operands":{"distinct":4,"total":5,"identifiers":["Set","list","size","length"]},"operators":{"distinct":3,"total":4,"identifiers":["!==",".","new"]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":112,"lineStart":112,"name":"","paramNames":["list"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":15,"halstead":{"bugs":0.147,"difficulty":9.333,"effort":4127.33,"length":81,"time":229.296,"vocabulary":44,"volume":442.214,"operands":{"distinct":30,"total":40,"identifiers":["ast","parser","parse","ele","content","sourceType","\"module\"","plugins","\"jsx\"","\"typescript\"","use","traverse","astPath","isIdentifier","name","\"useModel\"","ns","parentPath","node","arguments","0","value","allUserModel","includes","push","e","namespace","importName","index","model"]},"operators":{"distinct":14,"total":41,"identifiers":["const","=","()",".","{}",":","[]",",","if","try","catch","return","``","${}"]}},"paramCount":2,"sloc":{"logical":20,"physical":26},"errors":[],"lineEnd":139,"lineStart":114,"name":"","paramNames":["ele","index"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["ele","namespace"]},"operators":{"distinct":1,"total":1,"identifiers":["."]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":143,"lineStart":143,"name":"","paramNames":["ele"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.015,"difficulty":2.4,"effort":108,"length":15,"time":6,"vocabulary":8,"volume":45,"operands":{"distinct":5,"total":8,"identifiers":["models","indexOf","a","namespace","b"]},"operators":{"distinct":3,"total":7,"identifiers":["-","()","."]}},"paramCount":2,"sloc":{"logical":3,"physical":1},"errors":[],"lineEnd":147,"lineStart":147,"name":"","paramNames":["a","b"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":18.75,"halstead":{"bugs":0.258,"difficulty":12.278,"effort":9503.559,"length":130,"time":527.975,"vocabulary":62,"volume":774.046,"operands":{"distinct":45,"total":65,"identifiers":["content","readFileSync","filePath","encoding","\"utf-8\"","toString","ast","parser","parse","sourceType","\"module\"","plugins","\"classProperties\"","\"dynamicImport\"","\"exportDefaultFrom\"","\"exportNamespaceFrom\"","\"functionBind\"","\"nullishCoalescingOperator\"","\"objectRestSpread\"","\"optionalChaining\"","\"decorators-legacy\"","filter","Boolean","valid","false","identifierName","\"\"","traverse","p","isExportDefaultDeclaration","type","node","declaration","\"ArrowFunctionExpression\"","\"FunctionDeclaration\"","true","\"Identifier\"","name","e","console","error","program","body","forEach","ele"]},"operators":{"distinct":17,"total":65,"identifiers":["const","=","()",".","{}",":","[]",",","let","if","try","else","||","===","catch","function=>","return"]}},"paramCount":1,"sloc":{"logical":32,"physical":64},"errors":[],"lineEnd":214,"lineStart":151,"name":"","paramNames":["filePath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":100,"halstead":{"bugs":0.069,"difficulty":6,"effort":1248.891,"length":49,"time":69.383,"vocabulary":19,"volume":208.148,"operands":{"distinct":13,"total":26,"identifiers":["ele","type","\"FunctionDeclaration\"","id","name","identifierName","valid","true","\"VariableDeclaration\"","declarations","0","init","\"ArrowFunctionExpression\""]},"operators":{"distinct":6,"total":23,"identifiers":["if","===",".","=","&&","[]"]}},"paramCount":1,"sloc":{"logical":6,"physical":16},"errors":[],"lineEnd":207,"lineStart":192,"name":"","paramNames":["ele"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.011,"difficulty":1.5,"effort":49.5,"length":11,"time":2.75,"vocabulary":8,"volume":33,"operands":{"distinct":5,"total":5,"identifiers":["files","map","file","filter","ele"]},"operators":{"distinct":3,"total":6,"identifiers":["()",".","function=>"]}},"paramCount":2,"sloc":{"logical":5,"physical":10},"errors":[],"lineEnd":225,"lineStart":216,"name":"","paramNames":["files","modelsDir"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.027,"difficulty":4.125,"effort":329.812,"length":21,"time":18.323,"vocabulary":14,"volume":79.954,"operands":{"distinct":8,"total":11,"identifiers":["filePath","path","join","modelsDir","file","valid","isValidHook","\"\""]},"operators":{"distinct":6,"total":10,"identifiers":["const","=","()",".","if","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":8},"errors":[],"lineEnd":224,"lineStart":217,"name":"","paramNames":["file"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1.5,"length":3,"time":0.083,"vocabulary":2,"volume":3,"operands":{"distinct":1,"total":1,"identifiers":["ele"]},"operators":{"distinct":1,"total":2,"identifiers":["! (prefix)"]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":225,"lineStart":225,"name":"","paramNames":["ele"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.038,"cyclomaticDensity":0.879,"halstead":{"bugs":0.086,"difficulty":1.893,"effort":12733.167,"length":34.615,"time":707.398,"vocabulary":6.846,"volume":258.775,"operands":{"distinct":5.615,"total":17.269},"operators":{"distinct":1.231,"total":17.346}},"paramCount":1.269,"sloc":{"logical":8.923,"physical":8.692}},"methodAverage":{"cyclomatic":2.08,"cyclomaticDensity":40.277,"halstead":{"bugs":0.054,"difficulty":5.066,"effort":2344.505,"length":33.96,"time":130.25,"vocabulary":16.52,"volume":163.064,"operands":{"distinct":10.48,"total":17.08},"operators":{"distinct":6.04,"total":16.88}},"paramCount":1.32,"sloc":{"logical":8.56,"physical":13.28}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-monaco-editor/build.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4,"identifiers":["module","exports","copy","\"runtime\""]},"operators":{"distinct":5,"total":5,"identifiers":["=",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":84.899,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4},"operators":{"distinct":5,"total":5}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-monaco-editor/src/index.js","report":{"aggregate":{"cyclomatic":8,"cyclomaticDensity":9.639,"halstead":{"bugs":0.574,"difficulty":13.886,"effort":23897.49,"length":273,"time":1327.638,"vocabulary":79,"volume":1720.932,"operands":{"distinct":66,"total":141,"identifiers":["namespace","\"plugin-monaco-editor\"","api","utils","Mustache","describe","key","\"monacoEditor\"","config","joi","object","keys","filename","string","publicPath","languages","array","features","globalAPI","boolean","default","absoluteFilePath","join","\"core.js\"","absRuntimeFilePath","\"runtime.js\"","absLoaderFilePath","\"loader.js\"","absEditorFilePath","\"editor.vue\"","onGenerateFiles","writeTmpFile","path","content","render","readFileSync","__dirname","\"runtime/core.tpl\"","\"utf-8\"","\"runtime/runtime.tpl\"","\"runtime/loader.tpl\"","MONACO_EDITOR","resolvePkg","\"monaco-editor\"","\"runtime/editor.tpl\"","LODASH_ES","\"lodash-es\"","copyTmpFiles","\"runtime\"","ignore","\".tpl\"","addPluginExports","specifiers","\"monaco\"","\"MonacoEditor\"","source","addRuntimePluginKey","addRuntimePlugin","@@/","chainWebpack","webpackConfig","plugin","use","require","\"monaco-editor-webpack-plugin\"","monacoEditor"]},"operators":{"distinct":13,"total":132,"identifiers":["const","=","function=>","{}",":","()",".","return","[]",",","``","${}","||"]}},"paramCount":2,"sloc":{"logical":83,"physical":101}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"fs","type":"esm"},{"line":2,"path":"path","type":"esm"},{"line":3,"path":"@fesjs/utils","type":"esm"},{"line":95,"path":"monaco-editor-webpack-plugin","type":"cjs"}],"errors":[],"lineEnd":101,"lineStart":1,"maintainability":60.223,"methods":[{"cyclomatic":1,"cyclomaticDensity":2.564,"halstead":{"bugs":0.212,"difficulty":6.4,"effort":4063.187,"length":117,"time":225.733,"vocabulary":43,"volume":634.873,"operands":{"distinct":35,"total":56,"identifiers":["utils","Mustache","api","describe","key","\"monacoEditor\"","config","joi","object","keys","filename","string","publicPath","languages","array","features","globalAPI","boolean","default","absoluteFilePath","join","namespace","\"core.js\"","absRuntimeFilePath","\"runtime.js\"","absLoaderFilePath","\"loader.js\"","absEditorFilePath","\"editor.vue\"","onGenerateFiles","addPluginExports","addRuntimePluginKey","addRuntimePlugin","chainWebpack","webpackConfig"]},"operators":{"distinct":8,"total":61,"identifiers":["const","=","{}",":","()",".","return","function=>"]}},"paramCount":1,"sloc":{"logical":39,"physical":94},"errors":[],"lineEnd":100,"lineStart":7,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":3.03,"halstead":{"bugs":0.192,"difficulty":5.714,"effort":3286.062,"length":114,"time":182.559,"vocabulary":33,"volume":575.061,"operands":{"distinct":28,"total":64,"identifiers":["api","writeTmpFile","path","absoluteFilePath","content","Mustache","render","readFileSync","join","__dirname","\"runtime/core.tpl\"","\"utf-8\"","absRuntimeFilePath","\"runtime/runtime.tpl\"","absLoaderFilePath","\"runtime/loader.tpl\"","MONACO_EDITOR","resolvePkg","\"monaco-editor\"","absEditorFilePath","\"runtime/editor.tpl\"","LODASH_ES","\"lodash-es\"","copyTmpFiles","namespace","\"runtime\"","ignore","\".tpl\""]},"operators":{"distinct":5,"total":50,"identifiers":["()",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":33,"physical":44},"errors":[],"lineEnd":79,"lineStart":36,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.012,"difficulty":2,"effort":69.738,"length":11,"time":3.874,"vocabulary":9,"volume":34.869,"operands":{"distinct":5,"total":5,"identifiers":["specifiers","\"monaco\"","\"MonacoEditor\"","source","absoluteFilePath"]},"operators":{"distinct":4,"total":6,"identifiers":["[]","{}",":",","]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":86,"lineStart":81,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":1,"total":1,"identifiers":["\"monacoEditor\""]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":88,"lineStart":88,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["absRuntimeFilePath","@@/"]},"operators":{"distinct":2,"total":2,"identifiers":["``","${}"]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":90,"lineStart":90,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.026,"difficulty":3.333,"effort":260.459,"length":20,"time":14.47,"vocabulary":15,"volume":78.138,"operands":{"distinct":9,"total":10,"identifiers":["webpackConfig","plugin","\"monaco-editor\"","use","require","\"monaco-editor-webpack-plugin\"","api","config","monacoEditor"]},"operators":{"distinct":6,"total":10,"identifiers":["()",".","[]","||","{}","return"]}},"paramCount":1,"sloc":{"logical":4,"physical":8},"errors":[],"lineEnd":99,"lineStart":92,"name":"","paramNames":["webpackConfig"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.143,"cyclomaticDensity":1.377,"halstead":{"bugs":0.082,"difficulty":1.984,"effort":3413.927,"length":39,"time":189.663,"vocabulary":11.286,"volume":245.847,"operands":{"distinct":9.429,"total":20.143},"operators":{"distinct":1.857,"total":18.857}},"paramCount":0.286,"sloc":{"logical":11.857,"physical":14.429}},"methodAverage":{"cyclomatic":1.167,"cyclomaticDensity":48.155,"halstead":{"bugs":0.074,"difficulty":3.075,"effort":1281.241,"length":44.5,"time":71.18,"vocabulary":17.5,"volume":221.823,"operands":{"distinct":13.333,"total":23},"operators":{"distinct":4.167,"total":21.5}},"paramCount":0.333,"sloc":{"logical":13.5,"physical":25.667}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-monaco-editor/src/runtime/theme/default.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":1.667,"halstead":{"bugs":0.461,"difficulty":5.758,"effort":7956.805,"length":227,"time":442.045,"vocabulary":68,"volume":1381.854,"operands":{"distinct":62,"total":119,"identifiers":["monaco","editor","defineTheme","\"defaultTheme\"","base","\"vs\"","inherit","true","rules","foreground","\"c41a16\"","token","\"string\"","\"1c00cf\"","\"constant.numeric\"","\"aa0d91\"","\"keyword\"","\"000000\"","\"keyword.operator\"","\"constant.language\"","\"990000\"","\"support.class.exception\"","\"entity.name.function\"","fontStyle","\"bold underline\"","\"entity.name.type\"","\"italic\"","\"variable.parameter\"","\"007400\"","\"comment\"","\"ff0000\"","\"invalid\"","background","\"e71a1100\"","\"invalid.deprecated.trailing-whitespace\"","\"fafafafc\"","\"text source\"","\"meta.tag\"","\"declaration.tag\"","\"bold\"","\"support\"","\"storage\"","\"entity.name.section\"","\"entity.name.function.frame\"","\"333333\"","\"meta.tag.preprocessor.xml\"","\"994500\"","\"entity.other.attribute-name\"","\"881280\"","\"entity.name.tag\"","colors","\"editor.foreground\"","\"#000000\"","\"editor.background\"","\"#FFFFFF\"","\"editor.selectionBackground\"","\"#BAD6FD\"","\"editor.lineHighlightBackground\"","\"#0000001A\"","\"editorCursor.foreground\"","\"editorWhitespace.foreground\"","\"#B3B3B3F4\""]},"operators":{"distinct":6,"total":108,"identifiers":["{}","()",".",":","[]",","]}},"paramCount":0,"sloc":{"logical":60,"physical":112}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":112,"lineStart":1,"maintainability":43.248,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":1.667,"halstead":{"bugs":0.461,"difficulty":5.758,"effort":7956.805,"length":227,"time":442.045,"vocabulary":68,"volume":1381.854,"operands":{"distinct":62,"total":119},"operators":{"distinct":6,"total":108}},"paramCount":0,"sloc":{"logical":60,"physical":112}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-qiankun/build.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4,"identifiers":["module","exports","copy","\"runtime\""]},"operators":{"distinct":5,"total":5,"identifiers":["=",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":84.899,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4},"operators":{"distinct":5,"total":5}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-qiankun/src/constants.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.018,"difficulty":1,"effort":53.151,"length":16,"time":2.953,"vocabulary":10,"volume":53.151,"operands":{"distinct":8,"total":8,"identifiers":["defaultMainRootId","\"root-master\"","defaultHistoryType","\"hash\"","qiankunStateForMicroModelNamespace","\"qiankunStateForMicro\"","qiankunStateFromMainModelNamespace","\"qiankunStateFromMain\""]},"operators":{"distinct":2,"total":8,"identifiers":["const","="]}},"paramCount":0,"sloc":{"logical":4,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":78.92,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.018,"difficulty":1,"effort":53.151,"length":16,"time":2.953,"vocabulary":10,"volume":53.151,"operands":{"distinct":8,"total":8},"operators":{"distinct":2,"total":8}},"paramCount":0,"sloc":{"logical":4,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-qiankun/src/index.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":16.667,"halstead":{"bugs":0.087,"difficulty":6.75,"effort":1764.064,"length":57,"time":98.004,"vocabulary":24,"volume":261.343,"operands":{"distinct":16,"total":27,"identifiers":["api","describe","key","\"qiankun\"","config","joi","object","keys","micro","main","addRuntimePluginKey","registerPlugins","require","resolve","\"./main\"","\"./micro\""]},"operators":{"distinct":8,"total":30,"identifiers":["function=>","()",".","{}",":","return","[]",","]}},"paramCount":1,"sloc":{"logical":18,"physical":21}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":21,"lineStart":1,"maintainability":70.272,"methods":[{"cyclomatic":1,"cyclomaticDensity":6.25,"halstead":{"bugs":0.083,"difficulty":6.25,"effort":1547.425,"length":54,"time":85.968,"vocabulary":24,"volume":247.588,"operands":{"distinct":16,"total":25,"identifiers":["api","describe","key","\"qiankun\"","config","joi","object","keys","micro","main","addRuntimePluginKey","registerPlugins","require","resolve","\"./main\"","\"./micro\""]},"operators":{"distinct":8,"total":29,"identifiers":["()",".","{}",":","return","function=>","[]",","]}},"paramCount":1,"sloc":{"logical":16,"physical":20},"errors":[],"lineEnd":20,"lineStart":1,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":1,"total":1,"identifiers":["\"qiankun\""]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":14,"lineStart":14,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":5.556,"halstead":{"bugs":0.029,"difficulty":2.25,"effort":588.021,"length":19,"time":32.668,"vocabulary":8,"volume":87.114,"operands":{"distinct":5.333,"total":9},"operators":{"distinct":2.667,"total":10}},"paramCount":0.333,"sloc":{"logical":6,"physical":7}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":53.125,"halstead":{"bugs":0.041,"difficulty":3.125,"effort":773.712,"length":27.5,"time":42.984,"vocabulary":12.5,"volume":123.794,"operands":{"distinct":8.5,"total":13},"operators":{"distinct":4,"total":14.5}},"paramCount":0.5,"sloc":{"logical":8.5,"physical":10.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-qiankun/src/main/index.js","report":{"aggregate":{"cyclomatic":13,"cyclomaticDensity":14.444,"halstead":{"bugs":0.685,"difficulty":18.667,"effort":38343.186,"length":318,"time":2130.177,"vocabulary":88,"volume":2054.099,"operands":{"distinct":72,"total":168,"identifiers":["namespace","\"plugin-qiankun/main\"","isMasterEnable","api","userConfig","qiankun","main","process","env","INITIAL_QIANKUN_MAIN_OPTIONS","utils","Mustache","winPath","describe","enableBy","modifyDefaultConfig","config","mountElementId","defaultMainRootId","modifyRoutes","absMicroAppPath","join","\"MicroApp.js\"","absMicroAppWithMemoHistoryPath","\"MicroAppWithMemoHistory.js\"","absRuntimePath","\"runtime.js\"","absMasterOptionsPath","\"masterOptions.js\"","absGetMicroAppRouteCompPath","\"getMicroAppRouteComponent.js\"","onGenerateFiles","HAS_PLUGIN_MODEL","hasPlugins","\"@fesjs/plugin-model\"","writeTmpFile","path","content","render","readFileSync","__dirname","\"runtime/MicroApp.tpl\"","\"utf-8\"","qiankunStateForMicroModelNamespace","existsSync","paths","absSrcPath","\"models/qiankunStateForMicro.js\"","QIANKUN","resolvePkg","\"qiankun\"","LODASH_ES","\"lodash-es\"","\"runtime/MicroAppWithMemoHistory.tpl\"","\"runtime/runtime.tpl\"","\"runtime/getMicroAppRouteComponent.tpl\"","options","masterHistoryType","router","mode","defaultHistoryType","base","JSON","stringify","\n let options = ",";\n export const getMasterOptions = () => options;\n export const setMasterOptions = (newOpts) => options = ({ ...options, ...newOpts });\n ","addPluginExports","specifiers","\"MicroApp\"","source","\"MicroAppWithMemoHistory\"","\"getMicroAppRouteComponent\""]},"operators":{"distinct":16,"total":150,"identifiers":["const","=","function","return","||","! (prefix)",".","{}",":","()","function=>","... (spread)","[]","&&","``","${}"]}},"paramCount":3,"sloc":{"logical":90,"physical":132}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"fs","type":"esm"},{"line":2,"path":"path","type":"esm"},{"line":3,"path":"@fesjs/utils","type":"esm"},{"line":8,"path":"../constants","type":"esm"},{"line":9,"path":"./modifyRoutes","type":"esm"}],"errors":[],"lineEnd":132,"lineStart":1,"maintainability":61.257,"methods":[{"cyclomatic":2,"cyclomaticDensity":200,"halstead":{"bugs":0.018,"difficulty":2,"effort":110.702,"length":16,"time":6.15,"vocabulary":11,"volume":55.351,"operands":{"distinct":7,"total":7,"identifiers":["api","userConfig","qiankun","main","process","env","INITIAL_QIANKUN_MAIN_OPTIONS"]},"operators":{"distinct":4,"total":9,"identifiers":["return","||","! (prefix)","."]}},"paramCount":1,"sloc":{"logical":1,"physical":6},"errors":[],"lineEnd":18,"lineStart":13,"name":"isMasterEnable","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":3.333,"halstead":{"bugs":0.142,"difficulty":6.848,"effort":2923.333,"length":87,"time":162.407,"vocabulary":30,"volume":426.899,"operands":{"distinct":23,"total":45,"identifiers":["utils","Mustache","winPath","api","describe","enableBy","modifyDefaultConfig","config","modifyRoutes","namespace","absMicroAppPath","join","\"MicroApp.js\"","absMicroAppWithMemoHistoryPath","\"MicroAppWithMemoHistory.js\"","absRuntimePath","\"runtime.js\"","absMasterOptionsPath","\"masterOptions.js\"","absGetMicroAppRouteCompPath","\"getMicroAppRouteComponent.js\"","onGenerateFiles","addPluginExports"]},"operators":{"distinct":7,"total":42,"identifiers":["const","=","{}",":","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":30,"physical":112},"errors":[],"lineEnd":131,"lineStart":20,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["isMasterEnable","api"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":26,"lineStart":26,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["config","mountElementId","defaultMainRootId"]},"operators":{"distinct":3,"total":3,"identifiers":["{}","... (spread)",":"]}},"paramCount":1,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":32,"lineStart":29,"name":"","paramNames":["config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":9.302,"halstead":{"bugs":0.332,"difficulty":12.261,"effort":12210.07,"length":170,"time":678.337,"vocabulary":58,"volume":995.857,"operands":{"distinct":46,"total":94,"identifiers":["HAS_PLUGIN_MODEL","api","hasPlugins","\"@fesjs/plugin-model\"","writeTmpFile","path","absMicroAppPath","content","Mustache","render","readFileSync","join","__dirname","\"runtime/MicroApp.tpl\"","\"utf-8\"","qiankunStateForMicroModelNamespace","existsSync","winPath","paths","absSrcPath","\"models/qiankunStateForMicro.js\"","QIANKUN","resolvePkg","\"qiankun\"","LODASH_ES","\"lodash-es\"","absMicroAppWithMemoHistoryPath","\"runtime/MicroAppWithMemoHistory.tpl\"","absRuntimePath","\"runtime/runtime.tpl\"","absGetMicroAppRouteCompPath","\"runtime/getMicroAppRouteComponent.tpl\"","main","options","config","qiankun","masterHistoryType","router","mode","defaultHistoryType","base","absMasterOptionsPath","JSON","stringify","\n let options = ",";\n export const getMasterOptions = () => options;\n export const setMasterOptions = (newOpts) => options = ({ ...options, ...newOpts });\n "]},"operators":{"distinct":12,"total":76,"identifiers":["const","=","()",".","[]","{}",":","&&","||","``","${}","... (spread)"]}},"paramCount":0,"sloc":{"logical":43,"physical":65},"errors":[],"lineEnd":109,"lineStart":45,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.008,"difficulty":1.5,"effort":37.899,"length":9,"time":2.106,"vocabulary":7,"volume":25.266,"operands":{"distinct":4,"total":4,"identifiers":["specifiers","\"MicroApp\"","source","absMicroAppPath"]},"operators":{"distinct":3,"total":5,"identifiers":["[]","{}",":"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":116,"lineStart":111,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.008,"difficulty":1.5,"effort":37.899,"length":9,"time":2.106,"vocabulary":7,"volume":25.266,"operands":{"distinct":4,"total":4,"identifiers":["specifiers","\"MicroAppWithMemoHistory\"","source","absMicroAppWithMemoHistoryPath"]},"operators":{"distinct":3,"total":5,"identifiers":["[]","{}",":"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":123,"lineStart":118,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.008,"difficulty":1.5,"effort":37.899,"length":9,"time":2.106,"vocabulary":7,"volume":25.266,"operands":{"distinct":4,"total":4,"identifiers":["specifiers","\"getMicroAppRouteComponent\"","source","absGetMicroAppRouteCompPath"]},"operators":{"distinct":3,"total":5,"identifiers":["[]","{}",":"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":130,"lineStart":125,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.444,"cyclomaticDensity":1.605,"halstead":{"bugs":0.076,"difficulty":2.074,"effort":4260.354,"length":35.333,"time":236.686,"vocabulary":9.778,"volume":228.233,"operands":{"distinct":8,"total":18.667},"operators":{"distinct":1.778,"total":16.667}},"paramCount":0.333,"sloc":{"logical":10,"physical":14.667}},"methodAverage":{"cyclomatic":1.5,"cyclomaticDensity":51.579,"halstead":{"bugs":0.066,"difficulty":3.451,"effort":1922.931,"length":38.625,"time":106.829,"vocabulary":16.125,"volume":196.771,"operands":{"distinct":11.625,"total":20.375},"operators":{"distinct":4.5,"total":18.25}},"paramCount":0.375,"sloc":{"logical":10.875,"physical":25.75}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-qiankun/src/main/modifyRoutes.js","report":{"aggregate":{"cyclomatic":14,"cyclomaticDensity":31.818,"halstead":{"bugs":0.325,"difficulty":22.083,"effort":21545.762,"length":172,"time":1196.987,"vocabulary":51,"volume":975.657,"operands":{"distinct":36,"total":106,"identifiers":["getMicroApp","options","key","microAppName","masterHistoryType","base","namespace","normalizedRouteProps","JSON","stringify","(() => {\nconst { getMicroAppRouteComponent } = require('@@/","/getMicroAppRouteComponent');\nreturn getMicroAppRouteComponent({key: '","', appName: '","', base: '","', masterHistoryType: '","', routeProps: "," })\n})()","modifyRoutesWithAttachMode","routes","patchRoutes","_routes","length","forEach","route","meta","microApp","component","path","children","modifyRoutes","api","router","config","mode","defaultHistoryType","\"/\""]},"operators":{"distinct":15,"total":66,"identifiers":["function","const","=","{}","... (rest)","return","``","${}","()",".","function=>","if","&&",":","||"]}},"paramCount":10,"sloc":{"logical":44,"physical":60}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"../constants","type":"esm"}],"errors":[],"lineEnd":60,"lineStart":1,"maintainability":66.115,"methods":[{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.063,"difficulty":7.594,"effort":1445.836,"length":41,"time":80.324,"vocabulary":25,"volume":190.398,"operands":{"distinct":16,"total":27,"identifiers":["key","microAppName","masterHistoryType","base","namespace","normalizedRouteProps","options","JSON","stringify","(() => {\nconst { getMicroAppRouteComponent } = require('@@/","/getMicroAppRouteComponent');\nreturn getMicroAppRouteComponent({key: '","', appName: '","', base: '","', masterHistoryType: '","', routeProps: "," })\n})()"]},"operators":{"distinct":9,"total":14,"identifiers":["const","=","{}","... (rest)","return","``","${}","()","."]}},"paramCount":1,"sloc":{"logical":8,"physical":9},"errors":[],"lineEnd":11,"lineStart":3,"name":"getMicroApp","paramNames":["options"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.01,"difficulty":4.167,"effort":125,"length":10,"time":6.944,"vocabulary":8,"volume":30,"operands":{"distinct":3,"total":5,"identifiers":["patchRoutes","_routes","routes"]},"operators":{"distinct":5,"total":5,"identifiers":["const","=","function=>","()","return"]}},"paramCount":4,"sloc":{"logical":4,"physical":31},"errors":[],"lineEnd":43,"lineStart":13,"name":"modifyRoutesWithAttachMode","paramNames":["routes","masterHistoryType","base","namespace"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":75,"length":10,"time":4.167,"vocabulary":8,"volume":30,"operands":{"distinct":4,"total":5,"identifiers":["_routes","length","forEach","route"]},"operators":{"distinct":4,"total":5,"identifiers":["if",".","()","function=>"]}},"paramCount":1,"sloc":{"logical":3,"physical":23},"errors":[],"lineEnd":38,"lineStart":16,"name":"","paramNames":["_routes"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":28.571,"halstead":{"bugs":0.08,"difficulty":7.933,"effort":1910.421,"length":54,"time":106.134,"vocabulary":22,"volume":240.809,"operands":{"distinct":15,"total":34,"identifiers":["route","meta","microApp","component","getMicroApp","key","path","microAppName","masterHistoryType","base","namespace","children","length","modifyRoutesWithAttachMode","routes"]},"operators":{"distinct":7,"total":20,"identifiers":["if","&&",".","=","()","{}",":"]}},"paramCount":1,"sloc":{"logical":14,"physical":19},"errors":[],"lineEnd":36,"lineStart":18,"name":"","paramNames":["route"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["api","modifyRoutes","routes"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","function=>"]}},"paramCount":2,"sloc":{"logical":2,"physical":15},"errors":[],"lineEnd":59,"lineStart":45,"name":"modifyRoutes","paramNames":["api","namespace"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":40,"halstead":{"bugs":0.052,"difficulty":9,"effort":1400.305,"length":36,"time":77.795,"vocabulary":20,"volume":155.589,"operands":{"distinct":11,"total":22,"identifiers":["router","base","api","config","masterHistoryType","mode","defaultHistoryType","modifyRoutesWithAttachMode","routes","\"/\"","namespace"]},"operators":{"distinct":9,"total":14,"identifiers":["const","=","{}",".","||","&&","()",":","return"]}},"paramCount":1,"sloc":{"logical":10,"physical":13},"errors":[],"lineEnd":58,"lineStart":46,"name":"","paramNames":["routes"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":4.545,"halstead":{"bugs":0.046,"difficulty":3.155,"effort":3077.966,"length":24.571,"time":170.998,"vocabulary":7.286,"volume":139.38,"operands":{"distinct":5.143,"total":15.143},"operators":{"distinct":2.143,"total":9.429}},"paramCount":1.429,"sloc":{"logical":6.286,"physical":8.571}},"methodAverage":{"cyclomatic":2.167,"cyclomaticDensity":37.123,"halstead":{"bugs":0.037,"difficulty":5.449,"effort":829.971,"length":26.167,"time":46.109,"vocabulary":14.833,"volume":110.384,"operands":{"distinct":8.667,"total":16},"operators":{"distinct":6.167,"total":10.167}},"paramCount":1.667,"sloc":{"logical":6.833,"physical":18.333}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-qiankun/src/micro/index.js","report":{"aggregate":{"cyclomatic":30,"cyclomaticDensity":27.273,"halstead":{"bugs":1.262,"difficulty":24.47,"effort":92610.09,"length":534,"time":5145.005,"vocabulary":136,"volume":3784.705,"operands":{"distinct":115,"total":268,"identifiers":["namespace","\"plugin-qiankun/micro\"","isSlaveEnable","api","userConfig","qiankun","micro","lodash","isEqual","process","env","INITIAL_QIANKUN_MIRCO_OPTIONS","utils","Mustache","describe","enableBy","modifyDefaultConfig","memo","initialMicroOptions","devSourceMap","true","JSON","parse","\"{}\"","modifiedDefaultConfig","runtimePublicPath","slave","shouldNotModifyDefaultBase","base","pkg","name","/","chainWebpack","config","assert","\"You should have name in package.json\"","output","libraryTarget","\"umd\"","library","-[name]","port","PORT","NODE_ENV","\"development\"","localHostname","USE_REMOTE_IP","address","ip","HOST","\"localhost\"","protocol","HTTPS","\"https\"","\"http\"","webpack","false","devtool","plugin","\"source-map\"","use","SourceMapDevToolPlugin","append","\n//# sourceMappingURL=","://",":","/[url]","filename","\"[file].map\"","absRuntimePath","join","\"runtime.js\"","absLifeclesPath","\"lifecycles.js\"","absMicroOptionsPath","\"slaveOptions.js\"","absPublicPath","\"publicPath.js\"","absModelPath","\"qiankunModel.js\"","addEntryImportsAhead","source","@@/","register","key","\"addExtraModels\"","fn","HAS_PLUGIN_MODEL","hasPlugins","\"@fesjs/plugin-model\"","absPath","qiankunStateFromMainModelNamespace","onGenerateFiles","writeTmpFile","path","content","readFileSync","__dirname","\"runtime/runtime.tpl\"","\"utf-8\"","render","\"runtime/lifecycles.tpl\"","\n if (window.__POWERED_BY_QIANKUN__) {\n __webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;\n window.public_path = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;\n }\n ","stringify","\n let options = ",";\n export const getSlaveOptions = () => options;\n export const setSlaveOptions = (newOpts) => options = ({ ...options, ...newOpts });\n ","\"runtime/qiankunModel.tpl\"","addRuntimePlugin","addEntryImports","specifier","\"{ genMount as qiankun_genMount, genBootstrap as qiankun_genBootstrap, genUnmount as qiankun_genUnmount, genUpdate as qiankun_genUpdate }\"","addEntryCode","mountElementId","\nexport const bootstrap = qiankun_genBootstrap(clientRender, app);\nexport const mount = qiankun_genMount('#","');\nexport const unmount = qiankun_genUnmount();\nexport const update = qiankun_genUpdate();\n\nif (!window.__POWERED_BY_QIANKUN__) {\n bootstrap().then(mount);\n}\n"]},"operators":{"distinct":21,"total":266,"identifiers":["const","=","function","return","||","! (prefix)",".","()","{}",":","function=>","... (spread)","??","if","``","${}","&&","===",":?","!==","[]"]}},"paramCount":6,"sloc":{"logical":110,"physical":179}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"assert","type":"esm"},{"line":2,"path":"address","type":"esm"},{"line":3,"path":"@fesjs/utils","type":"esm"},{"line":4,"path":"fs","type":"esm"},{"line":5,"path":"path","type":"esm"},{"line":6,"path":"../constants","type":"esm"}],"errors":[],"lineEnd":179,"lineStart":1,"maintainability":61.537,"methods":[{"cyclomatic":3,"cyclomaticDensity":150,"halstead":{"bugs":0.034,"difficulty":4,"effort":406.317,"length":26,"time":22.573,"vocabulary":15,"volume":101.579,"operands":{"distinct":9,"total":12,"identifiers":["api","userConfig","qiankun","micro","lodash","isEqual","process","env","INITIAL_QIANKUN_MIRCO_OPTIONS"]},"operators":{"distinct":6,"total":14,"identifiers":["return","||","! (prefix)",".","()","{}"]}},"paramCount":1,"sloc":{"logical":2,"physical":7},"errors":[],"lineEnd":16,"lineStart":10,"name":"isSlaveEnable","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":14.634,"halstead":{"bugs":0.308,"difficulty":9.83,"effort":9078.545,"length":157,"time":504.364,"vocabulary":59,"volume":923.575,"operands":{"distinct":47,"total":77,"identifiers":["utils","Mustache","api","describe","enableBy","modifyDefaultConfig","memo","chainWebpack","config","port","process","env","PORT","NODE_ENV","\"development\"","localHostname","USE_REMOTE_IP","address","ip","HOST","\"localhost\"","protocol","HTTPS","\"https\"","\"http\"","webpack","absRuntimePath","join","namespace","\"runtime.js\"","absLifeclesPath","\"lifecycles.js\"","absMicroOptionsPath","\"slaveOptions.js\"","absPublicPath","\"publicPath.js\"","absModelPath","\"qiankunModel.js\"","addEntryImportsAhead","register","key","\"addExtraModels\"","fn","onGenerateFiles","addRuntimePlugin","addEntryImports","addEntryCode"]},"operators":{"distinct":12,"total":80,"identifiers":["const","=","{}",":","()",".","function=>","if","&&","===",":?","||"]}},"paramCount":1,"sloc":{"logical":41,"physical":161},"errors":[],"lineEnd":178,"lineStart":18,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["isSlaveEnable","api"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":24,"lineStart":24,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":36.364,"halstead":{"bugs":0.133,"difficulty":11.773,"effort":4686.537,"length":77,"time":260.363,"vocabulary":36,"volume":398.084,"operands":{"distinct":22,"total":37,"identifiers":["initialMicroOptions","devSourceMap","true","JSON","parse","process","env","INITIAL_QIANKUN_MIRCO_OPTIONS","\"{}\"","memo","qiankun","micro","modifiedDefaultConfig","runtimePublicPath","slave","shouldNotModifyDefaultBase","api","userConfig","base","pkg","name","/"]},"operators":{"distinct":14,"total":40,"identifiers":["const","=","{}",":","... (spread)","()",".","||","??","if","! (prefix)","``","${}","return"]}},"paramCount":1,"sloc":{"logical":11,"physical":23},"errors":[],"lineEnd":49,"lineStart":27,"name":"","paramNames":["memo"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.037,"difficulty":3.409,"effort":381.818,"length":28,"time":21.212,"vocabulary":16,"volume":112,"operands":{"distinct":11,"total":15,"identifiers":["assert","api","pkg","name","\"You should have name in package.json\"","config","output","libraryTarget","\"umd\"","library","-[name]"]},"operators":{"distinct":5,"total":13,"identifiers":["()",".","``","${}","return"]}},"paramCount":1,"sloc":{"logical":4,"physical":5},"errors":[],"lineEnd":55,"lineStart":51,"name":"","paramNames":["config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":50,"halstead":{"bugs":0.12,"difficulty":7.827,"effort":2813.405,"length":69,"time":156.3,"vocabulary":37,"volume":359.452,"operands":{"distinct":26,"total":37,"identifiers":["api","config","qiankun","micro","devSourceMap","false","memo","devtool","plugin","\"source-map\"","use","webpack","SourceMapDevToolPlugin","namespace","pkg","name","append","protocol","localHostname","port","\n//# sourceMappingURL=","://",":","/[url]","filename","\"[file].map\""]},"operators":{"distinct":11,"total":32,"identifiers":["if","&&",".","!==","()","[]","{}",":","``","${}","return"]}},"paramCount":2,"sloc":{"logical":8,"physical":20},"errors":[],"lineEnd":85,"lineStart":66,"name":"","paramNames":["memo","webpack"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.008,"difficulty":2.5,"effort":60,"length":8,"time":3.333,"vocabulary":8,"volume":24,"operands":{"distinct":3,"total":3,"identifiers":["source","absPublicPath","@@/"]},"operators":{"distinct":5,"total":5,"identifiers":["[]","{}",":","``","${}"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":95,"lineStart":95,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.035,"difficulty":6.111,"effort":633.883,"length":24,"time":35.216,"vocabulary":20,"volume":103.726,"operands":{"distinct":9,"total":10,"identifiers":["HAS_PLUGIN_MODEL","api","hasPlugins","\"@fesjs/plugin-model\"","absPath","absModelPath","@@/","namespace","qiankunStateFromMainModelNamespace"]},"operators":{"distinct":11,"total":14,"identifiers":["const","=","()",".","[]","return",":?","{}",":","``","${}"]}},"paramCount":0,"sloc":{"logical":5,"physical":7},"errors":[],"lineEnd":105,"lineStart":99,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":14.815,"halstead":{"bugs":0.195,"difficulty":11,"effort":6439.533,"length":110,"time":357.752,"vocabulary":40,"volume":585.412,"operands":{"distinct":29,"total":58,"identifiers":["HAS_PLUGIN_MODEL","api","hasPlugins","\"@fesjs/plugin-model\"","writeTmpFile","path","absRuntimePath","content","readFileSync","join","__dirname","\"runtime/runtime.tpl\"","\"utf-8\"","absLifeclesPath","Mustache","render","\"runtime/lifecycles.tpl\"","absPublicPath","\n if (window.__POWERED_BY_QIANKUN__) {\n __webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;\n window.public_path = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;\n }\n ","absMicroOptionsPath","JSON","stringify","config","qiankun","micro","\n let options = ",";\n export const getSlaveOptions = () => options;\n export const setSlaveOptions = (newOpts) => options = ({ ...options, ...newOpts });\n ","absModelPath","\"runtime/qiankunModel.tpl\""]},"operators":{"distinct":11,"total":52,"identifiers":["const","=","()",".","[]","{}",":","``","${}","||","if"]}},"paramCount":0,"sloc":{"logical":27,"physical":49},"errors":[],"lineEnd":156,"lineStart":108,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["absRuntimePath","@@/"]},"operators":{"distinct":2,"total":2,"identifiers":["``","${}"]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":158,"lineStart":158,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.011,"difficulty":2,"effort":63.399,"length":10,"time":3.522,"vocabulary":9,"volume":31.699,"operands":{"distinct":5,"total":5,"identifiers":["source","absLifeclesPath","@@/","specifier","\"{ genMount as qiankun_genMount, genBootstrap as qiankun_genBootstrap, genUnmount as qiankun_genUnmount, genUpdate as qiankun_genUpdate }\""]},"operators":{"distinct":4,"total":5,"identifiers":["{}",":","``","${}"]}},"paramCount":0,"sloc":{"logical":3,"physical":5},"errors":[],"lineEnd":164,"lineStart":160,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.009,"difficulty":1.5,"effort":40.5,"length":9,"time":2.25,"vocabulary":8,"volume":27,"operands":{"distinct":5,"total":5,"identifiers":["api","config","mountElementId","\nexport const bootstrap = qiankun_genBootstrap(clientRender, app);\nexport const mount = qiankun_genMount('#","');\nexport const unmount = qiankun_genUnmount();\nexport const update = qiankun_genUpdate();\n\nif (!window.__POWERED_BY_QIANKUN__) {\n bootstrap().then(mount);\n}\n"]},"operators":{"distinct":3,"total":4,"identifiers":["``","${}","."]}},"paramCount":0,"sloc":{"logical":1,"physical":10},"errors":[],"lineEnd":176,"lineStart":167,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.308,"cyclomaticDensity":2.098,"halstead":{"bugs":0.097,"difficulty":1.882,"effort":7123.853,"length":41.077,"time":395.77,"vocabulary":10.462,"volume":291.131,"operands":{"distinct":8.846,"total":20.615},"operators":{"distinct":1.615,"total":20.462}},"paramCount":0.462,"sloc":{"logical":8.462,"physical":13.769}},"methodAverage":{"cyclomatic":2.417,"cyclomaticDensity":55.345,"halstead":{"bugs":0.074,"difficulty":5.121,"effort":2051.193,"length":43.75,"time":113.955,"vocabulary":21.25,"volume":223.274,"operands":{"distinct":14.167,"total":21.917},"operators":{"distinct":7.083,"total":21.833}},"paramCount":0.5,"sloc":{"logical":8.917,"physical":24.167}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-request/build.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4,"identifiers":["module","exports","copy","\"template\""]},"operators":{"distinct":5,"total":5,"identifiers":["=",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":84.899,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4},"operators":{"distinct":5,"total":5}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-request/src/index.js","report":{"aggregate":{"cyclomatic":9,"cyclomaticDensity":15.254,"halstead":{"bugs":0.39,"difficulty":14.292,"effort":16704.917,"length":192,"time":928.051,"vocabulary":68,"volume":1168.793,"operands":{"distinct":53,"total":101,"identifiers":["logger","Logger","\"fes:plugin-request\"","api","addRuntimePluginKey","\"request\"","describe","key","config","joi","object","dataField","string","pattern","/^[a-zA-Z]*$/","allow","\"\"","base","default","namespace","\"plugin-request\"","absoluteFilePath","/request.js","requestTemplate","readFileSync","join","__dirname","\"template\"","\"request.js\"","\"utf-8\"","onGenerateFiles","request","warn","\"[DEPRECATED]: reqeust base 即将废弃,建议使用 axios baseURL代替:https://github.com/axios/axios\"","writeTmpFile","path","content","replace","\"REPLACE_DATA_FIELD\"","JSON","stringify","\"REPLACE_BASE\"","\"AXIOS_PATH\"","resolvePkg","\"axios\"","generatedOnce","false","true","copyTmpFiles","ignore","addPluginExports","exportAll","source"]},"operators":{"distinct":15,"total":91,"identifiers":["const","=","new","function=>","()",".","{}",":","return","``","${}","if","||","let","[]"]}},"paramCount":1,"sloc":{"logical":59,"physical":70}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@fesjs/compiler","type":"esm"},{"line":2,"path":"fs","type":"esm"},{"line":3,"path":"path","type":"esm"},{"line":4,"path":"@fesjs/utils","type":"esm"}],"errors":[],"lineEnd":70,"lineStart":1,"maintainability":62.245,"methods":[{"cyclomatic":1,"cyclomaticDensity":3.333,"halstead":{"bugs":0.174,"difficulty":8.339,"effort":4361.602,"length":97,"time":242.311,"vocabulary":42,"volume":523.055,"operands":{"distinct":31,"total":47,"identifiers":["api","addRuntimePluginKey","describe","key","\"request\"","config","joi","object","dataField","string","pattern","/^[a-zA-Z]*$/","allow","\"\"","base","default","namespace","\"plugin-request\"","absoluteFilePath","/request.js","requestTemplate","readFileSync","join","__dirname","\"template\"","\"request.js\"","\"utf-8\"","onGenerateFiles","generatedOnce","false","addPluginExports"]},"operators":{"distinct":11,"total":50,"identifiers":["()",".","function=>","{}",":","return","const","=","``","${}","let"]}},"paramCount":1,"sloc":{"logical":30,"physical":62},"errors":[],"lineEnd":69,"lineStart":8,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":1,"total":1,"identifiers":["\"request\""]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":9,"lineStart":9,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":20,"halstead":{"bugs":0.09,"difficulty":5.818,"effort":1570.205,"length":55,"time":87.234,"vocabulary":30,"volume":269.879,"operands":{"distinct":22,"total":32,"identifiers":["dataField","\"\"","base","api","config","request","logger","warn","\"[DEPRECATED]: reqeust base 即将废弃,建议使用 axios baseURL代替:https://github.com/axios/axios\"","writeTmpFile","path","absoluteFilePath","content","requestTemplate","replace","\"REPLACE_DATA_FIELD\"","JSON","stringify","\"REPLACE_BASE\"","\"AXIOS_PATH\"","resolvePkg","\"axios\""]},"operators":{"distinct":8,"total":23,"identifiers":["const","=","{}",".","if","()",":","||"]}},"paramCount":0,"sloc":{"logical":15,"physical":16},"errors":[],"lineEnd":50,"lineStart":35,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.033,"difficulty":4.727,"effort":461.866,"length":23,"time":25.659,"vocabulary":19,"volume":97.702,"operands":{"distinct":11,"total":13,"identifiers":["generatedOnce","true","api","copyTmpFiles","namespace","path","join","__dirname","\"template\"","ignore","\"request.js\""]},"operators":{"distinct":8,"total":10,"identifiers":["if","return","=","()",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":8,"physical":9},"errors":[],"lineEnd":61,"lineStart":53,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":33.688,"length":8,"time":1.872,"vocabulary":7,"volume":22.459,"operands":{"distinct":4,"total":4,"identifiers":["exportAll","true","source","absoluteFilePath"]},"operators":{"distinct":3,"total":4,"identifiers":["[]","{}",":"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":68,"lineStart":63,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":2.542,"halstead":{"bugs":0.065,"difficulty":2.382,"effort":2784.153,"length":32,"time":154.675,"vocabulary":11.333,"volume":194.799,"operands":{"distinct":8.833,"total":16.833},"operators":{"distinct":2.5,"total":15.167}},"paramCount":0.167,"sloc":{"logical":9.833,"physical":11.667}},"methodAverage":{"cyclomatic":1.6,"cyclomaticDensity":36.333,"halstead":{"bugs":0.061,"difficulty":4.077,"effort":1285.472,"length":36.8,"time":71.415,"vocabulary":19.8,"volume":182.619,"operands":{"distinct":13.8,"total":19.4},"operators":{"distinct":6,"total":17.4}},"paramCount":0.2,"sloc":{"logical":11.4,"physical":18.8}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-request/src/template/cacheControl.js","report":{"aggregate":{"cyclomatic":44,"cyclomaticDensity":30.769,"halstead":{"bugs":1.382,"difficulty":53.167,"effort":220411.941,"length":609,"time":12245.108,"vocabulary":112,"volume":4145.679,"operands":{"distinct":84,"total":319,"identifiers":["CACHE_KEY_PREFIX","\"__FES_REQUEST_CACHE:\"","CACHE_TYPE","ram","\"ram\"","session","\"sessionStorage\"","local","\"localStorage\"","CACHE_DATA_MAP","Map","genInnerKey","key","cacheType","'ram'","canCache","data","isObject","isString","Array","isArray","isURLSearchParams","setCacheData","cacheTime","1000","60","3","_key","currentCacheData","expire","Date","now","cacheInstance","window","setItem","JSON","stringify","e","item","startsWith","Object","prototype","hasOwnProperty","call","removeItem","set","isExpire","false","true","getCacheData","text","getItem","null","parse","get","delete","cacheStartFlag","cachingQueue","handleCachingStart","ctx","config","cache","caching","Promise","resolve","queue","concat","handleCachingQueueSuccess","length","0","forEach","response","handleCachingQueueError","firstResolve","shift","next","cacheData","result","keys","requestdata","checkHttpRequestHasBody","method","params","error"]},"operators":{"distinct":28,"total":290,"identifiers":["const","=","{}",":","new","function","if","!==",".","return","``","${}","||","! (prefix)","()","*","+","else","[]","try","catch","forin","&&",">=","function=>",">",":?","... (spread)"]}},"paramCount":27,"sloc":{"logical":143,"physical":210}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":3,"path":"./helpers","type":"esm"}],"errors":[],"lineEnd":210,"lineStart":1,"maintainability":57.093,"methods":[{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.016,"difficulty":3.6,"effort":174.355,"length":14,"time":9.686,"vocabulary":11,"volume":48.432,"operands":{"distinct":5,"total":6,"identifiers":["cacheType","CACHE_TYPE","ram","CACHE_KEY_PREFIX","key"]},"operators":{"distinct":6,"total":8,"identifiers":["if","!==",".","return","``","${}"]}},"paramCount":2,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":54,"lineStart":49,"name":"genInnerKey","paramNames":["key","cacheType"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":5,"cyclomaticDensity":100,"halstead":{"bugs":0.024,"difficulty":4.167,"effort":302.7,"length":21,"time":16.817,"vocabulary":11,"volume":72.648,"operands":{"distinct":6,"total":10,"identifiers":["data","isObject","isString","Array","isArray","isURLSearchParams"]},"operators":{"distinct":5,"total":11,"identifiers":["return","||","! (prefix)","()","."]}},"paramCount":1,"sloc":{"logical":5,"physical":3},"errors":[],"lineEnd":58,"lineStart":56,"name":"canCache","paramNames":["data"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":19.048,"halstead":{"bugs":0.154,"difficulty":12.589,"effort":5806.588,"length":85,"time":322.588,"vocabulary":43,"volume":461.233,"operands":{"distinct":28,"total":47,"identifiers":["_key","genInnerKey","key","cacheType","currentCacheData","data","cacheTime","expire","Date","now","CACHE_TYPE","ram","cacheInstance","window","setItem","JSON","stringify","e","item","startsWith","CACHE_KEY_PREFIX","Object","prototype","hasOwnProperty","call","removeItem","CACHE_DATA_MAP","set"]},"operators":{"distinct":15,"total":38,"identifiers":["const","=","()","{}",":","+",".","if","else","!==","[]","try","catch","forin","&&"]}},"paramCount":8,"sloc":{"logical":21,"physical":30},"errors":[],"lineEnd":89,"lineStart":60,"name":"setCacheData","paramNames":["key","cacheType","'ram'","data","cacheTime","1000","60","3"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":75,"halstead":{"bugs":0.017,"difficulty":3.5,"effort":181.322,"length":14,"time":10.073,"vocabulary":13,"volume":51.806,"operands":{"distinct":6,"total":6,"identifiers":["cacheTime","expire","Date","now","false","true"]},"operators":{"distinct":7,"total":8,"identifiers":["if","||","! (prefix)",">=","()",".","return"]}},"paramCount":2,"sloc":{"logical":4,"physical":6},"errors":[],"lineEnd":96,"lineStart":91,"name":"isExpire","paramNames":["expire","cacheTime"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":7,"cyclomaticDensity":28,"halstead":{"bugs":0.161,"difficulty":15.667,"effort":7553.724,"length":94,"time":419.651,"vocabulary":35,"volume":482.153,"operands":{"distinct":21,"total":47,"identifiers":["_key","genInnerKey","key","cacheType","CACHE_TYPE","ram","cacheInstance","window","text","getItem","null","currentCacheData","JSON","parse","isExpire","data","removeItem","e","CACHE_DATA_MAP","get","delete"]},"operators":{"distinct":14,"total":47,"identifiers":["const","=","()","if","else","!==",".","[]","||","try","&&","! (prefix)","return","catch"]}},"paramCount":3,"sloc":{"logical":25,"physical":25},"errors":[],"lineEnd":122,"lineStart":98,"name":"getCacheData","paramNames":["key","cacheType","'ram'"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.051,"difficulty":5.143,"effort":779.763,"length":34,"time":43.32,"vocabulary":22,"volume":151.621,"operands":{"distinct":14,"total":18,"identifiers":["_key","genInnerKey","ctx","key","config","cache","cacheType","caching","cacheStartFlag","get","Promise","resolve","set","true"]},"operators":{"distinct":8,"total":16,"identifiers":["const","=","()",".","if","return","new","function=>"]}},"paramCount":2,"sloc":{"logical":8,"physical":11},"errors":[],"lineEnd":143,"lineStart":133,"name":"handleCachingStart","paramNames":["ctx","config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.025,"difficulty":4.286,"effort":317.181,"length":20,"time":17.621,"vocabulary":13,"volume":74.009,"operands":{"distinct":7,"total":10,"identifiers":["queue","cachingQueue","get","_key","set","concat","resolve"]},"operators":{"distinct":6,"total":10,"identifiers":["const","=","||","()",".","[]"]}},"paramCount":1,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":140,"lineStart":137,"name":"","paramNames":["resolve"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.069,"difficulty":6,"effort":1237.94,"length":45,"time":68.774,"vocabulary":24,"volume":206.323,"operands":{"distinct":16,"total":24,"identifiers":["_key","genInnerKey","ctx","key","config","cache","cacheType","queue","cachingQueue","get","length","0","forEach","resolve","delete","cacheStartFlag"]},"operators":{"distinct":8,"total":21,"identifiers":["const","=","()",".","if","&&",">","function=>"]}},"paramCount":2,"sloc":{"logical":9,"physical":14},"errors":[],"lineEnd":159,"lineStart":146,"name":"handleCachingQueueSuccess","paramNames":["ctx","config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.007,"difficulty":2.667,"effort":59.89,"length":8,"time":3.327,"vocabulary":7,"volume":22.459,"operands":{"distinct":3,"total":4,"identifiers":["resolve","response","ctx"]},"operators":{"distinct":4,"total":4,"identifiers":["()","{}",":","."]}},"paramCount":1,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":155,"lineStart":151,"name":"","paramNames":["resolve"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":25,"halstead":{"bugs":0.085,"difficulty":6.824,"effort":1742.812,"length":55,"time":96.823,"vocabulary":25,"volume":255.412,"operands":{"distinct":17,"total":29,"identifiers":["_key","genInnerKey","ctx","key","config","cache","cacheType","queue","cachingQueue","get","length","0","firstResolve","shift","set","delete","cacheStartFlag"]},"operators":{"distinct":8,"total":26,"identifiers":["const","=","()",".","if","else","&&",">"]}},"paramCount":2,"sloc":{"logical":12,"physical":12},"errors":[],"lineEnd":173,"lineStart":162,"name":"handleCachingQueueError","paramNames":["ctx","config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":10,"cyclomaticDensity":31.25,"halstead":{"bugs":0.226,"difficulty":19.25,"effort":13031.916,"length":129,"time":723.995,"vocabulary":38,"volume":676.983,"operands":{"distinct":24,"total":66,"identifiers":["config","ctx","cache","cacheData","getCacheData","key","cacheType","response","data","result","handleCachingStart","Object","keys","forEach","next","requestdata","checkHttpRequestHasBody","method","params","error","canCache","handleCachingQueueSuccess","setCacheData","handleCachingQueueError"]},"operators":{"distinct":14,"total":63,"identifiers":["const","=","{}","if",".","()",":","return","function=>",":?","else","&&","! (prefix)","... (spread)"]}},"paramCount":2,"sloc":{"logical":32,"physical":35},"errors":[],"lineEnd":209,"lineStart":175,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":1.333,"effort":21.671,"length":7,"time":1.204,"vocabulary":5,"volume":16.253,"operands":{"distinct":3,"total":4,"identifiers":["ctx","key","result"]},"operators":{"distinct":2,"total":3,"identifiers":["=","[]"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":189,"lineStart":187,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3.385,"cyclomaticDensity":2.367,"halstead":{"bugs":0.106,"difficulty":4.09,"effort":16954.765,"length":46.846,"time":941.931,"vocabulary":8.615,"volume":318.898,"operands":{"distinct":6.462,"total":24.538},"operators":{"distinct":2.154,"total":22.308}},"paramCount":2.077,"sloc":{"logical":11,"physical":16.154}},"methodAverage":{"cyclomatic":3.583,"cyclomaticDensity":50.275,"halstead":{"bugs":0.07,"difficulty":7.085,"effort":2600.822,"length":43.833,"time":144.49,"vocabulary":20.583,"volume":209.944,"operands":{"distinct":12.5,"total":22.583},"operators":{"distinct":8.083,"total":21.25}},"paramCount":2.25,"sloc":{"logical":10.5,"physical":12.833}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-request/src/template/genRequestKey.js","report":{"aggregate":{"cyclomatic":5,"cyclomaticDensity":26.316,"halstead":{"bugs":0.095,"difficulty":13.2,"effort":3765.871,"length":60,"time":209.215,"vocabulary":27,"volume":285.293,"operands":{"distinct":15,"total":33,"identifiers":["getQueryString","data","isURLSearchParams","toString","JSON","stringify","\"\"","genRequestKey","ctx","next","url","params","method","config","key"]},"operators":{"distinct":12,"total":27,"identifiers":["const","=","function=>","if","()","return",".",":?","function","{}","``","${}"]}},"paramCount":3,"sloc":{"logical":19,"physical":25}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./helpers","type":"esm"}],"errors":[],"lineEnd":25,"lineStart":1,"maintainability":67.944,"methods":[{"cyclomatic":3,"cyclomaticDensity":50,"halstead":{"bugs":0.021,"difficulty":3.75,"effort":233.512,"length":18,"time":12.973,"vocabulary":11,"volume":62.27,"operands":{"distinct":6,"total":9,"identifiers":["isURLSearchParams","data","toString","JSON","stringify","\"\""]},"operators":{"distinct":5,"total":9,"identifiers":["if","()","return",".",":?"]}},"paramCount":1,"sloc":{"logical":6,"physical":6},"errors":[],"lineEnd":14,"lineStart":9,"name":"","paramNames":["data"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":10,"halstead":{"bugs":0.044,"difficulty":7.389,"effort":975.333,"length":33,"time":54.185,"vocabulary":16,"volume":132,"operands":{"distinct":9,"total":19,"identifiers":["url","data","params","method","ctx","config","key","getQueryString","next"]},"operators":{"distinct":7,"total":14,"identifiers":["const","=","{}",".","``","${}","()"]}},"paramCount":2,"sloc":{"logical":10,"physical":9},"errors":[],"lineEnd":24,"lineStart":16,"name":"genRequestKey","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.667,"cyclomaticDensity":8.772,"halstead":{"bugs":0.032,"difficulty":4.4,"effort":1255.29,"length":20,"time":69.738,"vocabulary":9,"volume":95.098,"operands":{"distinct":5,"total":11},"operators":{"distinct":4,"total":9}},"paramCount":1,"sloc":{"logical":6.333,"physical":8.333}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":30,"halstead":{"bugs":0.032,"difficulty":5.569,"effort":604.422,"length":25.5,"time":33.579,"vocabulary":13.5,"volume":97.135,"operands":{"distinct":7.5,"total":14},"operators":{"distinct":6,"total":11.5}},"paramCount":1.5,"sloc":{"logical":8,"physical":7.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-request/src/template/helpers.js","report":{"aggregate":{"cyclomatic":16,"cyclomaticDensity":22.222,"halstead":{"bugs":0.463,"difficulty":14.875,"effort":20661.77,"length":223,"time":1147.876,"vocabulary":75,"volume":1389.027,"operands":{"distinct":60,"total":119,"identifiers":["typeOf","obj","map","\"[object Boolean]\"","\"boolean\"","\"[object Number]\"","\"number\"","\"[object String]\"","\"string\"","\"[object Function]\"","\"function\"","\"[object Array]\"","\"array\"","\"[object Date]\"","\"date\"","\"[object RegExp]\"","\"regExp\"","\"[object Undefined]\"","\"undefined\"","\"[object Null]\"","\"null\"","\"[object Object]\"","\"object\"","\"[object URLSearchParams]\"","\"URLSearchParams\"","Object","prototype","toString","call","isFunction","isDate","isString","isArray","isObject","isURLSearchParams","isUndefined","val","undefined","isDefined","null","checkHttpRequestHasBody","method","toUpperCase","HTTP_METHOD","GET","request_body","false","POST","true","PUT","DELETE","HEAD","OPTIONS","PATCH","trimObj","entries","forEach","key","value","trim"]},"operators":{"distinct":15,"total":104,"identifiers":["function","const","=","{}",":","return","[]","()",".","===","function=>","!=","if",",","else"]}},"paramCount":13,"sloc":{"logical":72,"physical":91}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":91,"lineStart":1,"maintainability":68.92,"methods":[{"cyclomatic":1,"cyclomaticDensity":7.143,"halstead":{"bugs":0.084,"difficulty":4.143,"effort":1049.495,"length":49,"time":58.305,"vocabulary":36,"volume":253.326,"operands":{"distinct":28,"total":29,"identifiers":["map","\"[object Boolean]\"","\"boolean\"","\"[object Number]\"","\"number\"","\"[object String]\"","\"string\"","\"[object Function]\"","\"function\"","\"[object Array]\"","\"array\"","\"[object Date]\"","\"date\"","\"[object RegExp]\"","\"regExp\"","\"[object Undefined]\"","\"undefined\"","\"[object Null]\"","\"null\"","\"[object Object]\"","\"object\"","\"[object URLSearchParams]\"","\"URLSearchParams\"","Object","prototype","toString","call","obj"]},"operators":{"distinct":8,"total":20,"identifiers":["const","=","{}",":","return","[]","()","."]}},"paramCount":1,"sloc":{"logical":14,"physical":16},"errors":[],"lineEnd":20,"lineStart":5,"name":"typeOf","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"function\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":24,"lineStart":22,"name":"isFunction","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"date\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":28,"lineStart":26,"name":"isDate","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"string\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":32,"lineStart":30,"name":"isString","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"array\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":36,"lineStart":34,"name":"isArray","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"object\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":40,"lineStart":38,"name":"isObject","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"URLSearchParams\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":44,"lineStart":42,"name":"isURLSearchParams","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["val","undefined"]},"operators":{"distinct":1,"total":1,"identifiers":["==="]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":47,"lineStart":47,"name":"","paramNames":["val"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["val","null"]},"operators":{"distinct":1,"total":1,"identifiers":["!="]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":49,"lineStart":49,"name":"","paramNames":["val"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":5.556,"halstead":{"bugs":0.085,"difficulty":8.615,"effort":2194.807,"length":58,"time":121.934,"vocabulary":21,"volume":254.754,"operands":{"distinct":13,"total":28,"identifiers":["method","toUpperCase","HTTP_METHOD","GET","request_body","false","POST","true","PUT","DELETE","HEAD","OPTIONS","PATCH"]},"operators":{"distinct":8,"total":30,"identifiers":["=","()",".","const","{}",":","return","[]"]}},"paramCount":1,"sloc":{"logical":18,"physical":27},"errors":[],"lineEnd":78,"lineStart":52,"name":"checkHttpRequestHasBody","paramNames":["method"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.021,"difficulty":3.429,"effort":215.683,"length":17,"time":11.982,"vocabulary":13,"volume":62.907,"operands":{"distinct":7,"total":8,"identifiers":["isObject","obj","Object","entries","forEach","key","value"]},"operators":{"distinct":6,"total":9,"identifiers":["if","()",".","function=>","[]",","]}},"paramCount":1,"sloc":{"logical":5,"physical":11},"errors":[],"lineEnd":90,"lineStart":80,"name":"trimObj","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":37.5,"halstead":{"bugs":0.025,"difficulty":4.286,"effort":317.181,"length":20,"time":17.621,"vocabulary":13,"volume":74.009,"operands":{"distinct":7,"total":10,"identifiers":["isString","value","obj","key","trim","isObject","trimObj"]},"operators":{"distinct":6,"total":10,"identifiers":["if","else","()","=","[]","."]}},"paramCount":2,"sloc":{"logical":8,"physical":7},"errors":[],"lineEnd":88,"lineStart":82,"name":"","paramNames":["key","value"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.231,"cyclomaticDensity":1.709,"halstead":{"bugs":0.036,"difficulty":1.144,"effort":1589.367,"length":17.154,"time":88.298,"vocabulary":5.769,"volume":106.848,"operands":{"distinct":4.615,"total":9.154},"operators":{"distinct":1.154,"total":8}},"paramCount":1,"sloc":{"logical":5.538,"physical":7}},"methodAverage":{"cyclomatic":1.25,"cyclomaticDensity":49.183,"halstead":{"bugs":0.021,"difficulty":2.539,"effort":326.792,"length":15.5,"time":18.155,"vocabulary":10.417,"volume":62.297,"operands":{"distinct":6.417,"total":8.083},"operators":{"distinct":4,"total":7.417}},"paramCount":1.083,"sloc":{"logical":4.917,"physical":6.75}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-request/src/template/paramsProcess.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.036,"difficulty":6.563,"effort":717.891,"length":28,"time":39.883,"vocabulary":15,"volume":109.393,"operands":{"distinct":8,"total":15,"identifiers":["ctx","next","config","checkHttpRequestHasBody","method","trimObj","data","params"]},"operators":{"distinct":7,"total":13,"identifiers":["function=>","const","=",".","if","else","()"]}},"paramCount":2,"sloc":{"logical":9,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./helpers","type":"esm"}],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":73.747,"methods":[{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.032,"difficulty":4.875,"effort":464.021,"length":25,"time":25.779,"vocabulary":14,"volume":95.184,"operands":{"distinct":8,"total":13,"identifiers":["config","ctx","checkHttpRequestHasBody","method","trimObj","data","params","next"]},"operators":{"distinct":6,"total":12,"identifiers":["const","=",".","if","else","()"]}},"paramCount":2,"sloc":{"logical":8,"physical":9},"errors":[],"lineEnd":11,"lineStart":3,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":16.667,"halstead":{"bugs":0.018,"difficulty":3.281,"effort":358.946,"length":14,"time":19.941,"vocabulary":7.5,"volume":54.696,"operands":{"distinct":4,"total":7.5},"operators":{"distinct":3.5,"total":6.5}},"paramCount":1,"sloc":{"logical":4.5,"physical":6}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.032,"difficulty":4.875,"effort":464.021,"length":25,"time":25.779,"vocabulary":14,"volume":95.184,"operands":{"distinct":8,"total":13},"operators":{"distinct":6,"total":12}},"paramCount":2,"sloc":{"logical":8,"physical":9}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-request/src/template/preventRepeatReq.js","report":{"aggregate":{"cyclomatic":17,"cyclomaticDensity":32.075,"halstead":{"bugs":0.419,"difficulty":30.281,"effort":38084.577,"length":224,"time":2115.81,"vocabulary":49,"volume":1257.695,"operands":{"distinct":32,"total":114,"identifiers":["requestMap","Map","mergeRequestMap","requestQueue","handleCachingStart","ctx","isRequesting","get","key","Promise","resolve","queue","set","concat","true","handleRepeatRequest","length","0","forEach","error","response","delete","next","config","mergeRequest","result","Object","keys","type","\"REPEAT\"","msg","\"重复请求\""]},"operators":{"distinct":17,"total":110,"identifiers":["const","=","new","function","()",".","if","return","function=>","||","[]","&&",">","else","{}",":","! (prefix)"]}},"paramCount":7,"sloc":{"logical":53,"physical":65}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":65,"lineStart":1,"maintainability":63.099,"methods":[{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.034,"difficulty":5.778,"effort":590.411,"length":25,"time":32.801,"vocabulary":17,"volume":102.187,"operands":{"distinct":9,"total":13,"identifiers":["isRequesting","mergeRequestMap","get","ctx","key","Promise","resolve","set","true"]},"operators":{"distinct":8,"total":12,"identifiers":["const","=","()",".","if","return","new","function=>"]}},"paramCount":1,"sloc":{"logical":6,"physical":10},"errors":[],"lineEnd":15,"lineStart":6,"name":"handleCachingStart","paramNames":["ctx"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.03,"difficulty":4.5,"effort":411.194,"length":24,"time":22.844,"vocabulary":14,"volume":91.377,"operands":{"distinct":8,"total":12,"identifiers":["queue","requestQueue","get","ctx","key","set","concat","resolve"]},"operators":{"distinct":6,"total":12,"identifiers":["const","=","||","()",".","[]"]}},"paramCount":1,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":12,"lineStart":9,"name":"","paramNames":["resolve"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":42.857,"halstead":{"bugs":0.054,"difficulty":7.273,"effort":1173.973,"length":38,"time":65.221,"vocabulary":19,"volume":161.421,"operands":{"distinct":11,"total":20,"identifiers":["queue","requestQueue","get","ctx","key","length","0","forEach","resolve","delete","mergeRequestMap"]},"operators":{"distinct":8,"total":18,"identifiers":["const","=","()",".","if","&&",">","function=>"]}},"paramCount":1,"sloc":{"logical":7,"physical":18},"errors":[],"lineEnd":34,"lineStart":17,"name":"handleRepeatRequest","paramNames":["ctx"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.023,"difficulty":7.5,"effort":523.204,"length":21,"time":29.067,"vocabulary":10,"volume":69.76,"operands":{"distinct":4,"total":10,"identifiers":["ctx","error","resolve","response"]},"operators":{"distinct":6,"total":11,"identifiers":["if","else",".","()","{}",":"]}},"paramCount":1,"sloc":{"logical":6,"physical":11},"errors":[],"lineEnd":30,"lineStart":20,"name":"","paramNames":["resolve"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":26.087,"halstead":{"bugs":0.143,"difficulty":12.286,"effort":5267.789,"length":85,"time":292.655,"vocabulary":33,"volume":428.774,"operands":{"distinct":21,"total":43,"identifiers":["ctx","config","mergeRequest","result","handleCachingStart","Object","keys","forEach","key","requestMap","get","error","type","\"REPEAT\"","msg","\"重复请求\"","set","true","next","handleRepeatRequest","delete"]},"operators":{"distinct":12,"total":42,"identifiers":["if","else",".","const","=","()","function=>","return","&&","! (prefix)","{}",":"]}},"paramCount":2,"sloc":{"logical":23,"physical":29},"errors":[],"lineEnd":64,"lineStart":36,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":1.333,"effort":21.671,"length":7,"time":1.204,"vocabulary":5,"volume":16.253,"operands":{"distinct":3,"total":4,"identifiers":["ctx","key","result"]},"operators":{"distinct":2,"total":3,"identifiers":["=","[]"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":42,"lineStart":40,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.429,"cyclomaticDensity":4.582,"halstead":{"bugs":0.06,"difficulty":4.326,"effort":5440.654,"length":32,"time":302.259,"vocabulary":7,"volume":179.671,"operands":{"distinct":4.571,"total":16.286},"operators":{"distinct":2.429,"total":15.714}},"paramCount":1,"sloc":{"logical":7.571,"physical":9.286}},"methodAverage":{"cyclomatic":2.667,"cyclomaticDensity":47.602,"halstead":{"bugs":0.048,"difficulty":6.445,"effort":1331.374,"length":33.333,"time":73.965,"vocabulary":16.333,"volume":144.962,"operands":{"distinct":9.333,"total":17},"operators":{"distinct":7,"total":16.333}},"paramCount":1.167,"sloc":{"logical":7.833,"physical":12.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-request/src/template/request.js","report":{"aggregate":{"cyclomatic":47,"cyclomaticDensity":27.811,"halstead":{"bugs":1.531,"difficulty":39.236,"effort":180211.021,"length":651,"time":10011.723,"vocabulary":133,"volume":4592.989,"operands":{"distinct":108,"total":339,"identifiers":["addInterceptors","instance","interceptors","type","'request'","forEach","fn","Array","isArray","use","isFunction","addRequestInterceptors","\"request\"","addResponseInterceptors","\"response\"","axiosMiddleware","context","next","response","request","config","error","getRequestInstance","responseDataAdaptor","requestInterceptors","responseInterceptors","errorHandler","otherConfigs","plugin","applyPlugins","key","ApplyPluginsType","modify","initialValue","defaultConfig","Object","assign","timeout","10000","withCredentials","true","axios","create","scheduler","paramsProcess","genRequestKey","cacheControl","preventRepeatReq","throttle","resDataAdaptor","resErrorProcess","setDataField","dataField","REPLACE_DATA_FIELD","compose","handleApiPathBase","url","options","startsWith","\"http\"","base","REPLACE_BASE","userConfigHandler","data","method","\"post\"","toUpperCase","checkHttpRequestHasBody","params","currentRequestInstance","null","createContext","userConfig","getResponseCode","_rawData","code","skipErrorHandlerToObj","skipErrorHandler","reduce","acc","cur","handleRequestError","skipObj","resCode","errorKey","\"default\"","status","\"string\"","then","useResonse","Promise","reject","isPromiseLike","obj","\"object\"","\"function\"","useRequest","loadingRef","ref","errorRef","dataRef","promise","res","value","catch","finally","false","loading"]},"operators":{"distinct":25,"total":312,"identifiers":["function","=","()",".","function=>","if","else","[]","... (spread)","try","catch","const","{}","... (rest)",":","return","``","${}","||","let","! (prefix)","===","&&","typeof (prefix)",":?"]}},"paramCount":33,"sloc":{"logical":169,"physical":219}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"AXIOS_PATH","type":"esm"},{"line":2,"path":"@fesjs/fes","type":"esm"},{"line":3,"path":"vue","type":"esm"},{"line":4,"path":"./scheduler","type":"esm"},{"line":8,"path":"./helpers","type":"esm"},{"line":10,"path":"./setDataField","type":"esm"},{"line":11,"path":"./paramsProcess","type":"esm"},{"line":12,"path":"./genRequestKey","type":"esm"},{"line":13,"path":"./preventRepeatReq","type":"esm"},{"line":14,"path":"./throttle","type":"esm"},{"line":15,"path":"./cacheControl","type":"esm"},{"line":16,"path":"./resDataAdaptor","type":"esm"},{"line":17,"path":"./resErrorProcess","type":"esm"}],"errors":[],"lineEnd":219,"lineStart":1,"maintainability":61.658,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["interceptors","forEach","fn"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","function=>"]}},"paramCount":3,"sloc":{"logical":2,"physical":9},"errors":[],"lineEnd":27,"lineStart":19,"name":"addInterceptors","paramNames":["instance","interceptors","type"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":42.857,"halstead":{"bugs":0.038,"difficulty":5.625,"effort":642.491,"length":30,"time":35.694,"vocabulary":14,"volume":114.221,"operands":{"distinct":8,"total":15,"identifiers":["Array","isArray","fn","instance","interceptors","type","use","isFunction"]},"operators":{"distinct":6,"total":15,"identifiers":["if","else","()",".","[]","... (spread)"]}},"paramCount":1,"sloc":{"logical":7,"physical":7},"errors":[],"lineEnd":26,"lineStart":20,"name":"","paramNames":["fn"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":0.5,"effort":5.805,"length":5,"time":0.322,"vocabulary":5,"volume":11.61,"operands":{"distinct":4,"total":4,"identifiers":["addInterceptors","instance","interceptors","\"request\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":2,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":31,"lineStart":29,"name":"addRequestInterceptors","paramNames":["instance","interceptors"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":0.5,"effort":5.805,"length":5,"time":0.322,"vocabulary":5,"volume":11.61,"operands":{"distinct":4,"total":4,"identifiers":["addInterceptors","instance","interceptors","\"response\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":2,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":35,"lineStart":33,"name":"addResponseInterceptors","paramNames":["instance","interceptors"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.027,"difficulty":4.286,"effort":353.375,"length":23,"time":19.632,"vocabulary":12,"volume":82.454,"operands":{"distinct":7,"total":12,"identifiers":["context","response","instance","request","config","error","next"]},"operators":{"distinct":5,"total":11,"identifiers":["try","=",".","()","catch"]}},"paramCount":2,"sloc":{"logical":7,"physical":8},"errors":[],"lineEnd":44,"lineStart":37,"name":"axiosMiddleware","paramNames":["context","next"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":2.703,"halstead":{"bugs":0.228,"difficulty":7.463,"effort":5096.815,"length":121,"time":283.156,"vocabulary":50,"volume":682.907,"operands":{"distinct":41,"total":68,"identifiers":["responseDataAdaptor","requestInterceptors","responseInterceptors","errorHandler","otherConfigs","plugin","applyPlugins","key","\"request\"","type","ApplyPluginsType","modify","initialValue","defaultConfig","Object","assign","timeout","10000","withCredentials","true","instance","axios","create","addRequestInterceptors","addResponseInterceptors","scheduler","use","paramsProcess","genRequestKey","cacheControl","preventRepeatReq","throttle","axiosMiddleware","resDataAdaptor","resErrorProcess","setDataField","context","dataField","REPLACE_DATA_FIELD","request","compose"]},"operators":{"distinct":9,"total":53,"identifiers":["const","=","{}","[]","... (rest)","()",".",":","return"]}},"paramCount":0,"sloc":{"logical":37,"physical":45},"errors":[],"lineEnd":90,"lineStart":46,"name":"getRequestInstance","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":50,"halstead":{"bugs":0.03,"difficulty":5.5,"effort":492.932,"length":25,"time":27.385,"vocabulary":12,"volume":89.624,"operands":{"distinct":6,"total":11,"identifiers":["url","startsWith","\"http\"","options","base","REPLACE_BASE"]},"operators":{"distinct":6,"total":14,"identifiers":["if","()",".","return","``","${}"]}},"paramCount":2,"sloc":{"logical":6,"physical":8},"errors":[],"lineEnd":100,"lineStart":93,"name":"handleApiPathBase","paramNames":["url","options"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":30,"halstead":{"bugs":0.052,"difficulty":8.167,"effort":1274,"length":39,"time":70.778,"vocabulary":16,"volume":156,"operands":{"distinct":9,"total":21,"identifiers":["options","url","handleApiPathBase","method","\"post\"","toUpperCase","checkHttpRequestHasBody","data","params"]},"operators":{"distinct":7,"total":18,"identifiers":["=",".","()","||","if","else","return"]}},"paramCount":3,"sloc":{"logical":10,"physical":10},"errors":[],"lineEnd":111,"lineStart":102,"name":"userConfigHandler","paramNames":["url","data","options"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.019,"difficulty":3.5,"effort":197.655,"length":17,"time":10.981,"vocabulary":10,"volume":56.473,"operands":{"distinct":5,"total":7,"identifiers":["currentRequestInstance","context","config","defaultConfig","userConfig"]},"operators":{"distinct":5,"total":10,"identifiers":["return","{}","... (spread)",".",":"]}},"paramCount":1,"sloc":{"logical":2,"physical":9},"errors":[],"lineEnd":123,"lineStart":115,"name":"createContext","paramNames":["userConfig"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":66.667,"halstead":{"bugs":0.024,"difficulty":3.6,"effort":259.2,"length":24,"time":14.4,"vocabulary":8,"volume":72,"operands":{"distinct":5,"total":12,"identifiers":["response","_rawData","code","data","null"]},"operators":{"distinct":3,"total":12,"identifiers":["if",".","return"]}},"paramCount":1,"sloc":{"logical":6,"physical":7},"errors":[],"lineEnd":132,"lineStart":126,"name":"getResponseCode","paramNames":["response"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.026,"difficulty":6.75,"effort":527.43,"length":20,"time":29.302,"vocabulary":15,"volume":78.138,"operands":{"distinct":6,"total":9,"identifiers":["Array","isArray","skipErrorHandler","reduce","acc","cur"]},"operators":{"distinct":9,"total":11,"identifiers":["if","! (prefix)","()",".","=","[]","return","function=>","{}"]}},"paramCount":1,"sloc":{"logical":6,"physical":10},"errors":[],"lineEnd":143,"lineStart":134,"name":"skipErrorHandlerToObj","paramNames":["skipErrorHandler"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.006,"difficulty":2,"effort":36.189,"length":7,"time":2.011,"vocabulary":6,"volume":18.095,"operands":{"distinct":3,"total":4,"identifiers":["acc","cur","true"]},"operators":{"distinct":3,"total":3,"identifiers":["=","[]","return"]}},"paramCount":2,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":142,"lineStart":139,"name":"","paramNames":["acc","cur"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":10,"cyclomaticDensity":55.556,"halstead":{"bugs":0.133,"difficulty":18,"effort":7191.673,"length":85,"time":399.537,"vocabulary":26,"volume":399.537,"operands":{"distinct":14,"total":42,"identifiers":["config","skipErrorHandler","true","skipObj","skipErrorHandlerToObj","resCode","getResponseCode","response","errorKey","\"default\"","errorHandler","error","type","status"]},"operators":{"distinct":12,"total":43,"identifiers":["if","===",".","return","const","=","()","let","else","&&","[]","! (prefix)"]}},"paramCount":4,"sloc":{"logical":18,"physical":25},"errors":[],"lineEnd":169,"lineStart":145,"name":"handleRequestError","paramNames":["errorHandler","error","response","config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":21.429,"halstead":{"bugs":0.065,"difficulty":9.231,"effort":1800.387,"length":42,"time":100.022,"vocabulary":25,"volume":195.042,"operands":{"distinct":13,"total":20,"identifiers":["options","\"string\"","method","currentRequestInstance","getRequestInstance","userConfig","userConfigHandler","url","data","context","createContext","request","then"]},"operators":{"distinct":12,"total":22,"identifiers":["if","===","typeof (prefix)","=","{}",":","! (prefix)","()","const","return",".","function=>"]}},"paramCount":3,"sloc":{"logical":14,"physical":20},"errors":[],"lineEnd":190,"lineStart":171,"name":"","paramNames":["url","data","options"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":50,"halstead":{"bugs":0.04,"difficulty":5.333,"effort":645.939,"length":31,"time":35.886,"vocabulary":15,"volume":121.114,"operands":{"distinct":9,"total":16,"identifiers":["context","error","config","useResonse","response","data","handleRequestError","Promise","reject"]},"operators":{"distinct":6,"total":15,"identifiers":["if","! (prefix)",".","return",":?","()"]}},"paramCount":0,"sloc":{"logical":6,"physical":7},"errors":[],"lineEnd":189,"lineStart":183,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":300,"halstead":{"bugs":0.018,"difficulty":4.5,"effort":239.179,"length":16,"time":13.288,"vocabulary":10,"volume":53.151,"operands":{"distinct":4,"total":6,"identifiers":["obj","\"object\"","then","\"function\""]},"operators":{"distinct":6,"total":10,"identifiers":["return","&&","! (prefix)","===","typeof (prefix)","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":194,"lineStart":192,"name":"isPromiseLike","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":8.696,"halstead":{"bugs":0.099,"difficulty":9.472,"effort":2806.968,"length":61,"time":155.943,"vocabulary":29,"volume":296.337,"operands":{"distinct":18,"total":31,"identifiers":["loadingRef","ref","true","errorRef","null","dataRef","promise","isPromiseLike","url","request","data","options","then","res","catch","error","finally","loading"]},"operators":{"distinct":11,"total":30,"identifiers":["const","=","()","let","if","else",".","function=>","return","{}",":"]}},"paramCount":3,"sloc":{"logical":23,"physical":23},"errors":[],"lineEnd":218,"lineStart":196,"name":"","paramNames":["url","data","options"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["dataRef","value","res"]},"operators":{"distinct":2,"total":2,"identifiers":["=","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":208,"lineStart":206,"name":"","paramNames":["res"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["errorRef","value","error"]},"operators":{"distinct":2,"total":2,"identifiers":["=","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":210,"lineStart":208,"name":"","paramNames":["error"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["loadingRef","value","false"]},"operators":{"distinct":2,"total":2,"identifiers":["=","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":212,"lineStart":210,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.238,"cyclomaticDensity":1.324,"halstead":{"bugs":0.073,"difficulty":1.868,"effort":8581.477,"length":31,"time":476.749,"vocabulary":6.333,"volume":218.714,"operands":{"distinct":5.143,"total":16.143},"operators":{"distinct":1.19,"total":14.857}},"paramCount":1.571,"sloc":{"logical":8.048,"physical":10.429}},"methodAverage":{"cyclomatic":2.3,"cyclomaticDensity":66.276,"halstead":{"bugs":0.041,"difficulty":4.946,"effort":1081.697,"length":28.6,"time":60.094,"vocabulary":13.95,"volume":124.432,"operands":{"distinct":8.4,"total":14.7},"operators":{"distinct":5.55,"total":13.9}},"paramCount":1.65,"sloc":{"logical":7.6,"physical":10.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-request/src/template/resDataAdaptor.js","report":{"aggregate":{"cyclomatic":6,"cyclomaticDensity":66.667,"halstead":{"bugs":0.044,"difficulty":10.286,"effort":1366.295,"length":34,"time":75.905,"vocabulary":15,"volume":132.834,"operands":{"distinct":7,"total":18,"identifiers":["response","responseDataAdaptor","next","isFunction","isObject","data","isString"]},"operators":{"distinct":8,"total":16,"identifiers":["function=>","{}","if","&&","()","||",".","="]}},"paramCount":3,"sloc":{"logical":9,"physical":9}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./helpers","type":"esm"}],"errors":[],"lineEnd":9,"lineStart":1,"maintainability":72.055,"methods":[{"cyclomatic":5,"cyclomaticDensity":62.5,"halstead":{"bugs":0.036,"difficulty":6.429,"effort":689.868,"length":29,"time":38.326,"vocabulary":13,"volume":107.313,"operands":{"distinct":7,"total":15,"identifiers":["isFunction","responseDataAdaptor","response","isObject","data","isString","next"]},"operators":{"distinct":6,"total":14,"identifiers":["if","&&","()","||",".","="]}},"paramCount":3,"sloc":{"logical":8,"physical":6},"errors":[],"lineEnd":8,"lineStart":3,"name":"","paramNames":["response","responseDataAdaptor","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.022,"difficulty":5.143,"effort":683.148,"length":17,"time":37.953,"vocabulary":7.5,"volume":66.417,"operands":{"distinct":3.5,"total":9},"operators":{"distinct":4,"total":8}},"paramCount":1.5,"sloc":{"logical":4.5,"physical":4.5}},"methodAverage":{"cyclomatic":5,"cyclomaticDensity":62.5,"halstead":{"bugs":0.036,"difficulty":6.429,"effort":689.868,"length":29,"time":38.326,"vocabulary":13,"volume":107.313,"operands":{"distinct":7,"total":15},"operators":{"distinct":6,"total":14}},"paramCount":3,"sloc":{"logical":8,"physical":6}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-request/src/template/resErrorProcess.js","report":{"aggregate":{"cyclomatic":6,"cyclomaticDensity":54.545,"halstead":{"bugs":0.062,"difficulty":11.5,"effort":2137.193,"length":43,"time":118.733,"vocabulary":20,"volume":185.843,"operands":{"distinct":10,"total":23,"identifiers":["ctx","next","response","config","closeResDataCheck","isObject","data","code","\"0\"","error"]},"operators":{"distinct":10,"total":20,"identifiers":["function=>","const","=","{}","if","&&","! (prefix)",".","()","!=="]}},"paramCount":2,"sloc":{"logical":11,"physical":18}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./helpers","type":"esm"}],"errors":[],"lineEnd":18,"lineStart":1,"maintainability":69.259,"methods":[{"cyclomatic":5,"cyclomaticDensity":50,"halstead":{"bugs":0.057,"difficulty":9.45,"effort":1605.717,"length":40,"time":89.206,"vocabulary":19,"volume":169.917,"operands":{"distinct":10,"total":21,"identifiers":["response","config","ctx","closeResDataCheck","isObject","data","code","\"0\"","error","next"]},"operators":{"distinct":9,"total":19,"identifiers":["const","=","{}","if","&&","! (prefix)",".","()","!=="]}},"paramCount":2,"sloc":{"logical":10,"physical":14},"errors":[],"lineEnd":17,"lineStart":4,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3,"cyclomaticDensity":27.273,"halstead":{"bugs":0.031,"difficulty":5.75,"effort":1068.597,"length":21.5,"time":59.366,"vocabulary":10,"volume":92.921,"operands":{"distinct":5,"total":11.5},"operators":{"distinct":5,"total":10}},"paramCount":1,"sloc":{"logical":5.5,"physical":9}},"methodAverage":{"cyclomatic":5,"cyclomaticDensity":50,"halstead":{"bugs":0.057,"difficulty":9.45,"effort":1605.717,"length":40,"time":89.206,"vocabulary":19,"volume":169.917,"operands":{"distinct":10,"total":21},"operators":{"distinct":9,"total":19}},"paramCount":2,"sloc":{"logical":10,"physical":14}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-request/src/template/scheduler.js","report":{"aggregate":{"cyclomatic":10,"cyclomaticDensity":29.412,"halstead":{"bugs":0.216,"difficulty":22.846,"effort":14801.01,"length":116,"time":822.278,"vocabulary":48,"volume":647.856,"operands":{"distinct":26,"total":54,"identifiers":["Scheduler","constructor","middlewares","use","fn","\"function\"","TypeError","\"middleware must be a function!\"","push","compose","context","next","index","1","dispatch","i","Promise","reject","Error","\"next() called multiple times\"","length","resolve","bind","null","e","0"]},"operators":{"distinct":22,"total":62,"identifiers":["class","=",".","this","[]","if","!==","typeof (prefix)","throw","new","()","return","function=>","let","- (prefix)","const","<=","===","! (prefix)","try","+","catch"]}},"paramCount":4,"sloc":{"logical":34,"physical":34}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[{"aggregate":{"cyclomatic":9,"cyclomaticDensity":27.273,"halstead":{"bugs":0.206,"difficulty":21.84,"effort":13511.074,"length":112,"time":750.615,"vocabulary":46,"volume":618.639,"operands":{"distinct":25,"total":52,"identifiers":["constructor","middlewares","use","fn","\"function\"","TypeError","\"middleware must be a function!\"","push","compose","context","next","index","1","dispatch","i","Promise","reject","Error","\"next() called multiple times\"","length","resolve","bind","null","e","0"]},"operators":{"distinct":21,"total":60,"identifiers":["=",".","this","[]","if","!==","typeof (prefix)","throw","new","()","return","function=>","let","- (prefix)","const","<=","===","! (prefix)","try","+","catch"]}},"paramCount":4,"sloc":{"logical":33,"physical":30}},"errors":[],"lineEnd":31,"lineStart":2,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":2,"effort":23.219,"length":5,"time":1.29,"vocabulary":5,"volume":11.61,"operands":{"distinct":1,"total":1,"identifiers":["middlewares"]},"operators":{"distinct":4,"total":4,"identifiers":["=",".","this","[]"]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":5,"lineStart":3,"name":"constructor","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.023,"difficulty":5.25,"effort":369.201,"length":18,"time":20.511,"vocabulary":15,"volume":70.324,"operands":{"distinct":6,"total":7,"identifiers":["fn","\"function\"","TypeError","\"middleware must be a function!\"","middlewares","push"]},"operators":{"distinct":9,"total":11,"identifiers":["if","!==","typeof (prefix)","throw","new","()",".","this","return"]}},"paramCount":1,"sloc":{"logical":4,"physical":5},"errors":[],"lineEnd":11,"lineStart":7,"name":"use","paramNames":["fn"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["context","next"]},"operators":{"distinct":2,"total":2,"identifiers":["return","function=>"]}},"paramCount":0,"sloc":{"logical":2,"physical":18},"errors":[],"lineEnd":30,"lineStart":13,"name":"compose","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.017,"difficulty":4.2,"effort":210.796,"length":14,"time":11.711,"vocabulary":12,"volume":50.189,"operands":{"distinct":5,"total":6,"identifiers":["index","1","dispatch","i","0"]},"operators":{"distinct":7,"total":8,"identifiers":["let","=","- (prefix)","const","function=>","return","()"]}},"paramCount":2,"sloc":{"logical":5,"physical":16},"errors":[],"lineEnd":29,"lineStart":14,"name":"","paramNames":["context","next"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":22.222,"halstead":{"bugs":0.112,"difficulty":14.118,"effort":4729.412,"length":67,"time":262.745,"vocabulary":32,"volume":335,"operands":{"distinct":17,"total":32,"identifiers":["i","index","Promise","reject","Error","\"next() called multiple times\"","fn","middlewares","length","next","resolve","context","dispatch","bind","null","1","e"]},"operators":{"distinct":15,"total":35,"identifiers":["if","<=","return","()",".","new","=","let","[]","this","===","! (prefix)","try","+","catch"]}},"paramCount":1,"sloc":{"logical":18,"physical":12},"errors":[],"lineEnd":27,"lineStart":16,"name":"","paramNames":["i"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":4.545,"halstead":{"bugs":0.034,"difficulty":3.64,"effort":2251.846,"length":18.667,"time":125.103,"vocabulary":7.667,"volume":103.106,"operands":{"distinct":4.167,"total":8.667},"operators":{"distinct":3.5,"total":10}},"paramCount":0.667,"sloc":{"logical":5.5,"physical":5}},"methodAverage":{"cyclomatic":1.8,"cyclomaticDensity":48.444,"halstead":{"bugs":0.032,"difficulty":5.314,"effort":1068.126,"length":21.6,"time":59.34,"vocabulary":13.6,"volume":95.025,"operands":{"distinct":6.2,"total":9.6},"operators":{"distinct":7.4,"total":12}},"paramCount":0.8,"sloc":{"logical":6,"physical":10.8}},"name":"Scheduler","maintainability":68.734}],"dependencies":[],"errors":[],"lineEnd":34,"lineStart":1,"maintainability":67.647,"methods":[],"aggregateAverage":{"cyclomatic":1.667,"cyclomaticDensity":4.902,"halstead":{"bugs":0.036,"difficulty":3.808,"effort":2466.835,"length":19.333,"time":137.046,"vocabulary":8,"volume":107.976,"operands":{"distinct":4.333,"total":9},"operators":{"distinct":3.667,"total":10.333}},"paramCount":0.667,"sloc":{"logical":5.667,"physical":5.667}},"methodAverage":{"cyclomatic":1.8,"cyclomaticDensity":48.444,"halstead":{"bugs":0.032,"difficulty":5.314,"effort":1068.126,"length":21.6,"time":59.34,"vocabulary":13.6,"volume":95.025,"operands":{"distinct":6.2,"total":9.6},"operators":{"distinct":7.4,"total":12}},"paramCount":0.8,"sloc":{"logical":6,"physical":10.8}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-request/src/template/setDataField.js","report":{"aggregate":{"cyclomatic":6,"cyclomaticDensity":75,"halstead":{"bugs":0.085,"difficulty":17.222,"effort":4389.525,"length":60,"time":243.863,"vocabulary":19,"volume":254.876,"operands":{"distinct":9,"total":31,"identifiers":["ctx","next","dataField","config","error","response","isObject","data","_rawData"]},"operators":{"distinct":10,"total":29,"identifiers":["function=>","const","=","??",".","if","&&","! (prefix)","()","[]"]}},"paramCount":2,"sloc":{"logical":8,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./helpers","type":"esm"}],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":70.837,"methods":[{"cyclomatic":5,"cyclomaticDensity":71.429,"halstead":{"bugs":0.079,"difficulty":14.5,"effort":3446.443,"length":57,"time":191.469,"vocabulary":18,"volume":237.686,"operands":{"distinct":9,"total":29,"identifiers":["dataField","ctx","config","error","response","isObject","data","_rawData","next"]},"operators":{"distinct":9,"total":28,"identifiers":["const","=","??",".","if","&&","! (prefix)","()","[]"]}},"paramCount":2,"sloc":{"logical":7,"physical":8},"errors":[],"lineEnd":11,"lineStart":4,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3,"cyclomaticDensity":37.5,"halstead":{"bugs":0.042,"difficulty":8.611,"effort":2194.763,"length":30,"time":121.931,"vocabulary":9.5,"volume":127.438,"operands":{"distinct":4.5,"total":15.5},"operators":{"distinct":5,"total":14.5}},"paramCount":1,"sloc":{"logical":4,"physical":6}},"methodAverage":{"cyclomatic":5,"cyclomaticDensity":71.429,"halstead":{"bugs":0.079,"difficulty":14.5,"effort":3446.443,"length":57,"time":191.469,"vocabulary":18,"volume":237.686,"operands":{"distinct":9,"total":29},"operators":{"distinct":9,"total":28}},"paramCount":2,"sloc":{"logical":7,"physical":8}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-request/src/template/throttle.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":28.571,"halstead":{"bugs":0.093,"difficulty":10.875,"effort":3032.239,"length":58,"time":168.458,"vocabulary":28,"volume":278.827,"operands":{"distinct":16,"total":29,"identifiers":["throttleMap","Map","ctx","next","config","throttle","get","key","Date","now","error","type","\"FREQUENTLY\"","msg","\"请求过于频繁\"","set"]},"operators":{"distinct":12,"total":29,"identifiers":["const","=","new","function=>","if",".",">=","()","{}",":","return","+"]}},"paramCount":2,"sloc":{"logical":14,"physical":17}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":17,"lineStart":1,"maintainability":66.512,"methods":[{"cyclomatic":3,"cyclomaticDensity":25,"halstead":{"bugs":0.076,"difficulty":7.5,"effort":1719.361,"length":50,"time":95.52,"vocabulary":24,"volume":229.248,"operands":{"distinct":15,"total":25,"identifiers":["ctx","config","throttle","throttleMap","get","key","Date","now","error","type","\"FREQUENTLY\"","msg","\"请求过于频繁\"","next","set"]},"operators":{"distinct":9,"total":25,"identifiers":["if",".",">=","()","=","{}",":","return","+"]}},"paramCount":2,"sloc":{"logical":12,"physical":13},"errors":[],"lineEnd":16,"lineStart":4,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":14.286,"halstead":{"bugs":0.046,"difficulty":5.438,"effort":1516.12,"length":29,"time":84.229,"vocabulary":14,"volume":139.413,"operands":{"distinct":8,"total":14.5},"operators":{"distinct":6,"total":14.5}},"paramCount":1,"sloc":{"logical":7,"physical":8.5}},"methodAverage":{"cyclomatic":3,"cyclomaticDensity":25,"halstead":{"bugs":0.076,"difficulty":7.5,"effort":1719.361,"length":50,"time":95.52,"vocabulary":24,"volume":229.248,"operands":{"distinct":15,"total":25},"operators":{"distinct":9,"total":25}},"paramCount":2,"sloc":{"logical":12,"physical":13}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-sass/.fatherrc.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["disableTypeCheck","false"]},"operators":{"distinct":2,"total":2,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":1,"physical":4}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":4,"lineStart":1,"maintainability":95.841,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2},"operators":{"distinct":2,"total":2}},"paramCount":0,"sloc":{"logical":1,"physical":4}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-sass/src/index.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":11.765,"halstead":{"bugs":0.2,"difficulty":7.734,"effort":4640.979,"length":112,"time":257.832,"vocabulary":41,"volume":600.046,"operands":{"distinct":32,"total":55,"identifiers":["api","utils","describe","key","\"sass\"","config","joi","object","implementation","any","sassOptions","prependData","alternatives","string","func","sourceMap","boolean","webpackImporter","default","chainWebpack","memo","createCSSRule","lang","test","/\\.(sass|scss)(\\?.*)?$/","loader","require","resolve","\"sass-loader\"","options","deepmerge","sass"]},"operators":{"distinct":9,"total":57,"identifiers":["function=>","const","=","{}","()",".",":","return","||"]}},"paramCount":3,"sloc":{"logical":34,"physical":38}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":30,"path":"sass","type":"cjs"}],"errors":[],"lineEnd":38,"lineStart":1,"maintainability":62.144,"methods":[{"cyclomatic":1,"cyclomaticDensity":4.348,"halstead":{"bugs":0.119,"difficulty":6.364,"effort":2279.474,"length":73,"time":126.637,"vocabulary":30,"volume":358.203,"operands":{"distinct":22,"total":35,"identifiers":["utils","api","describe","key","\"sass\"","config","joi","object","implementation","any","sassOptions","prependData","alternatives","string","func","sourceMap","boolean","webpackImporter","default","chainWebpack","memo","createCSSRule"]},"operators":{"distinct":8,"total":38,"identifiers":["const","=","{}","()",".",":","return","function=>"]}},"paramCount":1,"sloc":{"logical":23,"physical":36},"errors":[],"lineEnd":37,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":20,"halstead":{"bugs":0.056,"difficulty":3.353,"effort":561.188,"length":37,"time":31.177,"vocabulary":23,"volume":167.372,"operands":{"distinct":17,"total":19,"identifiers":["createCSSRule","lang","\"sass\"","test","/\\.(sass|scss)(\\?.*)?$/","loader","require","resolve","\"sass-loader\"","options","utils","deepmerge","implementation","api","config","sass","memo"]},"operators":{"distinct":6,"total":18,"identifiers":["()","{}",":",".","||","return"]}},"paramCount":2,"sloc":{"logical":10,"physical":14},"errors":[],"lineEnd":36,"lineStart":23,"name":"","paramNames":["memo","createCSSRule"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.333,"cyclomaticDensity":3.922,"halstead":{"bugs":0.067,"difficulty":2.578,"effort":1546.993,"length":37.333,"time":85.944,"vocabulary":13.667,"volume":200.015,"operands":{"distinct":10.667,"total":18.333},"operators":{"distinct":3,"total":19}},"paramCount":1,"sloc":{"logical":11.333,"physical":12.667}},"methodAverage":{"cyclomatic":1.5,"cyclomaticDensity":12.174,"halstead":{"bugs":0.088,"difficulty":4.858,"effort":1420.331,"length":55,"time":78.907,"vocabulary":26.5,"volume":262.787,"operands":{"distinct":19.5,"total":27},"operators":{"distinct":7,"total":28}},"paramCount":1.5,"sloc":{"logical":16.5,"physical":25}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-vuex/.fatherrc.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["disableTypeCheck","false"]},"operators":{"distinct":2,"total":2,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":1,"physical":4}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":4,"lineStart":1,"maintainability":95.841,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2},"operators":{"distinct":2,"total":2}},"paramCount":0,"sloc":{"logical":1,"physical":4}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-vuex/build.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4,"identifiers":["module","exports","copy","\"runtime\""]},"operators":{"distinct":5,"total":5,"identifiers":["=",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":84.899,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4},"operators":{"distinct":5,"total":5}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-vuex/src/helper.js","report":{"aggregate":{"cyclomatic":33,"cyclomaticDensity":23.741,"halstead":{"bugs":1.364,"difficulty":42.135,"effort":172453.699,"length":599,"time":9580.761,"vocabulary":114,"volume":4092.901,"operands":{"distinct":89,"total":300,"identifiers":["getDirFilePaths","dir","dirs","readdirSync","pathList","name","path","winPath","join","info","statSync","isDirectory","concat","endsWith","\".js\"","push","pathToHump","root","replace","\"\"","RegExp","\"(/|\\.|-|_)\\S\"","\"g\"","text","1","toUpperCase","/\\S/","toLowerCase","getModelTypes","ast","namespace","''","types","mutations","actions","getters","namespaced","false","type","\"ObjectExpression\"","properties","forEach","node","key","\"namespaced\"","value","true","Object","keys","includes","prop","/","\"modules\"","subTypes","parseModel","paths","modules","importModules","MUTATION_TYPES","ACTION_TYPES","GETTER_TYPES","moduleName","import "," from '","'","content","readFileSync","toString","\"utf-8\"","parser","parse","sourceType","\"module\"","plugins","\"jsx\"","\"typescript\"","program","body","filter","\"ExportDefaultDeclaration\"","0","declaration","parsePlugin","importPlugins","parseStore","modelPaths","pluginPaths","indexOf","\"plugin\""]},"operators":{"distinct":25,"total":299,"identifiers":["function","const","=","()","let","[]","forof","if","else",".","return","function=>","{}",":","!==","&&","===","! (prefix)","``","${}",":?","... (spread)",",",">","- (prefix)"]}},"paramCount":21,"sloc":{"logical":139,"physical":161}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@fesjs/utils","type":"esm"},{"line":2,"path":"fs","type":"esm"},{"line":3,"path":"path","type":"esm"}],"errors":[],"lineEnd":161,"lineStart":1,"maintainability":61.256,"methods":[{"cyclomatic":3,"cyclomaticDensity":15.789,"halstead":{"bugs":0.089,"difficulty":8.75,"effort":2344.344,"length":57,"time":130.241,"vocabulary":26,"volume":267.925,"operands":{"distinct":16,"total":28,"identifiers":["dirs","readdirSync","dir","pathList","name","path","winPath","join","info","statSync","isDirectory","concat","getDirFilePaths","endsWith","\".js\"","push"]},"operators":{"distinct":10,"total":29,"identifiers":["const","=","()","let","[]","forof","if","else",".","return"]}},"paramCount":1,"sloc":{"logical":19,"physical":14},"errors":[],"lineEnd":22,"lineStart":9,"name":"getDirFilePaths","paramNames":["dir"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.034,"difficulty":3,"effort":308.396,"length":27,"time":17.133,"vocabulary":14,"volume":102.799,"operands":{"distinct":10,"total":15,"identifiers":["path","replace","root","\"\"","\".js\"","RegExp","\"(/|\\.|-|_)\\S\"","\"g\"","text","/\\S/"]},"operators":{"distinct":4,"total":12,"identifiers":["return","()",".","function=>"]}},"paramCount":2,"sloc":{"logical":8,"physical":6},"errors":[],"lineEnd":33,"lineStart":28,"name":"pathToHump","paramNames":["path","root"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["text","1","toUpperCase"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","[]"]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":31,"lineStart":31,"name":"","paramNames":["text"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["text","toLowerCase"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":32,"lineStart":32,"name":"","paramNames":["text"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":20,"halstead":{"bugs":0.053,"difficulty":6.875,"effort":1088.482,"length":35,"time":60.471,"vocabulary":23,"volume":158.325,"operands":{"distinct":12,"total":15,"identifiers":["types","mutations","actions","getters","namespaced","false","ast","type","\"ObjectExpression\"","properties","forEach","node"]},"operators":{"distinct":11,"total":20,"identifiers":["const","=","{}",":","let","if","!==",".","return","()","function=>"]}},"paramCount":3,"sloc":{"logical":10,"physical":51},"errors":[],"lineEnd":90,"lineStart":40,"name":"getModelTypes","paramNames":["ast","name","namespace"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":7,"cyclomaticDensity":38.889,"halstead":{"bugs":0.16,"difficulty":18.375,"effort":8833.515,"length":100,"time":490.751,"vocabulary":28,"volume":480.735,"operands":{"distinct":16,"total":49,"identifiers":["node","key","name","\"namespaced\"","value","namespaced","true","Object","keys","types","includes","type","properties","forEach","prop","\"modules\""]},"operators":{"distinct":12,"total":51,"identifiers":["if","&&","===",".","=","return","()","let","[]","! (prefix)","{}","function=>"]}},"paramCount":1,"sloc":{"logical":18,"physical":41},"errors":[],"lineEnd":88,"lineStart":48,"name":"","paramNames":["node"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":133.333,"halstead":{"bugs":0.042,"difficulty":8.438,"effort":1069.127,"length":31,"time":59.396,"vocabulary":17,"volume":126.711,"operands":{"distinct":8,"total":15,"identifiers":["key","prop","name","type","namespace","namespaced","/","\"\""]},"operators":{"distinct":9,"total":16,"identifiers":["const","=","&&",".","if","[]","``","${}",":?"]}},"paramCount":1,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":67,"lineStart":62,"name":"","paramNames":["prop"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.051,"difficulty":4.857,"effort":736.443,"length":34,"time":40.914,"vocabulary":22,"volume":151.621,"operands":{"distinct":14,"total":17,"identifiers":["subTypes","getModelTypes","prop","value","key","name","namespace","namespaced","/","\"\"","Object","keys","types","forEach"]},"operators":{"distinct":8,"total":17,"identifiers":["const","=","()",".","``","${}",":?","function=>"]}},"paramCount":1,"sloc":{"logical":5,"physical":16},"errors":[],"lineEnd":86,"lineStart":71,"name":"","paramNames":["prop"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.038,"difficulty":9,"effort":1027.451,"length":33,"time":57.081,"vocabulary":11,"volume":114.161,"operands":{"distinct":5,"total":15,"identifiers":["namespaced","types","key","name","subTypes"]},"operators":{"distinct":6,"total":18,"identifiers":["if","else","=","[]","{}","... (spread)"]}},"paramCount":1,"sloc":{"logical":4,"physical":13},"errors":[],"lineEnd":85,"lineStart":73,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":7.692,"halstead":{"bugs":0.052,"difficulty":10.125,"effort":1572.651,"length":38,"time":87.37,"vocabulary":17,"volume":155.324,"operands":{"distinct":8,"total":18,"identifiers":["modules","importModules","MUTATION_TYPES","ACTION_TYPES","GETTER_TYPES","paths","forEach","path"]},"operators":{"distinct":9,"total":20,"identifiers":["const","=","[]","let","{}","()",".","function=>","return"]}},"paramCount":2,"sloc":{"logical":13,"physical":36},"errors":[],"lineEnd":132,"lineStart":97,"name":"parseModel","paramNames":["paths","root"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":8.696,"halstead":{"bugs":0.194,"difficulty":11.324,"effort":6577.115,"length":104,"time":365.395,"vocabulary":48,"volume":580.836,"operands":{"distinct":34,"total":55,"identifiers":["moduleName","pathToHump","path","root","importModules","push","import "," from '","'","modules","content","readFileSync","toString","\"utf-8\"","ast","parser","parse","sourceType","\"module\"","plugins","\"jsx\"","\"typescript\"","program","body","filter","0","mutations","actions","getters","getModelTypes","declaration","MUTATION_TYPES","ACTION_TYPES","GETTER_TYPES"]},"operators":{"distinct":14,"total":49,"identifiers":["const","=","()",".","``","${}","let","{}",":","[]",",","function=>","if","... (spread)"]}},"paramCount":1,"sloc":{"logical":23,"physical":26},"errors":[],"lineEnd":128,"lineStart":103,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["body","type","\"ExportDefaultDeclaration\""]},"operators":{"distinct":2,"total":2,"identifiers":["===","."]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":112,"lineStart":112,"name":"","paramNames":["body"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.025,"difficulty":7.2,"effort":532.863,"length":20,"time":29.604,"vocabulary":13,"volume":74.009,"operands":{"distinct":5,"total":9,"identifiers":["plugins","importPlugins","paths","forEach","path"]},"operators":{"distinct":8,"total":11,"identifiers":["const","=","[]","()",".","function=>","return","{}"]}},"paramCount":2,"sloc":{"logical":7,"physical":10},"errors":[],"lineEnd":143,"lineStart":134,"name":"parsePlugin","paramNames":["paths","root"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.032,"difficulty":4.2,"effort":403.2,"length":24,"time":22.4,"vocabulary":16,"volume":96,"operands":{"distinct":10,"total":14,"identifiers":["moduleName","pathToHump","path","root","importPlugins","push","import "," from '","'","plugins"]},"operators":{"distinct":6,"total":10,"identifiers":["const","=","()",".","``","${}"]}},"paramCount":1,"sloc":{"logical":4,"physical":5},"errors":[],"lineEnd":141,"lineStart":137,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.044,"difficulty":7,"effort":934.063,"length":32,"time":51.892,"vocabulary":18,"volume":133.438,"operands":{"distinct":9,"total":14,"identifiers":["paths","getDirFilePaths","root","modelPaths","pluginPaths","forEach","path","parsePlugin","parseModel"]},"operators":{"distinct":9,"total":18,"identifiers":["const","=","()","[]",".","function=>","return","{}","... (spread)"]}},"paramCount":1,"sloc":{"logical":9,"physical":16},"errors":[],"lineEnd":160,"lineStart":145,"name":"parseStore","paramNames":["root"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.025,"difficulty":4.286,"effort":317.181,"length":20,"time":17.621,"vocabulary":13,"volume":74.009,"operands":{"distinct":7,"total":10,"identifiers":["path","indexOf","\"plugin\"","1","pluginPaths","push","modelPaths"]},"operators":{"distinct":6,"total":10,"identifiers":["if","else",">","()",".","- (prefix)"]}},"paramCount":1,"sloc":{"logical":5,"physical":7},"errors":[],"lineEnd":155,"lineStart":149,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.941,"cyclomaticDensity":1.397,"halstead":{"bugs":0.08,"difficulty":2.479,"effort":10144.335,"length":35.235,"time":563.574,"vocabulary":6.706,"volume":240.759,"operands":{"distinct":5.235,"total":17.647},"operators":{"distinct":1.471,"total":17.588}},"paramCount":1.235,"sloc":{"logical":8.176,"physical":9.471}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":38.581,"halstead":{"bugs":0.053,"difficulty":6.683,"effort":1611.732,"length":35.625,"time":89.541,"vocabulary":17.563,"volume":159.438,"operands":{"distinct":10.125,"total":17.625},"operators":{"distinct":7.438,"total":18}},"paramCount":1.313,"sloc":{"logical":8.313,"physical":15.625}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-vuex/src/index.js","report":{"aggregate":{"cyclomatic":7,"cyclomaticDensity":11.667,"halstead":{"bugs":0.513,"difficulty":12.423,"effort":19109.012,"length":240,"time":1061.612,"vocabulary":85,"volume":1538.254,"operands":{"distinct":71,"total":126,"identifiers":["namespace","\"plugin-vuex\"","api","paths","utils","Mustache","describe","key","\"vuex\"","config","joi","object","onChange","ConfigChangeType","regenerateTmpFiles","absCoreFilePath","join","\"core.js\"","absRuntimeFilePath","\"runtime.js\"","onGenerateFiles","root","winPath","absSrcPath","singular","\"store\"","\"stores\"","store","parseStore","vuexConfig","vuex","writeTmpFile","path","content","render","readFileSync","__dirname","\"runtime/core.tpl\"","\"utf-8\"","IMPORT_MODULES","importModules","\"\n\"","IMPORT_PLUGINS","importPlugins","MODULES","modules","\", \"","{ "," }","PLUGINS","plugins","[","]","MUTATION_TYPES","JSON","stringify","ACTION_TYPES","GETTER_TYPES","VUEX_CONFIG","copyTmpFiles","\"runtime\"","ignore","\".tpl\"","addPluginExports","specifiers","\"MUTATION_TYPES\"","\"ACTION_TYPES\"","\"GETTER_TYPES\"","source","addRuntimePlugin","@@/"]},"operators":{"distinct":14,"total":114,"identifiers":["const","=","function=>","{}",":","()",".","return",":?","||","``","${}","[]",","]}},"paramCount":1,"sloc":{"logical":60,"physical":64}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"fs","type":"esm"},{"line":2,"path":"path","type":"esm"},{"line":3,"path":"@fesjs/utils","type":"esm"},{"line":4,"path":"./helper","type":"esm"}],"errors":[],"lineEnd":64,"lineStart":1,"maintainability":59.765,"methods":[{"cyclomatic":1,"cyclomaticDensity":4.762,"halstead":{"bugs":0.105,"difficulty":5.818,"effort":1827.148,"length":64,"time":101.508,"vocabulary":30,"volume":314.041,"operands":{"distinct":22,"total":32,"identifiers":["paths","utils","Mustache","api","describe","key","\"vuex\"","config","joi","object","onChange","ConfigChangeType","regenerateTmpFiles","absCoreFilePath","join","namespace","\"core.js\"","absRuntimeFilePath","\"runtime.js\"","onGenerateFiles","addPluginExports","addRuntimePlugin"]},"operators":{"distinct":8,"total":32,"identifiers":["const","=","{}",":","()",".","return","function=>"]}},"paramCount":1,"sloc":{"logical":21,"physical":56},"errors":[],"lineEnd":63,"lineStart":8,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":9.091,"halstead":{"bugs":0.297,"difficulty":9.204,"effort":8209.493,"length":151,"time":456.083,"vocabulary":60,"volume":891.94,"operands":{"distinct":49,"total":82,"identifiers":["root","winPath","join","paths","absSrcPath","api","config","singular","\"store\"","\"stores\"","store","parseStore","vuexConfig","vuex","writeTmpFile","path","absCoreFilePath","content","Mustache","render","readFileSync","__dirname","\"runtime/core.tpl\"","\"utf-8\"","IMPORT_MODULES","importModules","\"\n\"","IMPORT_PLUGINS","importPlugins","MODULES","modules","\", \"","{ "," }","PLUGINS","plugins","[","]","MUTATION_TYPES","JSON","stringify","ACTION_TYPES","GETTER_TYPES","VUEX_CONFIG","copyTmpFiles","namespace","\"runtime\"","ignore","\".tpl\""]},"operators":{"distinct":11,"total":69,"identifiers":["const","=","()",".",":?","||","{}",":","``","${}","[]"]}},"paramCount":0,"sloc":{"logical":33,"physical":28},"errors":[],"lineEnd":53,"lineStart":26,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.017,"difficulty":2,"effort":103.783,"length":15,"time":5.766,"vocabulary":11,"volume":51.891,"operands":{"distinct":7,"total":7,"identifiers":["specifiers","\"MUTATION_TYPES\"","\"ACTION_TYPES\"","\"GETTER_TYPES\"","\"store\"","source","absCoreFilePath"]},"operators":{"distinct":4,"total":8,"identifiers":["[]","{}",":",","]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":60,"lineStart":55,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["absRuntimeFilePath","@@/"]},"operators":{"distinct":2,"total":2,"identifiers":["``","${}"]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":62,"lineStart":62,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.4,"cyclomaticDensity":2.333,"halstead":{"bugs":0.103,"difficulty":2.485,"effort":3821.802,"length":48,"time":212.322,"vocabulary":17,"volume":307.651,"operands":{"distinct":14.2,"total":25.2},"operators":{"distinct":2.8,"total":22.8}},"paramCount":0.2,"sloc":{"logical":12,"physical":12.8}},"methodAverage":{"cyclomatic":1.5,"cyclomaticDensity":36.797,"halstead":{"bugs":0.105,"difficulty":4.506,"effort":2537.106,"length":58.5,"time":140.95,"vocabulary":26.25,"volume":316.468,"operands":{"distinct":20,"total":30.75},"operators":{"distinct":6.25,"total":27.75}},"paramCount":0.25,"sloc":{"logical":14.5,"physical":22.75}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-vuex/src/runtime/runtime.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.006,"difficulty":2,"effort":36.189,"length":7,"time":2.011,"vocabulary":6,"volume":18.095,"operands":{"distinct":3,"total":4,"identifiers":["onAppCreated","app","install"]},"operators":{"distinct":3,"total":3,"identifiers":["function","{}","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":7}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"./core","type":"esm"}],"errors":[],"lineEnd":7,"lineStart":1,"maintainability":94.209,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["install","app"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":6,"lineStart":4,"name":"onAppCreated","paramNames":["app"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":18.095,"length":3.5,"time":1.005,"vocabulary":3,"volume":9.047,"operands":{"distinct":1.5,"total":2},"operators":{"distinct":1.5,"total":1.5}},"paramCount":0.5,"sloc":{"logical":1,"physical":3.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2},"operators":{"distinct":1,"total":1}},"paramCount":1,"sloc":{"logical":1,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-windicss/.fatherrc.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["disableTypeCheck","false"]},"operators":{"distinct":2,"total":2,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":1,"physical":4}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":4,"lineStart":1,"maintainability":95.841,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2},"operators":{"distinct":2,"total":2}},"paramCount":0,"sloc":{"logical":1,"physical":4}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-windicss/src/index.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":21.053,"halstead":{"bugs":0.101,"difficulty":6,"effort":1817.18,"length":63,"time":100.954,"vocabulary":28,"volume":302.863,"operands":{"distinct":20,"total":30,"identifiers":["api","describe","key","\"windicss\"","config","joi","object","default","addEntryImportsAhead","source","\"windi.css\"","chainWebpack","memo","plugin","use","WindiCSSWebpackPlugin","resolve","__dirname","\"../windi.config.js\"","windicss"]},"operators":{"distinct":8,"total":33,"identifiers":["function=>","()",".","{}",":","return","[]","... (spread)"]}},"paramCount":2,"sloc":{"logical":19,"physical":29}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"windicss-webpack-plugin","type":"esm"},{"line":3,"path":"path","type":"esm"}],"errors":[],"lineEnd":29,"lineStart":1,"maintainability":73.001,"methods":[{"cyclomatic":1,"cyclomaticDensity":9.091,"halstead":{"bugs":0.042,"difficulty":3.818,"effort":483.807,"length":31,"time":26.878,"vocabulary":17,"volume":126.711,"operands":{"distinct":11,"total":14,"identifiers":["api","describe","key","\"windicss\"","config","joi","object","default","addEntryImportsAhead","chainWebpack","memo"]},"operators":{"distinct":6,"total":17,"identifiers":["()",".","{}",":","return","function=>"]}},"paramCount":1,"sloc":{"logical":11,"physical":23},"errors":[],"lineEnd":28,"lineStart":6,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":1.5,"effort":17.414,"length":5,"time":0.967,"vocabulary":5,"volume":11.61,"operands":{"distinct":2,"total":2,"identifiers":["source","\"windi.css\""]},"operators":{"distinct":3,"total":3,"identifiers":["[]","{}",":"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":17,"lineStart":17,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.035,"difficulty":4.136,"effort":431.208,"length":25,"time":23.956,"vocabulary":18,"volume":104.248,"operands":{"distinct":11,"total":13,"identifiers":["memo","plugin","\"windicss\"","use","WindiCSSWebpackPlugin","config","resolve","__dirname","\"../windi.config.js\"","api","windicss"]},"operators":{"distinct":7,"total":12,"identifiers":["()",".","[]","{}",":","... (spread)","return"]}},"paramCount":1,"sloc":{"logical":5,"physical":9},"errors":[],"lineEnd":27,"lineStart":19,"name":"","paramNames":["memo"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":5.263,"halstead":{"bugs":0.025,"difficulty":1.5,"effort":454.295,"length":15.75,"time":25.239,"vocabulary":7,"volume":75.716,"operands":{"distinct":5,"total":7.5},"operators":{"distinct":2,"total":8.25}},"paramCount":0.5,"sloc":{"logical":4.75,"physical":7.25}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":26.364,"halstead":{"bugs":0.027,"difficulty":3.152,"effort":310.81,"length":20.333,"time":17.267,"vocabulary":13.333,"volume":80.856,"operands":{"distinct":8,"total":9.667},"operators":{"distinct":5.333,"total":10.667}},"paramCount":0.667,"sloc":{"logical":6,"physical":11}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-plugin-windicss/windi.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.018,"difficulty":2,"effort":110.702,"length":16,"time":6.15,"vocabulary":11,"volume":55.351,"operands":{"distinct":7,"total":7,"identifiers":["extract","include","\"**/*.{vue,jsx,js,ts,tsx}\"","exclude","\"node_modules\"","\".git\"","\"dist\""]},"operators":{"distinct":4,"total":9,"identifiers":["{}",":","[]",","]}},"paramCount":0,"sloc":{"logical":3,"physical":9}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":9,"lineStart":1,"maintainability":80.178,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.018,"difficulty":2,"effort":110.702,"length":16,"time":6.15,"vocabulary":11,"volume":55.351,"operands":{"distinct":7,"total":7},"operators":{"distinct":4,"total":9}},"paramCount":0,"sloc":{"logical":3,"physical":9}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/index.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":4,"halstead":{"bugs":0.56,"difficulty":11.36,"effort":19098.893,"length":287,"time":1061.05,"vocabulary":58,"volume":1681.241,"operands":{"distinct":50,"total":142,"identifiers":["plugins","require","resolve","\"./plugins/registerMethods\"","\"./plugins/generateFiles/core/plugin\"","\"./plugins/generateFiles/core/exports/coreExports\"","\"./plugins/generateFiles/core/exports/pluginExports\"","\"./plugins/generateFiles/fes\"","\"./plugins/features/alias\"","\"./plugins/features/analyze\"","\"./plugins/features/autoprefixer\"","\"./plugins/features/base\"","\"./plugins/features/babelPluginImport\"","\"./plugins/features/chainWebpack\"","\"./plugins/features/cssLoader\"","\"./plugins/features/copy\"","\"./plugins/features/define\"","\"./plugins/features/devScripts\"","\"./plugins/features/devServer\"","\"./plugins/features/devtool\"","\"./plugins/features/externals\"","\"./plugins/features/extraBabelPlugins\"","\"./plugins/features/extraBabelPresets\"","\"./plugins/features/extraPostCSSPlugins\"","\"./plugins/features/html\"","\"./plugins/features/globalCSS\"","\"./plugins/features/inlineLimit\"","\"./plugins/features/lessLoader\"","\"./plugins/features/mountElementId\"","\"./plugins/features/outputPath\"","\"./plugins/features/plugins\"","\"./plugins/features/postcssLoader\"","\"./plugins/features/proxy\"","\"./plugins/features/publicPath\"","\"./plugins/features/singular\"","\"./plugins/features/targets\"","\"./plugins/features/terserOptions\"","\"./plugins/features/nodeModulesTransform\"","\"./plugins/features/vueLoader\"","\"./plugins/features/mock\"","\"./plugins/features/dynamicImport\"","\"./plugins/features/runtimePublicPath\"","\"./plugins/features/exportStatic\"","\"./plugins/features/checkVuePackage\"","\"./plugins/misc/route\"","\"./plugins/commands/build\"","\"./plugins/commands/dev\"","\"./plugins/commands/help\"","\"./plugins/commands/info\"","\"./plugins/commands/webpack\""]},"operators":{"distinct":8,"total":145,"identifiers":["function","return","{}",":","[]",",","()","."]}},"paramCount":0,"sloc":{"logical":50,"physical":64}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":64,"lineStart":1,"maintainability":51.177,"methods":[{"cyclomatic":1,"cyclomaticDensity":2.041,"halstead":{"bugs":0.556,"difficulty":9.94,"effort":16581.973,"length":286,"time":921.221,"vocabulary":57,"volume":1668.207,"operands":{"distinct":50,"total":142,"identifiers":["plugins","require","resolve","\"./plugins/registerMethods\"","\"./plugins/generateFiles/core/plugin\"","\"./plugins/generateFiles/core/exports/coreExports\"","\"./plugins/generateFiles/core/exports/pluginExports\"","\"./plugins/generateFiles/fes\"","\"./plugins/features/alias\"","\"./plugins/features/analyze\"","\"./plugins/features/autoprefixer\"","\"./plugins/features/base\"","\"./plugins/features/babelPluginImport\"","\"./plugins/features/chainWebpack\"","\"./plugins/features/cssLoader\"","\"./plugins/features/copy\"","\"./plugins/features/define\"","\"./plugins/features/devScripts\"","\"./plugins/features/devServer\"","\"./plugins/features/devtool\"","\"./plugins/features/externals\"","\"./plugins/features/extraBabelPlugins\"","\"./plugins/features/extraBabelPresets\"","\"./plugins/features/extraPostCSSPlugins\"","\"./plugins/features/html\"","\"./plugins/features/globalCSS\"","\"./plugins/features/inlineLimit\"","\"./plugins/features/lessLoader\"","\"./plugins/features/mountElementId\"","\"./plugins/features/outputPath\"","\"./plugins/features/plugins\"","\"./plugins/features/postcssLoader\"","\"./plugins/features/proxy\"","\"./plugins/features/publicPath\"","\"./plugins/features/singular\"","\"./plugins/features/targets\"","\"./plugins/features/terserOptions\"","\"./plugins/features/nodeModulesTransform\"","\"./plugins/features/vueLoader\"","\"./plugins/features/mock\"","\"./plugins/features/dynamicImport\"","\"./plugins/features/runtimePublicPath\"","\"./plugins/features/exportStatic\"","\"./plugins/features/checkVuePackage\"","\"./plugins/misc/route\"","\"./plugins/commands/build\"","\"./plugins/commands/dev\"","\"./plugins/commands/help\"","\"./plugins/commands/info\"","\"./plugins/commands/webpack\""]},"operators":{"distinct":7,"total":144,"identifiers":["return","{}",":","[]",",","()","."]}},"paramCount":0,"sloc":{"logical":49,"physical":63},"errors":[],"lineEnd":63,"lineStart":1,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":2,"halstead":{"bugs":0.28,"difficulty":5.68,"effort":9549.446,"length":143.5,"time":530.525,"vocabulary":29,"volume":840.62,"operands":{"distinct":25,"total":71},"operators":{"distinct":4,"total":72.5}},"paramCount":0,"sloc":{"logical":25,"physical":32}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":2.041,"halstead":{"bugs":0.556,"difficulty":9.94,"effort":16581.973,"length":286,"time":921.221,"vocabulary":57,"volume":1668.207,"operands":{"distinct":50,"total":142},"operators":{"distinct":7,"total":144}},"paramCount":0,"sloc":{"logical":49,"physical":63}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/commands/buildDevUtils.js","report":{"aggregate":{"cyclomatic":35,"cyclomaticDensity":19.126,"halstead":{"bugs":1.887,"difficulty":38.882,"effort":220103.842,"length":754,"time":12227.991,"vocabulary":182,"volume":5660.877,"operands":{"distinct":152,"total":394,"identifiers":["getBundleAndConfigs","api","env","\"production\"","\"development\"","getConfigOpts","applyPlugins","type","ApplyPluginsType","modify","key","\"modifyBundleConfigOpts\"","initialValue","cwd","paths","config","entry","index","join","absTmpPath","\"fes.js\"","opts","\"modifyBabelOpts\"","\"modifyBabelPresetOpts\"","webpackConfig","\"chainWebpack\"","args","\"addHTMLHeadScripts\"","add","initialState","publicPath","\"modifyPublicPathStr\"","\"\"","bundleConfig","\"modifyBundleConfig\"","getConfig","cleanTmpPathExceptCache","existsSync","readdirSync","forEach","file","\".cache\"","rimraf","sync","WARN_AFTER_BUNDLE_GZIP_SIZE","1.8","1024","WARN_AFTER_CHUNK_GZIP_SIZE","1","printFileSizes","stats","dir","ui","require","\"cliui\"","width","80","json","toJson","hash","false","modules","chunks","filesize","bytes","Math","abs","radix","unit","\"B\"","\"KB\"","\"MB\"","\"GB\"","\"TB\"","\"PB\"","\"EB\"","\"ZB\"","\"YB\"","loop","0","toFixed"," ","assets","children","reduce","acc","child","concat","seenNames","Map","isJS","val","/\\.js$/","test","isCSS","/\\.css$/","orderedAssets","map","a","name","split","\"?\"","isMainBundle","indexOf","\"fes.\"","maxRecommendedSize","isLarge","size","suggested","filter","has","set","true","sort","b","getGzippedSize","asset","filepath","resolve","buffer","readFileSync","zlib","gzipSync","length","makeRow","c","\t ","\t ","div","chalk","cyan","bold","\"File\"","\"Size\"","\"Gzipped\"","/js$/","yellow","green","blue","\"\n\"","\n\n","console","log","toString","gray","\"Images and other types of assets omitted.\"","\n\n ","\n","some","\"The bundle size is significantly larger than recommended.\"","\"Consider reducing it with code splitting\"","\"You can also analyze the project dependencies using ANALYZE=1\""]},"operators":{"distinct":30,"total":360,"identifiers":["function","{}","const","=",":?","===",".","()",":","return","... (spread)","[]","||","if","! (prefix)","function=>","*",",","let","while",">=","/=","++ (prefix)","``","${}","new","&&",">","- (prefix)","-"]}},"paramCount":20,"sloc":{"logical":183,"physical":208}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":6,"path":"path","type":"esm"},{"line":7,"path":"fs","type":"esm"},{"line":8,"path":"@fesjs/utils","type":"esm"},{"line":9,"path":"zlib","type":"esm"},{"line":10,"path":"./webpackConfig","type":"esm"},{"line":99,"path":"cliui","type":"cjs"}],"errors":[],"lineEnd":208,"lineStart":1,"maintainability":57.397,"methods":[{"cyclomatic":3,"cyclomaticDensity":5.556,"halstead":{"bugs":0.389,"difficulty":18.857,"effort":21996.172,"length":210,"time":1222.01,"vocabulary":47,"volume":1166.464,"operands":{"distinct":35,"total":110,"identifiers":["env","api","\"production\"","\"development\"","getConfigOpts","applyPlugins","type","ApplyPluginsType","modify","key","\"modifyBundleConfigOpts\"","initialValue","cwd","paths","config","entry","index","join","absTmpPath","\"fes.js\"","opts","\"modifyBabelOpts\"","\"modifyBabelPresetOpts\"","webpackConfig","\"chainWebpack\"","args","\"addHTMLHeadScripts\"","add","initialState","publicPath","\"modifyPublicPathStr\"","\"\"","bundleConfig","\"modifyBundleConfig\"","getConfig"]},"operators":{"distinct":12,"total":100,"identifiers":["const","=",":?","===",".","()","{}",":","return","... (spread)","[]","||"]}},"paramCount":1,"sloc":{"logical":54,"physical":71},"errors":[],"lineEnd":82,"lineStart":12,"name":"getBundleAndConfigs","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.016,"difficulty":3.6,"effort":174.355,"length":14,"time":9.686,"vocabulary":11,"volume":48.432,"operands":{"distinct":5,"total":6,"identifiers":["existsSync","absTmpPath","readdirSync","forEach","file"]},"operators":{"distinct":6,"total":8,"identifiers":["if","! (prefix)","()","return",".","function=>"]}},"paramCount":1,"sloc":{"logical":6,"physical":9},"errors":[],"lineEnd":92,"lineStart":84,"name":"cleanTmpPathExceptCache","paramNames":["absTmpPath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.015,"difficulty":2.917,"effort":131.17,"length":13,"time":7.287,"vocabulary":11,"volume":44.973,"operands":{"distinct":6,"total":7,"identifiers":["file","\".cache\"","rimraf","sync","join","absTmpPath"]},"operators":{"distinct":5,"total":6,"identifiers":["if","===","return","()","."]}},"paramCount":1,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":91,"lineStart":88,"name":"","paramNames":["file"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":6.25,"halstead":{"bugs":0.392,"difficulty":12.375,"effort":14563.176,"length":192,"time":809.065,"vocabulary":70,"volume":1176.822,"operands":{"distinct":56,"total":99,"identifiers":["ui","require","\"cliui\"","width","80","json","stats","toJson","hash","false","modules","chunks","filesize","bytes","assets","children","reduce","acc","child","seenNames","Map","isJS","val","isCSS","orderedAssets","map","a","filter","sort","b","getGzippedSize","asset","makeRow","c","div","chalk","cyan","bold","\"File\"","\"Size\"","\"Gzipped\"","join","\"\n\"","\n\n","console","log","toString","gray","\"Images and other types of assets omitted.\"","\n\n ","\n","some","yellow","\"The bundle size is significantly larger than recommended.\"","\"Consider reducing it with code splitting\"","\"You can also analyze the project dependencies using ANALYZE=1\""]},"operators":{"distinct":14,"total":93,"identifiers":["const","=","()","{}",":",".","function=>",":?","[]","new","function","``","${}","if"]}},"paramCount":2,"sloc":{"logical":48,"physical":110},"errors":[],"lineEnd":207,"lineStart":98,"name":"printFileSizes","paramNames":["stats","dir"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":20,"halstead":{"bugs":0.098,"difficulty":10.15,"effort":2994.989,"length":58,"time":166.388,"vocabulary":34,"volume":295.073,"operands":{"distinct":20,"total":29,"identifiers":["bytes","Math","abs","radix","1024","unit","\"B\"","\"KB\"","\"MB\"","\"GB\"","\"TB\"","\"PB\"","\"EB\"","\"ZB\"","\"YB\"","loop","0","toFixed","1"," "]},"operators":{"distinct":14,"total":29,"identifiers":["=","()",".","const","[]",",","let","while",">=","/=","++ (prefix)","return","``","${}"]}},"paramCount":1,"sloc":{"logical":10,"physical":13},"errors":[],"lineEnd":118,"lineStart":106,"name":"","paramNames":["bytes"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1,"effort":15.51,"length":6,"time":0.862,"vocabulary":6,"volume":15.51,"operands":{"distinct":4,"total":4,"identifiers":["acc","concat","child","assets"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":2,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":122,"lineStart":122,"name":"","paramNames":["acc","child"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["/\\.js$/","test","val"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":125,"lineStart":125,"name":"","paramNames":["val"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["/\\.css$/","test","val"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":126,"lineStart":126,"name":"","paramNames":["val"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":44.444,"halstead":{"bugs":0.088,"difficulty":12.133,"effort":3208.108,"length":55,"time":178.228,"vocabulary":28,"volume":264.405,"operands":{"distinct":15,"total":28,"identifiers":["a","name","split","\"?\"","0","isMainBundle","indexOf","\"fes.\"","maxRecommendedSize","WARN_AFTER_BUNDLE_GZIP_SIZE","WARN_AFTER_CHUNK_GZIP_SIZE","isLarge","size","suggested","isJS"]},"operators":{"distinct":13,"total":27,"identifiers":["=",".","[]","()","const","===",":?","&&",">","return","{}","... (spread)",":"]}},"paramCount":1,"sloc":{"logical":9,"physical":13},"errors":[],"lineEnd":140,"lineStart":128,"name":"","paramNames":["a"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":42.857,"halstead":{"bugs":0.038,"difficulty":4.444,"effort":507.647,"length":30,"time":28.203,"vocabulary":14,"volume":114.221,"operands":{"distinct":9,"total":16,"identifiers":["seenNames","has","a","name","false","set","true","isJS","isCSS"]},"operators":{"distinct":5,"total":14,"identifiers":["if","()",".","return","||"]}},"paramCount":1,"sloc":{"logical":7,"physical":7},"errors":[],"lineEnd":147,"lineStart":141,"name":"","paramNames":["a"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":5,"cyclomaticDensity":55.556,"halstead":{"bugs":0.047,"difficulty":9,"effort":1267.849,"length":37,"time":70.436,"vocabulary":14,"volume":140.872,"operands":{"distinct":7,"total":18,"identifiers":["isJS","a","name","isCSS","b","1","size"]},"operators":{"distinct":7,"total":19,"identifiers":["if","&&","()",".","return","- (prefix)","-"]}},"paramCount":2,"sloc":{"logical":9,"physical":5},"errors":[],"lineEnd":152,"lineStart":148,"name":"","paramNames":["a","b"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":16.667,"halstead":{"bugs":0.05,"difficulty":3.857,"effort":583.46,"length":35,"time":32.414,"vocabulary":20,"volume":151.267,"operands":{"distinct":14,"total":18,"identifiers":["filepath","resolve","join","dir","asset","name","existsSync","buffer","readFileSync","filesize","zlib","gzipSync","length","0"]},"operators":{"distinct":6,"total":17,"identifiers":["const","=","()",".","if","return"]}},"paramCount":1,"sloc":{"logical":12,"physical":8},"errors":[],"lineEnd":161,"lineStart":154,"name":"getGzippedSize","paramNames":["asset"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.012,"difficulty":1.5,"effort":52.304,"length":11,"time":2.906,"vocabulary":9,"volume":34.869,"operands":{"distinct":6,"total":6,"identifiers":["a","b","c"," ","\t ","\t "]},"operators":{"distinct":3,"total":5,"identifiers":["return","``","${}"]}},"paramCount":3,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":165,"lineStart":163,"name":"makeRow","paramNames":["a","b","c"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":27.273,"halstead":{"bugs":0.072,"difficulty":3,"effort":650.508,"length":52,"time":36.139,"vocabulary":18,"volume":216.836,"operands":{"distinct":15,"total":30,"identifiers":["makeRow","/js$/","test","asset","name","suggested","chalk","yellow","join","dir","green","blue","filesize","size","getGzippedSize"]},"operators":{"distinct":3,"total":22,"identifiers":["()",":?","."]}},"paramCount":1,"sloc":{"logical":11,"physical":3},"errors":[],"lineEnd":177,"lineStart":175,"name":"","paramNames":["asset"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["asset","suggested"]},"operators":{"distinct":1,"total":1,"identifiers":["."]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":188,"lineStart":188,"name":"","paramNames":["asset"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.188,"cyclomaticDensity":1.195,"halstead":{"bugs":0.118,"difficulty":2.43,"effort":13756.49,"length":47.125,"time":764.249,"vocabulary":11.375,"volume":353.805,"operands":{"distinct":9.5,"total":24.625},"operators":{"distinct":1.875,"total":22.5}},"paramCount":1.25,"sloc":{"logical":11.438,"physical":13}},"methodAverage":{"cyclomatic":2.267,"cyclomaticDensity":43.462,"halstead":{"bugs":0.082,"difficulty":5.689,"effort":3078.056,"length":48.4,"time":171.003,"vocabulary":19.667,"volume":246.514,"operands":{"distinct":13.333,"total":25.267},"operators":{"distinct":6.333,"total":23.133}},"paramCount":1.333,"sloc":{"logical":11.867,"physical":16.667}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/commands/dev/createRouteMiddleware.js","report":{"aggregate":{"cyclomatic":8,"cyclomaticDensity":32,"halstead":{"bugs":0.159,"difficulty":9.036,"effort":4298.165,"length":90,"time":238.787,"vocabulary":39,"volume":475.686,"operands":{"distinct":28,"total":46,"identifiers":["ASSET_EXTNAMES","\".ico\"","\".png\"","\".jpg\"","\".jpeg\"","\".gif\"","\".svg\"","api","req","res","next","proxyConfig","config","proxy","Object","keys","some","path","startsWith","\"/favicon.ico\"","sendFile","join","__dirname","\"fes.png\"","includes","extname","history","historyFallback"]},"operators":{"distinct":11,"total":44,"identifiers":["const","=","[]",",","function=>",".","if","&&","()","return","==="]}},"paramCount":5,"sloc":{"logical":25,"physical":21}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"path","type":"esm"},{"line":3,"path":"connect-history-api-fallback","type":"esm"}],"errors":[],"lineEnd":21,"lineStart":1,"maintainability":68.274,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":0.5,"effort":4,"length":4,"time":0.222,"vocabulary":4,"volume":8,"operands":{"distinct":3,"total":3,"identifiers":["req","res","next"]},"operators":{"distinct":1,"total":1,"identifiers":["function=>"]}},"paramCount":1,"sloc":{"logical":2,"physical":14},"errors":[],"lineEnd":20,"lineStart":7,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":5,"cyclomaticDensity":26.316,"halstead":{"bugs":0.101,"difficulty":6.643,"effort":2020.938,"length":62,"time":112.274,"vocabulary":30,"volume":304.227,"operands":{"distinct":21,"total":31,"identifiers":["proxyConfig","api","config","proxy","Object","keys","some","path","next","req","\"/favicon.ico\"","res","sendFile","join","__dirname","\"fes.png\"","ASSET_EXTNAMES","includes","extname","history","historyFallback"]},"operators":{"distinct":9,"total":31,"identifiers":["const","=",".","if","&&","()","function=>","return","==="]}},"paramCount":3,"sloc":{"logical":19,"physical":14},"errors":[],"lineEnd":20,"lineStart":7,"name":"","paramNames":["req","res","next"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.333,"effort":21.671,"length":7,"time":1.204,"vocabulary":5,"volume":16.253,"operands":{"distinct":3,"total":4,"identifiers":["req","path","startsWith"]},"operators":{"distinct":2,"total":3,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":9,"lineStart":9,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":8,"halstead":{"bugs":0.04,"difficulty":2.259,"effort":1074.541,"length":22.5,"time":59.697,"vocabulary":9.75,"volume":118.922,"operands":{"distinct":7,"total":11.5},"operators":{"distinct":2.75,"total":11}},"paramCount":1.25,"sloc":{"logical":6.25,"physical":5.25}},"methodAverage":{"cyclomatic":2.333,"cyclomaticDensity":42.105,"halstead":{"bugs":0.036,"difficulty":2.825,"effort":682.203,"length":24.333,"time":37.9,"vocabulary":13,"volume":109.494,"operands":{"distinct":9,"total":12.667},"operators":{"distinct":4,"total":11.667}},"paramCount":1.667,"sloc":{"logical":7.667,"physical":9.667}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/commands/dev/devServer.js","report":{"aggregate":{"cyclomatic":10,"cyclomaticDensity":23.81,"halstead":{"bugs":0.321,"difficulty":12.35,"effort":11884.925,"length":161,"time":660.274,"vocabulary":63,"volume":962.342,"operands":{"distinct":50,"total":95,"identifiers":["startDevServer","webpackConfig","host","port","proxy","https","beforeMiddlewares","afterMiddlewares","customerDevServerConfig","options","contentBase","output","path","hot","true","sockHost","sockPort","compress","noInfo","disableHostCheck","clientLogLevel","\"silent\"","stats","\"errors-only\"","before","app","forEach","middleware","use","after","headers","\"access-control-allow-origin\"","\"*\"","key","fs","readFileSync","resolve","__dirname","\"./cert/key.pem\"","cert","\"./cert/cert.pem\"","WebpackDevServer","addDevServerEntrypoints","compiler","webpack","server","listen","err","console","error"]},"operators":{"distinct":13,"total":66,"identifiers":["function","{}","const","=",":",".","function=>","()","... (spread)","||","if","new","return"]}},"paramCount":13,"sloc":{"logical":42,"physical":60}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"webpack-dev-server","type":"esm"},{"line":2,"path":"webpack","type":"esm"},{"line":3,"path":"fs","type":"esm"},{"line":4,"path":"path","type":"esm"}],"errors":[],"lineEnd":60,"lineStart":1,"maintainability":67.943,"methods":[{"cyclomatic":3,"cyclomaticDensity":9.091,"halstead":{"bugs":0.232,"difficulty":10,"effort":6963.414,"length":121,"time":386.856,"vocabulary":54,"volume":696.341,"operands":{"distinct":42,"total":70,"identifiers":["options","contentBase","webpackConfig","output","path","hot","true","host","sockHost","sockPort","port","proxy","compress","noInfo","disableHostCheck","clientLogLevel","\"silent\"","stats","\"errors-only\"","before","app","after","headers","\"access-control-allow-origin\"","\"*\"","customerDevServerConfig","https","key","fs","readFileSync","resolve","__dirname","\"./cert/key.pem\"","cert","\"./cert/cert.pem\"","WebpackDevServer","addDevServerEntrypoints","compiler","webpack","server","listen","err"]},"operators":{"distinct":12,"total":51,"identifiers":["const","=","{}",":",".","function=>","... (spread)","||","if","()","new","return"]}},"paramCount":8,"sloc":{"logical":33,"physical":53},"errors":[],"lineEnd":59,"lineStart":7,"name":"startDevServer","paramNames":["webpackConfig","host","port","proxy","https","beforeMiddlewares","afterMiddlewares","customerDevServerConfig"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["beforeMiddlewares","forEach","middleware"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","function=>"]}},"paramCount":1,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":33,"lineStart":29,"name":"","paramNames":["app"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["app","use","middleware"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":32,"lineStart":30,"name":"","paramNames":["middleware"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["afterMiddlewares","forEach","middleware"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","function=>"]}},"paramCount":1,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":38,"lineStart":34,"name":"","paramNames":["app"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["app","use","middleware"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":37,"lineStart":35,"name":"","paramNames":["middleware"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.006,"difficulty":2,"effort":36.189,"length":7,"time":2.011,"vocabulary":6,"volume":18.095,"operands":{"distinct":3,"total":4,"identifiers":["err","console","error"]},"operators":{"distinct":3,"total":3,"identifiers":["if","()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":57,"lineStart":53,"name":"","paramNames":["err"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.429,"cyclomaticDensity":3.401,"halstead":{"bugs":0.046,"difficulty":1.764,"effort":1697.846,"length":23,"time":94.325,"vocabulary":9,"volume":137.477,"operands":{"distinct":7.143,"total":13.571},"operators":{"distinct":1.857,"total":9.429}},"paramCount":1.857,"sloc":{"logical":6,"physical":8.571}},"methodAverage":{"cyclomatic":1.5,"cyclomaticDensity":68.182,"halstead":{"bugs":0.043,"difficulty":2.833,"effort":1178.225,"length":25,"time":65.457,"vocabulary":13.667,"volume":128.112,"operands":{"distinct":9.5,"total":14.333},"operators":{"distinct":4.167,"total":10.667}},"paramCount":2.167,"sloc":{"logical":6.833,"physical":12.333}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/commands/dev/index.js","report":{"aggregate":{"cyclomatic":25,"cyclomaticDensity":13.966,"halstead":{"bugs":1.673,"difficulty":30.957,"effort":155415.899,"length":684,"time":8634.217,"vocabulary":162,"volume":5020.457,"operands":{"distinct":138,"total":356,"identifiers":["assert","require","\"assert\"","api","env","paths","utils","chalk","portfinder","unwatchs","port","hostname","server","destroy","unwatch","close","registerCommand","command","\"dev\"","description","\"start a local http service for development\"","options","name","\"--port\"","\"http service port, like 8080\"","\"--https\"","\"whether to turn on the https service\"","args","cleanTmpPathExceptCache","getBundleAndConfigs","\"../buildDevUtils\"","delay","\"@fesjs/utils\"","createRouteMiddleware","\"./createRouteMiddleware\"","default","generateFiles","\"../../../utils/generateFiles\"","watchPkg","\"./watchPkg\"","defaultPort","process","PORT","config","devServer","getPortPromise","parseInt","String","10","8000","HOST","host","\"localhost\"","send","type","\"UPDATE_PORT\"","isHTTPS","HTTPS","https","console","log","cyan","\"https\"","\"http\"","Starting the development server ","://",":"," ...","absTmpPath","watch","WATCH","\"none\"","unwatchGenerateFiles","push","unwatchPkg","cwd","logger","info","\"Plugins in package.json changed.\"","restartServer","unwatchConfig","service","configInstance","userConfig","onChange","pluginChanged","valueChanged","length","map","p","key","join","\", \"","Plugins of "," changed.","reload","false","regenerateTmpFiles","fns","reloadConfigs","forEach","pluginId","plugins","ConfigChangeType","true","\"function\"","Config ","getUserConfig","setConfig","fn","500","bundleConfig","beforeMiddlewares","applyPlugins","\"addBeforeMiddlewares\"","ApplyPluginsType","add","initialValue","middlewares","\"addMiddlewares\"","startDevServer","\"./devServer\"","webpackConfig","proxy","afterMiddlewares","customerDevServerConfig","registerMethod","\"getPort\"","\"development\"","\"api.getPort() is only valid in development.\"","\"getHostname\"","\"api.getHostname() is only valid in development.\"","\"getServer\"","\"api.getServer() is only valid in development.\"","\"restartServer\"","gray","\"Try to restart dev server...\"","\"RESTART\""]},"operators":{"distinct":24,"total":328,"identifiers":["const","=","()","function=>","{}",":","[]","let","function","forof",".",",","||",":?","``","${}","!==","if","===","! (prefix)","typeof (prefix)","else","... (spread)","return"]}},"paramCount":7,"sloc":{"logical":179,"physical":233}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":6,"path":"assert","type":"cjs"},{"line":41,"path":"../buildDevUtils","type":"cjs"},{"line":42,"path":"@fesjs/utils","type":"cjs"},{"line":43,"path":"./createRouteMiddleware","type":"cjs"},{"line":44,"path":"../../../utils/generateFiles","type":"cjs"},{"line":45,"path":"./watchPkg","type":"cjs"},{"line":172,"path":"./devServer","type":"cjs"}],"errors":[],"lineEnd":233,"lineStart":1,"maintainability":48.531,"methods":[{"cyclomatic":10,"cyclomaticDensity":7.692,"halstead":{"bugs":1.15,"difficulty":22.92,"effort":79075.98,"length":489,"time":4393.11,"vocabulary":133,"volume":3450.033,"operands":{"distinct":113,"total":259,"identifiers":["env","paths","utils","chalk","portfinder","api","unwatchs","port","hostname","server","destroy","registerCommand","command","\"dev\"","description","\"start a local http service for development\"","options","name","\"--port\"","\"http service port, like 8080\"","\"--https\"","\"whether to turn on the https service\"","args","cleanTmpPathExceptCache","getBundleAndConfigs","require","\"../buildDevUtils\"","delay","\"@fesjs/utils\"","createRouteMiddleware","\"./createRouteMiddleware\"","default","generateFiles","\"../../../utils/generateFiles\"","watchPkg","\"./watchPkg\"","defaultPort","process","PORT","config","devServer","getPortPromise","parseInt","String","10","8000","HOST","host","\"localhost\"","send","type","\"UPDATE_PORT\"","isHTTPS","HTTPS","https","console","log","cyan","\"https\"","\"http\"","Starting the development server ","://",":"," ...","absTmpPath","watch","WATCH","\"none\"","unwatchGenerateFiles","push","unwatchPkg","cwd","logger","info","\"Plugins in package.json changed.\"","restartServer","unwatchConfig","service","configInstance","userConfig","onChange","pluginChanged","valueChanged","500","bundleConfig","beforeMiddlewares","applyPlugins","key","\"addBeforeMiddlewares\"","ApplyPluginsType","add","initialValue","middlewares","\"addMiddlewares\"","startDevServer","\"./devServer\"","webpackConfig","proxy","afterMiddlewares","customerDevServerConfig","registerMethod","\"getPort\"","assert","\"development\"","\"api.getPort() is only valid in development.\"","\"getHostname\"","\"api.getHostname() is only valid in development.\"","\"getServer\"","\"api.getServer() is only valid in development.\"","\"restartServer\"","gray","\"Try to restart dev server...\"","\"RESTART\""]},"operators":{"distinct":20,"total":230,"identifiers":["const","=","{}",":","[]","let","function","()",".",",","||",":?","``","${}","!==","if","function=>","... (spread)","return","==="]}},"paramCount":1,"sloc":{"logical":130,"physical":225},"errors":[],"lineEnd":232,"lineStart":8,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.007,"difficulty":1.875,"effort":42.11,"length":8,"time":2.339,"vocabulary":7,"volume":22.459,"operands":{"distinct":4,"total":5,"identifiers":["unwatch","unwatchs","server","close"]},"operators":{"distinct":3,"total":3,"identifiers":["forof","const","()"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":25,"lineStart":20,"name":"destroy","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":5,"cyclomaticDensity":16.129,"halstead":{"bugs":0.213,"difficulty":11.032,"effort":7063.946,"length":118,"time":392.441,"vocabulary":43,"volume":640.299,"operands":{"distinct":31,"total":57,"identifiers":["pluginChanged","length","console","log","api","logger","info","map","p","join","\", \"","Plugins of "," changed.","restartServer","valueChanged","reload","false","regenerateTmpFiles","fns","reloadConfigs","forEach","key","pluginId","Config ","service","userConfig","configInstance","getUserConfig","setConfig","generateFiles","fn"]},"operators":{"distinct":12,"total":61,"identifiers":["if",".","()","``","${}","function=>","let","=","const","[]","{}","else"]}},"paramCount":2,"sloc":{"logical":31,"physical":58},"errors":[],"lineEnd":147,"lineStart":90,"name":"","paramNames":["pluginChanged","valueChanged"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["p","key"]},"operators":{"distinct":1,"total":1,"identifiers":["."]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":95,"lineStart":95,"name":"","paramNames":["p"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":66.667,"halstead":{"bugs":0.088,"difficulty":10.267,"effort":2702.439,"length":56,"time":150.136,"vocabulary":26,"volume":263.225,"operands":{"distinct":15,"total":28,"identifiers":["onChange","api","service","plugins","pluginId","config","ConfigChangeType","regenerateTmpFiles","true","reload","reloadConfigs","push","key","\"function\"","fns"]},"operators":{"distinct":11,"total":28,"identifiers":["const","=","{}","||",".","[]","if","===","! (prefix)","()","typeof (prefix)"]}},"paramCount":2,"sloc":{"logical":9,"physical":19},"errors":[],"lineEnd":123,"lineStart":105,"name":"","paramNames":["key","pluginId"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["fn"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":143,"lineStart":143,"name":"","paramNames":["fn"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3.571,"cyclomaticDensity":1.995,"halstead":{"bugs":0.239,"difficulty":4.422,"effort":22202.271,"length":97.714,"time":1233.46,"vocabulary":23.143,"volume":717.208,"operands":{"distinct":19.714,"total":50.857},"operators":{"distinct":3.429,"total":46.857}},"paramCount":1,"sloc":{"logical":25.571,"physical":33.286}},"methodAverage":{"cyclomatic":4,"cyclomaticDensity":45.637,"halstead":{"bugs":0.243,"difficulty":7.849,"effort":14814.642,"length":112.667,"time":823.036,"vocabulary":35.667,"volume":730.462,"operands":{"distinct":27.667,"total":58.667},"operators":{"distinct":8,"total":54}},"paramCount":1.167,"sloc":{"logical":29.333,"physical":51.667}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/commands/dev/watchPkg.js","report":{"aggregate":{"cyclomatic":14,"cyclomaticDensity":23.729,"halstead":{"bugs":0.395,"difficulty":19.6,"effort":23196.628,"length":198,"time":1288.702,"vocabulary":63,"volume":1183.501,"operands":{"distinct":45,"total":98,"identifiers":["getPlugins","opts","Object","keys","pkg","dependencies","devDependencies","filter","name","isPluginOrPreset","PluginType","plugin","preset","getPluginsFromPkgPath","existsSync","pkgPath","JSON","parse","readFileSync","\"utf-8\"","e","watchPkg","join","cwd","\"package.json\"","plugins","watcher","chokidar","watch","ignoreInitial","true","on","\"all\"","newPlugins","lodash","isEqual","onChange","close","watchPkgs","unwatchs","winPath","process","push","forEach","unwatch"]},"operators":{"distinct":18,"total":100,"identifiers":["function","return","()",".","{}","... (spread)","function=>","||","let","=","if","try","catch","const",":","! (prefix)","[]","!=="]}},"paramCount":6,"sloc":{"logical":59,"physical":62}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":6,"path":"path","type":"esm"},{"line":7,"path":"@fesjs/utils","type":"esm"},{"line":8,"path":"fs","type":"esm"},{"line":9,"path":"@fesjs/compiler","type":"esm"}],"errors":[],"lineEnd":62,"lineStart":1,"maintainability":67.49,"methods":[{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.029,"difficulty":3.75,"effort":328.384,"length":23,"time":18.244,"vocabulary":14,"volume":87.569,"operands":{"distinct":8,"total":10,"identifiers":["Object","keys","opts","pkg","dependencies","devDependencies","filter","name"]},"operators":{"distinct":6,"total":13,"identifiers":["return","()",".","{}","... (spread)","function=>"]}},"paramCount":1,"sloc":{"logical":4,"physical":9},"errors":[],"lineEnd":19,"lineStart":11,"name":"getPlugins","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.013,"difficulty":2.4,"effort":93.6,"length":13,"time":5.2,"vocabulary":8,"volume":39,"operands":{"distinct":5,"total":8,"identifiers":["isPluginOrPreset","PluginType","plugin","name","preset"]},"operators":{"distinct":3,"total":5,"identifiers":["||","()","."]}},"paramCount":1,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":18,"lineStart":15,"name":"","paramNames":["name"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":18.182,"halstead":{"bugs":0.044,"difficulty":6.75,"effort":888.879,"length":31,"time":49.382,"vocabulary":19,"volume":131.686,"operands":{"distinct":10,"total":15,"identifiers":["pkg","existsSync","opts","pkgPath","JSON","parse","readFileSync","\"utf-8\"","e","getPlugins"]},"operators":{"distinct":9,"total":16,"identifiers":["let","=","{}","if","()",".","try","catch","return"]}},"paramCount":1,"sloc":{"logical":11,"physical":11},"errors":[],"lineEnd":31,"lineStart":21,"name":"getPluginsFromPkgPath","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":8.333,"halstead":{"bugs":0.055,"difficulty":5.143,"effort":848.566,"length":37,"time":47.143,"vocabulary":22,"volume":164.999,"operands":{"distinct":14,"total":18,"identifiers":["pkgPath","join","opts","cwd","\"package.json\"","plugins","getPluginsFromPkgPath","watcher","chokidar","watch","ignoreInitial","true","on","\"all\""]},"operators":{"distinct":8,"total":19,"identifiers":["const","=","()",".","{}",":","function=>","return"]}},"paramCount":1,"sloc":{"logical":12,"physical":17},"errors":[],"lineEnd":49,"lineStart":33,"name":"watchPkg","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.026,"difficulty":4.375,"effort":341.853,"length":20,"time":18.992,"vocabulary":15,"volume":78.138,"operands":{"distinct":8,"total":10,"identifiers":["newPlugins","getPluginsFromPkgPath","pkgPath","lodash","isEqual","plugins","opts","onChange"]},"operators":{"distinct":7,"total":10,"identifiers":["const","=","()","{}","if","! (prefix)","."]}},"paramCount":0,"sloc":{"logical":6,"physical":7},"errors":[],"lineEnd":45,"lineStart":39,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["watcher","close"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":48,"lineStart":46,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":13.333,"halstead":{"bugs":0.071,"difficulty":15.813,"effort":3358.518,"length":50,"time":186.584,"vocabulary":19,"volume":212.396,"operands":{"distinct":8,"total":23,"identifiers":["unwatchs","watchPkg","cwd","opts","onChange","winPath","process","push"]},"operators":{"distinct":11,"total":27,"identifiers":["const","=","[]","()","{}",":",".","if","!==","return","function=>"]}},"paramCount":1,"sloc":{"logical":15,"physical":11},"errors":[],"lineEnd":61,"lineStart":51,"name":"watchPkgs","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["unwatchs","forEach","unwatch"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","function=>"]}},"paramCount":0,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":60,"lineStart":56,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["unwatch"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":59,"lineStart":57,"name":"","paramNames":["unwatch"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.4,"cyclomaticDensity":2.373,"halstead":{"bugs":0.039,"difficulty":1.96,"effort":2319.663,"length":19.8,"time":128.87,"vocabulary":6.3,"volume":118.35,"operands":{"distinct":4.5,"total":9.8},"operators":{"distinct":1.8,"total":10}},"paramCount":0.6,"sloc":{"logical":5.9,"physical":6.2}},"methodAverage":{"cyclomatic":1.444,"cyclomaticDensity":46.094,"halstead":{"bugs":0.027,"difficulty":4.581,"effort":654.674,"length":20.667,"time":36.371,"vocabulary":12.111,"volume":82.144,"operands":{"distinct":6.556,"total":10},"operators":{"distinct":5.556,"total":10.667}},"paramCount":0.667,"sloc":{"logical":6.111,"physical":7.778}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/commands/help/index.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.025,"difficulty":3.438,"effort":254.405,"length":20,"time":14.134,"vocabulary":13,"volume":74.009,"operands":{"distinct":8,"total":11,"identifiers":["api","registerCommand","command","\"help\"","description","\"show command helps\"","program","outputHelp"]},"operators":{"distinct":5,"total":9,"identifiers":["function","()",".","{}",":"]}},"paramCount":1,"sloc":{"logical":7,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":78.44,"methods":[{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.022,"difficulty":2.5,"effort":161.323,"length":18,"time":8.962,"vocabulary":12,"volume":64.529,"operands":{"distinct":8,"total":10,"identifiers":["api","registerCommand","command","\"help\"","description","\"show command helps\"","program","outputHelp"]},"operators":{"distinct":4,"total":8,"identifiers":["()",".","{}",":"]}},"paramCount":1,"sloc":{"logical":6,"physical":9},"errors":[],"lineEnd":11,"lineStart":3,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.012,"difficulty":1.719,"effort":127.203,"length":10,"time":7.067,"vocabulary":6.5,"volume":37.004,"operands":{"distinct":4,"total":5.5},"operators":{"distinct":2.5,"total":4.5}},"paramCount":0.5,"sloc":{"logical":3.5,"physical":6}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.022,"difficulty":2.5,"effort":161.323,"length":18,"time":8.962,"vocabulary":12,"volume":64.529,"operands":{"distinct":8,"total":10},"operators":{"distinct":4,"total":8}},"paramCount":1,"sloc":{"logical":6,"physical":9}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/commands/info/index.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":11.765,"halstead":{"bugs":0.13,"difficulty":4.485,"effort":1754.03,"length":73,"time":97.446,"vocabulary":41,"volume":391.101,"operands":{"distinct":33,"total":37,"identifiers":["api","registerCommand","command","\"info\"","description","\"print debugging information about your environment\"","require","\"envinfo\"","run","System","\"OS\"","\"CPU\"","Binaries","\"Node\"","\"Yarn\"","\"npm\"","Browsers","\"Chrome\"","\"Edge\"","\"Firefox\"","\"Safari\"","npmPackages","\"@fesjs/fes\"","\"vue\"","\"vue-router\"","npmGlobalPackages","showNotFound","true","duplicates","fullTree","then","console","log"]},"operators":{"distinct":8,"total":36,"identifiers":["function","()",".","{}",":","return","[]",","]}},"paramCount":1,"sloc":{"logical":17,"physical":25}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":7,"path":"envinfo","type":"cjs"}],"errors":[],"lineEnd":25,"lineStart":1,"maintainability":66.173,"methods":[{"cyclomatic":1,"cyclomaticDensity":6.25,"halstead":{"bugs":0.126,"difficulty":3.818,"effort":1442.726,"length":71,"time":80.151,"vocabulary":40,"volume":377.857,"operands":{"distinct":33,"total":36,"identifiers":["api","registerCommand","command","\"info\"","description","\"print debugging information about your environment\"","require","\"envinfo\"","run","System","\"OS\"","\"CPU\"","Binaries","\"Node\"","\"Yarn\"","\"npm\"","Browsers","\"Chrome\"","\"Edge\"","\"Firefox\"","\"Safari\"","npmPackages","\"@fesjs/fes\"","\"vue\"","\"vue-router\"","npmGlobalPackages","showNotFound","true","duplicates","fullTree","then","console","log"]},"operators":{"distinct":7,"total":35,"identifiers":["()",".","{}",":","return","[]",","]}},"paramCount":1,"sloc":{"logical":16,"physical":23},"errors":[],"lineEnd":24,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":5.882,"halstead":{"bugs":0.065,"difficulty":2.242,"effort":877.015,"length":36.5,"time":48.723,"vocabulary":20.5,"volume":195.551,"operands":{"distinct":16.5,"total":18.5},"operators":{"distinct":4,"total":18}},"paramCount":0.5,"sloc":{"logical":8.5,"physical":12.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":6.25,"halstead":{"bugs":0.126,"difficulty":3.818,"effort":1442.726,"length":71,"time":80.151,"vocabulary":40,"volume":377.857,"operands":{"distinct":33,"total":36},"operators":{"distinct":7,"total":35}},"paramCount":1,"sloc":{"logical":16,"physical":23}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/commands/webpack/index.js","report":{"aggregate":{"cyclomatic":11,"cyclomaticDensity":17.742,"halstead":{"bugs":0.434,"difficulty":17.5,"effort":22803.323,"length":218,"time":1266.851,"vocabulary":63,"volume":1303.047,"operands":{"distinct":48,"total":112,"identifiers":["api","registerCommand","command","\"webpack\"","description","\"inspect webpack configurations\"","options","name","\"--rule \"","\"inspect a specific module rule\"","\"--plugin \"","\"inspect a specific plugin\"","\"--rules\"","\"list all module rule names\"","\"--plugins\"","\"list all plugin names\"","\"--verbose\"","\"show full function definitions in output\"","assert","require","\"assert\"","getBundleAndConfigs","\"../buildDevUtils\"","toString","\"webpack-chain\"","highlight","\"cli-highlight\"","bundleConfig","config","\"No valid config found with fes entry.\"","rule","module","rules","find","r","__ruleNames","0","plugin","plugins","p","__pluginName","map","constructor","console","log","verbose","language","\"js\""]},"operators":{"distinct":15,"total":106,"identifiers":["function","()",".","{}",":","[]",",","const","=","let","if","else","function=>","===","||"]}},"paramCount":5,"sloc":{"logical":62,"physical":51}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":22,"path":"assert","type":"cjs"},{"line":23,"path":"../buildDevUtils","type":"cjs"},{"line":24,"path":"webpack-chain","type":"cjs"},{"line":25,"path":"cli-highlight","type":"cjs"}],"errors":[],"lineEnd":51,"lineStart":1,"maintainability":61.035,"methods":[{"cyclomatic":5,"cyclomaticDensity":8.772,"halstead":{"bugs":0.36,"difficulty":12.818,"effort":13845.79,"length":186,"time":769.211,"vocabulary":56,"volume":1080.168,"operands":{"distinct":44,"total":94,"identifiers":["api","registerCommand","command","\"webpack\"","description","\"inspect webpack configurations\"","options","name","\"--rule \"","\"inspect a specific module rule\"","\"--plugin \"","\"inspect a specific plugin\"","\"--rules\"","\"list all module rule names\"","\"--plugins\"","\"list all plugin names\"","\"--verbose\"","\"show full function definitions in output\"","assert","require","\"assert\"","getBundleAndConfigs","\"../buildDevUtils\"","toString","\"webpack-chain\"","highlight","\"cli-highlight\"","bundleConfig","config","\"No valid config found with fes entry.\"","rule","module","rules","find","r","plugin","plugins","p","map","console","log","verbose","language","\"js\""]},"operators":{"distinct":12,"total":92,"identifiers":["()",".","{}",":","[]",",","const","=","let","if","else","function=>"]}},"paramCount":1,"sloc":{"logical":57,"physical":50},"errors":[],"lineEnd":50,"lineStart":1,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.009,"difficulty":1.5,"effort":40.5,"length":9,"time":2.25,"vocabulary":8,"volume":27,"operands":{"distinct":5,"total":5,"identifiers":["r","__ruleNames","0","options","rule"]},"operators":{"distinct":3,"total":4,"identifiers":["===","[]","."]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":33,"lineStart":33,"name":"","paramNames":["r"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.006,"difficulty":1,"effort":18.095,"length":7,"time":1.005,"vocabulary":6,"volume":18.095,"operands":{"distinct":4,"total":4,"identifiers":["p","__pluginName","options","plugin"]},"operators":{"distinct":2,"total":3,"identifiers":["===","."]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":37,"lineStart":37,"name":"","paramNames":["p"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["r","__ruleNames","0"]},"operators":{"distinct":2,"total":2,"identifiers":["[]","."]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":40,"lineStart":40,"name":"","paramNames":["r"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":200,"halstead":{"bugs":0.008,"difficulty":1.25,"effort":29.081,"length":9,"time":1.616,"vocabulary":6,"volume":23.265,"operands":{"distinct":4,"total":5,"identifiers":["p","__pluginName","constructor","name"]},"operators":{"distinct":2,"total":4,"identifiers":["||","."]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":43,"lineStart":43,"name":"","paramNames":["p"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.833,"cyclomaticDensity":2.957,"halstead":{"bugs":0.072,"difficulty":2.917,"effort":3800.554,"length":36.333,"time":211.142,"vocabulary":10.5,"volume":217.175,"operands":{"distinct":8,"total":18.667},"operators":{"distinct":2.5,"total":17.667}},"paramCount":0.833,"sloc":{"logical":10.333,"physical":8.5}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":101.754,"halstead":{"bugs":0.077,"difficulty":3.514,"effort":2789.015,"length":43.2,"time":154.945,"vocabulary":16.2,"volume":232.027,"operands":{"distinct":12,"total":22.2},"operators":{"distinct":4.2,"total":21}},"paramCount":1,"sloc":{"logical":12.2,"physical":10.8}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/css.js","report":{"aggregate":{"cyclomatic":15,"cyclomaticDensity":18.519,"halstead":{"bugs":0.685,"difficulty":23.746,"effort":48789.229,"length":325,"time":2710.513,"vocabulary":80,"volume":2054.627,"operands":{"distinct":63,"total":176,"identifiers":["createRules","isDev","webpackConfig","config","lang","test","loader","options","browserslist","applyLoaders","rule","isCSSModules","use","\"extra-css-loader\"","require","resolve","\"style-loader\"","\"mini-css-extract-plugin\"","\"css-loader\"","deepmerge","importLoaders","1","modules","localIdentName","\"[local]___[hash:base64:5]\"","cssLoader","\"postcss-loader\"","postcssOptions","plugins","\"postcss-flexbugs-fixes\"","\"postcss-safe-parser\"","\"autoprefixer\"","autoprefixer","overrideBrowserslist","extraPostCSSPlugins","postcssLoader","module","oneOf","\"css-modules\"","resourceQuery","/module/","true","\"css\"","false","createCssWebpackConfig","/\\.css$/","\"less\"","/\\.less$/","\"less-loader\"","lessOptions","javascriptEnabled","lessLoader","plugin","\"extra-css\"","filename","\"[name].css\"","\"[name].[contenthash:8].css\"","chunkFilename","\"[id].css\"","\"[id].[contenthash:8].css\"","optimization","minimizer","\"css-minimizer-webpack-plugin\""]},"operators":{"distinct":17,"total":149,"identifiers":["function","{}","if","else","()",".",":","... (spread)",":?","||","function=>","[]",",","const","=","! (prefix)","return"]}},"paramCount":15,"sloc":{"logical":81,"physical":135}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":12,"path":"@fesjs/utils","type":"esm"},{"line":32,"path":"mini-css-extract-plugin","type":"cjs"},{"line":62,"path":"postcss-flexbugs-fixes","type":"cjs"},{"line":63,"path":"postcss-safe-parser","type":"cjs"},{"line":64,"path":"autoprefixer","type":"cjs"}],"errors":[],"lineEnd":135,"lineStart":1,"maintainability":56.8,"methods":[{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.054,"difficulty":3.929,"effort":634.155,"length":38,"time":35.231,"vocabulary":19,"volume":161.421,"operands":{"distinct":14,"total":22,"identifiers":["applyLoaders","rule","isCSSModules","webpackConfig","module","lang","test","oneOf","\"css-modules\"","resourceQuery","/module/","true","\"css\"","false"]},"operators":{"distinct":5,"total":16,"identifiers":["function","const","=","()","."]}},"paramCount":8,"sloc":{"logical":9,"physical":67},"errors":[],"lineEnd":80,"lineStart":14,"name":"createRules","paramNames":["isDev","webpackConfig","config","lang","test","loader","options","browserslist"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":20,"halstead":{"bugs":0.203,"difficulty":12.174,"effort":7430.612,"length":121,"time":412.812,"vocabulary":33,"volume":610.372,"operands":{"distinct":23,"total":56,"identifiers":["isDev","rule","use","\"extra-css-loader\"","loader","require","resolve","\"style-loader\"","options","\"mini-css-extract-plugin\"","\"css-loader\"","deepmerge","importLoaders","1","isCSSModules","modules","localIdentName","\"[local]___[hash:base64:5]\"","config","cssLoader","\"postcss-loader\"","postcssOptions","postcssLoader"]},"operators":{"distinct":10,"total":65,"identifiers":["if","else","()",".","{}",":","... (spread)",":?","||","function=>"]}},"paramCount":2,"sloc":{"logical":30,"physical":52},"errors":[],"lineEnd":75,"lineStart":24,"name":"applyLoaders","paramNames":["rule","isCSSModules"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.049,"difficulty":6,"effort":875.684,"length":35,"time":48.649,"vocabulary":18,"volume":145.947,"operands":{"distinct":10,"total":15,"identifiers":["plugins","require","\"postcss-flexbugs-fixes\"","\"postcss-safe-parser\"","\"autoprefixer\"","config","autoprefixer","overrideBrowserslist","browserslist","extraPostCSSPlugins"]},"operators":{"distinct":8,"total":20,"identifiers":["{}",":","[]",",","()","... (spread)",".",":?"]}},"paramCount":0,"sloc":{"logical":6,"physical":9},"errors":[],"lineEnd":67,"lineStart":59,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":13.793,"halstead":{"bugs":0.182,"difficulty":9.833,"effort":5368.441,"length":100,"time":298.247,"vocabulary":44,"volume":545.943,"operands":{"distinct":33,"total":59,"identifiers":["createRules","isDev","webpackConfig","config","lang","\"css\"","test","/\\.css$/","browserslist","\"less\"","/\\.less$/","loader","\"less-loader\"","options","lessOptions","javascriptEnabled","true","lessLoader","plugin","\"extra-css\"","use","require","resolve","\"mini-css-extract-plugin\"","filename","\"[name].css\"","\"[name].[contenthash:8].css\"","chunkFilename","\"[id].css\"","\"[id].[contenthash:8].css\"","optimization","minimizer","\"css-minimizer-webpack-plugin\""]},"operators":{"distinct":11,"total":41,"identifiers":["()","{}",":","... (spread)",".","[]",":?","if","! (prefix)","return","function=>"]}},"paramCount":4,"sloc":{"logical":29,"physical":53},"errors":[],"lineEnd":134,"lineStart":82,"name":"createCssWebpackConfig","paramNames":["isDev","config","webpackConfig","browserslist"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.014,"difficulty":2.5,"effort":103.023,"length":13,"time":5.723,"vocabulary":9,"volume":41.209,"operands":{"distinct":6,"total":10,"identifiers":["createRules","isDev","config","webpackConfig","browserslist","options"]},"operators":{"distinct":3,"total":3,"identifiers":["()","{}","... (spread)"]}},"paramCount":1,"sloc":{"logical":5,"physical":9},"errors":[],"lineEnd":133,"lineStart":125,"name":"","paramNames":["options"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.5,"cyclomaticDensity":3.086,"halstead":{"bugs":0.114,"difficulty":3.958,"effort":8131.538,"length":54.167,"time":451.752,"vocabulary":13.333,"volume":342.438,"operands":{"distinct":10.5,"total":29.333},"operators":{"distinct":2.833,"total":24.833}},"paramCount":2.5,"sloc":{"logical":13.5,"physical":22.5}},"methodAverage":{"cyclomatic":2.8,"cyclomaticDensity":19.648,"halstead":{"bugs":0.1,"difficulty":6.887,"effort":2882.383,"length":61.4,"time":160.132,"vocabulary":24.6,"volume":300.978,"operands":{"distinct":17.2,"total":32.4},"operators":{"distinct":7.4,"total":29}},"paramCount":3,"sloc":{"logical":15.8,"physical":38}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/define.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.025,"difficulty":3.056,"effort":232.672,"length":20,"time":12.926,"vocabulary":14,"volume":76.147,"operands":{"distinct":9,"total":11,"identifiers":["createDefineWebpackConfig","config","webpackConfig","plugin","\"define\"","use","webpack","DefinePlugin","resolveDefine"]},"operators":{"distinct":5,"total":9,"identifiers":["function","{}","()",".","[]"]}},"paramCount":2,"sloc":{"logical":4,"physical":13}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"webpack","type":"esm"},{"line":2,"path":"./resolveDefine","type":"esm"}],"errors":[],"lineEnd":13,"lineStart":1,"maintainability":83.92,"methods":[{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.017,"difficulty":1.5,"effort":77.837,"length":15,"time":4.324,"vocabulary":11,"volume":51.891,"operands":{"distinct":8,"total":8,"identifiers":["webpackConfig","plugin","\"define\"","use","webpack","DefinePlugin","resolveDefine","config"]},"operators":{"distinct":3,"total":7,"identifiers":["()",".","[]"]}},"paramCount":2,"sloc":{"logical":3,"physical":9},"errors":[],"lineEnd":12,"lineStart":4,"name":"createDefineWebpackConfig","paramNames":["config","webpackConfig"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.013,"difficulty":1.528,"effort":116.336,"length":10,"time":6.463,"vocabulary":7,"volume":38.074,"operands":{"distinct":4.5,"total":5.5},"operators":{"distinct":2.5,"total":4.5}},"paramCount":1,"sloc":{"logical":2,"physical":6.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.017,"difficulty":1.5,"effort":77.837,"length":15,"time":4.324,"vocabulary":11,"volume":51.891,"operands":{"distinct":8,"total":8},"operators":{"distinct":3,"total":7}},"paramCount":2,"sloc":{"logical":3,"physical":9}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/getBabelOpts.js","report":{"aggregate":{"cyclomatic":10,"cyclomaticDensity":19.231,"halstead":{"bugs":0.494,"difficulty":19.161,"effort":28422.589,"length":236,"time":1579.033,"vocabulary":78,"volume":1483.355,"operands":{"distinct":59,"total":119,"identifiers":["getBabelOpts","cwd","targets","config","presetOpts","presets","require","resolve","\"@babel/preset-env\"","useBuiltIns","\"usage\"","corejs","version","3","proposals","true","modules","false","\"@babel/preset-typescript\"","default","allowNamespaces","isTSX","allExtensions","extraBabelPresets","plugins","\"@babel/plugin-proposal-export-default-from\"","\"@babel/plugin-proposal-pipeline-operator\"","proposal","\"minimal\"","\"@babel/plugin-proposal-do-expressions\"","\"@babel/plugin-proposal-function-bind\"","\"@babel/plugin-transform-runtime\"","useESModules","transformRuntime","import","map","importOpts","\"babel-plugin-import\"","libraryName","\"@vue/babel-plugin-jsx\"","extraBabelPlugins","babelrc","configFile","cacheDirectory","process","env","BABEL_CACHE","\"none\"","winPath","/.cache/babel-loader","overrides","test","/[\\\\/]node_modules[\\\\/]/","/\\.fes/","sourceType","\"unambiguous\"","modifyBabelOpts","modifyBabelPresetOpts","babelOpts"]},"operators":{"distinct":19,"total":117,"identifiers":["function","{}","const","=","[]",",","()",".",":","... (spread)","||",":?","function=>","return","!==","``","${}","let","if"]}},"paramCount":10,"sloc":{"logical":52,"physical":101}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":3,"path":"@fesjs/utils","type":"esm"},{"line":26,"path":"@babel/preset-typescript","type":"cjs"},{"line":37,"path":"@babel/plugin-proposal-export-default-from","type":"cjs"},{"line":39,"path":"@babel/plugin-proposal-pipeline-operator","type":"cjs"},{"line":44,"path":"@babel/plugin-proposal-do-expressions","type":"cjs"},{"line":45,"path":"@babel/plugin-proposal-function-bind","type":"cjs"}],"errors":[],"lineEnd":101,"lineStart":1,"maintainability":57.427,"methods":[{"cyclomatic":5,"cyclomaticDensity":15.152,"halstead":{"bugs":0.352,"difficulty":12.377,"effort":13080.08,"length":173,"time":726.671,"vocabulary":69,"volume":1056.775,"operands":{"distinct":53,"total":82,"identifiers":["presets","require","resolve","\"@babel/preset-env\"","targets","useBuiltIns","\"usage\"","corejs","version","3","proposals","true","modules","false","\"@babel/preset-typescript\"","default","allowNamespaces","isTSX","allExtensions","config","extraBabelPresets","plugins","\"@babel/plugin-proposal-export-default-from\"","\"@babel/plugin-proposal-pipeline-operator\"","proposal","\"minimal\"","\"@babel/plugin-proposal-do-expressions\"","\"@babel/plugin-proposal-function-bind\"","\"@babel/plugin-transform-runtime\"","useESModules","presetOpts","transformRuntime","import","map","importOpts","\"@vue/babel-plugin-jsx\"","extraBabelPlugins","babelrc","configFile","cacheDirectory","process","env","BABEL_CACHE","\"none\"","winPath","cwd","/.cache/babel-loader","overrides","test","/[\\\\/]node_modules[\\\\/]/","/\\.fes/","sourceType","\"unambiguous\""]},"operators":{"distinct":16,"total":91,"identifiers":["const","=","[]",",","()",".","{}",":","... (spread)","||",":?","function=>","return","!==","``","${}"]}},"paramCount":4,"sloc":{"logical":33,"physical":70},"errors":[],"lineEnd":74,"lineStart":5,"name":"getBabelOpts","paramNames":["cwd","targets","config","presetOpts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.013,"difficulty":2.4,"effort":91.294,"length":12,"time":5.072,"vocabulary":9,"volume":38.039,"operands":{"distinct":5,"total":6,"identifiers":["require","resolve","\"babel-plugin-import\"","importOpts","libraryName"]},"operators":{"distinct":4,"total":6,"identifiers":["[]",",","()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":58,"lineStart":54,"name":"","paramNames":["importOpts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":20,"halstead":{"bugs":0.049,"difficulty":8.167,"effort":1208.667,"length":37,"time":67.148,"vocabulary":16,"volume":148,"operands":{"distinct":9,"total":21,"identifiers":["presetOpts","transformRuntime","modifyBabelPresetOpts","babelOpts","getBabelOpts","cwd","config","targets","modifyBabelOpts"]},"operators":{"distinct":7,"total":16,"identifiers":["let","=","{}",":","if","()","return"]}},"paramCount":5,"sloc":{"logical":15,"physical":24},"errors":[],"lineEnd":100,"lineStart":77,"name":"","paramNames":["cwd","config","modifyBabelOpts","modifyBabelPresetOpts","targets"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.5,"cyclomaticDensity":4.808,"halstead":{"bugs":0.124,"difficulty":4.79,"effort":7105.647,"length":59,"time":394.758,"vocabulary":19.5,"volume":370.839,"operands":{"distinct":14.75,"total":29.75},"operators":{"distinct":4.75,"total":29.25}},"paramCount":2.5,"sloc":{"logical":13,"physical":25.25}},"methodAverage":{"cyclomatic":3,"cyclomaticDensity":28.384,"halstead":{"bugs":0.138,"difficulty":7.648,"effort":4793.347,"length":74,"time":266.297,"vocabulary":31.333,"volume":414.271,"operands":{"distinct":22.333,"total":36.333},"operators":{"distinct":9,"total":37.667}},"paramCount":3.333,"sloc":{"logical":16.667,"physical":33}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/html.js","report":{"aggregate":{"cyclomatic":17,"cyclomaticDensity":25.373,"halstead":{"bugs":0.607,"difficulty":20.556,"effort":37412.628,"length":279,"time":2078.479,"vocabulary":92,"volume":1820.074,"operands":{"distinct":72,"total":148,"identifiers":["createHtmlWebpackConfig","api","cwd","config","webpackConfig","headScripts","isProd","htmlOptions","title","\"fes.js\"","filename","\"[name].html\"","html","templateParameters","resolveDefine","true","mountElementId","Object","assign","minify","removeComments","collapseWhitespace","collapseBooleanAttributes","removeScriptTypeAttributes","multiPageConfig","pages","htmlPath","join","\"public/index.html\"","defaultHtmlPath","resolve","__dirname","\"index-default.html\"","publicCopyIgnore","template","existsSync","push","winPath","plugin","\"html\"","use","require","\"html-webpack-plugin\"","exportStatic","routes","getRoutes","addHtml","_routes","Array","isArray","forEach","route","_fileName","path","slice","1","\"index\"",".html","\"index.html\"","_htmlOptions","meta","children","length","headScriptsMap","\"html-tags\"","\"html-webpack-tags-plugin\"","append","false","scripts","map","script","src"]},"operators":{"distinct":20,"total":131,"identifiers":["function","{}","const","=",":","... (spread)",".","()","if","[]",":?","else","! (prefix)","function=>","``","${}","||","!==","&&","return"]}},"paramCount":9,"sloc":{"logical":67,"physical":100}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"path","type":"esm"},{"line":2,"path":"fs","type":"esm"},{"line":5,"path":"@fesjs/utils","type":"esm"},{"line":6,"path":"./resolveDefine","type":"esm"}],"errors":[],"lineEnd":100,"lineStart":1,"maintainability":56.857,"methods":[{"cyclomatic":6,"cyclomaticDensity":13.043,"halstead":{"bugs":0.342,"difficulty":11.073,"effort":11363.188,"length":168,"time":631.288,"vocabulary":69,"volume":1026.232,"operands":{"distinct":55,"total":87,"identifiers":["htmlOptions","title","\"fes.js\"","filename","\"[name].html\"","config","html","templateParameters","resolveDefine","true","mountElementId","isProd","Object","assign","minify","removeComments","collapseWhitespace","collapseBooleanAttributes","removeScriptTypeAttributes","multiPageConfig","pages","htmlPath","join","cwd","\"public/index.html\"","defaultHtmlPath","resolve","__dirname","\"index-default.html\"","publicCopyIgnore","template","existsSync","push","winPath","webpackConfig","plugin","\"html\"","use","require","\"html-webpack-plugin\"","exportStatic","routes","api","getRoutes","addHtml","_routes","headScripts","headScriptsMap","\"html-tags\"","\"html-webpack-tags-plugin\"","append","false","scripts","map","script"]},"operators":{"distinct":14,"total":81,"identifiers":["const","=","{}",":","... (spread)",".","()","if","[]",":?","else","! (prefix)","function=>","return"]}},"paramCount":6,"sloc":{"logical":46,"physical":92},"errors":[],"lineEnd":99,"lineStart":8,"name":"createHtmlWebpackConfig","paramNames":["api","cwd","config","webpackConfig","headScripts","isProd"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.013,"difficulty":2.4,"effort":91.294,"length":12,"time":5.072,"vocabulary":9,"volume":38.039,"operands":{"distinct":5,"total":6,"identifiers":["Array","isArray","_routes","forEach","route"]},"operators":{"distinct":4,"total":6,"identifiers":["if","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":4,"physical":22},"errors":[],"lineEnd":81,"lineStart":60,"name":"","paramNames":["_routes"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":7,"cyclomaticDensity":50,"halstead":{"bugs":0.151,"difficulty":11.25,"effort":5095.74,"length":84,"time":283.097,"vocabulary":42,"volume":452.955,"operands":{"distinct":28,"total":45,"identifiers":["_fileName","route","path","slice","1","\"index\"",".html","\"index.html\"","_htmlOptions","config","html","title","meta","\"fes.js\"","filename","templateParameters","resolveDefine","true","mountElementId","webpackConfig","plugin","use","require","resolve","\"html-webpack-plugin\"","children","length","addHtml"]},"operators":{"distinct":14,"total":39,"identifiers":["const","=","``","${}","||","()",".","if","!==","{}","... (spread)",":","[]","&&"]}},"paramCount":1,"sloc":{"logical":14,"physical":18},"errors":[],"lineEnd":79,"lineStart":62,"name":"","paramNames":["route"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["path","script","src"]},"operators":{"distinct":3,"total":3,"identifiers":["{}",":","."]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":93,"lineStart":91,"name":"","paramNames":["script"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3.4,"cyclomaticDensity":5.075,"halstead":{"bugs":0.121,"difficulty":4.111,"effort":7482.526,"length":55.8,"time":415.696,"vocabulary":18.4,"volume":364.015,"operands":{"distinct":14.4,"total":29.6},"operators":{"distinct":4,"total":26.2}},"paramCount":1.8,"sloc":{"logical":13.4,"physical":20}},"methodAverage":{"cyclomatic":4,"cyclomaticDensity":40.761,"halstead":{"bugs":0.128,"difficulty":6.556,"effort":4143.372,"length":67.5,"time":230.187,"vocabulary":31.5,"volume":383.184,"operands":{"distinct":22.75,"total":35.25},"operators":{"distinct":8.75,"total":32.25}},"paramCount":2.25,"sloc":{"logical":16.5,"physical":33.75}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/index.js","report":{"aggregate":{"cyclomatic":40,"cyclomaticDensity":16.393,"halstead":{"bugs":2.505,"difficulty":35.579,"effort":267357.502,"length":969,"time":14853.195,"vocabulary":216,"volume":7514.486,"operands":{"distinct":190,"total":520,"identifiers":["getTargetsAndBrowsersList","config","targets","Object","keys","filter","key","false","reduce","memo","browserslist","browsers","map","true","\"0\""," >= ","DEFAULT_EXCLUDE_NODE_MODULES","\"vue\"","\"vuex\"","\"vue-router\"","\"ant-design-vue\"","\"core-js\"","\"echarts\"","\"@babel/runtime\"","\"lodash-es\"","\"webpack-dev-server\"","\"ansi-html\"","\"html-entities\"","genTranspileDepRegex","exclude","concat","deps","dep","\"string\"","depPath","join","\"node_modules\"","\"/\"","/^win/","test","require","\"os\"","platform","replace","/\\\\/g","\"\\\\\"","RegExp","source","Error","\"exclude only accepts an array of string or regular expressions\"","length","\"|\"","null","getConfig","api","cwd","env","entry","modifyBabelOpts","modifyBabelPresetOpts","chainWebpack","headScripts","publicPath","isDev","\"development\"","isProd","\"production\"","webpackConfig","Config","absoluteOutput","outputPath","\"dist\"","mode","stats","\"verbose\"","externals","devtool","\"cheap-module-source-map\"","cache","type","\"filesystem\"","cacheDirectory","\".cache/webpack\"","forEach","add","end","output","path","filename","\"[name].[contenthash:8].js\"","chunkFilename","\"[name].[contenthash:8].chunk.js\"","resolve","extensions","merge","\".mjs\"","\".js\"","\".jsx\"","\".vue\"","\".ts\"","\".tsx\"","\".json\"","\".wasm\"","alias","set","module","rule","\"image\"","/\\.(png|jpe?g|gif|webp|ico)(\\?.*)?$/","use","\"url-loader\"","loader","options","limit","inlineLimit","8192","esModule","fallback","\"file-loader\"","name","\"static/[name].[hash:8].[ext]\"","\"svg\"","/\\.(svg)(\\?.*)?$/","\"fonts\"","/\\.(eot|woff|woff2|ttf)(\\?.*)?$/","\"raw\"","/\\.(txt|text|md)$/","\"raw-loader\"","babelOpts","getBabelOpts","\"esm\"","/\\.m?jsx?$/","\"fullySpecified\"","\"js\"","/\\.(js|mjs|jsx|ts|tsx)$/","filepath","/\\.vue\\.jsx?$/","/node_modules/","\"babel-loader\"","transpileDepRegex","nodeModulesTransform","\"js-in-node_modules\"","/\\.(js|mjs)$/","include","createCSSRule","createCssWebpackConfig","createVueWebpackConfig","publicCopyIgnore","createHtmlWebpackConfig","copyPatterns","existsSync","\"public\"","from","resourcePath","indexOf","\".DS_Store\"","1","includes","to","copy","item","Boolean","plugin","\"copy\"","\"copy-webpack-plugin\"","patterns","createDefineWebpackConfig","optimization","splitChunks","cacheGroups","defaultVendors","\"chunk-vendors\"","/[\\\\/]node_modules[\\\\/]/","priority","10","chunks","\"initial\"","common","\"chunk-common\"","minChunks","2","20","reuseExistingChunk","createMinimizerWebpackConfig","\"progress\"","\"webpackbar\"","\"friendly-errors\"","\"@soda/friendly-errors-webpack-plugin\"","webpack","toConfig"]},"operators":{"distinct":26,"total":449,"identifiers":["function","{}","let","=","||",".","()","function=>","!==","[]","return","const","``","${}",":?","===",",","if","typeof (prefix)","instanceof","throw","new",":","&&","- (prefix)","... (spread)"]}},"paramCount":23,"sloc":{"logical":244,"physical":328}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"path","type":"esm"},{"line":2,"path":"fs","type":"esm"},{"line":3,"path":"webpack-chain","type":"esm"},{"line":4,"path":"webpack","type":"esm"},{"line":5,"path":"./css","type":"esm"},{"line":6,"path":"./getBabelOpts","type":"esm"},{"line":7,"path":"./vue","type":"esm"},{"line":8,"path":"./define","type":"esm"},{"line":9,"path":"./minimizer","type":"esm"},{"line":10,"path":"./html","type":"esm"},{"line":50,"path":"os","type":"cjs"},{"line":308,"path":"@soda/friendly-errors-webpack-plugin","type":"cjs"}],"errors":[],"lineEnd":328,"lineStart":1,"maintainability":52.595,"methods":[{"cyclomatic":3,"cyclomaticDensity":21.429,"halstead":{"bugs":0.072,"difficulty":9.818,"effort":2121.674,"length":50,"time":117.871,"vocabulary":20,"volume":216.096,"operands":{"distinct":11,"total":24,"identifiers":["targets","config","Object","keys","filter","key","reduce","memo","browserslist","browsers","map"]},"operators":{"distinct":9,"total":26,"identifiers":["let","=","||",".","{}","()","function=>","const","return"]}},"paramCount":1,"sloc":{"logical":14,"physical":18},"errors":[],"lineEnd":29,"lineStart":12,"name":"getTargetsAndBrowsersList","paramNames":["config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["targets","key","false"]},"operators":{"distinct":2,"total":2,"identifiers":["!==","[]"]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":16,"lineStart":16,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.008,"difficulty":2.5,"effort":58.162,"length":9,"time":3.231,"vocabulary":6,"volume":23.265,"operands":{"distinct":3,"total":5,"identifiers":["memo","key","targets"]},"operators":{"distinct":3,"total":4,"identifiers":["=","[]","return"]}},"paramCount":2,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":20,"lineStart":17,"name":"","paramNames":["memo","key"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":200,"halstead":{"bugs":0.017,"difficulty":4,"effort":199.316,"length":15,"time":11.073,"vocabulary":10,"volume":49.829,"operands":{"distinct":5,"total":8,"identifiers":["key","targets","true","\"0\""," >= "]},"operators":{"distinct":5,"total":7,"identifiers":["``","${}",":?","===","[]"]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":23,"lineStart":23,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.041,"difficulty":5.455,"effort":671.945,"length":29,"time":37.33,"vocabulary":19,"volume":123.19,"operands":{"distinct":11,"total":15,"identifiers":["exclude","concat","DEFAULT_EXCLUDE_NODE_MODULES","deps","map","dep","length","RegExp","join","\"|\"","null"]},"operators":{"distinct":8,"total":14,"identifiers":["=","()",".","const","function=>","return",":?","new"]}},"paramCount":1,"sloc":{"logical":7,"physical":14},"errors":[],"lineEnd":58,"lineStart":45,"name":"genTranspileDepRegex","paramNames":["exclude"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":36.364,"halstead":{"bugs":0.072,"difficulty":7.667,"effort":1655.258,"length":44,"time":91.959,"vocabulary":30,"volume":215.903,"operands":{"distinct":18,"total":23,"identifiers":["dep","\"string\"","depPath","join","\"node_modules\"","\"/\"","/^win/","test","require","\"os\"","platform","replace","/\\\\/g","\"\\\\\"","RegExp","source","Error","\"exclude only accepts an array of string or regular expressions\""]},"operators":{"distinct":12,"total":21,"identifiers":["if","===","typeof (prefix)","const","=","()","return",":?",".","instanceof","throw","new"]}},"paramCount":1,"sloc":{"logical":11,"physical":10},"errors":[],"lineEnd":56,"lineStart":47,"name":"","paramNames":["dep"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":14,"cyclomaticDensity":8.046,"halstead":{"bugs":1.62,"difficulty":21.77,"effort":105806.801,"length":659,"time":5878.156,"vocabulary":166,"volume":4860.151,"operands":{"distinct":148,"total":358,"identifiers":["isDev","env","\"development\"","isProd","\"production\"","webpackConfig","Config","absoluteOutput","join","cwd","config","outputPath","\"dist\"","mode","stats","\"verbose\"","externals","devtool","\"cheap-module-source-map\"","cache","type","\"filesystem\"","cacheDirectory","\".cache/webpack\"","Object","keys","entry","forEach","key","output","path","publicPath","filename","\"[name].[contenthash:8].js\"","chunkFilename","\"[name].[contenthash:8].chunk.js\"","resolve","extensions","merge","\".mjs\"","\".js\"","\".jsx\"","\".vue\"","\".ts\"","\".tsx\"","\".json\"","\".wasm\"","alias","module","rule","\"image\"","test","/\\.(png|jpe?g|gif|webp|ico)(\\?.*)?$/","use","\"url-loader\"","loader","require","options","limit","inlineLimit","8192","esModule","false","fallback","\"file-loader\"","name","\"static/[name].[hash:8].[ext]\"","\"svg\"","/\\.(svg)(\\?.*)?$/","\"fonts\"","/\\.(eot|woff|woff2|ttf)(\\?.*)?$/","\"raw\"","/\\.(txt|text|md)$/","\"raw-loader\"","targets","browserslist","getTargetsAndBrowsersList","babelOpts","getBabelOpts","modifyBabelOpts","modifyBabelPresetOpts","\"esm\"","/\\.m?jsx?$/","set","\"fullySpecified\"","\"js\"","/\\.(js|mjs|jsx|ts|tsx)$/","exclude","add","filepath","end","\"babel-loader\"","transpileDepRegex","genTranspileDepRegex","nodeModulesTransform","\"js-in-node_modules\"","/\\.(js|mjs)$/","include","/node_modules/","createCSSRule","createCssWebpackConfig","createVueWebpackConfig","publicCopyIgnore","createHtmlWebpackConfig","api","headScripts","copyPatterns","existsSync","\"public\"","from","filter","resourcePath","to","copy","map","item","Boolean","length","plugin","\"copy\"","\"copy-webpack-plugin\"","patterns","createDefineWebpackConfig","optimization","splitChunks","cacheGroups","defaultVendors","\"chunk-vendors\"","/[\\\\/]node_modules[\\\\/]/","priority","10","chunks","\"initial\"","common","\"chunk-common\"","minChunks","2","20","reuseExistingChunk","true","createMinimizerWebpackConfig","\"progress\"","\"webpackbar\"","\"friendly-errors\"","\"@soda/friendly-errors-webpack-plugin\"","chainWebpack","webpack","toConfig"]},"operators":{"distinct":18,"total":301,"identifiers":["const","=","===","new","()","||",".","{}",":?",":","function=>","[]",",","if","&&","... (spread)","- (prefix)","return"]}},"paramCount":10,"sloc":{"logical":174,"physical":267},"errors":[],"lineEnd":327,"lineStart":61,"name":"getConfig","paramNames":["api","cwd","config","env","entry","modifyBabelOpts","modifyBabelPresetOpts","chainWebpack","headScripts","publicPath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.014,"difficulty":2.1,"effort":88.2,"length":14,"time":4.9,"vocabulary":8,"volume":42,"operands":{"distinct":5,"total":7,"identifiers":["webpackConfig","entry","key","add","end"]},"operators":{"distinct":3,"total":7,"identifiers":["()",".","[]"]}},"paramCount":1,"sloc":{"logical":3,"physical":3},"errors":[],"lineEnd":93,"lineStart":91,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.015,"difficulty":2,"effort":88.758,"length":14,"time":4.931,"vocabulary":9,"volume":44.379,"operands":{"distinct":6,"total":8,"identifiers":["webpackConfig","resolve","alias","set","key","config"]},"operators":{"distinct":3,"total":6,"identifiers":["()",".","[]"]}},"paramCount":1,"sloc":{"logical":1,"physical":4},"errors":[],"lineEnd":109,"lineStart":106,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.015,"difficulty":2.8,"effort":124.261,"length":14,"time":6.903,"vocabulary":9,"volume":44.379,"operands":{"distinct":5,"total":7,"identifiers":["/\\.vue\\.jsx?$/","test","filepath","false","/node_modules/"]},"operators":{"distinct":4,"total":7,"identifiers":["if","()",".","return"]}},"paramCount":1,"sloc":{"logical":5,"physical":8},"errors":[],"lineEnd":185,"lineStart":178,"name":"","paramNames":["filepath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":75,"halstead":{"bugs":0.013,"difficulty":3,"effort":119.589,"length":12,"time":6.644,"vocabulary":10,"volume":39.863,"operands":{"distinct":5,"total":6,"identifiers":["transpileDepRegex","test","filepath","true","false"]},"operators":{"distinct":5,"total":6,"identifiers":["if","&&","()",".","return"]}},"paramCount":1,"sloc":{"logical":4,"physical":7},"errors":[],"lineEnd":203,"lineStart":197,"name":"","paramNames":["filepath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":42.857,"halstead":{"bugs":0.027,"difficulty":3.75,"effort":299.829,"length":21,"time":16.657,"vocabulary":14,"volume":79.954,"operands":{"distinct":8,"total":10,"identifiers":["resourcePath","indexOf","\".DS_Store\"","1","false","publicCopyIgnore","includes","true"]},"operators":{"distinct":6,"total":11,"identifiers":["if","!==","()",".","- (prefix)","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":9},"errors":[],"lineEnd":244,"lineStart":236,"name":"","paramNames":["resourcePath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":20,"halstead":{"bugs":0.047,"difficulty":10.857,"effort":1527.036,"length":36,"time":84.835,"vocabulary":15,"volume":140.648,"operands":{"distinct":7,"total":19,"identifiers":["item","\"string\"","from","join","cwd","to","absoluteOutput"]},"operators":{"distinct":8,"total":17,"identifiers":["if","===","typeof (prefix)","return","{}",":","()","."]}},"paramCount":1,"sloc":{"logical":10,"physical":12},"errors":[],"lineEnd":257,"lineStart":246,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.857,"cyclomaticDensity":1.171,"halstead":{"bugs":0.179,"difficulty":2.541,"effort":19096.964,"length":69.214,"time":1060.942,"vocabulary":15.429,"volume":536.749,"operands":{"distinct":13.571,"total":37.143},"operators":{"distinct":1.857,"total":32.071}},"paramCount":1.643,"sloc":{"logical":17.429,"physical":23.429}},"methodAverage":{"cyclomatic":3,"cyclomaticDensity":58.123,"halstead":{"bugs":0.151,"difficulty":5.901,"effort":8674.803,"length":70.923,"time":481.933,"vocabulary":24.692,"volume":453.174,"operands":{"distinct":18.077,"total":37.923},"operators":{"distinct":6.615,"total":33}},"paramCount":1.769,"sloc":{"logical":18.462,"physical":27.538}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/minimizer.js","report":{"aggregate":{"cyclomatic":6,"cyclomaticDensity":14.634,"halstead":{"bugs":0.282,"difficulty":10.375,"effort":8763.611,"length":143,"time":486.867,"vocabulary":60,"volume":844.685,"operands":{"distinct":48,"total":83,"identifiers":["defaultTerserOptions","compress","arrows","false","collapse_vars","comparisons","computed_props","hoist_funs","hoist_props","hoist_vars","inline","loops","negate_iife","properties","reduce_funcs","reduce_vars","switches","toplevel","typeofs","booleans","true","if_return","sequences","unused","conditionals","dead_code","evaluate","mangle","safari10","terserOptions","config","deepmerge","extractComments","createMinimizerWebpackConfig","isProd","webpackConfig","optimization","minimizer","\"terser\"","use","require","resolve","\"terser-webpack-plugin\"","process","env","FES_ENV","\"test\"","minimize"]},"operators":{"distinct":12,"total":60,"identifiers":["const","=","{}",":","function=>","()","||",".","function","if","[]","==="]}},"paramCount":4,"sloc":{"logical":41,"physical":63}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@fesjs/utils","type":"esm"}],"errors":[],"lineEnd":63,"lineStart":1,"maintainability":58.862,"methods":[{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.016,"difficulty":2.917,"effort":141.26,"length":14,"time":7.848,"vocabulary":11,"volume":48.432,"operands":{"distinct":6,"total":7,"identifiers":["terserOptions","deepmerge","defaultTerserOptions","config","extractComments","false"]},"operators":{"distinct":5,"total":7,"identifiers":["{}",":","()","||","."]}},"paramCount":1,"sloc":{"logical":4,"physical":7},"errors":[],"lineEnd":46,"lineStart":40,"name":"","paramNames":["config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":42.857,"halstead":{"bugs":0.054,"difficulty":2.794,"effort":448.566,"length":36,"time":24.92,"vocabulary":22,"volume":160.54,"operands":{"distinct":17,"total":19,"identifiers":["isProd","webpackConfig","optimization","minimizer","\"terser\"","use","require","resolve","\"terser-webpack-plugin\"","terserOptions","config","process","env","FES_ENV","\"test\"","minimize","false"]},"operators":{"distinct":5,"total":17,"identifiers":["if","()",".","[]","==="]}},"paramCount":3,"sloc":{"logical":7,"physical":14},"errors":[],"lineEnd":62,"lineStart":49,"name":"createMinimizerWebpackConfig","paramNames":["isProd","config","webpackConfig"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":4.878,"halstead":{"bugs":0.094,"difficulty":3.458,"effort":2921.204,"length":47.667,"time":162.289,"vocabulary":20,"volume":281.562,"operands":{"distinct":16,"total":27.667},"operators":{"distinct":4,"total":20}},"paramCount":1.333,"sloc":{"logical":13.667,"physical":21}},"methodAverage":{"cyclomatic":2.5,"cyclomaticDensity":46.429,"halstead":{"bugs":0.035,"difficulty":2.855,"effort":294.913,"length":25,"time":16.384,"vocabulary":16.5,"volume":104.486,"operands":{"distinct":11.5,"total":13},"operators":{"distinct":5,"total":12}},"paramCount":2,"sloc":{"logical":5.5,"physical":10.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/resolveDefine.js","report":{"aggregate":{"cyclomatic":8,"cyclomaticDensity":27.586,"halstead":{"bugs":0.251,"difficulty":18.103,"effort":13639.166,"length":138,"time":757.731,"vocabulary":44,"volume":753.402,"operands":{"distinct":29,"total":70,"identifiers":["prefixRE","/^FES_APP_/","ENV_SHOULD_PASS","\"NODE_ENV\"","\"FES_ENV\"","resolveDefine","opts","raw","env","Object","keys","process","forEach","key","test","includes","BASE_URL","publicPath","prototype","hasOwnProperty","call","JSON","stringify","define","__VUE_OPTIONS_API__","true","__VUE_PROD_DEVTOOLS__","false","\"process.env\""]},"operators":{"distinct":15,"total":68,"identifiers":["const","=","[]",",","function","{}","()",".","function=>","if","||","return","forin",":","... (spread)"]}},"paramCount":3,"sloc":{"logical":29,"physical":42}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":42,"lineStart":1,"maintainability":61.089,"methods":[{"cyclomatic":4,"cyclomaticDensity":18.182,"halstead":{"bugs":0.168,"difficulty":14.571,"effort":7350.403,"length":100,"time":408.356,"vocabulary":33,"volume":504.439,"operands":{"distinct":21,"total":51,"identifiers":["env","Object","keys","process","forEach","key","BASE_URL","opts","publicPath","raw","prototype","hasOwnProperty","call","JSON","stringify","define","__VUE_OPTIONS_API__","true","__VUE_PROD_DEVTOOLS__","false","\"process.env\""]},"operators":{"distinct":12,"total":49,"identifiers":["const","=","{}","()",".","function=>","if","return","forin","[]",":","... (spread)"]}},"paramCount":2,"sloc":{"logical":22,"physical":37},"errors":[],"lineEnd":41,"lineStart":5,"name":"resolveDefine","paramNames":["opts","raw"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":75,"halstead":{"bugs":0.026,"difficulty":4.714,"effort":366.344,"length":21,"time":20.352,"vocabulary":13,"volume":77.709,"operands":{"distinct":7,"total":11,"identifiers":["prefixRE","test","key","ENV_SHOULD_PASS","includes","env","process"]},"operators":{"distinct":6,"total":10,"identifiers":["if","||","()",".","=","[]"]}},"paramCount":1,"sloc":{"logical":4,"physical":5},"errors":[],"lineEnd":11,"lineStart":7,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.667,"cyclomaticDensity":9.195,"halstead":{"bugs":0.084,"difficulty":6.034,"effort":4546.389,"length":46,"time":252.577,"vocabulary":14.667,"volume":251.134,"operands":{"distinct":9.667,"total":23.333},"operators":{"distinct":5,"total":22.667}},"paramCount":1,"sloc":{"logical":9.667,"physical":14}},"methodAverage":{"cyclomatic":3.5,"cyclomaticDensity":46.591,"halstead":{"bugs":0.097,"difficulty":9.643,"effort":3858.373,"length":60.5,"time":214.354,"vocabulary":23,"volume":291.074,"operands":{"distinct":14,"total":31},"operators":{"distinct":9,"total":29.5}},"paramCount":1.5,"sloc":{"logical":13,"physical":21}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/vue.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":25,"halstead":{"bugs":0.103,"difficulty":5.87,"effort":1819.565,"length":62,"time":101.087,"vocabulary":32,"volume":310,"operands":{"distinct":23,"total":30,"identifiers":["createVueWebpackConfig","config","webpackConfig","module","rule","\"vue\"","test","/\\.vue$/","use","\"vue-loader\"","loader","require","resolve","options","babelParserPlugins","\"jsx\"","\"classProperties\"","\"decorators-legacy\"","vueLoader","end","plugin","\"vue-loader-plugin\"","VueLoaderPlugin"]},"operators":{"distinct":9,"total":32,"identifiers":["function","{}","()",".",":","[]",",","... (spread)","||"]}},"paramCount":2,"sloc":{"logical":12,"physical":22}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":20,"path":"vue-loader","type":"cjs"}],"errors":[],"lineEnd":22,"lineStart":1,"maintainability":69.162,"methods":[{"cyclomatic":2,"cyclomaticDensity":18.182,"halstead":{"bugs":0.093,"difficulty":4.909,"effort":1373.037,"length":57,"time":76.28,"vocabulary":30,"volume":279.693,"operands":{"distinct":22,"total":27,"identifiers":["webpackConfig","module","rule","\"vue\"","test","/\\.vue$/","use","\"vue-loader\"","loader","require","resolve","options","babelParserPlugins","\"jsx\"","\"classProperties\"","\"decorators-legacy\"","config","vueLoader","end","plugin","\"vue-loader-plugin\"","VueLoaderPlugin"]},"operators":{"distinct":8,"total":30,"identifiers":["()",".","{}",":","[]",",","... (spread)","||"]}},"paramCount":2,"sloc":{"logical":11,"physical":19},"errors":[],"lineEnd":21,"lineStart":3,"name":"createVueWebpackConfig","paramNames":["config","webpackConfig"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":12.5,"halstead":{"bugs":0.052,"difficulty":2.935,"effort":909.783,"length":31,"time":50.543,"vocabulary":16,"volume":155,"operands":{"distinct":11.5,"total":15},"operators":{"distinct":4.5,"total":16}},"paramCount":1,"sloc":{"logical":6,"physical":11}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":18.182,"halstead":{"bugs":0.093,"difficulty":4.909,"effort":1373.037,"length":57,"time":76.28,"vocabulary":30,"volume":279.693,"operands":{"distinct":22,"total":27},"operators":{"distinct":8,"total":30}},"paramCount":2,"sloc":{"logical":11,"physical":19}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/alias.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":20,"halstead":{"bugs":0.094,"difficulty":6.889,"effort":1942.848,"length":60,"time":107.936,"vocabulary":26,"volume":282.026,"operands":{"distinct":18,"total":31,"identifiers":["api","paths","describe","key","\"alias\"","config","joi","object","default","chainWebpack","memo","resolve","alias","set","\"@\"","absSrcPath","\"@@\"","absTmpPath"]},"operators":{"distinct":8,"total":29,"identifiers":["function=>","const","=","{}","()",".",":","return"]}},"paramCount":2,"sloc":{"logical":15,"physical":23}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":23,"lineStart":1,"maintainability":71.806,"methods":[{"cyclomatic":1,"cyclomaticDensity":9.091,"halstead":{"bugs":0.045,"difficulty":5.455,"effort":741.456,"length":32,"time":41.192,"vocabulary":19,"volume":135.934,"operands":{"distinct":11,"total":15,"identifiers":["paths","api","describe","key","\"alias\"","config","joi","object","default","chainWebpack","memo"]},"operators":{"distinct":8,"total":17,"identifiers":["const","=","{}","()",".",":","return","function=>"]}},"paramCount":1,"sloc":{"logical":11,"physical":22},"errors":[],"lineEnd":22,"lineStart":1,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.031,"difficulty":2.5,"effort":233.023,"length":26,"time":12.946,"vocabulary":12,"volume":93.209,"operands":{"distinct":9,"total":15,"identifiers":["memo","resolve","alias","set","\"@\"","paths","absSrcPath","\"@@\"","absTmpPath"]},"operators":{"distinct":3,"total":11,"identifiers":["()",".","return"]}},"paramCount":1,"sloc":{"logical":3,"physical":7},"errors":[],"lineEnd":21,"lineStart":15,"name":"","paramNames":["memo"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":6.667,"halstead":{"bugs":0.031,"difficulty":2.296,"effort":647.616,"length":20,"time":35.979,"vocabulary":8.667,"volume":94.009,"operands":{"distinct":6,"total":10.333},"operators":{"distinct":2.667,"total":9.667}},"paramCount":0.667,"sloc":{"logical":5,"physical":7.667}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":21.212,"halstead":{"bugs":0.038,"difficulty":3.977,"effort":487.24,"length":29,"time":27.069,"vocabulary":15.5,"volume":114.571,"operands":{"distinct":10,"total":15},"operators":{"distinct":5.5,"total":14}},"paramCount":1,"sloc":{"logical":7,"physical":14.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/analyze.js","report":{"aggregate":{"cyclomatic":9,"cyclomaticDensity":20,"halstead":{"bugs":0.389,"difficulty":9.182,"effort":10727.48,"length":194,"time":595.971,"vocabulary":65,"volume":1168.339,"operands":{"distinct":55,"total":101,"identifiers":["api","describe","key","\"analyze\"","config","joi","object","analyzerMode","string","valid","\"server\"","\"static\"","\"disabled\"","analyzerHost","analyzerPort","alternatives","number","\"auto\"","openAnalyzer","boolean","generateStatsFile","statsFilename","logLevel","\"info\"","\"warn\"","\"error\"","\"silent\"","defaultSizes","\"stat\"","\"parsed\"","\"gzip\"","unknown","true","default","process","env","ANALYZE_MODE","ANALYZE_PORT","8888","ANALYZE_OPEN","\"none\"","ANALYZE_DUMP","\"stats.json\"","ANALYZE_LOG_LEVEL","enableBy","ANALYZE","chainWebpack","webpackConfig","plugin","\"bundle-analyzer\"","use","require","\"webpack-bundle-analyzer\"","BundleAnalyzerPlugin","analyze"]},"operators":{"distinct":10,"total":93,"identifiers":["function=>","()",".","{}",":","return","||","!==","! (prefix)","[]"]}},"paramCount":2,"sloc":{"logical":45,"physical":42}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":36,"path":"webpack-bundle-analyzer","type":"cjs"}],"errors":[],"lineEnd":42,"lineStart":1,"maintainability":60.807,"methods":[{"cyclomatic":5,"cyclomaticDensity":12.821,"halstead":{"bugs":0.316,"difficulty":8.234,"effort":7794.335,"length":163,"time":433.019,"vocabulary":56,"volume":946.599,"operands":{"distinct":47,"total":86,"identifiers":["api","describe","key","\"analyze\"","config","joi","object","analyzerMode","string","valid","\"server\"","\"static\"","\"disabled\"","analyzerHost","analyzerPort","alternatives","number","\"auto\"","openAnalyzer","boolean","generateStatsFile","statsFilename","logLevel","\"info\"","\"warn\"","\"error\"","\"silent\"","defaultSizes","\"stat\"","\"parsed\"","\"gzip\"","unknown","true","default","process","env","ANALYZE_MODE","ANALYZE_PORT","8888","ANALYZE_OPEN","\"none\"","ANALYZE_DUMP","\"stats.json\"","ANALYZE_LOG_LEVEL","enableBy","chainWebpack","webpackConfig"]},"operators":{"distinct":9,"total":77,"identifiers":["()",".","{}",":","return","||","!==","! (prefix)","function=>"]}},"paramCount":1,"sloc":{"logical":39,"physical":40},"errors":[],"lineEnd":41,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":1,"effort":16.253,"length":7,"time":0.903,"vocabulary":5,"volume":16.253,"operands":{"distinct":3,"total":3,"identifiers":["process","env","ANALYZE"]},"operators":{"distinct":2,"total":4,"identifiers":["! (prefix)","."]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":31,"lineStart":31,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.029,"difficulty":3.3,"effort":290.4,"length":22,"time":16.133,"vocabulary":16,"volume":88,"operands":{"distinct":10,"total":11,"identifiers":["webpackConfig","plugin","\"bundle-analyzer\"","use","require","\"webpack-bundle-analyzer\"","BundleAnalyzerPlugin","api","config","analyze"]},"operators":{"distinct":6,"total":11,"identifiers":["()",".","[]","||","{}","return"]}},"paramCount":1,"sloc":{"logical":4,"physical":8},"errors":[],"lineEnd":40,"lineStart":33,"name":"","paramNames":["webpackConfig"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.25,"cyclomaticDensity":5,"halstead":{"bugs":0.097,"difficulty":2.295,"effort":2681.87,"length":48.5,"time":148.993,"vocabulary":16.25,"volume":292.085,"operands":{"distinct":13.75,"total":25.25},"operators":{"distinct":2.5,"total":23.25}},"paramCount":0.5,"sloc":{"logical":11.25,"physical":10.5}},"methodAverage":{"cyclomatic":2.667,"cyclomaticDensity":54.274,"halstead":{"bugs":0.117,"difficulty":4.178,"effort":2700.33,"length":64,"time":150.018,"vocabulary":25.667,"volume":350.284,"operands":{"distinct":20,"total":33.333},"operators":{"distinct":5.667,"total":30.667}},"paramCount":0.667,"sloc":{"logical":14.667,"physical":16.333}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/autoprefixer.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":20,"halstead":{"bugs":0.04,"difficulty":3.5,"effort":423.247,"length":29,"time":23.514,"vocabulary":18,"volume":120.928,"operands":{"distinct":12,"total":14,"identifiers":["api","describe","key","\"autoprefixer\"","config","default","flexbox","\"no-2009\"","joi","object","description","\"postcss autoprefixer, default flexbox: no-2009\""]},"operators":{"distinct":6,"total":15,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":10,"physical":17}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":17,"lineStart":1,"maintainability":74.043,"methods":[{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.037,"difficulty":2.708,"effort":298.896,"length":27,"time":16.605,"vocabulary":17,"volume":110.361,"operands":{"distinct":12,"total":13,"identifiers":["api","describe","key","\"autoprefixer\"","config","default","flexbox","\"no-2009\"","joi","object","description","\"postcss autoprefixer, default flexbox: no-2009\""]},"operators":{"distinct":5,"total":14,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":9,"physical":15},"errors":[],"lineEnd":16,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":10,"halstead":{"bugs":0.02,"difficulty":1.75,"effort":211.624,"length":14.5,"time":11.757,"vocabulary":9,"volume":60.464,"operands":{"distinct":6,"total":7},"operators":{"distinct":3,"total":7.5}},"paramCount":0.5,"sloc":{"logical":5,"physical":8.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.037,"difficulty":2.708,"effort":298.896,"length":27,"time":16.605,"vocabulary":17,"volume":110.361,"operands":{"distinct":12,"total":13},"operators":{"distinct":5,"total":14}},"paramCount":1,"sloc":{"logical":9,"physical":15}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/babelPluginImport.js","report":{"aggregate":{"cyclomatic":5,"cyclomaticDensity":35.714,"halstead":{"bugs":0.08,"difficulty":8.357,"effort":2003.615,"length":53,"time":111.312,"vocabulary":23,"volume":239.749,"operands":{"distinct":14,"total":26,"identifiers":["api","describe","key","\"babelPluginImport\"","config","joi","array","modifyBabelOpts","babelOpts","babelPluginImport","forEach","plugins","push","\"import\""]},"operators":{"distinct":9,"total":27,"identifiers":["function=>","()",".","{}",":","return","if","[]",","]}},"paramCount":3,"sloc":{"logical":14,"physical":21}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":21,"lineStart":1,"maintainability":75.568,"methods":[{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.03,"difficulty":3.667,"effort":329.481,"length":23,"time":18.305,"vocabulary":15,"volume":89.858,"operands":{"distinct":9,"total":11,"identifiers":["api","describe","key","\"babelPluginImport\"","config","joi","array","modifyBabelOpts","babelOpts"]},"operators":{"distinct":6,"total":12,"identifiers":["()",".","{}",":","return","function=>"]}},"paramCount":1,"sloc":{"logical":8,"physical":20},"errors":[],"lineEnd":20,"lineStart":1,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.02,"difficulty":4.5,"effort":269.076,"length":18,"time":14.949,"vocabulary":10,"volume":59.795,"operands":{"distinct":5,"total":9,"identifiers":["api","config","babelPluginImport","forEach","babelOpts"]},"operators":{"distinct":5,"total":9,"identifiers":["if",".","()","function=>","return"]}},"paramCount":1,"sloc":{"logical":4,"physical":9},"errors":[],"lineEnd":19,"lineStart":11,"name":"","paramNames":["babelOpts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.011,"difficulty":2,"effort":63.399,"length":10,"time":3.522,"vocabulary":9,"volume":31.699,"operands":{"distinct":5,"total":5,"identifiers":["babelOpts","plugins","push","\"import\"","config"]},"operators":{"distinct":4,"total":5,"identifiers":["()",".","[]",","]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":15,"lineStart":13,"name":"","paramNames":["config"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.25,"cyclomaticDensity":8.929,"halstead":{"bugs":0.02,"difficulty":2.089,"effort":500.904,"length":13.25,"time":27.828,"vocabulary":5.75,"volume":59.937,"operands":{"distinct":3.5,"total":6.5},"operators":{"distinct":2.25,"total":6.75}},"paramCount":0.75,"sloc":{"logical":3.5,"physical":5.25}},"methodAverage":{"cyclomatic":1.333,"cyclomaticDensity":54.167,"halstead":{"bugs":0.02,"difficulty":3.389,"effort":220.652,"length":17,"time":12.258,"vocabulary":11.333,"volume":60.451,"operands":{"distinct":6.333,"total":8.333},"operators":{"distinct":5,"total":8.667}},"paramCount":1,"sloc":{"logical":4.333,"physical":10.667}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/base.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":22.222,"halstead":{"bugs":0.035,"difficulty":3.9,"effort":405.6,"length":26,"time":22.533,"vocabulary":16,"volume":104,"operands":{"distinct":10,"total":13,"identifiers":["api","describe","key","\"base\"","config","default","\"\"","joi","string","allow"]},"operators":{"distinct":6,"total":13,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":9,"physical":13}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":13,"lineStart":1,"maintainability":75.126,"methods":[{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.031,"difficulty":3,"effort":281.296,"length":24,"time":15.628,"vocabulary":15,"volume":93.765,"operands":{"distinct":10,"total":12,"identifiers":["api","describe","key","\"base\"","config","default","\"\"","joi","string","allow"]},"operators":{"distinct":5,"total":12,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":8,"physical":11},"errors":[],"lineEnd":12,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.017,"difficulty":1.95,"effort":202.8,"length":13,"time":11.267,"vocabulary":8,"volume":52,"operands":{"distinct":5,"total":6.5},"operators":{"distinct":3,"total":6.5}},"paramCount":0.5,"sloc":{"logical":4.5,"physical":6.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.031,"difficulty":3,"effort":281.296,"length":24,"time":15.628,"vocabulary":15,"volume":93.765,"operands":{"distinct":10,"total":12},"operators":{"distinct":5,"total":12}},"paramCount":1,"sloc":{"logical":8,"physical":11}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/chainWebpack.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.023,"difficulty":3.857,"effort":271.189,"length":19,"time":15.066,"vocabulary":13,"volume":70.308,"operands":{"distinct":7,"total":9,"identifiers":["api","describe","key","\"chainWebpack\"","config","joi","function"]},"operators":{"distinct":6,"total":10,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":11}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":11,"lineStart":1,"maintainability":78.312,"methods":[{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.02,"difficulty":2.857,"effort":174.127,"length":17,"time":9.674,"vocabulary":12,"volume":60.944,"operands":{"distinct":7,"total":8,"identifiers":["api","describe","key","\"chainWebpack\"","config","joi","function"]},"operators":{"distinct":5,"total":9,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":6,"physical":10},"errors":[],"lineEnd":10,"lineStart":1,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.012,"difficulty":1.929,"effort":135.595,"length":9.5,"time":7.533,"vocabulary":6.5,"volume":35.154,"operands":{"distinct":3.5,"total":4.5},"operators":{"distinct":3,"total":5}},"paramCount":0.5,"sloc":{"logical":3.5,"physical":5.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.02,"difficulty":2.857,"effort":174.127,"length":17,"time":9.674,"vocabulary":12,"volume":60.944,"operands":{"distinct":7,"total":8},"operators":{"distinct":5,"total":9}},"paramCount":1,"sloc":{"logical":6,"physical":10}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/checkVuePackage.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":19.048,"halstead":{"bugs":0.171,"difficulty":8.294,"effort":4260.616,"length":93,"time":236.701,"vocabulary":46,"volume":513.691,"operands":{"distinct":34,"total":47,"identifiers":["api","describe","key","\"checkVuePackage\"","config","joi","object","default","onStart","vuePkg","require","\"vue/package.json\"","vueCompilerPkg","\"@vue/compiler-sfc/package.json\"","semver","satisfies","version","replace","/\\d+$/","\"0\"","~","includePrerelease","true","console","log","chalk","red","You are using vue@",", requires @vue/compiler-sfc@",".\nPlease upgrade your @vue/compiler-sfc@"," version.","process","exit","1"]},"operators":{"distinct":12,"total":46,"identifiers":["function=>","()",".","{}",":","return","const","=","if","! (prefix)","``","${}"]}},"paramCount":1,"sloc":{"logical":21,"physical":31}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@fesjs/utils","type":"esm"},{"line":17,"path":"vue/package.json","type":"cjs"},{"line":18,"path":"@vue/compiler-sfc/package.json","type":"cjs"}],"errors":[],"lineEnd":31,"lineStart":1,"maintainability":66.88,"methods":[{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.033,"difficulty":3.667,"effort":358.132,"length":25,"time":19.896,"vocabulary":15,"volume":97.672,"operands":{"distinct":9,"total":11,"identifiers":["api","describe","key","\"checkVuePackage\"","config","joi","object","default","onStart"]},"operators":{"distinct":6,"total":14,"identifiers":["()",".","{}",":","return","function=>"]}},"paramCount":1,"sloc":{"logical":9,"physical":28},"errors":[],"lineEnd":30,"lineStart":3,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":18.182,"halstead":{"bugs":0.113,"difficulty":7,"effort":2369.729,"length":66,"time":131.652,"vocabulary":35,"volume":338.533,"operands":{"distinct":25,"total":35,"identifiers":["vuePkg","require","\"vue/package.json\"","vueCompilerPkg","\"@vue/compiler-sfc/package.json\"","semver","satisfies","version","replace","/\\d+$/","\"0\"","~","includePrerelease","true","console","log","chalk","red","You are using vue@",", requires @vue/compiler-sfc@",".\nPlease upgrade your @vue/compiler-sfc@"," version.","process","exit","1"]},"operators":{"distinct":10,"total":31,"identifiers":["const","=","()","if","! (prefix)",".","``","${}","{}",":"]}},"paramCount":0,"sloc":{"logical":11,"physical":15},"errors":[],"lineEnd":29,"lineStart":15,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.333,"cyclomaticDensity":6.349,"halstead":{"bugs":0.057,"difficulty":2.765,"effort":1420.205,"length":31,"time":78.9,"vocabulary":15.333,"volume":171.23,"operands":{"distinct":11.333,"total":15.667},"operators":{"distinct":4,"total":15.333}},"paramCount":0.333,"sloc":{"logical":7,"physical":10.333}},"methodAverage":{"cyclomatic":1.5,"cyclomaticDensity":14.646,"halstead":{"bugs":0.073,"difficulty":5.333,"effort":1363.93,"length":45.5,"time":75.774,"vocabulary":25,"volume":218.102,"operands":{"distinct":17,"total":23},"operators":{"distinct":8,"total":22.5}},"paramCount":0.5,"sloc":{"logical":10,"physical":21.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/copy.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":13.333,"halstead":{"bugs":0.067,"difficulty":5.077,"effort":1013.621,"length":47,"time":56.312,"vocabulary":19,"volume":199.653,"operands":{"distinct":13,"total":22,"identifiers":["api","describe","key","\"copy\"","config","joi","array","items","alternatives","object","from","string","to"]},"operators":{"distinct":6,"total":25,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":15,"physical":20}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":20,"lineStart":1,"maintainability":68.455,"methods":[{"cyclomatic":1,"cyclomaticDensity":7.143,"halstead":{"bugs":0.063,"difficulty":4.038,"effort":757.804,"length":45,"time":42.1,"vocabulary":18,"volume":187.647,"operands":{"distinct":13,"total":21,"identifiers":["api","describe","key","\"copy\"","config","joi","array","items","alternatives","object","from","string","to"]},"operators":{"distinct":5,"total":24,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":14,"physical":18},"errors":[],"lineEnd":19,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":6.667,"halstead":{"bugs":0.033,"difficulty":2.538,"effort":506.81,"length":23.5,"time":28.156,"vocabulary":9.5,"volume":99.826,"operands":{"distinct":6.5,"total":11},"operators":{"distinct":3,"total":12.5}},"paramCount":0.5,"sloc":{"logical":7.5,"physical":10}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":7.143,"halstead":{"bugs":0.063,"difficulty":4.038,"effort":757.804,"length":45,"time":42.1,"vocabulary":18,"volume":187.647,"operands":{"distinct":13,"total":21},"operators":{"distinct":5,"total":24}},"paramCount":1,"sloc":{"logical":14,"physical":18}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/cssLoader.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":6.061,"halstead":{"bugs":0.19,"difficulty":5.793,"effort":3298.306,"length":111,"time":183.239,"vocabulary":35,"volume":569.35,"operands":{"distinct":29,"total":56,"identifiers":["api","describe","key","\"cssLoader\"","config","default","joi","object","url","alternatives","boolean","function","import","modules","string","sourceMap","importLoaders","number","onlyLocals","esModule","localsConvention","valid","\"asIs\"","\"camelCase\"","\"camelCaseOnly\"","\"dashes\"","\"dashesOnly\"","description","\"more css-loader options see https://webpack.js.org/loaders/css-loader/#options\""]},"operators":{"distinct":6,"total":55,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":33,"physical":38}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":38,"lineStart":1,"maintainability":58.626,"methods":[{"cyclomatic":1,"cyclomaticDensity":3.125,"halstead":{"bugs":0.185,"difficulty":4.741,"effort":2629.253,"length":109,"time":146.07,"vocabulary":34,"volume":554.533,"operands":{"distinct":29,"total":55,"identifiers":["api","describe","key","\"cssLoader\"","config","default","joi","object","url","alternatives","boolean","function","import","modules","string","sourceMap","importLoaders","number","onlyLocals","esModule","localsConvention","valid","\"asIs\"","\"camelCase\"","\"camelCaseOnly\"","\"dashes\"","\"dashesOnly\"","description","\"more css-loader options see https://webpack.js.org/loaders/css-loader/#options\""]},"operators":{"distinct":5,"total":54,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":32,"physical":36},"errors":[],"lineEnd":37,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":3.03,"halstead":{"bugs":0.095,"difficulty":2.897,"effort":1649.153,"length":55.5,"time":91.62,"vocabulary":17.5,"volume":284.675,"operands":{"distinct":14.5,"total":28},"operators":{"distinct":3,"total":27.5}},"paramCount":0.5,"sloc":{"logical":16.5,"physical":19}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":3.125,"halstead":{"bugs":0.185,"difficulty":4.741,"effort":2629.253,"length":109,"time":146.07,"vocabulary":34,"volume":554.533,"operands":{"distinct":29,"total":55},"operators":{"distinct":5,"total":54}},"paramCount":1,"sloc":{"logical":32,"physical":36}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/define.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.028,"difficulty":3.75,"effort":314.107,"length":22,"time":17.45,"vocabulary":14,"volume":83.762,"operands":{"distinct":8,"total":10,"identifiers":["api","describe","key","\"define\"","config","joi","object","default"]},"operators":{"distinct":6,"total":12,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":8,"physical":14}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":14,"lineStart":1,"maintainability":76.754,"methods":[{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.025,"difficulty":2.813,"effort":208.15,"length":20,"time":11.564,"vocabulary":13,"volume":74.009,"operands":{"distinct":8,"total":9,"identifiers":["api","describe","key","\"define\"","config","joi","object","default"]},"operators":{"distinct":5,"total":11,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":12},"errors":[],"lineEnd":13,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.014,"difficulty":1.875,"effort":157.053,"length":11,"time":8.725,"vocabulary":7,"volume":41.881,"operands":{"distinct":4,"total":5},"operators":{"distinct":3,"total":6}},"paramCount":0.5,"sloc":{"logical":4,"physical":7}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.025,"difficulty":2.813,"effort":208.15,"length":20,"time":11.564,"vocabulary":13,"volume":74.009,"operands":{"distinct":8,"total":9},"operators":{"distinct":5,"total":11}},"paramCount":1,"sloc":{"logical":7,"physical":12}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/devScripts.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":22.222,"halstead":{"bugs":0.033,"difficulty":4.667,"effort":466.667,"length":25,"time":25.926,"vocabulary":16,"volume":100,"operands":{"distinct":9,"total":12,"identifiers":["api","describe","key","\"devScripts\"","config","joi","object","env","\"development\""]},"operators":{"distinct":7,"total":13,"identifiers":["function=>","()",".","{}",":","return","==="]}},"paramCount":1,"sloc":{"logical":9,"physical":15}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":15,"lineStart":1,"maintainability":74.846,"methods":[{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.03,"difficulty":3.667,"effort":329.481,"length":23,"time":18.305,"vocabulary":15,"volume":89.858,"operands":{"distinct":9,"total":11,"identifiers":["api","describe","key","\"devScripts\"","config","joi","object","env","\"development\""]},"operators":{"distinct":6,"total":12,"identifiers":["()",".","{}",":","return","==="]}},"paramCount":1,"sloc":{"logical":8,"physical":13},"errors":[],"lineEnd":14,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.017,"difficulty":2.333,"effort":233.333,"length":12.5,"time":12.963,"vocabulary":8,"volume":50,"operands":{"distinct":4.5,"total":6},"operators":{"distinct":3.5,"total":6.5}},"paramCount":0.5,"sloc":{"logical":4.5,"physical":7.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.03,"difficulty":3.667,"effort":329.481,"length":23,"time":18.305,"vocabulary":15,"volume":89.858,"operands":{"distinct":9,"total":11},"operators":{"distinct":6,"total":12}},"paramCount":1,"sloc":{"logical":8,"physical":13}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/devServer.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":6.667,"halstead":{"bugs":0.159,"difficulty":5.75,"effort":2736.818,"length":97,"time":152.045,"vocabulary":30,"volume":475.968,"operands":{"distinct":24,"total":46,"identifiers":["api","describe","key","\"devServer\"","config","default","joi","object","port","number","description","\"devServer port, default 8000\"","host","string","https","alternatives","cert","unknown","boolean","headers","writeToDisk","function","\"devServer configs\"","true"]},"operators":{"distinct":6,"total":51,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":30,"physical":30}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":30,"lineStart":1,"maintainability":59.902,"methods":[{"cyclomatic":1,"cyclomaticDensity":3.448,"halstead":{"bugs":0.154,"difficulty":4.688,"effort":2163.32,"length":95,"time":120.184,"vocabulary":29,"volume":461.508,"operands":{"distinct":24,"total":45,"identifiers":["api","describe","key","\"devServer\"","config","default","joi","object","port","number","description","\"devServer port, default 8000\"","host","string","https","alternatives","cert","unknown","boolean","headers","writeToDisk","function","\"devServer configs\"","true"]},"operators":{"distinct":5,"total":50,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":29,"physical":28},"errors":[],"lineEnd":29,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":3.333,"halstead":{"bugs":0.079,"difficulty":2.875,"effort":1368.409,"length":48.5,"time":76.023,"vocabulary":15,"volume":237.984,"operands":{"distinct":12,"total":23},"operators":{"distinct":3,"total":25.5}},"paramCount":0.5,"sloc":{"logical":15,"physical":15}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":3.448,"halstead":{"bugs":0.154,"difficulty":4.688,"effort":2163.32,"length":95,"time":120.184,"vocabulary":29,"volume":461.508,"operands":{"distinct":24,"total":45},"operators":{"distinct":5,"total":50}},"paramCount":1,"sloc":{"logical":29,"physical":28}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/devtool.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.023,"difficulty":3.857,"effort":271.189,"length":19,"time":15.066,"vocabulary":13,"volume":70.308,"operands":{"distinct":7,"total":9,"identifiers":["api","describe","key","\"devtool\"","config","joi","string"]},"operators":{"distinct":6,"total":10,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":78.312,"methods":[{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.02,"difficulty":2.857,"effort":174.127,"length":17,"time":9.674,"vocabulary":12,"volume":60.944,"operands":{"distinct":7,"total":8,"identifiers":["api","describe","key","\"devtool\"","config","joi","string"]},"operators":{"distinct":5,"total":9,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":6,"physical":10},"errors":[],"lineEnd":11,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.012,"difficulty":1.929,"effort":135.595,"length":9.5,"time":7.533,"vocabulary":6.5,"volume":35.154,"operands":{"distinct":3.5,"total":4.5},"operators":{"distinct":3,"total":5}},"paramCount":0.5,"sloc":{"logical":3.5,"physical":6}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.02,"difficulty":2.857,"effort":174.127,"length":17,"time":9.674,"vocabulary":12,"volume":60.944,"operands":{"distinct":7,"total":8},"operators":{"distinct":5,"total":9}},"paramCount":1,"sloc":{"logical":6,"physical":10}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/dynamicImport.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.029,"difficulty":3.667,"effort":315.156,"length":22,"time":17.509,"vocabulary":15,"volume":85.952,"operands":{"distinct":9,"total":11,"identifiers":["api","describe","key","\"dynamicImport\"","config","joi","boolean","default","false"]},"operators":{"distinct":6,"total":11,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":8,"physical":13}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":13,"lineStart":1,"maintainability":76.747,"methods":[{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.025,"difficulty":2.778,"effort":211.52,"length":20,"time":11.751,"vocabulary":14,"volume":76.147,"operands":{"distinct":9,"total":10,"identifiers":["api","describe","key","\"dynamicImport\"","config","joi","boolean","default","false"]},"operators":{"distinct":5,"total":10,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":11},"errors":[],"lineEnd":12,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.014,"difficulty":1.833,"effort":157.578,"length":11,"time":8.754,"vocabulary":7.5,"volume":42.976,"operands":{"distinct":4.5,"total":5.5},"operators":{"distinct":3,"total":5.5}},"paramCount":0.5,"sloc":{"logical":4,"physical":6.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.025,"difficulty":2.778,"effort":211.52,"length":20,"time":11.751,"vocabulary":14,"volume":76.147,"operands":{"distinct":9,"total":10},"operators":{"distinct":5,"total":10}},"paramCount":1,"sloc":{"logical":7,"physical":11}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/exportStatic.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":28.571,"halstead":{"bugs":0.073,"difficulty":7.692,"effort":1689.353,"length":50,"time":93.853,"vocabulary":21,"volume":219.616,"operands":{"distinct":13,"total":25,"identifiers":["api","describe","key","\"exportStatic\"","config","joi","object","htmlSuffix","boolean","dynamicRoot","enableBy","userConfig","exportStatic"]},"operators":{"distinct":8,"total":25,"identifiers":["function=>","()",".","{}",":","return",":?","in"]}},"paramCount":1,"sloc":{"logical":14,"physical":18}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":18,"lineStart":1,"maintainability":72.571,"methods":[{"cyclomatic":1,"cyclomaticDensity":8.333,"halstead":{"bugs":0.045,"difficulty":4.091,"effort":551.807,"length":33,"time":30.656,"vocabulary":17,"volume":134.886,"operands":{"distinct":11,"total":15,"identifiers":["api","describe","key","\"exportStatic\"","config","joi","object","htmlSuffix","boolean","dynamicRoot","enableBy"]},"operators":{"distinct":6,"total":18,"identifiers":["()",".","{}",":","return","function=>"]}},"paramCount":1,"sloc":{"logical":12,"physical":17},"errors":[],"lineEnd":17,"lineStart":1,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":200,"halstead":{"bugs":0.015,"difficulty":2.7,"effort":121.5,"length":15,"time":6.75,"vocabulary":8,"volume":45,"operands":{"distinct":5,"total":9,"identifiers":["\"exportStatic\"","api","userConfig","exportStatic","config"]},"operators":{"distinct":3,"total":6,"identifiers":[":?","in","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":15,"lineStart":13,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.333,"cyclomaticDensity":9.524,"halstead":{"bugs":0.024,"difficulty":2.564,"effort":563.118,"length":16.667,"time":31.284,"vocabulary":7,"volume":73.205,"operands":{"distinct":4.333,"total":8.333},"operators":{"distinct":2.667,"total":8.333}},"paramCount":0.333,"sloc":{"logical":4.667,"physical":6}},"methodAverage":{"cyclomatic":1.5,"cyclomaticDensity":104.167,"halstead":{"bugs":0.03,"difficulty":3.395,"effort":336.654,"length":24,"time":18.703,"vocabulary":12.5,"volume":89.943,"operands":{"distinct":8,"total":12},"operators":{"distinct":4.5,"total":12}},"paramCount":0.5,"sloc":{"logical":6.5,"physical":10}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/externals.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":20,"halstead":{"bugs":0.041,"difficulty":4.5,"effort":558,"length":31,"time":31,"vocabulary":16,"volume":124,"operands":{"distinct":10,"total":15,"identifiers":["api","describe","key","\"externals\"","config","joi","alternatives","object","string","function"]},"operators":{"distinct":6,"total":16,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":10,"physical":13}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":13,"lineStart":1,"maintainability":73.49,"methods":[{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.038,"difficulty":3.5,"effort":396.549,"length":29,"time":22.031,"vocabulary":15,"volume":113.3,"operands":{"distinct":10,"total":14,"identifiers":["api","describe","key","\"externals\"","config","joi","alternatives","object","string","function"]},"operators":{"distinct":5,"total":15,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":9,"physical":11},"errors":[],"lineEnd":12,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":10,"halstead":{"bugs":0.021,"difficulty":2.25,"effort":279,"length":15.5,"time":15.5,"vocabulary":8,"volume":62,"operands":{"distinct":5,"total":7.5},"operators":{"distinct":3,"total":8}},"paramCount":0.5,"sloc":{"logical":5,"physical":6.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.038,"difficulty":3.5,"effort":396.549,"length":29,"time":22.031,"vocabulary":15,"volume":113.3,"operands":{"distinct":10,"total":14},"operators":{"distinct":5,"total":15}},"paramCount":1,"sloc":{"logical":9,"physical":11}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/extraBabelPlugins.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.023,"difficulty":3.857,"effort":271.189,"length":19,"time":15.066,"vocabulary":13,"volume":70.308,"operands":{"distinct":7,"total":9,"identifiers":["api","describe","key","\"extraBabelPlugins\"","config","joi","array"]},"operators":{"distinct":6,"total":10,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":78.312,"methods":[{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.02,"difficulty":2.857,"effort":174.127,"length":17,"time":9.674,"vocabulary":12,"volume":60.944,"operands":{"distinct":7,"total":8,"identifiers":["api","describe","key","\"extraBabelPlugins\"","config","joi","array"]},"operators":{"distinct":5,"total":9,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":6,"physical":10},"errors":[],"lineEnd":11,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.012,"difficulty":1.929,"effort":135.595,"length":9.5,"time":7.533,"vocabulary":6.5,"volume":35.154,"operands":{"distinct":3.5,"total":4.5},"operators":{"distinct":3,"total":5}},"paramCount":0.5,"sloc":{"logical":3.5,"physical":6}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.02,"difficulty":2.857,"effort":174.127,"length":17,"time":9.674,"vocabulary":12,"volume":60.944,"operands":{"distinct":7,"total":8},"operators":{"distinct":5,"total":9}},"paramCount":1,"sloc":{"logical":6,"physical":10}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/extraBabelPresets.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.023,"difficulty":3.857,"effort":271.189,"length":19,"time":15.066,"vocabulary":13,"volume":70.308,"operands":{"distinct":7,"total":9,"identifiers":["api","describe","key","\"extraBabelPresets\"","config","joi","array"]},"operators":{"distinct":6,"total":10,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":78.312,"methods":[{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.02,"difficulty":2.857,"effort":174.127,"length":17,"time":9.674,"vocabulary":12,"volume":60.944,"operands":{"distinct":7,"total":8,"identifiers":["api","describe","key","\"extraBabelPresets\"","config","joi","array"]},"operators":{"distinct":5,"total":9,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":6,"physical":10},"errors":[],"lineEnd":11,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.012,"difficulty":1.929,"effort":135.595,"length":9.5,"time":7.533,"vocabulary":6.5,"volume":35.154,"operands":{"distinct":3.5,"total":4.5},"operators":{"distinct":3,"total":5}},"paramCount":0.5,"sloc":{"logical":3.5,"physical":6}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.02,"difficulty":2.857,"effort":174.127,"length":17,"time":9.674,"vocabulary":12,"volume":60.944,"operands":{"distinct":7,"total":8},"operators":{"distinct":5,"total":9}},"paramCount":1,"sloc":{"logical":6,"physical":10}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/extraPostCSSPlugins.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.023,"difficulty":3.857,"effort":271.189,"length":19,"time":15.066,"vocabulary":13,"volume":70.308,"operands":{"distinct":7,"total":9,"identifiers":["api","describe","key","\"extraPostCSSPlugins\"","config","joi","array"]},"operators":{"distinct":6,"total":10,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":78.312,"methods":[{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.02,"difficulty":2.857,"effort":174.127,"length":17,"time":9.674,"vocabulary":12,"volume":60.944,"operands":{"distinct":7,"total":8,"identifiers":["api","describe","key","\"extraPostCSSPlugins\"","config","joi","array"]},"operators":{"distinct":5,"total":9,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":6,"physical":10},"errors":[],"lineEnd":11,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.012,"difficulty":1.929,"effort":135.595,"length":9.5,"time":7.533,"vocabulary":6.5,"volume":35.154,"operands":{"distinct":3.5,"total":4.5},"operators":{"distinct":3,"total":5}},"paramCount":0.5,"sloc":{"logical":3.5,"physical":6}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.02,"difficulty":2.857,"effort":174.127,"length":17,"time":9.674,"vocabulary":12,"volume":60.944,"operands":{"distinct":7,"total":8},"operators":{"distinct":5,"total":9}},"paramCount":1,"sloc":{"logical":6,"physical":10}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/globalCSS.js","report":{"aggregate":{"cyclomatic":7,"cyclomaticDensity":23.333,"halstead":{"bugs":0.164,"difficulty":10.889,"effort":5352.351,"length":93,"time":297.353,"vocabulary":39,"volume":491.542,"operands":{"distinct":27,"total":49,"identifiers":["api","paths","utils","winPath","absSrcPath","\"\"","absTmpPath","files","\"global.css\"","\"global.less\"","\"global.scss\"","\"global.sass\"","\"global.styl\"","\"global.stylus\"","globalCSSFile","map","file","join","filter","existsSync","slice","0","1","addEntryCodeAhead","relative","require('","');"]},"operators":{"distinct":12,"total":44,"identifiers":["function=>","const","=","{}",":","[]",",","()",".","||","``","${}"]}},"paramCount":4,"sloc":{"logical":30,"physical":29}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"path","type":"esm"},{"line":2,"path":"fs","type":"esm"}],"errors":[],"lineEnd":29,"lineStart":1,"maintainability":71.075,"methods":[{"cyclomatic":1,"cyclomaticDensity":5.556,"halstead":{"bugs":0.099,"difficulty":6.341,"effort":1884.847,"length":60,"time":104.714,"vocabulary":31,"volume":297.252,"operands":{"distinct":22,"total":31,"identifiers":["paths","utils","winPath","api","absSrcPath","\"\"","absTmpPath","files","\"global.css\"","\"global.less\"","\"global.scss\"","\"global.sass\"","\"global.styl\"","\"global.stylus\"","globalCSSFile","map","file","filter","slice","0","1","addEntryCodeAhead"]},"operators":{"distinct":9,"total":29,"identifiers":["const","=","{}",":","[]",",","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":18,"physical":25},"errors":[],"lineEnd":28,"lineStart":4,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":1,"effort":15.51,"length":6,"time":0.862,"vocabulary":6,"volume":15.51,"operands":{"distinct":4,"total":4,"identifiers":["join","absSrcPath","\"\"","file"]},"operators":{"distinct":2,"total":2,"identifiers":["()","||"]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":19,"lineStart":19,"name":"","paramNames":["file"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["existsSync","file"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":20,"lineStart":20,"name":"","paramNames":["file"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.013,"difficulty":2.5,"effort":99.658,"length":12,"time":5.537,"vocabulary":10,"volume":39.863,"operands":{"distinct":5,"total":5,"identifiers":["globalCSSFile","map","file","join","\"\""]},"operators":{"distinct":5,"total":7,"identifiers":["``","${}","()",".","function=>"]}},"paramCount":0,"sloc":{"logical":4,"physical":3},"errors":[],"lineEnd":26,"lineStart":24,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.011,"difficulty":1.5,"effort":47.549,"length":10,"time":2.642,"vocabulary":9,"volume":31.699,"operands":{"distinct":6,"total":6,"identifiers":["winPath","relative","absTmpPath","file","require('","');"]},"operators":{"distinct":3,"total":4,"identifiers":["``","${}","()"]}},"paramCount":1,"sloc":{"logical":3,"physical":1},"errors":[],"lineEnd":25,"lineStart":25,"name":"","paramNames":["file"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.167,"cyclomaticDensity":3.889,"halstead":{"bugs":0.027,"difficulty":1.815,"effort":892.058,"length":15.5,"time":49.559,"vocabulary":6.5,"volume":81.924,"operands":{"distinct":4.5,"total":8.167},"operators":{"distinct":2,"total":7.333}},"paramCount":0.667,"sloc":{"logical":5,"physical":4.833}},"methodAverage":{"cyclomatic":1.2,"cyclomaticDensity":42.778,"halstead":{"bugs":0.026,"difficulty":2.368,"effort":409.988,"length":18.2,"time":22.777,"vocabulary":11.8,"volume":77.816,"operands":{"distinct":7.8,"total":9.6},"operators":{"distinct":4,"total":8.6}},"paramCount":0.8,"sloc":{"logical":5.8,"physical":6.2}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/html.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":22.222,"halstead":{"bugs":0.035,"difficulty":3.6,"effort":374.4,"length":26,"time":20.8,"vocabulary":16,"volume":104,"operands":{"distinct":10,"total":12,"identifiers":["api","describe","key","\"html\"","config","joi","object","description","\"more html-webpack-plugin options see https://github.com/jantimon/html-webpack-plugin#configuration\"","default"]},"operators":{"distinct":6,"total":14,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":9,"physical":17}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":17,"lineStart":1,"maintainability":75.286,"methods":[{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.031,"difficulty":2.75,"effort":257.855,"length":24,"time":14.325,"vocabulary":15,"volume":93.765,"operands":{"distinct":10,"total":11,"identifiers":["api","describe","key","\"html\"","config","joi","object","description","\"more html-webpack-plugin options see https://github.com/jantimon/html-webpack-plugin#configuration\"","default"]},"operators":{"distinct":5,"total":13,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":8,"physical":16},"errors":[],"lineEnd":16,"lineStart":1,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.017,"difficulty":1.8,"effort":187.2,"length":13,"time":10.4,"vocabulary":8,"volume":52,"operands":{"distinct":5,"total":6},"operators":{"distinct":3,"total":7}},"paramCount":0.5,"sloc":{"logical":4.5,"physical":8.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.031,"difficulty":2.75,"effort":257.855,"length":24,"time":14.325,"vocabulary":15,"volume":93.765,"operands":{"distinct":10,"total":11},"operators":{"distinct":5,"total":13}},"paramCount":1,"sloc":{"logical":8,"physical":16}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/inlineLimit.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.023,"difficulty":3.857,"effort":271.189,"length":19,"time":15.066,"vocabulary":13,"volume":70.308,"operands":{"distinct":7,"total":9,"identifiers":["api","describe","key","\"inlineLimit\"","config","joi","number"]},"operators":{"distinct":6,"total":10,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":78.312,"methods":[{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.02,"difficulty":2.857,"effort":174.127,"length":17,"time":9.674,"vocabulary":12,"volume":60.944,"operands":{"distinct":7,"total":8,"identifiers":["api","describe","key","\"inlineLimit\"","config","joi","number"]},"operators":{"distinct":5,"total":9,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":6,"physical":10},"errors":[],"lineEnd":11,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.012,"difficulty":1.929,"effort":135.595,"length":9.5,"time":7.533,"vocabulary":6.5,"volume":35.154,"operands":{"distinct":3.5,"total":4.5},"operators":{"distinct":3,"total":5}},"paramCount":0.5,"sloc":{"logical":3.5,"physical":6}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.02,"difficulty":2.857,"effort":174.127,"length":17,"time":9.674,"vocabulary":12,"volume":60.944,"operands":{"distinct":7,"total":8},"operators":{"distinct":5,"total":9}},"paramCount":1,"sloc":{"logical":6,"physical":10}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/lessLoader.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.028,"difficulty":3.75,"effort":314.107,"length":22,"time":17.45,"vocabulary":14,"volume":83.762,"operands":{"distinct":8,"total":10,"identifiers":["api","describe","key","\"lessLoader\"","config","default","joi","object"]},"operators":{"distinct":6,"total":12,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":8,"physical":13}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":13,"lineStart":1,"maintainability":76.754,"methods":[{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.025,"difficulty":2.813,"effort":208.15,"length":20,"time":11.564,"vocabulary":13,"volume":74.009,"operands":{"distinct":8,"total":9,"identifiers":["api","describe","key","\"lessLoader\"","config","default","joi","object"]},"operators":{"distinct":5,"total":11,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":11},"errors":[],"lineEnd":12,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.014,"difficulty":1.875,"effort":157.053,"length":11,"time":8.725,"vocabulary":7,"volume":41.881,"operands":{"distinct":4,"total":5},"operators":{"distinct":3,"total":6}},"paramCount":0.5,"sloc":{"logical":4,"physical":6.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.025,"difficulty":2.813,"effort":208.15,"length":20,"time":11.564,"vocabulary":13,"volume":74.009,"operands":{"distinct":8,"total":9},"operators":{"distinct":5,"total":11}},"paramCount":1,"sloc":{"logical":7,"physical":11}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/mock.js","report":{"aggregate":{"cyclomatic":52,"cyclomaticDensity":27.368,"halstead":{"bugs":1.715,"difficulty":40.096,"effort":206313.486,"length":709,"time":11461.86,"vocabulary":153,"volume":5145.488,"operands":{"distinct":125,"total":358,"identifiers":["api","mockFlag","false","mockPrefix","\"/\"","mockFile","\"\"","loadMock","registerBabel","paths","requireDeps","reduce","memo","file","concat","parseRequireDeps","forEach","f","require","cache","babelRegister","setOnlyMap","key","\"mock\"","value","describe","config","joi","alternatives","boolean","object","enableBy","process","env","NODE_ENV","\"development\"","traversalHandler","val","callback","lodash","isArray","isPlainObject","Object","keys","getOption","arg","len","length","option","headers","\"Cache-Control\"","\"no-cache\"","statusCode","200","cookies","timeout","0","1","newOption","\"headers\"","headervalue","headerkey","url","result","parsePath","resolve","cwd","createMock","requestList","cgiMock","push","utils","readFileSync","mockPrefixTemp","mock","prefix","/","\"./mock.js\"","existsSync","logger","info","\"mock.js File does not exist, please check\"","_initFunction","initFunction","default","isFunction","\"mock.js should export Function\"","mockjs","err","error","\"mock.js run fail!\"","req","res","next","path","startsWith","matchRequet","find","item","search","sendData","set","type","status","name","cookie","\"json\"","json","\"text\"","send","toString","bodyParser","strict","urlencoded","extended","true","cookieParser","onStart","chokidar","watch","ignoreInitial","on","\"change\"","\"mock.js changed,reload\"","addBeforeMiddlewares"]},"operators":{"distinct":28,"total":351,"identifiers":["function=>","let","=","const","()",".","return","[]","if","delete (prefix)","{}",":",",","... (spread)","===","function","else","... (rest)","||","! (prefix)",":?","``","${}","try","catch","!==","- (prefix)","&&"]}},"paramCount":24,"sloc":{"logical":190,"physical":215}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"fs","type":"esm"},{"line":2,"path":"path","type":"esm"},{"line":3,"path":"@fesjs/utils","type":"esm"},{"line":4,"path":"body-parser","type":"esm"},{"line":5,"path":"cookie-parser","type":"esm"},{"line":6,"path":"mockjs","type":"esm"},{"line":127,"path":"* dynamic dependency *","type":"cjs"}],"errors":[],"lineEnd":215,"lineStart":1,"maintainability":62.794,"methods":[{"cyclomatic":1,"cyclomaticDensity":4,"halstead":{"bugs":0.129,"difficulty":6.034,"effort":2328.311,"length":73,"time":129.351,"vocabulary":39,"volume":385.834,"operands":{"distinct":29,"total":35,"identifiers":["mockFlag","false","mockPrefix","\"/\"","mockFile","\"\"","loadMock","registerBabel","paths","api","describe","key","\"mock\"","config","joi","alternatives","boolean","object","enableBy","traversalHandler","val","callback","getOption","arg","parsePath","value","createMock","onStart","addBeforeMiddlewares"]},"operators":{"distinct":10,"total":38,"identifiers":["let","=","const","function=>","()",".","{}",":","return","function"]}},"paramCount":1,"sloc":{"logical":25,"physical":207},"errors":[],"lineEnd":214,"lineStart":8,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.053,"difficulty":6.154,"effort":974.306,"length":35,"time":54.128,"vocabulary":23,"volume":158.325,"operands":{"distinct":13,"total":16,"identifiers":["requireDeps","paths","reduce","memo","file","forEach","f","api","babelRegister","setOnlyMap","key","\"mock\"","value"]},"operators":{"distinct":10,"total":19,"identifiers":["const","=","()",".","function=>","[]","{}",":",",","... (spread)"]}},"paramCount":1,"sloc":{"logical":8,"physical":17},"errors":[],"lineEnd":30,"lineStart":14,"name":"","paramNames":["paths"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.011,"difficulty":3,"effort":99,"length":11,"time":5.5,"vocabulary":8,"volume":33,"operands":{"distinct":4,"total":6,"identifiers":["memo","concat","parseRequireDeps","file"]},"operators":{"distinct":4,"total":5,"identifiers":["=","()",".","return"]}},"paramCount":2,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":20,"lineStart":17,"name":"","paramNames":["memo","file"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.011,"difficulty":4,"effort":134.753,"length":12,"time":7.486,"vocabulary":7,"volume":33.688,"operands":{"distinct":3,"total":6,"identifiers":["require","cache","f"]},"operators":{"distinct":4,"total":6,"identifiers":["if","[]",".","delete (prefix)"]}},"paramCount":1,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":25,"lineStart":21,"name":"","paramNames":["f"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.006,"difficulty":1,"effort":18.095,"length":7,"time":1.005,"vocabulary":6,"volume":18.095,"operands":{"distinct":4,"total":4,"identifiers":["process","env","NODE_ENV","\"development\""]},"operators":{"distinct":2,"total":3,"identifiers":["===","."]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":39,"lineStart":39,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":37.5,"halstead":{"bugs":0.033,"difficulty":3.111,"effort":310.837,"length":27,"time":17.269,"vocabulary":13,"volume":99.912,"operands":{"distinct":9,"total":14,"identifiers":["lodash","isArray","val","forEach","callback","isPlainObject","Object","keys","key"]},"operators":{"distinct":4,"total":13,"identifiers":["if","()",".","function=>"]}},"paramCount":2,"sloc":{"logical":8,"physical":10},"errors":[],"lineEnd":52,"lineStart":43,"name":"traversalHandler","paramNames":["val","callback"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":1.333,"effort":18.575,"length":6,"time":1.032,"vocabulary":5,"volume":13.932,"operands":{"distinct":3,"total":4,"identifiers":["callback","val","key"]},"operators":{"distinct":2,"total":2,"identifiers":["()","[]"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":50,"lineStart":48,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":21.053,"halstead":{"bugs":0.118,"difficulty":10.286,"effort":3631.964,"length":70,"time":201.776,"vocabulary":33,"volume":353.108,"operands":{"distinct":21,"total":36,"identifiers":["len","arg","length","option","headers","\"Cache-Control\"","\"no-cache\"","statusCode","200","cookies","timeout","0","1","newOption","lodash","isPlainObject","traversalHandler","value","key","url","result"]},"operators":{"distinct":12,"total":34,"identifiers":["const","=",".","{}",":","[]","if","===","return","else","()","function=>"]}},"paramCount":1,"sloc":{"logical":19,"physical":34},"errors":[],"lineEnd":88,"lineStart":55,"name":"getOption","paramNames":["arg"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.027,"difficulty":5.5,"effort":440,"length":20,"time":24.444,"vocabulary":16,"volume":80,"operands":{"distinct":8,"total":11,"identifiers":["key","\"headers\"","traversalHandler","newOption","headers","headervalue","headerkey","option"]},"operators":{"distinct":8,"total":9,"identifiers":["if","else","===","()",".","function=>","=","[]"]}},"paramCount":2,"sloc":{"logical":5,"physical":12},"errors":[],"lineEnd":81,"lineStart":70,"name":"","paramNames":["value","key"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.01,"difficulty":2.25,"effort":69.482,"length":11,"time":3.86,"vocabulary":7,"volume":30.881,"operands":{"distinct":4,"total":6,"identifiers":["option","headers","headerkey","newOption"]},"operators":{"distinct":3,"total":5,"identifiers":["=","[]","."]}},"paramCount":2,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":76,"lineStart":74,"name":"","paramNames":["headervalue","headerkey"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":29.477,"length":7,"time":1.638,"vocabulary":7,"volume":19.651,"operands":{"distinct":4,"total":4,"identifiers":["resolve","api","cwd","value"]},"operators":{"distinct":3,"total":3,"identifiers":["return","()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":93,"lineStart":91,"name":"parsePath","paramNames":["value"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":7,"cyclomaticDensity":21.212,"halstead":{"bugs":0.251,"difficulty":18.571,"effort":13957.854,"length":130,"time":775.436,"vocabulary":55,"volume":751.577,"operands":{"distinct":35,"total":65,"identifiers":["requestList","cgiMock","arg","utils","file","mockPrefixTemp","api","config","mock","prefix","mockPrefix","/","mockFile","parsePath","\"./mock.js\"","existsSync","logger","info","\"mock.js File does not exist, please check\"","require","cache","registerBabel","_initFunction","initFunction","default","lodash","isFunction","\"mock.js should export Function\"","mockjs","err","error","\"mock.js run fail!\"","req","res","next"]},"operators":{"distinct":20,"total":65,"identifiers":["const","=","[]","function=>","... (rest)","{}",".","function","||",":?","===","``","${}","()","if","! (prefix)","return","delete (prefix)","try","catch"]}},"paramCount":0,"sloc":{"logical":33,"physical":96},"errors":[],"lineEnd":190,"lineStart":95,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":60,"halstead":{"bugs":0.029,"difficulty":5.714,"effort":491.152,"length":22,"time":27.286,"vocabulary":15,"volume":85.952,"operands":{"distinct":7,"total":10,"identifiers":["option","getOption","arg","url","result","requestList","push"]},"operators":{"distinct":8,"total":12,"identifiers":["const","=","()","if","||","! (prefix)",".","return"]}},"paramCount":1,"sloc":{"logical":5,"physical":5},"errors":[],"lineEnd":101,"lineStart":97,"name":"","paramNames":["arg"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.005,"difficulty":1,"effort":13.932,"length":6,"time":0.774,"vocabulary":5,"volume":13.932,"operands":{"distinct":3,"total":3,"identifiers":["readFileSync","parsePath","file"]},"operators":{"distinct":2,"total":3,"identifiers":["return","()"]}},"paramCount":1,"sloc":{"logical":3,"physical":3},"errors":[],"lineEnd":106,"lineStart":104,"name":"","paramNames":["file"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":18.75,"halstead":{"bugs":0.067,"difficulty":6,"effort":1198.115,"length":43,"time":66.562,"vocabulary":25,"volume":199.686,"operands":{"distinct":15,"total":18,"identifiers":["req","path","startsWith","mockPrefix","next","matchRequet","requestList","find","item","sendData","bodyParser","json","strict","false","res"]},"operators":{"distinct":10,"total":25,"identifiers":["if","! (prefix)","()",".","return","const","=","function=>","{}",":"]}},"paramCount":3,"sloc":{"logical":16,"physical":52},"errors":[],"lineEnd":189,"lineStart":138,"name":"","paramNames":["req","res","next"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.013,"difficulty":2,"effort":79.726,"length":12,"time":4.429,"vocabulary":10,"volume":39.863,"operands":{"distinct":6,"total":6,"identifiers":["req","path","search","item","url","1"]},"operators":{"distinct":4,"total":6,"identifiers":["!==","()",".","- (prefix)"]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":145,"lineStart":145,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":7,"cyclomaticDensity":33.333,"halstead":{"bugs":0.164,"difficulty":10.095,"effort":4953.29,"length":101,"time":275.183,"vocabulary":29,"volume":490.656,"operands":{"distinct":21,"total":53,"identifiers":["res","set","matchRequet","headers","type","status","statusCode","traversalHandler","cookies","item","lodash","isFunction","result","req","isArray","isPlainObject","\"json\"","json","\"text\"","send","toString"]},"operators":{"distinct":8,"total":48,"identifiers":["()",".","&&","function=>","if","else","||","! (prefix)"]}},"paramCount":0,"sloc":{"logical":21,"physical":30},"errors":[],"lineEnd":180,"lineStart":151,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.03,"difficulty":7.5,"effort":672.69,"length":27,"time":37.372,"vocabulary":10,"volume":89.692,"operands":{"distinct":5,"total":15,"identifiers":["name","item","value","res","cookie"]},"operators":{"distinct":5,"total":12,"identifiers":["const","=",".","delete (prefix)","()"]}},"paramCount":1,"sloc":{"logical":5,"physical":7},"errors":[],"lineEnd":165,"lineStart":159,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.014,"difficulty":2.5,"effort":103.783,"length":12,"time":5.766,"vocabulary":11,"volume":41.513,"operands":{"distinct":6,"total":6,"identifiers":["bodyParser","urlencoded","extended","true","req","res"]},"operators":{"distinct":5,"total":6,"identifiers":["()",".","{}",":","function=>"]}},"paramCount":0,"sloc":{"logical":4,"physical":7},"errors":[],"lineEnd":188,"lineStart":182,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.005,"difficulty":1,"effort":13.932,"length":6,"time":0.774,"vocabulary":5,"volume":13.932,"operands":{"distinct":3,"total":3,"identifiers":["cookieParser","req","res"]},"operators":{"distinct":2,"total":3,"identifiers":["()","function=>"]}},"paramCount":0,"sloc":{"logical":3,"physical":5},"errors":[],"lineEnd":187,"lineStart":183,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["sendData"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":186,"lineStart":184,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":27.273,"halstead":{"bugs":0.063,"difficulty":6.667,"effort":1269.321,"length":41,"time":70.518,"vocabulary":25,"volume":190.398,"operands":{"distinct":15,"total":20,"identifiers":["mockFlag","lodash","isPlainObject","api","config","mock","true","loadMock","createMock","chokidar","watch","mockFile","ignoreInitial","on","\"change\""]},"operators":{"distinct":10,"total":21,"identifiers":["=",":?","()",".","if","! (prefix)","return","{}",":","function=>"]}},"paramCount":0,"sloc":{"logical":11,"physical":17},"errors":[],"lineEnd":208,"lineStart":192,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.012,"difficulty":1.5,"effort":52.304,"length":11,"time":2.906,"vocabulary":9,"volume":34.869,"operands":{"distinct":6,"total":6,"identifiers":["api","logger","info","\"mock.js changed,reload\"","loadMock","createMock"]},"operators":{"distinct":3,"total":5,"identifiers":["()",".","="]}},"paramCount":0,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":207,"lineStart":204,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":0.5,"effort":4,"length":4,"time":0.222,"vocabulary":4,"volume":8,"operands":{"distinct":3,"total":3,"identifiers":["req","res","next"]},"operators":{"distinct":1,"total":1,"identifiers":["function=>"]}},"paramCount":0,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":213,"lineStart":210,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.012,"difficulty":2.4,"effort":83.686,"length":11,"time":4.649,"vocabulary":9,"volume":34.869,"operands":{"distinct":5,"total":6,"identifiers":["mockFlag","next","loadMock","req","res"]},"operators":{"distinct":4,"total":5,"identifiers":["if","! (prefix)","return","()"]}},"paramCount":3,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":213,"lineStart":210,"name":"","paramNames":["req","res","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":1.053,"halstead":{"bugs":0.066,"difficulty":1.542,"effort":7935.134,"length":27.269,"time":440.841,"vocabulary":5.885,"volume":197.903,"operands":{"distinct":4.808,"total":13.769},"operators":{"distinct":1.077,"total":13.5}},"paramCount":0.923,"sloc":{"logical":7.308,"physical":8.269}},"methodAverage":{"cyclomatic":2.04,"cyclomaticDensity":45.825,"halstead":{"bugs":0.043,"difficulty":4.405,"effort":1237.983,"length":28.28,"time":68.777,"vocabulary":15.12,"volume":128.935,"operands":{"distinct":9.32,"total":14.28},"operators":{"distinct":5.8,"total":14}},"paramCount":0.96,"sloc":{"logical":7.56,"physical":21.48}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/mountElementId.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":22.222,"halstead":{"bugs":0.035,"difficulty":3.545,"effort":376.79,"length":26,"time":20.933,"vocabulary":17,"volume":106.274,"operands":{"distinct":11,"total":13,"identifiers":["api","describe","key","\"mountElementId\"","config","default","\"app\"","joi","string","allow","\"\""]},"operators":{"distinct":6,"total":13,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":9,"physical":13}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":13,"lineStart":1,"maintainability":75.274,"methods":[{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.032,"difficulty":2.727,"effort":261.818,"length":24,"time":14.545,"vocabulary":16,"volume":96,"operands":{"distinct":11,"total":12,"identifiers":["api","describe","key","\"mountElementId\"","config","default","\"app\"","joi","string","allow","\"\""]},"operators":{"distinct":5,"total":12,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":8,"physical":11},"errors":[],"lineEnd":12,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.018,"difficulty":1.773,"effort":188.395,"length":13,"time":10.466,"vocabulary":8.5,"volume":53.137,"operands":{"distinct":5.5,"total":6.5},"operators":{"distinct":3,"total":6.5}},"paramCount":0.5,"sloc":{"logical":4.5,"physical":6.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.032,"difficulty":2.727,"effort":261.818,"length":24,"time":14.545,"vocabulary":16,"volume":96,"operands":{"distinct":11,"total":12},"operators":{"distinct":5,"total":12}},"paramCount":1,"sloc":{"logical":8,"physical":11}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/nodeModulesTransform.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":15.385,"halstead":{"bugs":0.055,"difficulty":4.958,"effort":821.443,"length":39,"time":45.636,"vocabulary":19,"volume":165.669,"operands":{"distinct":12,"total":17,"identifiers":["api","describe","key","\"nodeModulesTransform\"","config","default","exclude","joi","object","array","items","string"]},"operators":{"distinct":7,"total":22,"identifiers":["function=>","()",".","{}",":","[]","return"]}},"paramCount":1,"sloc":{"logical":13,"physical":17}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":17,"lineStart":1,"maintainability":70.231,"methods":[{"cyclomatic":1,"cyclomaticDensity":8.333,"halstead":{"bugs":0.051,"difficulty":4,"effort":617.149,"length":37,"time":34.286,"vocabulary":18,"volume":154.287,"operands":{"distinct":12,"total":16,"identifiers":["api","describe","key","\"nodeModulesTransform\"","config","default","exclude","joi","object","array","items","string"]},"operators":{"distinct":6,"total":21,"identifiers":["()",".","{}",":","[]","return"]}},"paramCount":1,"sloc":{"logical":12,"physical":15},"errors":[],"lineEnd":16,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":7.692,"halstead":{"bugs":0.028,"difficulty":2.479,"effort":410.721,"length":19.5,"time":22.818,"vocabulary":9.5,"volume":82.835,"operands":{"distinct":6,"total":8.5},"operators":{"distinct":3.5,"total":11}},"paramCount":0.5,"sloc":{"logical":6.5,"physical":8.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":8.333,"halstead":{"bugs":0.051,"difficulty":4,"effort":617.149,"length":37,"time":34.286,"vocabulary":18,"volume":154.287,"operands":{"distinct":12,"total":16},"operators":{"distinct":6,"total":21}},"paramCount":1,"sloc":{"logical":12,"physical":15}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/outputPath.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":20,"halstead":{"bugs":0.051,"difficulty":3.353,"effort":515.686,"length":34,"time":28.649,"vocabulary":23,"volume":153.801,"operands":{"distinct":17,"total":19,"identifiers":["api","describe","key","\"outputPath\"","config","default","\"dist\"","joi","string","not","\"src\"","\"public\"","\"pages\"","\"mock\"","\"config\"","allow","\"\""]},"operators":{"distinct":6,"total":15,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":10,"physical":15}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":15,"lineStart":1,"maintainability":73.648,"methods":[{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.048,"difficulty":2.647,"effort":377.74,"length":32,"time":20.986,"vocabulary":22,"volume":142.702,"operands":{"distinct":17,"total":18,"identifiers":["api","describe","key","\"outputPath\"","config","default","\"dist\"","joi","string","not","\"src\"","\"public\"","\"pages\"","\"mock\"","\"config\"","allow","\"\""]},"operators":{"distinct":5,"total":14,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":9,"physical":14},"errors":[],"lineEnd":14,"lineStart":1,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":10,"halstead":{"bugs":0.026,"difficulty":1.676,"effort":257.843,"length":17,"time":14.325,"vocabulary":11.5,"volume":76.901,"operands":{"distinct":8.5,"total":9.5},"operators":{"distinct":3,"total":7.5}},"paramCount":0.5,"sloc":{"logical":5,"physical":7.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.048,"difficulty":2.647,"effort":377.74,"length":32,"time":20.986,"vocabulary":22,"volume":142.702,"operands":{"distinct":17,"total":18},"operators":{"distinct":5,"total":14}},"paramCount":1,"sloc":{"logical":9,"physical":14}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/plugins.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":22.222,"halstead":{"bugs":0.034,"difficulty":4,"effort":406.317,"length":26,"time":22.573,"vocabulary":15,"volume":101.579,"operands":{"distinct":9,"total":12,"identifiers":["api","describe","key","\"plugins\"","config","joi","array","items","string"]},"operators":{"distinct":6,"total":14,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":9,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":75.123,"methods":[{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.03,"difficulty":3.056,"effort":279.206,"length":24,"time":15.511,"vocabulary":14,"volume":91.377,"operands":{"distinct":9,"total":11,"identifiers":["api","describe","key","\"plugins\"","config","joi","array","items","string"]},"operators":{"distinct":5,"total":13,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":8,"physical":10},"errors":[],"lineEnd":11,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.017,"difficulty":2,"effort":203.158,"length":13,"time":11.287,"vocabulary":7.5,"volume":50.79,"operands":{"distinct":4.5,"total":6},"operators":{"distinct":3,"total":7}},"paramCount":0.5,"sloc":{"logical":4.5,"physical":6}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.03,"difficulty":3.056,"effort":279.206,"length":24,"time":15.511,"vocabulary":14,"volume":91.377,"operands":{"distinct":9,"total":11},"operators":{"distinct":5,"total":13}},"paramCount":1,"sloc":{"logical":8,"physical":10}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/postcssLoader.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.023,"difficulty":3.857,"effort":271.189,"length":19,"time":15.066,"vocabulary":13,"volume":70.308,"operands":{"distinct":7,"total":9,"identifiers":["api","describe","key","\"postcssLoader\"","config","joi","object"]},"operators":{"distinct":6,"total":10,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":78.312,"methods":[{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.02,"difficulty":2.857,"effort":174.127,"length":17,"time":9.674,"vocabulary":12,"volume":60.944,"operands":{"distinct":7,"total":8,"identifiers":["api","describe","key","\"postcssLoader\"","config","joi","object"]},"operators":{"distinct":5,"total":9,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":6,"physical":10},"errors":[],"lineEnd":11,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.012,"difficulty":1.929,"effort":135.595,"length":9.5,"time":7.533,"vocabulary":6.5,"volume":35.154,"operands":{"distinct":3.5,"total":4.5},"operators":{"distinct":3,"total":5}},"paramCount":0.5,"sloc":{"logical":3.5,"physical":6}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.02,"difficulty":2.857,"effort":174.127,"length":17,"time":9.674,"vocabulary":12,"volume":60.944,"operands":{"distinct":7,"total":8},"operators":{"distinct":5,"total":9}},"paramCount":1,"sloc":{"logical":6,"physical":10}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/proxy.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.028,"difficulty":3.75,"effort":314.107,"length":22,"time":17.45,"vocabulary":14,"volume":83.762,"operands":{"distinct":8,"total":10,"identifiers":["api","describe","key","\"proxy\"","config","onChange","joi","object"]},"operators":{"distinct":6,"total":12,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":9,"physical":15}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":15,"lineStart":1,"maintainability":80.29,"methods":[{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.025,"difficulty":3.375,"effort":256.996,"length":20,"time":14.278,"vocabulary":14,"volume":76.147,"operands":{"distinct":8,"total":9,"identifiers":["api","describe","key","\"proxy\"","config","onChange","joi","object"]},"operators":{"distinct":6,"total":11,"identifiers":["()",".","{}",":","function=>","return"]}},"paramCount":1,"sloc":{"logical":8,"physical":13},"errors":[],"lineEnd":14,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":3},"errors":[],"lineEnd":8,"lineStart":6,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.009,"difficulty":1.25,"effort":104.702,"length":7.333,"time":5.817,"vocabulary":4.667,"volume":27.921,"operands":{"distinct":2.667,"total":3.333},"operators":{"distinct":2,"total":4}},"paramCount":0.333,"sloc":{"logical":3,"physical":5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":6.25,"halstead":{"bugs":0.013,"difficulty":1.688,"effort":128.498,"length":10,"time":7.139,"vocabulary":7,"volume":38.074,"operands":{"distinct":4,"total":4.5},"operators":{"distinct":3,"total":5.5}},"paramCount":0.5,"sloc":{"logical":4,"physical":8}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/publicPath.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":20,"halstead":{"bugs":0.047,"difficulty":4,"effort":562.217,"length":32,"time":31.234,"vocabulary":21,"volume":140.554,"operands":{"distinct":14,"total":16,"identifiers":["api","describe","key","\"publicPath\"","config","default","\"/\"","joi","string","regex","/\\/$/","error","Error","\"config.publicPath must end with /.\""]},"operators":{"distinct":7,"total":16,"identifiers":["function=>","()",".","{}",":","return","new"]}},"paramCount":1,"sloc":{"logical":10,"physical":15}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":15,"lineStart":1,"maintainability":73.475,"methods":[{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.043,"difficulty":3.214,"effort":416.757,"length":30,"time":23.153,"vocabulary":20,"volume":129.658,"operands":{"distinct":14,"total":15,"identifiers":["api","describe","key","\"publicPath\"","config","default","\"/\"","joi","string","regex","/\\/$/","error","Error","\"config.publicPath must end with /.\""]},"operators":{"distinct":6,"total":15,"identifiers":["()",".","{}",":","return","new"]}},"paramCount":1,"sloc":{"logical":9,"physical":14},"errors":[],"lineEnd":14,"lineStart":1,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":10,"halstead":{"bugs":0.023,"difficulty":2,"effort":281.108,"length":16,"time":15.617,"vocabulary":10.5,"volume":70.277,"operands":{"distinct":7,"total":8},"operators":{"distinct":3.5,"total":8}},"paramCount":0.5,"sloc":{"logical":5,"physical":7.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.043,"difficulty":3.214,"effort":416.757,"length":30,"time":23.153,"vocabulary":20,"volume":129.658,"operands":{"distinct":14,"total":15},"operators":{"distinct":6,"total":15}},"paramCount":1,"sloc":{"logical":9,"physical":14}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/runtimePublicPath.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.029,"difficulty":3.667,"effort":315.156,"length":22,"time":17.509,"vocabulary":15,"volume":85.952,"operands":{"distinct":9,"total":11,"identifiers":["api","describe","key","\"runtimePublicPath\"","config","joi","boolean","default","false"]},"operators":{"distinct":6,"total":11,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":8,"physical":13}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":13,"lineStart":1,"maintainability":76.747,"methods":[{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.025,"difficulty":2.778,"effort":211.52,"length":20,"time":11.751,"vocabulary":14,"volume":76.147,"operands":{"distinct":9,"total":10,"identifiers":["api","describe","key","\"runtimePublicPath\"","config","joi","boolean","default","false"]},"operators":{"distinct":5,"total":10,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":11},"errors":[],"lineEnd":12,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.014,"difficulty":1.833,"effort":157.578,"length":11,"time":8.754,"vocabulary":7.5,"volume":42.976,"operands":{"distinct":4.5,"total":5.5},"operators":{"distinct":3,"total":5.5}},"paramCount":0.5,"sloc":{"logical":4,"physical":6.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.025,"difficulty":2.778,"effort":211.52,"length":20,"time":11.751,"vocabulary":14,"volume":76.147,"operands":{"distinct":9,"total":10},"operators":{"distinct":5,"total":10}},"paramCount":1,"sloc":{"logical":7,"physical":11}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/singular.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.029,"difficulty":3.667,"effort":315.156,"length":22,"time":17.509,"vocabulary":15,"volume":85.952,"operands":{"distinct":9,"total":11,"identifiers":["api","describe","key","\"singular\"","config","default","false","joi","boolean"]},"operators":{"distinct":6,"total":11,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":8,"physical":13}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":13,"lineStart":1,"maintainability":76.747,"methods":[{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.025,"difficulty":2.778,"effort":211.52,"length":20,"time":11.751,"vocabulary":14,"volume":76.147,"operands":{"distinct":9,"total":10,"identifiers":["api","describe","key","\"singular\"","config","default","false","joi","boolean"]},"operators":{"distinct":5,"total":10,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":12},"errors":[],"lineEnd":12,"lineStart":1,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.014,"difficulty":1.833,"effort":157.578,"length":11,"time":8.754,"vocabulary":7.5,"volume":42.976,"operands":{"distinct":4.5,"total":5.5},"operators":{"distinct":3,"total":5.5}},"paramCount":0.5,"sloc":{"logical":4,"physical":6.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.025,"difficulty":2.778,"effort":211.52,"length":20,"time":11.751,"vocabulary":14,"volume":76.147,"operands":{"distinct":9,"total":10},"operators":{"distinct":5,"total":10}},"paramCount":1,"sloc":{"logical":7,"physical":12}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/targets.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":15.385,"halstead":{"bugs":0.056,"difficulty":3.529,"effort":590.724,"length":37,"time":32.818,"vocabulary":23,"volume":167.372,"operands":{"distinct":17,"total":20,"identifiers":["api","describe","key","\"targets\"","config","default","chrome","49","firefox","64","safari","10","edge","13","ios","joi","object"]},"operators":{"distinct":6,"total":17,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":13,"physical":19}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":19,"lineStart":1,"maintainability":70.891,"methods":[{"cyclomatic":1,"cyclomaticDensity":8.333,"halstead":{"bugs":0.052,"difficulty":2.794,"effort":436.106,"length":35,"time":24.228,"vocabulary":22,"volume":156.08,"operands":{"distinct":17,"total":19,"identifiers":["api","describe","key","\"targets\"","config","default","chrome","49","firefox","64","safari","10","edge","13","ios","joi","object"]},"operators":{"distinct":5,"total":16,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":12,"physical":17},"errors":[],"lineEnd":18,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":7.692,"halstead":{"bugs":0.028,"difficulty":1.765,"effort":295.362,"length":18.5,"time":16.409,"vocabulary":11.5,"volume":83.686,"operands":{"distinct":8.5,"total":10},"operators":{"distinct":3,"total":8.5}},"paramCount":0.5,"sloc":{"logical":6.5,"physical":9.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":8.333,"halstead":{"bugs":0.052,"difficulty":2.794,"effort":436.106,"length":35,"time":24.228,"vocabulary":22,"volume":156.08,"operands":{"distinct":17,"total":19},"operators":{"distinct":5,"total":16}},"paramCount":1,"sloc":{"logical":12,"physical":17}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/terserOptions.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.023,"difficulty":3.857,"effort":271.189,"length":19,"time":15.066,"vocabulary":13,"volume":70.308,"operands":{"distinct":7,"total":9,"identifiers":["api","describe","key","\"terserOptions\"","config","joi","object"]},"operators":{"distinct":6,"total":10,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":78.312,"methods":[{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.02,"difficulty":2.857,"effort":174.127,"length":17,"time":9.674,"vocabulary":12,"volume":60.944,"operands":{"distinct":7,"total":8,"identifiers":["api","describe","key","\"terserOptions\"","config","joi","object"]},"operators":{"distinct":5,"total":9,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":6,"physical":10},"errors":[],"lineEnd":11,"lineStart":2,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.012,"difficulty":1.929,"effort":135.595,"length":9.5,"time":7.533,"vocabulary":6.5,"volume":35.154,"operands":{"distinct":3.5,"total":4.5},"operators":{"distinct":3,"total":5}},"paramCount":0.5,"sloc":{"logical":3.5,"physical":6}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.02,"difficulty":2.857,"effort":174.127,"length":17,"time":9.674,"vocabulary":12,"volume":60.944,"operands":{"distinct":7,"total":8},"operators":{"distinct":5,"total":9}},"paramCount":1,"sloc":{"logical":6,"physical":10}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/features/vueLoader.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.031,"difficulty":3.667,"effort":343.806,"length":24,"time":19.1,"vocabulary":15,"volume":93.765,"operands":{"distinct":9,"total":11,"identifiers":["api","describe","key","\"vueLoader\"","config","joi","object","description","\"more vue-loader options see https://vue-loader.vuejs.org/\""]},"operators":{"distinct":6,"total":13,"identifiers":["function=>","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":8,"physical":17}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":17,"lineStart":1,"maintainability":76.573,"methods":[{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.028,"difficulty":2.778,"effort":232.672,"length":22,"time":12.926,"vocabulary":14,"volume":83.762,"operands":{"distinct":9,"total":10,"identifiers":["api","describe","key","\"vueLoader\"","config","joi","object","description","\"more vue-loader options see https://vue-loader.vuejs.org/\""]},"operators":{"distinct":5,"total":12,"identifiers":["()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":14},"errors":[],"lineEnd":16,"lineStart":3,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.016,"difficulty":1.833,"effort":171.903,"length":12,"time":9.55,"vocabulary":7.5,"volume":46.883,"operands":{"distinct":4.5,"total":5.5},"operators":{"distinct":3,"total":6.5}},"paramCount":0.5,"sloc":{"logical":4,"physical":8.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.028,"difficulty":2.778,"effort":232.672,"length":22,"time":12.926,"vocabulary":14,"volume":83.762,"operands":{"distinct":9,"total":10},"operators":{"distinct":5,"total":12}},"paramCount":1,"sloc":{"logical":7,"physical":14}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/generateFiles/core/exports/coreExports.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":15.385,"halstead":{"bugs":0.164,"difficulty":8.339,"effort":4091.812,"length":91,"time":227.323,"vocabulary":42,"volume":490.701,"operands":{"distinct":31,"total":47,"identifiers":["api","onGenerateFiles","coreExports","applyPlugins","key","\"addCoreExports\"","type","ApplyPluginsType","add","initialValue","fesExportsHook","absoluteFilePath","\"core/coreExports.js\"","content","map","item","generateExports","join","\"\n\"","\n","tpl","readFileSync","__dirname","\"./coreExports.tpl\"","\"utf-8\"","writeTmpFile","path","replace","\"CORE_EXPORTS\"","\"RUNTIME_PATH\"","runtimePath"]},"operators":{"distinct":11,"total":44,"identifiers":["function","()",".","function=>","const","=","{}",":","[]","``","${}"]}},"paramCount":2,"sloc":{"logical":26,"physical":29}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"fs","type":"esm"},{"line":2,"path":"path","type":"esm"},{"line":3,"path":"../../../../utils/generateExports","type":"esm"},{"line":4,"path":"../../../../utils/constants","type":"esm"}],"errors":[],"lineEnd":29,"lineStart":1,"maintainability":68.406,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":1.5,"effort":17.414,"length":5,"time":0.967,"vocabulary":5,"volume":11.61,"operands":{"distinct":2,"total":2,"identifiers":["api","onGenerateFiles"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","function=>"]}},"paramCount":1,"sloc":{"logical":2,"physical":23},"errors":[],"lineEnd":28,"lineStart":6,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":5.263,"halstead":{"bugs":0.134,"difficulty":6.552,"effort":2631.766,"length":76,"time":146.209,"vocabulary":39,"volume":401.691,"operands":{"distinct":29,"total":38,"identifiers":["coreExports","api","applyPlugins","key","\"addCoreExports\"","type","ApplyPluginsType","add","initialValue","fesExportsHook","absoluteFilePath","\"core/coreExports.js\"","content","map","item","join","\"\n\"","\n","tpl","readFileSync","__dirname","\"./coreExports.tpl\"","\"utf-8\"","writeTmpFile","path","replace","\"CORE_EXPORTS\"","\"RUNTIME_PATH\"","runtimePath"]},"operators":{"distinct":10,"total":38,"identifiers":["const","=","()",".","{}",":","[]","``","${}","function=>"]}},"paramCount":0,"sloc":{"logical":19,"physical":21},"errors":[],"lineEnd":27,"lineStart":7,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":31.02,"length":8,"time":1.723,"vocabulary":6,"volume":20.68,"operands":{"distinct":4,"total":6,"identifiers":["generateExports","absoluteFilePath","item","fesExportsHook"]},"operators":{"distinct":2,"total":2,"identifiers":["()","{}"]}},"paramCount":1,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":20,"lineStart":17,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":3.846,"halstead":{"bugs":0.041,"difficulty":2.085,"effort":1022.953,"length":22.75,"time":56.831,"vocabulary":10.5,"volume":122.675,"operands":{"distinct":7.75,"total":11.75},"operators":{"distinct":2.75,"total":11}},"paramCount":0.5,"sloc":{"logical":6.5,"physical":7.25}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":26.754,"halstead":{"bugs":0.048,"difficulty":3.184,"effort":893.4,"length":29.667,"time":49.633,"vocabulary":16.667,"volume":144.66,"operands":{"distinct":11.667,"total":15.333},"operators":{"distinct":5,"total":14.333}},"paramCount":0.667,"sloc":{"logical":8.333,"physical":16}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/generateFiles/core/exports/pluginExports.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":20,"halstead":{"bugs":0.113,"difficulty":8.25,"effort":2788.289,"length":67,"time":154.905,"vocabulary":33,"volume":337.974,"operands":{"distinct":22,"total":33,"identifiers":["api","onGenerateFiles","fesExports","applyPlugins","key","\"addPluginExports\"","type","ApplyPluginsType","add","initialValue","fesExportsHook","absoluteFilePath","\"core/pluginExports.js\"","writeTmpFile","path","content","map","item","generateExports","join","\"\n\"","\n"]},"operators":{"distinct":11,"total":34,"identifiers":["function","()",".","function=>","const","=","{}",":","[]","``","${}"]}},"paramCount":2,"sloc":{"logical":20,"physical":24}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"../../../../utils/generateExports","type":"esm"}],"errors":[],"lineEnd":24,"lineStart":1,"maintainability":71.659,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":1.5,"effort":17.414,"length":5,"time":0.967,"vocabulary":5,"volume":11.61,"operands":{"distinct":2,"total":2,"identifiers":["api","onGenerateFiles"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","function=>"]}},"paramCount":1,"sloc":{"logical":2,"physical":21},"errors":[],"lineEnd":23,"lineStart":3,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":7.692,"halstead":{"bugs":0.085,"difficulty":6,"effort":1530.95,"length":52,"time":85.053,"vocabulary":30,"volume":255.158,"operands":{"distinct":20,"total":24,"identifiers":["fesExports","api","applyPlugins","key","\"addPluginExports\"","type","ApplyPluginsType","add","initialValue","fesExportsHook","absoluteFilePath","\"core/pluginExports.js\"","writeTmpFile","path","content","map","item","join","\"\n\"","\n"]},"operators":{"distinct":10,"total":28,"identifiers":["const","=","()",".","{}",":","[]","``","${}","function=>"]}},"paramCount":0,"sloc":{"logical":13,"physical":19},"errors":[],"lineEnd":22,"lineStart":4,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":31.02,"length":8,"time":1.723,"vocabulary":6,"volume":20.68,"operands":{"distinct":4,"total":6,"identifiers":["generateExports","absoluteFilePath","item","fesExportsHook"]},"operators":{"distinct":2,"total":2,"identifiers":["()","{}"]}},"paramCount":1,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":19,"lineStart":16,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":5,"halstead":{"bugs":0.028,"difficulty":2.063,"effort":697.072,"length":16.75,"time":38.726,"vocabulary":8.25,"volume":84.494,"operands":{"distinct":5.5,"total":8.25},"operators":{"distinct":2.75,"total":8.5}},"paramCount":0.5,"sloc":{"logical":5,"physical":6}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":27.564,"halstead":{"bugs":0.032,"difficulty":3,"effort":526.461,"length":21.667,"time":29.248,"vocabulary":13.667,"volume":95.816,"operands":{"distinct":8.667,"total":10.667},"operators":{"distinct":5,"total":11}},"paramCount":0.667,"sloc":{"logical":6.333,"physical":14.667}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/generateFiles/core/plugin/index.js","report":{"aggregate":{"cyclomatic":6,"cyclomaticDensity":12.245,"halstead":{"bugs":0.351,"difficulty":10.137,"effort":10683.579,"length":177,"time":593.532,"vocabulary":62,"volume":1053.893,"operands":{"distinct":51,"total":94,"identifiers":["api","paths","utils","Mustache","absoluteFilePath","\"core/plugin.js\"","onGenerateFiles","validKeys","applyPlugins","key","\"addRuntimePluginKey\"","type","ApplyPluginsType","add","initialValue","\"beforeRender\"","\"modifyClientRenderOpts\"","\"rootContainer\"","\"onAppCreated\"","\"render\"","\"patchRoutes\"","\"modifyCreateHistroy\"","\"onRouterCreated\"","appPath","winPath","join","absSrcPath","\"app.js\"","plugins","\"addRuntimePlugin\"","existsSync","filter","Boolean","writeTmpFile","path","content","render","readFileSync","__dirname","\"plugin.tpl\"","\"utf-8\"","runtimePath","\"core/pluginRegister.js\"","\"pluginRegister.tpl\"","map","plugin","index","addCoreExports","specifiers","\"plugin\"","source"]},"operators":{"distinct":11,"total":83,"identifiers":["function","const","=","{}",":","()",".","function=>","[]",",","&&"]}},"paramCount":3,"sloc":{"logical":49,"physical":73}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"fs","type":"esm"},{"line":2,"path":"path","type":"esm"},{"line":3,"path":"@fesjs/utils","type":"esm"},{"line":4,"path":"../../../../utils/constants","type":"esm"}],"errors":[],"lineEnd":73,"lineStart":1,"maintainability":62.937,"methods":[{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.033,"difficulty":5.25,"effort":512.779,"length":25,"time":28.488,"vocabulary":15,"volume":97.672,"operands":{"distinct":8,"total":12,"identifiers":["paths","utils","Mustache","api","absoluteFilePath","\"core/plugin.js\"","onGenerateFiles","addCoreExports"]},"operators":{"distinct":7,"total":13,"identifiers":["const","=","{}",":","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":9,"physical":67},"errors":[],"lineEnd":72,"lineStart":6,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":6.25,"halstead":{"bugs":0.257,"difficulty":8.182,"effort":6309.449,"length":134,"time":350.525,"vocabulary":54,"volume":771.155,"operands":{"distinct":44,"total":72,"identifiers":["validKeys","api","applyPlugins","key","\"addRuntimePluginKey\"","type","ApplyPluginsType","add","initialValue","\"beforeRender\"","\"modifyClientRenderOpts\"","\"rootContainer\"","\"onAppCreated\"","\"render\"","\"patchRoutes\"","\"modifyCreateHistroy\"","\"onRouterCreated\"","appPath","winPath","join","paths","absSrcPath","\"app.js\"","plugins","\"addRuntimePlugin\"","existsSync","filter","Boolean","writeTmpFile","path","absoluteFilePath","content","Mustache","render","readFileSync","__dirname","\"plugin.tpl\"","\"utf-8\"","runtimePath","\"core/pluginRegister.js\"","\"pluginRegister.tpl\"","map","plugin","index"]},"operators":{"distinct":10,"total":62,"identifiers":["const","=","()",".","{}",":","[]",",","&&","function=>"]}},"paramCount":0,"sloc":{"logical":32,"physical":53},"errors":[],"lineEnd":66,"lineStart":14,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.007,"difficulty":1.875,"effort":42.11,"length":8,"time":2.339,"vocabulary":7,"volume":22.459,"operands":{"distinct":4,"total":5,"identifiers":["index","path","winPath","plugin"]},"operators":{"distinct":3,"total":3,"identifiers":["{}",":","()"]}},"paramCount":2,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":62,"lineStart":59,"name":"","paramNames":["plugin","index"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":33.688,"length":8,"time":1.872,"vocabulary":7,"volume":22.459,"operands":{"distinct":4,"total":4,"identifiers":["specifiers","\"plugin\"","source","absoluteFilePath"]},"operators":{"distinct":3,"total":4,"identifiers":["{}",":","[]"]}},"paramCount":0,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":71,"lineStart":68,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.2,"cyclomaticDensity":2.449,"halstead":{"bugs":0.07,"difficulty":2.027,"effort":2136.716,"length":35.4,"time":118.706,"vocabulary":12.4,"volume":210.779,"operands":{"distinct":10.2,"total":18.8},"operators":{"distinct":2.2,"total":16.6}},"paramCount":0.6,"sloc":{"logical":9.8,"physical":14.6}},"methodAverage":{"cyclomatic":1.25,"cyclomaticDensity":18.924,"halstead":{"bugs":0.076,"difficulty":4.202,"effort":1724.507,"length":43.75,"time":95.806,"vocabulary":20.75,"volume":228.436,"operands":{"distinct":15,"total":23.25},"operators":{"distinct":5.75,"total":20.5}},"paramCount":0.75,"sloc":{"logical":12,"physical":32}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/generateFiles/fes/index.js","report":{"aggregate":{"cyclomatic":8,"cyclomaticDensity":14.545,"halstead":{"bugs":0.429,"difficulty":16.176,"effort":20826.493,"length":213,"time":1157.027,"vocabulary":66,"volume":1287.456,"operands":{"distinct":51,"total":110,"identifiers":["importsToStr","imports","map","imp","source","specifier","winPath","import "," from '","';","import '","api","utils","Mustache","onGenerateFiles","fesTpl","readFileSync","join","__dirname","\"fes.tpl\"","\"utf-8\"","writeTmpFile","path","\"fes.js\"","content","render","enableTitle","config","title","false","defaultTitle","\"\"","runtimePath","rootElement","mountElementId","\"app\"","#","entryCode","applyPlugins","key","\"addEntryCode\"","type","ApplyPluginsType","add","initialValue","\"\r\n\"","entryCodeAhead","\"addEntryCodeAhead\"","importsAhead","\"addEntryImportsAhead\"","\"addEntryImports\""]},"operators":{"distinct":15,"total":103,"identifiers":["function","return","()",".","function=>","const","=","{}","if","``","${}",":","!==","||","[]"]}},"paramCount":3,"sloc":{"logical":55,"physical":62}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"fs","type":"esm"},{"line":2,"path":"path","type":"esm"},{"line":3,"path":"@fesjs/utils","type":"esm"},{"line":4,"path":"../../../utils/constants","type":"esm"}],"errors":[],"lineEnd":62,"lineStart":1,"maintainability":60.339,"methods":[{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.007,"difficulty":2,"effort":39.303,"length":7,"time":2.183,"vocabulary":7,"volume":19.651,"operands":{"distinct":3,"total":3,"identifiers":["imports","map","imp"]},"operators":{"distinct":4,"total":4,"identifiers":["return","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":3,"physical":9},"errors":[],"lineEnd":14,"lineStart":6,"name":"importsToStr","paramNames":["imports"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.039,"difficulty":8,"effort":928,"length":29,"time":51.556,"vocabulary":16,"volume":116,"operands":{"distinct":8,"total":16,"identifiers":["source","specifier","imp","winPath","import "," from '","';","import '"]},"operators":{"distinct":8,"total":13,"identifiers":["const","=","{}","if","return","``","${}","()"]}},"paramCount":1,"sloc":{"logical":8,"physical":7},"errors":[],"lineEnd":13,"lineStart":7,"name":"","paramNames":["imp"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.016,"difficulty":5.25,"effort":254.268,"length":14,"time":14.126,"vocabulary":11,"volume":48.432,"operands":{"distinct":4,"total":6,"identifiers":["utils","Mustache","api","onGenerateFiles"]},"operators":{"distinct":7,"total":8,"identifiers":["const","=","{}",":","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":5,"physical":46},"errors":[],"lineEnd":61,"lineStart":16,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":8.108,"halstead":{"bugs":0.299,"difficulty":11.275,"effort":10105.142,"length":158,"time":561.397,"vocabulary":51,"volume":896.243,"operands":{"distinct":40,"total":82,"identifiers":["fesTpl","readFileSync","join","__dirname","\"fes.tpl\"","\"utf-8\"","api","writeTmpFile","path","\"fes.js\"","content","Mustache","render","enableTitle","config","title","false","defaultTitle","\"\"","runtimePath","rootElement","mountElementId","\"app\"","#","entryCode","applyPlugins","key","\"addEntryCode\"","type","ApplyPluginsType","add","initialValue","\"\r\n\"","entryCodeAhead","\"addEntryCodeAhead\"","importsAhead","importsToStr","\"addEntryImportsAhead\"","imports","\"addEntryImports\""]},"operators":{"distinct":11,"total":76,"identifiers":["const","=","()",".","{}",":","!==","||","``","${}","[]"]}},"paramCount":0,"sloc":{"logical":37,"physical":40},"errors":[],"lineEnd":60,"lineStart":21,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.6,"cyclomaticDensity":2.909,"halstead":{"bugs":0.086,"difficulty":3.235,"effort":4165.299,"length":42.6,"time":231.405,"vocabulary":13.2,"volume":257.491,"operands":{"distinct":10.2,"total":22},"operators":{"distinct":3,"total":20.6}},"paramCount":0.6,"sloc":{"logical":11,"physical":12.4}},"methodAverage":{"cyclomatic":1.75,"cyclomaticDensity":21.61,"halstead":{"bugs":0.09,"difficulty":6.631,"effort":2831.678,"length":52,"time":157.315,"vocabulary":21.25,"volume":270.082,"operands":{"distinct":13.75,"total":26.75},"operators":{"distinct":7.5,"total":25.25}},"paramCount":0.75,"sloc":{"logical":13.25,"physical":25.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/misc/route/index.js","report":{"aggregate":{"cyclomatic":54,"cyclomaticDensity":20.455,"halstead":{"bugs":2.457,"difficulty":42.712,"effort":314801.839,"length":958,"time":17488.991,"vocabulary":207,"volume":7370.361,"operands":{"distinct":177,"total":504,"identifiers":["isProcessFile","path","ext","extname","statSync","isFile","\".vue\"","includes","isProcessDirectory","item","component","join","isDirectory","\"components\"","checkHasLayout","dirList","readdirSync","some","false","fileName","basename","\"layout\"","getRouteName","parentRoutePath","routeName","posix","slice","1","replace","/\\//g","\"_\"","/@/g","/\\*/g","\"FUZZYMATCH\"","getComponentPath","config","pagesName","singular","\"page\"","\"pages\"","@/","/","getRoutePath","\"index\"","\"\"","startsWith","\"@\"","/@/","\":\"","\"*\"","\":pathMatch(.*)\"","genRoutes","parentRoutes","hasLayout","layoutRoute","children","push","forEach","descriptor","parse","readFileSync","\"utf-8\"","routeMetaBlock","customBlocks","find","b","type","\"config\"","routePath","componentPath","routeMeta","content","JSON","routeConfig","name","meta","nextParentRouteUrl","rank","routes","arr","split","\"/\"","0","count","sonPath","4","indexOf","2","3","length","sort","a","getRoutes","absPagesPath","configRoutes","router","getRoutesJSON","clonedRoutes","lodash","cloneDeep","isFunctionComponent","/^\\((.+)?\\)(\\s+)?=>/","test","/^function([^(]+)?\\(([^)]+)?\\)([^{]+)?{/","replacer","key","value","dynamicImport","() => import('","')","require('","').default","\"component\"","stringify","/\"component\": (\"(.+?)\")/g","global","m1","m2","/\\^/g","\"\"\"","\"component\": ","/\\\\r\\\\n/g","\"\r\n\"","/\\\\n/g","api","describe","\"router\"","joi","object","array","mode","string","default","\"hash\"","registerMethod","\"getRoutes\"","applyPlugins","\"modifyRoutes\"","ApplyPluginsType","modify","initialValue","paths","\"getRoutesJSON\"","utils","Mustache","namespace","\"core/routes\"","absCoreFilePath","\"routes.js\"","absRuntimeFilePath","\"runtime.js\"","historyType","history","\"createWebHistory\"","hash","\"createWebHashHistory\"","memory","\"createMemoryHistory\"","onGenerateFiles","routesTpl","__dirname","\"template/routes.tpl\"","writeTmpFile","render","runtimePath","routerBase","base","CREATE_HISTORY","\"template/runtime.tpl\"","addCoreExports","specifiers","\"getRouter\"","\"getHistory\"","\"destroyRouter\"","source","addRuntimePlugin","@@/"]},"operators":{"distinct":30,"total":454,"identifiers":["const","=","function","()","return","&&",".","[]","! (prefix)","function=>","if","===",":?","``","${}","{}",":","||","else","let","+=","!==","- (prefix)","-=","-",">","switch","case","default",","]}},"paramCount":35,"sloc":{"logical":264,"physical":300}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"fs","type":"esm"},{"line":4,"path":"path","type":"esm"},{"line":5,"path":"@fesjs/utils","type":"esm"},{"line":6,"path":"@vue/compiler-sfc","type":"esm"},{"line":7,"path":"../../../utils/constants","type":"esm"}],"errors":[],"lineEnd":300,"lineStart":1,"maintainability":58.338,"methods":[{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.025,"difficulty":4.5,"effort":342.662,"length":20,"time":19.037,"vocabulary":14,"volume":76.147,"operands":{"distinct":7,"total":9,"identifiers":["ext","extname","path","statSync","isFile","\".vue\"","includes"]},"operators":{"distinct":7,"total":11,"identifiers":["const","=","()","return","&&",".","[]"]}},"paramCount":1,"sloc":{"logical":6,"physical":4},"errors":[],"lineEnd":22,"lineStart":19,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.029,"difficulty":5,"effort":440,"length":22,"time":24.444,"vocabulary":16,"volume":88,"operands":{"distinct":8,"total":10,"identifiers":["component","join","path","item","statSync","isDirectory","\"components\"","includes"]},"operators":{"distinct":8,"total":12,"identifiers":["const","=","()","return","&&",".","! (prefix)","[]"]}},"paramCount":2,"sloc":{"logical":6,"physical":4},"errors":[],"lineEnd":27,"lineStart":24,"name":"","paramNames":["path","item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.015,"difficulty":3.6,"effort":161.901,"length":13,"time":8.995,"vocabulary":11,"volume":44.973,"operands":{"distinct":5,"total":6,"identifiers":["dirList","readdirSync","path","some","item"]},"operators":{"distinct":6,"total":7,"identifiers":["const","=","()","return",".","function=>"]}},"paramCount":1,"sloc":{"logical":5,"physical":11},"errors":[],"lineEnd":39,"lineStart":29,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":22.222,"halstead":{"bugs":0.037,"difficulty":4.9,"effort":540.771,"length":27,"time":30.043,"vocabulary":17,"volume":110.361,"operands":{"distinct":10,"total":14,"identifiers":["isProcessFile","join","path","item","false","ext","extname","fileName","basename","\"layout\""]},"operators":{"distinct":7,"total":13,"identifiers":["if","! (prefix)","()","return","const","=","==="]}},"paramCount":1,"sloc":{"logical":9,"physical":8},"errors":[],"lineEnd":38,"lineStart":31,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.042,"difficulty":3.269,"effort":408.973,"length":30,"time":22.721,"vocabulary":18,"volume":125.098,"operands":{"distinct":13,"total":17,"identifiers":["routeName","posix","join","parentRoutePath","fileName","slice","1","replace","/\\//g","\"_\"","/@/g","/\\*/g","\"FUZZYMATCH\""]},"operators":{"distinct":5,"total":13,"identifiers":["const","=","()",".","return"]}},"paramCount":2,"sloc":{"logical":7,"physical":8},"errors":[],"lineEnd":48,"lineStart":41,"name":"","paramNames":["parentRoutePath","fileName"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.03,"difficulty":4.364,"effort":389.265,"length":21,"time":21.626,"vocabulary":19,"volume":89.206,"operands":{"distinct":11,"total":12,"identifiers":["pagesName","config","singular","\"page\"","\"pages\"","posix","join","@/","/","parentRoutePath","fileName"]},"operators":{"distinct":8,"total":9,"identifiers":["const","=",":?",".","return","()","``","${}"]}},"paramCount":3,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":53,"lineStart":50,"name":"","paramNames":["parentRoutePath","fileName","config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":33.333,"halstead":{"bugs":0.061,"difficulty":5.143,"effort":933.536,"length":42,"time":51.863,"vocabulary":20,"volume":181.521,"operands":{"distinct":14,"total":24,"identifiers":["fileName","\"index\"","\"\"","startsWith","\"@\"","replace","/@/","\":\"","includes","\"*\"","\":pathMatch(.*)\"","posix","join","parentRoutePath"]},"operators":{"distinct":6,"total":18,"identifiers":["if","===","=","()",".","return"]}},"paramCount":2,"sloc":{"logical":12,"physical":15},"errors":[],"lineEnd":69,"lineStart":55,"name":"","paramNames":["parentRoutePath","fileName"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":15.385,"halstead":{"bugs":0.063,"difficulty":7.875,"effort":1487.348,"length":43,"time":82.63,"vocabulary":21,"volume":188.87,"operands":{"distinct":12,"total":21,"identifiers":["dirList","readdirSync","path","hasLayout","checkHasLayout","layoutRoute","children","parentRoutePath","parentRoutes","push","forEach","item"]},"operators":{"distinct":9,"total":22,"identifiers":["const","=","()","{}",":","[]","if",".","function=>"]}},"paramCount":4,"sloc":{"logical":13,"physical":57},"errors":[],"lineEnd":128,"lineStart":72,"name":"","paramNames":["parentRoutes","path","parentRoutePath","config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":17.143,"halstead":{"bugs":0.238,"difficulty":11.027,"effort":7863.022,"length":127,"time":436.835,"vocabulary":49,"volume":713.068,"operands":{"distinct":37,"total":68,"identifiers":["component","join","path","item","isProcessFile","descriptor","parse","readFileSync","\"utf-8\"","routeMetaBlock","customBlocks","find","b","ext","extname","fileName","basename","routePath","getRoutePath","parentRoutePath","routeName","getRouteName","componentPath","getComponentPath","config","routeMeta","content","JSON","routeConfig","name","meta","hasLayout","\"layout\"","layoutRoute","children","push","parentRoutes"]},"operators":{"distinct":12,"total":59,"identifiers":["const","=","()","if","{}",".","function=>",":?",":","||","else","==="]}},"paramCount":1,"sloc":{"logical":35,"physical":33},"errors":[],"lineEnd":114,"lineStart":82,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["b","type","\"config\""]},"operators":{"distinct":2,"total":2,"identifiers":["===","."]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":88,"lineStart":88,"name":"","paramNames":["b"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":30,"halstead":{"bugs":0.055,"difficulty":5.143,"effort":844.628,"length":38,"time":46.924,"vocabulary":20,"volume":164.233,"operands":{"distinct":14,"total":24,"identifiers":["isProcessDirectory","path","item","component","join","nextParentRouteUrl","posix","parentRoutePath","hasLayout","genRoutes","layoutRoute","children","config","parentRoutes"]},"operators":{"distinct":6,"total":14,"identifiers":["if","()","const","=",".","else"]}},"paramCount":1,"sloc":{"logical":10,"physical":12},"errors":[],"lineEnd":127,"lineStart":116,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.014,"difficulty":1.75,"effort":72.116,"length":13,"time":4.006,"vocabulary":9,"volume":41.209,"operands":{"distinct":6,"total":7,"identifiers":["routes","forEach","item","sort","a","b"]},"operators":{"distinct":3,"total":6,"identifiers":["()",".","function=>"]}},"paramCount":1,"sloc":{"logical":4,"physical":27},"errors":[],"lineEnd":167,"lineStart":141,"name":"","paramNames":["routes"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":33.333,"halstead":{"bugs":0.088,"difficulty":10,"effort":2646.998,"length":57,"time":147.055,"vocabulary":25,"volume":264.7,"operands":{"distinct":15,"total":30,"identifiers":["path","item","arr","split","\"/\"","0","\"\"","slice","1","count","forEach","sonPath","children","length","rank"]},"operators":{"distinct":10,"total":27,"identifiers":["const","=",".","let","()","if","===","[]","function=>","&&"]}},"paramCount":1,"sloc":{"logical":12,"physical":24},"errors":[],"lineEnd":165,"lineStart":142,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":5,"cyclomaticDensity":35.714,"halstead":{"bugs":0.071,"difficulty":12,"effort":2541.294,"length":49,"time":141.183,"vocabulary":20,"volume":211.774,"operands":{"distinct":10,"total":24,"identifiers":["count","4","sonPath","indexOf","\":\"","1","\":pathMatch(.*)\"","2","\"\"","3"]},"operators":{"distinct":10,"total":25,"identifiers":["+=","if","else","&&","!==","()",".","- (prefix)","===","-="]}},"paramCount":1,"sloc":{"logical":14,"physical":12},"errors":[],"lineEnd":160,"lineStart":149,"name":"","paramNames":["sonPath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":1.333,"effort":21.671,"length":7,"time":1.204,"vocabulary":5,"volume":16.253,"operands":{"distinct":3,"total":4,"identifiers":["b","count","a"]},"operators":{"distinct":2,"total":3,"identifiers":["-","."]}},"paramCount":2,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":166,"lineStart":166,"name":"","paramNames":["a","b"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":42.857,"halstead":{"bugs":0.047,"difficulty":8.1,"effort":1135.471,"length":33,"time":63.082,"vocabulary":19,"volume":140.182,"operands":{"distinct":10,"total":18,"identifiers":["configRoutes","config","router","routes","length","0","genRoutes","absPagesPath","\"/\"","rank"]},"operators":{"distinct":9,"total":15,"identifiers":["const","=",".","if","&&",">","return","[]","()"]}},"paramCount":2,"sloc":{"logical":7,"physical":10},"errors":[],"lineEnd":178,"lineStart":169,"name":"","paramNames":["config","absPagesPath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":10,"halstead":{"bugs":0.065,"difficulty":4.375,"effort":852.908,"length":41,"time":47.384,"vocabulary":27,"volume":194.95,"operands":{"distinct":20,"total":25,"identifiers":["clonedRoutes","lodash","cloneDeep","routes","isFunctionComponent","component","replacer","key","value","JSON","stringify","2","replace","/\"component\": (\"(.+?)\")/g","global","m1","m2","/\\\\r\\\\n/g","\"\r\n\"","/\\\\n/g"]},"operators":{"distinct":7,"total":16,"identifiers":["const","=","()",".","function","return","function=>"]}},"paramCount":2,"sloc":{"logical":10,"physical":34},"errors":[],"lineEnd":213,"lineStart":180,"name":"","paramNames":["routes","config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.012,"difficulty":3,"effort":108,"length":12,"time":6,"vocabulary":8,"volume":36,"operands":{"distinct":4,"total":6,"identifiers":["/^\\((.+)?\\)(\\s+)?=>/","test","component","/^function([^(]+)?\\(([^)]+)?\\)([^{]+)?{/"]},"operators":{"distinct":4,"total":6,"identifiers":["return","||","()","."]}},"paramCount":1,"sloc":{"logical":3,"physical":7},"errors":[],"lineEnd":190,"lineStart":184,"name":"isFunctionComponent","paramNames":["component"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":40,"halstead":{"bugs":0.041,"difficulty":6.3,"effort":776.096,"length":29,"time":43.116,"vocabulary":19,"volume":123.19,"operands":{"distinct":10,"total":14,"identifiers":["key","isFunctionComponent","value","config","dynamicImport","() => import('","')","require('","').default","\"component\""]},"operators":{"distinct":9,"total":15,"identifiers":["switch","case","if","()","return",".","``","${}","default"]}},"paramCount":2,"sloc":{"logical":10,"physical":13},"errors":[],"lineEnd":204,"lineStart":192,"name":"replacer","paramNames":["key","value"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.01,"difficulty":2,"effort":57.059,"length":9,"time":3.17,"vocabulary":9,"volume":28.529,"operands":{"distinct":5,"total":5,"identifiers":["m2","replace","/\\^/g","\"\"\"","\"component\": "]},"operators":{"distinct":4,"total":4,"identifiers":["``","${}","()","."]}},"paramCount":3,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":209,"lineStart":209,"name":"","paramNames":["global","m1","m2"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":2,"halstead":{"bugs":0.303,"difficulty":6.783,"effort":6167.238,"length":158,"time":342.624,"vocabulary":54,"volume":909.272,"operands":{"distinct":46,"total":78,"identifiers":["api","describe","key","\"router\"","config","joi","object","routes","array","mode","string","default","\"hash\"","registerMethod","name","\"getRoutes\"","applyPlugins","\"modifyRoutes\"","type","ApplyPluginsType","modify","initialValue","getRoutes","absPagesPath","paths","\"getRoutesJSON\"","getRoutesJSON","utils","Mustache","namespace","\"core/routes\"","absCoreFilePath","join","\"routes.js\"","absRuntimeFilePath","\"runtime.js\"","historyType","history","\"createWebHistory\"","hash","\"createWebHashHistory\"","memory","\"createMemoryHistory\"","onGenerateFiles","addCoreExports","addRuntimePlugin"]},"operators":{"distinct":8,"total":80,"identifiers":["()",".","{}",":","return","const","=","function=>"]}},"paramCount":1,"sloc":{"logical":50,"physical":85},"errors":[],"lineEnd":299,"lineStart":215,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":10.526,"halstead":{"bugs":0.134,"difficulty":6.923,"effort":2782.451,"length":79,"time":154.581,"vocabulary":34,"volume":401.91,"operands":{"distinct":26,"total":45,"identifiers":["routesTpl","readFileSync","join","__dirname","\"template/routes.tpl\"","\"utf-8\"","routes","api","getRoutesJSON","writeTmpFile","path","absCoreFilePath","content","Mustache","render","runtimePath","config","routerBase","base","CREATE_HISTORY","historyType","router","mode","\"createWebHashHistory\"","absRuntimeFilePath","\"template/runtime.tpl\""]},"operators":{"distinct":8,"total":34,"identifiers":["const","=","()",".","{}",":","||","[]"]}},"paramCount":0,"sloc":{"logical":19,"physical":20},"errors":[],"lineEnd":289,"lineStart":270,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.017,"difficulty":2,"effort":103.783,"length":15,"time":5.766,"vocabulary":11,"volume":51.891,"operands":{"distinct":7,"total":7,"identifiers":["specifiers","\"getRoutes\"","\"getRouter\"","\"getHistory\"","\"destroyRouter\"","source","absCoreFilePath"]},"operators":{"distinct":4,"total":8,"identifiers":["[]","{}",":",","]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":296,"lineStart":291,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["absRuntimeFilePath","@@/"]},"operators":{"distinct":2,"total":2,"identifiers":["``","${}"]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":298,"lineStart":298,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.16,"cyclomaticDensity":0.818,"halstead":{"bugs":0.098,"difficulty":1.708,"effort":12592.074,"length":38.32,"time":699.56,"vocabulary":8.28,"volume":294.814,"operands":{"distinct":7.08,"total":20.16},"operators":{"distinct":1.2,"total":18.16}},"paramCount":1.4,"sloc":{"logical":10.56,"physical":12}},"methodAverage":{"cyclomatic":2.208,"cyclomaticDensity":38.964,"halstead":{"bugs":0.059,"difficulty":5.058,"effort":1279.033,"length":37.25,"time":71.057,"vocabulary":18.917,"volume":175.873,"operands":{"distinct":12.417,"total":19.708},"operators":{"distinct":6.5,"total":17.542}},"paramCount":1.458,"sloc":{"logical":10.125,"physical":16.583}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/plugins/registerMethods.js","report":{"aggregate":{"cyclomatic":11,"cyclomaticDensity":18.644,"halstead":{"bugs":0.588,"difficulty":17.838,"effort":31456.022,"length":273,"time":1747.557,"vocabulary":88,"volume":1763.425,"operands":{"distinct":71,"total":149,"identifiers":["api","\"onExit\"","\"onGenerateFiles\"","\"addPluginExports\"","\"addCoreExports\"","\"addRuntimePluginKey\"","\"addRuntimePlugin\"","\"addDevScripts\"","\"addEntryImportsAhead\"","\"addEntryImports\"","\"addEntryCodeAhead\"","\"addEntryCode\"","\"addBeforeMiddlewares\"","\"addHTMLHeadScripts\"","\"addMiddlewares\"","\"modifyRoutes\"","\"modifyBundler\"","\"modifyBundleImplementor\"","\"modifyBundleConfigOpts\"","\"modifyBundleConfig\"","\"modifyBabelOpts\"","\"modifyBabelPresetOpts\"","\"chainWebpack\"","\"addTmpGenerateWatcherPaths\"","\"modifyPublicPathStr\"","forEach","name","registerMethod","\"writeTmpFile\"","path","content","assert","stage","ServiceStage","pluginReady","\"api.writeTmpFile() should not execute in register stage.\"","absPath","join","paths","absTmpPath","utils","mkdirp","sync","dirname","existsSync","readFileSync","\"utf-8\"","writeFileSync","\"copyTmpFiles\"","namespace","ignore","\"api.copyTmpFiles() should not execute in register stage.\"","\"api.copyTmpFiles() should has param path\"","\"api.copyTmpFiles() should has param namespace\"","files","glob","\"**/*\"","cwd","base","file","source","target","statSync","isDirectory","Array","isArray","some","pattern","RegExp","test","copyFileSync"]},"operators":{"distinct":17,"total":124,"identifiers":["function","()",".","[]",",","function=>","{}",":",">=","const","=","if","||","! (prefix)","!==","else","new"]}},"paramCount":4,"sloc":{"logical":59,"physical":95}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"assert","type":"esm"},{"line":2,"path":"path","type":"esm"},{"line":5,"path":"fs","type":"esm"}],"errors":[],"lineEnd":95,"lineStart":1,"maintainability":58.663,"methods":[{"cyclomatic":3,"cyclomaticDensity":9.375,"halstead":{"bugs":0.383,"difficulty":12.017,"effort":13804.132,"length":185,"time":766.896,"vocabulary":74,"volume":1148.749,"operands":{"distinct":60,"total":103,"identifiers":["\"onExit\"","\"onGenerateFiles\"","\"addPluginExports\"","\"addCoreExports\"","\"addRuntimePluginKey\"","\"addRuntimePlugin\"","\"addDevScripts\"","\"addEntryImportsAhead\"","\"addEntryImports\"","\"addEntryCodeAhead\"","\"addEntryCode\"","\"addBeforeMiddlewares\"","\"addHTMLHeadScripts\"","\"addMiddlewares\"","\"modifyRoutes\"","\"modifyBundler\"","\"modifyBundleImplementor\"","\"modifyBundleConfigOpts\"","\"modifyBundleConfig\"","\"modifyBabelOpts\"","\"modifyBabelPresetOpts\"","\"chainWebpack\"","\"addTmpGenerateWatcherPaths\"","\"modifyPublicPathStr\"","forEach","name","api","registerMethod","\"writeTmpFile\"","path","content","assert","stage","ServiceStage","pluginReady","\"api.writeTmpFile() should not execute in register stage.\"","absPath","join","paths","absTmpPath","utils","mkdirp","sync","dirname","existsSync","readFileSync","\"utf-8\"","writeFileSync","\"copyTmpFiles\"","namespace","ignore","\"api.copyTmpFiles() should not execute in register stage.\"","\"api.copyTmpFiles() should has param path\"","\"api.copyTmpFiles() should has param namespace\"","files","glob","\"**/*\"","cwd","base","file"]},"operators":{"distinct":14,"total":82,"identifiers":["()",".","[]",",","function=>","{}",":",">=","const","=","if","||","! (prefix)","!=="]}},"paramCount":1,"sloc":{"logical":32,"physical":88},"errors":[],"lineEnd":94,"lineStart":7,"name":"","paramNames":["api"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.006,"difficulty":2,"effort":36.189,"length":7,"time":2.011,"vocabulary":6,"volume":18.095,"operands":{"distinct":3,"total":4,"identifiers":["api","registerMethod","name"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","{}"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":35,"lineStart":33,"name":"","paramNames":["name"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":5,"cyclomaticDensity":22.727,"halstead":{"bugs":0.115,"difficulty":7.4,"effort":2561.359,"length":72,"time":142.298,"vocabulary":28,"volume":346.13,"operands":{"distinct":20,"total":37,"identifiers":["source","join","path","file","target","base","existsSync","dirname","api","utils","mkdirp","sync","statSync","isDirectory","Array","isArray","ignore","some","pattern","copyFileSync"]},"operators":{"distinct":8,"total":35,"identifiers":["const","=","()","if","! (prefix)",".","else","function=>"]}},"paramCount":1,"sloc":{"logical":22,"physical":16},"errors":[],"lineEnd":91,"lineStart":76,"name":"","paramNames":["file"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":29.477,"length":7,"time":1.638,"vocabulary":7,"volume":19.651,"operands":{"distinct":4,"total":4,"identifiers":["RegExp","pattern","test","file"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","new"]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":85,"lineStart":85,"name":"","paramNames":["pattern"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.2,"cyclomaticDensity":3.729,"halstead":{"bugs":0.118,"difficulty":3.568,"effort":6291.204,"length":54.6,"time":349.511,"vocabulary":17.6,"volume":352.685,"operands":{"distinct":14.2,"total":29.8},"operators":{"distinct":3.4,"total":24.8}},"paramCount":0.8,"sloc":{"logical":11.8,"physical":19}},"methodAverage":{"cyclomatic":2.5,"cyclomaticDensity":33.026,"halstead":{"bugs":0.128,"difficulty":5.729,"effort":4107.789,"length":67.75,"time":228.211,"vocabulary":28.75,"volume":383.156,"operands":{"distinct":21.75,"total":37},"operators":{"distinct":7,"total":30.75}},"paramCount":1,"sloc":{"logical":14.5,"physical":27}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/utils/constants.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.013,"difficulty":2,"effort":79.726,"length":12,"time":4.429,"vocabulary":10,"volume":39.863,"operands":{"distinct":6,"total":6,"identifiers":["runtimePath","winPath","dirname","require","resolve","\"@fesjs/runtime/package.json\""]},"operators":{"distinct":4,"total":6,"identifiers":["const","=","()","."]}},"paramCount":0,"sloc":{"logical":4,"physical":7}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@fesjs/utils","type":"esm"},{"line":2,"path":"path","type":"esm"}],"errors":[],"lineEnd":7,"lineStart":1,"maintainability":78.109,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.013,"difficulty":2,"effort":79.726,"length":12,"time":4.429,"vocabulary":10,"volume":39.863,"operands":{"distinct":6,"total":6},"operators":{"distinct":4,"total":6}},"paramCount":0,"sloc":{"logical":4,"physical":7}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/utils/generateExports.js","report":{"aggregate":{"cyclomatic":7,"cyclomaticDensity":21.875,"halstead":{"bugs":0.392,"difficulty":18.18,"effort":21359.324,"length":193,"time":1186.629,"vocabulary":68,"volume":1174.88,"operands":{"distinct":50,"total":101,"identifiers":["reserveLibrarys","\"fes\"","reserveExportsNames","\"Link\"","\"NavLink\"","\"Redirect\"","\"dynamic\"","\"withRouter\"","\"Route\"","generateExports","basePath","item","fesExportsHook","assert","source","\"source should be supplied.\"","path","relative","basename","exportAll","specifiers","\"exportAll or specifiers should be supplied.\"","includes"," is reserve library, Please don't use it.","winPath","export * from '","';","Array","isArray","toString","specifiers should be Array, but got ",".","specifiersStrArr","map","specifier","\"string\""," is reserve name, you can use 'exported' to set alias."," is Defined, you can use 'exported' to set alias.","true","lodash","isPlainObject","Configure item context should be Plain Object, but got ","local","exported","\"local and exported should be supplied.\""," as ","join","\", \"","export { "," } from '"]},"operators":{"distinct":18,"total":92,"identifiers":["const","=","[]",",","function","{}","()",".","||","! (prefix)","``","${}","if","return","function=>","===","typeof (prefix)","&&"]}},"paramCount":4,"sloc":{"logical":32,"physical":61}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@fesjs/utils","type":"esm"},{"line":2,"path":"assert","type":"esm"},{"line":3,"path":"path","type":"esm"}],"errors":[],"lineEnd":61,"lineStart":1,"maintainability":59.338,"methods":[{"cyclomatic":3,"cyclomaticDensity":15.789,"halstead":{"bugs":0.177,"difficulty":10.052,"effort":5349.455,"length":100,"time":297.192,"vocabulary":40,"volume":532.193,"operands":{"distinct":29,"total":53,"identifiers":["assert","item","source","\"source should be supplied.\"","path","relative","basename","basePath","exportAll","specifiers","\"exportAll or specifiers should be supplied.\"","reserveLibrarys","includes"," is reserve library, Please don't use it.","winPath","export * from '","';","Array","isArray","toString","specifiers should be Array, but got ",".","specifiersStrArr","map","specifier","join","\", \"","export { "," } from '"]},"operators":{"distinct":11,"total":47,"identifiers":["()",".","const","=","||","! (prefix)","``","${}","if","return","function=>"]}},"paramCount":3,"sloc":{"logical":19,"physical":45},"errors":[],"lineEnd":60,"lineStart":16,"name":"generateExports","paramNames":["basePath","item","fesExportsHook"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":30,"halstead":{"bugs":0.108,"difficulty":12.353,"effort":4020.694,"length":67,"time":223.372,"vocabulary":29,"volume":325.485,"operands":{"distinct":17,"total":35,"identifiers":["specifier","\"string\"","assert","reserveExportsNames","includes"," is reserve name, you can use 'exported' to set alias.","fesExportsHook"," is Defined, you can use 'exported' to set alias.","true","lodash","isPlainObject","Configure item context should be Plain Object, but got ",".","local","exported","\"local and exported should be supplied.\""," as "]},"operators":{"distinct":12,"total":32,"identifiers":["if","===","typeof (prefix)","()","! (prefix)",".","``","${}","[]","=","return","&&"]}},"paramCount":1,"sloc":{"logical":10,"physical":23},"errors":[],"lineEnd":56,"lineStart":34,"name":"","paramNames":["specifier"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.333,"cyclomaticDensity":7.292,"halstead":{"bugs":0.131,"difficulty":6.06,"effort":7119.775,"length":64.333,"time":395.543,"vocabulary":22.667,"volume":391.627,"operands":{"distinct":16.667,"total":33.667},"operators":{"distinct":6,"total":30.667}},"paramCount":1.333,"sloc":{"logical":10.667,"physical":20.333}},"methodAverage":{"cyclomatic":3,"cyclomaticDensity":22.895,"halstead":{"bugs":0.143,"difficulty":11.202,"effort":4685.074,"length":83.5,"time":260.282,"vocabulary":34.5,"volume":428.839,"operands":{"distinct":23,"total":44},"operators":{"distinct":11.5,"total":39.5}},"paramCount":2,"sloc":{"logical":14.5,"physical":34}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-preset-built-in/src/utils/generateFiles.js","report":{"aggregate":{"cyclomatic":10,"cyclomaticDensity":22.727,"halstead":{"bugs":0.285,"difficulty":11.488,"effort":9807.407,"length":147,"time":544.856,"vocabulary":56,"volume":853.681,"operands":{"distinct":43,"total":76,"identifiers":["api","watch","paths","generate","logger","debug","\"generate files\"","applyPlugins","key","\"onGenerateFiles\"","type","ApplyPluginsType","event","watchers","unwatch","forEach","watcher","close","createWatcher","path","chokidar","ignored","/(^|[/\\\\])(_mock.js$|\\..)/","ignoreInitial","true","on","\"all\"","lodash","throttle","100","push","watcherPaths","\"addTmpGenerateWatcherPaths\"","add","initialValue","absPagesPath","join","absSrcPath","\"app.js\"","uniq","map","p","winPath"]},"operators":{"distinct":13,"total":71,"identifiers":["function=>","{}","const","=","function","()",".",":","let","[]","if",",","return"]}},"paramCount":6,"sloc":{"logical":44,"physical":61}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@fesjs/utils","type":"esm"},{"line":2,"path":"path","type":"esm"}],"errors":[],"lineEnd":61,"lineStart":1,"maintainability":70.917,"methods":[{"cyclomatic":2,"cyclomaticDensity":9.524,"halstead":{"bugs":0.121,"difficulty":8.84,"effort":3201.026,"length":69,"time":177.835,"vocabulary":38,"volume":362.107,"operands":{"distinct":25,"total":34,"identifiers":["paths","api","generate","watchers","unwatch","createWatcher","path","watch","watcherPaths","applyPlugins","key","\"addTmpGenerateWatcherPaths\"","type","ApplyPluginsType","add","initialValue","absPagesPath","join","absSrcPath","\"app.js\"","lodash","uniq","map","p","forEach"]},"operators":{"distinct":13,"total":35,"identifiers":["const","=","{}","function","let","[]","()","if",".",":",",","function=>","return"]}},"paramCount":2,"sloc":{"logical":21,"physical":57},"errors":[],"lineEnd":60,"lineStart":4,"name":"","paramNames":["api","watch"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.028,"difficulty":2.4,"effort":201.028,"length":22,"time":11.168,"vocabulary":14,"volume":83.762,"operands":{"distinct":10,"total":12,"identifiers":["api","logger","debug","\"generate files\"","applyPlugins","key","\"onGenerateFiles\"","type","ApplyPluginsType","event"]},"operators":{"distinct":4,"total":10,"identifiers":["()",".","{}",":"]}},"paramCount":0,"sloc":{"logical":5,"physical":7},"errors":[],"lineEnd":13,"lineStart":7,"name":"generate","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.009,"difficulty":3.333,"effort":90,"length":9,"time":5,"vocabulary":8,"volume":27,"operands":{"distinct":3,"total":4,"identifiers":["watchers","forEach","watcher"]},"operators":{"distinct":5,"total":5,"identifiers":["()",".","function=>","=","[]"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":24,"lineStart":19,"name":"unwatch","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["watcher","close"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":22,"lineStart":20,"name":"","paramNames":["watcher"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.046,"difficulty":3.967,"effort":548.361,"length":31,"time":30.465,"vocabulary":22,"volume":138.242,"operands":{"distinct":15,"total":17,"identifiers":["watcher","chokidar","watch","path","ignored","/(^|[/\\\\])(_mock.js$|\\..)/","ignoreInitial","true","on","\"all\"","lodash","throttle","100","watchers","push"]},"operators":{"distinct":7,"total":14,"identifiers":["const","=","()",".","{}",":","function=>"]}},"paramCount":1,"sloc":{"logical":8,"physical":14},"errors":[],"lineEnd":39,"lineStart":26,"name":"createWatcher","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["generate"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":36,"lineStart":34,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["winPath","p"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":53,"lineStart":53,"name":"","paramNames":["p"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["createWatcher","p"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":56,"lineStart":54,"name":"","paramNames":["p"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.111,"cyclomaticDensity":2.525,"halstead":{"bugs":0.032,"difficulty":1.276,"effort":1089.712,"length":16.333,"time":60.54,"vocabulary":6.222,"volume":94.853,"operands":{"distinct":4.778,"total":8.444},"operators":{"distinct":1.444,"total":7.889}},"paramCount":0.667,"sloc":{"logical":4.889,"physical":6.778}},"methodAverage":{"cyclomatic":1.125,"cyclomaticDensity":46.92,"halstead":{"bugs":0.026,"difficulty":2.63,"effort":506.771,"length":17.875,"time":28.154,"vocabulary":11.75,"volume":78.828,"operands":{"distinct":7.5,"total":9.25},"operators":{"distinct":4.25,"total":8.625}},"paramCount":0.75,"sloc":{"logical":5.375,"physical":11.75}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-runtime/build.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.008,"difficulty":2,"effort":48,"length":8,"time":2.667,"vocabulary":8,"volume":24,"operands":{"distinct":4,"total":4,"identifiers":["module","exports","target","\"browser\""]},"operators":{"distinct":4,"total":4,"identifiers":["=",".","{}",":"]}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":85.691,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.008,"difficulty":2,"effort":48,"length":8,"time":2.667,"vocabulary":8,"volume":24,"operands":{"distinct":4,"total":4},"operators":{"distinct":4,"total":4}},"paramCount":0,"sloc":{"logical":2,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-runtime/src/index.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":17}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":17,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":17}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-runtime/src/plugin/index.js","report":{"aggregate":{"cyclomatic":39,"cyclomaticDensity":34.513,"halstead":{"bugs":1.056,"difficulty":50.838,"effort":161079.155,"length":470,"time":8948.842,"vocabulary":107,"volume":3168.489,"operands":{"distinct":74,"total":228,"identifiers":["_compose","fns","args","length","1","0","last","pop","reduce","a","b","isPromiseLike","obj","\"object\"","then","\"function\"","ApplyPluginsType","compose","\"compose\"","event","\"event\"","modify","\"modify\"","Plugin","constructor","opts","validKeys","hooks","shared","share","key","assert","Object","keys","includes","\"share failed, key repeat\"","getShared","register","plugin","apply","\"register failed, plugin.apply must supplied\"","path","\"register failed, plugin.path must supplied\"","forEach","indexOf","register failed, invalid key "," from plugin ",".","concat","getHooks","keyWithDot","memberKeys","split","\".\"","map","hook","ret","memberKey","e","null","filter","Boolean","applyPlugins","type","initialValue","async","\"applyPlugins failed, args must be plain object.\"","memo","applyPlugins failed, all hooks for key "," must be function, plain object or Promise.","Promise","resolve"," must be function or plain object."," must be function."]},"operators":{"distinct":33,"total":242,"identifiers":["function","{}","if","===",".","return","[]","const","=","()","function=>","&&","! (prefix)","typeof (prefix)",":","class","this","||",">","- (prefix)","``","${}",",","... (rest)","let","try","forof","catch","switch","case","... (spread)",":?","default"]}},"paramCount":23,"sloc":{"logical":113,"physical":151}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[{"aggregate":{"cyclomatic":31,"cyclomaticDensity":32.979,"halstead":{"bugs":0.874,"difficulty":45.234,"effort":118597.092,"length":400,"time":6588.727,"vocabulary":94,"volume":2621.836,"operands":{"distinct":64,"total":193,"identifiers":["constructor","opts","validKeys","hooks","shared","share","key","obj","assert","Object","keys","includes","\"share failed, key repeat\"","getShared","register","plugin","apply","\"register failed, plugin.apply must supplied\"","path","\"register failed, plugin.path must supplied\"","forEach","indexOf","1","register failed, invalid key "," from plugin ",".","concat","getHooks","keyWithDot","memberKeys","split","\".\"","length","map","hook","ret","memberKey","e","null","filter","Boolean","applyPlugins","type","initialValue","args","async","\"object\"","\"applyPlugins failed, args must be plain object.\"","reduce","memo","\"function\"","isPromiseLike","applyPlugins failed, all hooks for key "," must be function, plain object or Promise.","Promise","resolve"," must be function or plain object.","ApplyPluginsType","modify"," must be function.","event","_compose","fns","compose"]},"operators":{"distinct":30,"total":207,"identifiers":["=",".","this","||","[]","{}","()","! (prefix)","return","function=>",">","- (prefix)","``","${}","if","const",",","... (rest)","let","try","forof","catch","===","typeof (prefix)","switch","case","... (spread)",":?",":","default"]}},"paramCount":18,"sloc":{"logical":94,"physical":125}},"errors":[],"lineEnd":150,"lineStart":26,"methods":[{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.02,"difficulty":3.75,"effort":224.23,"length":18,"time":12.457,"vocabulary":10,"volume":59.795,"operands":{"distinct":4,"total":5,"identifiers":["validKeys","opts","hooks","shared"]},"operators":{"distinct":6,"total":13,"identifiers":["=",".","this","||","[]","{}"]}},"paramCount":1,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":32,"lineStart":27,"name":"constructor","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.028,"difficulty":3.75,"effort":314.107,"length":22,"time":17.45,"vocabulary":14,"volume":83.762,"operands":{"distinct":8,"total":10,"identifiers":["assert","Object","keys","shared","includes","key","\"share failed, key repeat\"","obj"]},"operators":{"distinct":6,"total":12,"identifiers":["()","! (prefix)",".","this","=","[]"]}},"paramCount":2,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":37,"lineStart":34,"name":"share","paramNames":["key","obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":2,"effort":31.02,"length":6,"time":1.723,"vocabulary":6,"volume":15.51,"operands":{"distinct":2,"total":2,"identifiers":["shared","key"]},"operators":{"distinct":4,"total":4,"identifiers":["return","[]",".","this"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":41,"lineStart":39,"name":"getShared","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.036,"difficulty":2.8,"effort":298.497,"length":28,"time":16.583,"vocabulary":14,"volume":106.606,"operands":{"distinct":10,"total":14,"identifiers":["assert","plugin","apply","\"register failed, plugin.apply must supplied\"","path","\"register failed, plugin.path must supplied\"","Object","keys","forEach","key"]},"operators":{"distinct":4,"total":14,"identifiers":["()","! (prefix)",".","function=>"]}},"paramCount":1,"sloc":{"logical":5,"physical":12},"errors":[],"lineEnd":54,"lineStart":43,"name":"register","paramNames":["plugin"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.084,"difficulty":9.731,"effort":2453.837,"length":55,"time":136.324,"vocabulary":24,"volume":252.173,"operands":{"distinct":13,"total":23,"identifiers":["assert","validKeys","indexOf","key","1","plugin","path","register failed, invalid key "," from plugin ",".","hooks","concat","apply"]},"operators":{"distinct":11,"total":32,"identifiers":["()",">",".","this","- (prefix)","``","${}","if","! (prefix)","[]","="]}},"paramCount":1,"sloc":{"logical":6,"physical":8},"errors":[],"lineEnd":53,"lineStart":46,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.061,"difficulty":10.045,"effort":1842.321,"length":40,"time":102.351,"vocabulary":24,"volume":183.399,"operands":{"distinct":11,"total":17,"identifiers":["key","memberKeys","keyWithDot","split","\".\"","hooks","length","map","hook","filter","Boolean"]},"operators":{"distinct":13,"total":23,"identifiers":["const","=","[]",",","... (rest)","()",".","let","||","this","if","function=>","return"]}},"paramCount":1,"sloc":{"logical":9,"physical":20},"errors":[],"lineEnd":75,"lineStart":56,"name":"getHooks","paramNames":["keyWithDot"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.025,"difficulty":6.667,"effort":507.647,"length":20,"time":28.203,"vocabulary":14,"volume":76.147,"operands":{"distinct":6,"total":10,"identifiers":["ret","hook","memberKey","memberKeys","e","null"]},"operators":{"distinct":8,"total":10,"identifiers":["try","let","=","forof","const","[]","return","catch"]}},"paramCount":1,"sloc":{"logical":7,"physical":11},"errors":[],"lineEnd":71,"lineStart":61,"name":"","paramNames":["hook"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":8,"cyclomaticDensity":33.333,"halstead":{"bugs":0.129,"difficulty":12.727,"effort":4942.594,"length":74,"time":274.589,"vocabulary":38,"volume":388.347,"operands":{"distinct":22,"total":35,"identifiers":["hooks","getHooks","key","args","assert","\"object\"","\"applyPlugins failed, args must be plain object.\"","type","async","reduce","memo","hook","isPromiseLike","initialValue","Promise","resolve","ApplyPluginsType","modify","forEach","event","compose","null"]},"operators":{"distinct":16,"total":39,"identifiers":["const","=","||","()",".","this","[]","if","===","typeof (prefix)","switch","case","return","function=>",":?","default"]}},"paramCount":5,"sloc":{"logical":24,"physical":73},"errors":[],"lineEnd":149,"lineStart":77,"name":"applyPlugins","paramNames":["key","type","initialValue","args","async"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":7,"cyclomaticDensity":43.75,"halstead":{"bugs":0.09,"difficulty":16.364,"effort":4441.315,"length":60,"time":246.74,"vocabulary":23,"volume":271.414,"operands":{"distinct":11,"total":30,"identifiers":["assert","hook","\"function\"","\"object\"","isPromiseLike","key","applyPlugins failed, all hooks for key "," must be function, plain object or Promise.","memo","ret","args"]},"operators":{"distinct":12,"total":30,"identifiers":["()","||","===","typeof (prefix)","``","${}","if","=","const","return","{}","... (spread)"]}},"paramCount":2,"sloc":{"logical":16,"physical":18},"errors":[],"lineEnd":114,"lineStart":97,"name":"","paramNames":["memo","hook"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":60,"halstead":{"bugs":0.045,"difficulty":8.333,"effort":1132.781,"length":32,"time":62.932,"vocabulary":19,"volume":135.934,"operands":{"distinct":9,"total":15,"identifiers":["assert","hook","\"function\"","\"object\"","key","applyPlugins failed, all hooks for key "," must be function or plain object.","memo","args"]},"operators":{"distinct":10,"total":17,"identifiers":["()","||","===","typeof (prefix)","``","${}","if","return","{}","... (spread)"]}},"paramCount":2,"sloc":{"logical":5,"physical":10},"errors":[],"lineEnd":129,"lineStart":120,"name":"","paramNames":["memo","hook"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.017,"difficulty":2.857,"effort":143.399,"length":14,"time":7.967,"vocabulary":12,"volume":50.189,"operands":{"distinct":7,"total":8,"identifiers":["assert","hook","\"function\"","key","applyPlugins failed, all hooks for key "," must be function.","args"]},"operators":{"distinct":5,"total":6,"identifiers":["()","===","typeof (prefix)","``","${}"]}},"paramCount":1,"sloc":{"logical":2,"physical":7},"errors":[],"lineEnd":139,"lineStart":133,"name":"","paramNames":["hook"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.014,"difficulty":2.333,"effort":100.765,"length":13,"time":5.598,"vocabulary":10,"volume":43.185,"operands":{"distinct":6,"total":7,"identifiers":["_compose","fns","hooks","concat","initialValue","args"]},"operators":{"distinct":4,"total":6,"identifiers":["()","{}",":","."]}},"paramCount":0,"sloc":{"logical":6,"physical":4},"errors":[],"lineEnd":145,"lineStart":142,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.385,"cyclomaticDensity":2.537,"halstead":{"bugs":0.067,"difficulty":3.48,"effort":9122.853,"length":30.769,"time":506.825,"vocabulary":7.231,"volume":201.68,"operands":{"distinct":4.923,"total":14.846},"operators":{"distinct":2.308,"total":15.923}},"paramCount":1.385,"sloc":{"logical":7.231,"physical":9.615}},"methodAverage":{"cyclomatic":2.583,"cyclomaticDensity":41.364,"halstead":{"bugs":0.046,"difficulty":6.78,"effort":1369.376,"length":31.833,"time":76.076,"vocabulary":17.333,"volume":138.872,"operands":{"distinct":9.083,"total":14.667},"operators":{"distinct":8.25,"total":17.167}},"paramCount":1.5,"sloc":{"logical":7.333,"physical":14.667}},"name":"Plugin","maintainability":66.125}],"dependencies":[{"line":6,"path":"../utils","type":"esm"}],"errors":[],"lineEnd":151,"lineStart":1,"maintainability":63.257,"methods":[{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.036,"difficulty":6.5,"effort":704.717,"length":26,"time":39.151,"vocabulary":18,"volume":108.418,"operands":{"distinct":9,"total":13,"identifiers":["fns","length","1","0","last","pop","reduce","a","b"]},"operators":{"distinct":9,"total":13,"identifiers":["if","===",".","return","[]","const","=","()","function=>"]}},"paramCount":2,"sloc":{"logical":7,"physical":7},"errors":[],"lineEnd":14,"lineStart":8,"name":"_compose","paramNames":["fns","args"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0,"difficulty":0.5,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":1,"total":1,"identifiers":["function=>"]}},"paramCount":2,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":13,"lineStart":13,"name":"","paramNames":["a","b"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":0.5,"effort":4,"length":4,"time":0.222,"vocabulary":4,"volume":8,"operands":{"distinct":3,"total":3,"identifiers":["b","a","args"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":13,"lineStart":13,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":300,"halstead":{"bugs":0.018,"difficulty":4.5,"effort":239.179,"length":16,"time":13.288,"vocabulary":10,"volume":53.151,"operands":{"distinct":4,"total":6,"identifiers":["obj","\"object\"","then","\"function\""]},"operators":{"distinct":6,"total":10,"identifiers":["return","&&","! (prefix)","===","typeof (prefix)","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":18,"lineStart":16,"name":"isPromiseLike","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.294,"cyclomaticDensity":2.03,"halstead":{"bugs":0.062,"difficulty":2.99,"effort":9475.244,"length":27.647,"time":526.402,"vocabulary":6.294,"volume":186.382,"operands":{"distinct":4.353,"total":13.412},"operators":{"distinct":1.941,"total":14.235}},"paramCount":1.353,"sloc":{"logical":6.647,"physical":8.882}},"methodAverage":{"cyclomatic":2.375,"cyclomaticDensity":57.809,"halstead":{"bugs":0.038,"difficulty":5.835,"effort":1086.275,"length":26.813,"time":60.349,"vocabulary":15.063,"volume":114.752,"operands":{"distinct":7.813,"total":12.375},"operators":{"distinct":7.25,"total":14.438}},"paramCount":1.438,"sloc":{"logical":6.25,"physical":11.75}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-runtime/src/utils/assert.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":100,"halstead":{"bugs":0.012,"difficulty":3.75,"effort":130.759,"length":11,"time":7.264,"vocabulary":9,"volume":34.869,"operands":{"distinct":4,"total":6,"identifiers":["assert","value","message","Error"]},"operators":{"distinct":5,"total":5,"identifiers":["function","if","! (prefix)","throw","new"]}},"paramCount":2,"sloc":{"logical":3,"physical":4}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":4,"lineStart":1,"maintainability":87.561,"methods":[{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.007,"difficulty":2,"effort":39.303,"length":7,"time":2.183,"vocabulary":7,"volume":19.651,"operands":{"distinct":3,"total":3,"identifiers":["value","Error","message"]},"operators":{"distinct":4,"total":4,"identifiers":["if","! (prefix)","throw","new"]}},"paramCount":2,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":3,"lineStart":1,"name":"assert","paramNames":["value","message"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":50,"halstead":{"bugs":0.006,"difficulty":1.875,"effort":65.38,"length":5.5,"time":3.632,"vocabulary":4.5,"volume":17.435,"operands":{"distinct":2,"total":3},"operators":{"distinct":2.5,"total":2.5}},"paramCount":1,"sloc":{"logical":1.5,"physical":2}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.007,"difficulty":2,"effort":39.303,"length":7,"time":2.183,"vocabulary":7,"volume":19.651,"operands":{"distinct":3,"total":3},"operators":{"distinct":4,"total":4}},"paramCount":2,"sloc":{"logical":2,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-runtime/src/utils/index.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":4}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./assert","type":"esm"}],"errors":[],"lineEnd":4,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":4}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/.eslintrc.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.034,"difficulty":3,"effort":306.56,"length":25,"time":17.031,"vocabulary":17,"volume":102.187,"operands":{"distinct":11,"total":11,"identifiers":["module","exports","extends","\"@webank/eslint-config-webank/vue.js\"","overrides","files","\"**/__tests__/*.{j,t}s?(x)\"","\"**/tests/unit/**/*.spec.{j,t}s?(x)\"","env","jest","true"]},"operators":{"distinct":6,"total":14,"identifiers":["=",".","{}",":","[]",","]}},"paramCount":0,"sloc":{"logical":6,"physical":15}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":15,"lineStart":1,"maintainability":71.575,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.034,"difficulty":3,"effort":306.56,"length":25,"time":17.031,"vocabulary":17,"volume":102.187,"operands":{"distinct":11,"total":11},"operators":{"distinct":6,"total":14}},"paramCount":0,"sloc":{"logical":6,"physical":15}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/.fes.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":1.818,"halstead":{"bugs":0.44,"difficulty":2.41,"effort":3182.659,"length":205,"time":176.814,"vocabulary":87,"volume":1320.803,"operands":{"distinct":83,"total":100,"identifiers":["exportStatic","define","__DEV__","false","publicPath","\"./\"","html","title","\"海贼王\"","router","mode","\"history\"","access","roles","admin","\"*\"","menuTest","\"/\"","\"/onepiece\"","\"/store\"","request","dataField","\"result\"","mock","prefix","\"/v2\"","proxy","target","\"https://api.douban.com/\"","changeOrigin","true","layout","\"Fes.js\"","footer","\"Created by MumbleFe\"","multiTabs","navigation","\"mixin\"","theme","\"light\"","menus","name","\"index\"","icon","\"/wine-outline.svg\"","\"onepiece\"","\"user\"","path","\"https://www.baidu.com\"","\"abcd\"","children","\"store\"","\"setting\"","\"test\"","\"editor\"","locale","legacy","devServer","port","8080","enums","status","\"0\"","\"无效的\"","\"1\"","\"有效的\"","vuex","strict","dynamicImport","extraBabelPlugins","\"import\"","libraryName","\"ant-design-vue\"","libraryDirectory","\"es\"","style","\"css\"","monacoEditor","languages","\"javascript\"","\"typescript\"","\"html\"","\"json\""]},"operators":{"distinct":4,"total":105,"identifiers":["{}",":","[]",","]}},"paramCount":0,"sloc":{"logical":55,"physical":94}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":94,"lineStart":1,"maintainability":45.905,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":1.818,"halstead":{"bugs":0.44,"difficulty":2.41,"effort":3182.659,"length":205,"time":176.814,"vocabulary":87,"volume":1320.803,"operands":{"distinct":83,"total":100},"operators":{"distinct":4,"total":105}},"paramCount":0,"sloc":{"logical":55,"physical":94}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/.fes.local.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0.5,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":1,"total":1,"identifiers":["{}"]}},"paramCount":0,"sloc":{"logical":0,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0.5,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":1,"total":1}},"paramCount":0,"sloc":{"logical":0,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/.fes.prod.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["publicPath","\"https://gw.alipayobjects.com/\""]},"operators":{"distinct":2,"total":2,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":1,"physical":7}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":7,"lineStart":1,"maintainability":95.841,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2},"operators":{"distinct":2,"total":2}},"paramCount":0,"sloc":{"logical":1,"physical":7}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/mock.js","report":{"aggregate":{"cyclomatic":11,"cyclomaticDensity":10,"halstead":{"bugs":0.848,"difficulty":11.767,"effort":29948.518,"length":363,"time":1663.807,"vocabulary":129,"volume":2545.075,"operands":{"distinct":116,"total":210,"identifiers":["cgiMock","mockjs","utils","Random","\"/movie/in_theaters_mock\"","req","res","send","JSON","stringify","code","\"0\"","msg","\"\"","result","text","\"movie: movie/in_theaters_mock ~~~~~\"","\"/movie/test_mock\"","\"mock: movie/test_mock\"","\"/watchtest\"","\"通过 register 测试 mock watch: 初始状态\"","\"/number\"","999","url","\"/json\"","\"400101\"","\"不合法的请求:Missing cookie 'wb_app_id' for method parameter of type String\"","transactionTime","\"20170309171146\"","success","false","\"/text\"","cparagraph","\"/random\"","mock","\"string|1-10\"","\"★\"","/\\/abc|\\/xyz/","\"regexp test!\"","/\\/function$/","\"function test\"","\"/file\"","file","\"./package.json\"","/\\/who/","method","\"GET\"","query","name","\"kwan\"","json","kwan","\"孤独患者\"","\"Nooooooooooo\"","headers","\"Content-Type\"","\"text/plain\"","\"Content-Length\"","\"123\"","ETag","\"12345\"","cookies","\"myname\"","value","maxAge","900000","httpOnly","true","\"/v2/audit/list\"","currentPage","pageSize","isAudited","body","data","totalPage","2","totalCount","12","pageData","Array","from","length","title","authorName","cname","authorId","createTime","Date","now","updateTime","readCount","integer","60","1000","favoriteCount","1","50","postId","\"12323\"","serviceTag","\"业务类型\"","productTag","\"产品类型\"","requestTag","\"需求类型\"","handleTag","\"已采纳\"","postType","\"voice\"","postStatus","\"pass\"","\"auditing\"","auditStatus","\"audit1\"","\"/v2/upload\"","\"文件上传成功\""]},"operators":{"distinct":13,"total":153,"identifiers":["function","{}","const","=","()","function=>",".",":","if","else","===","[]",":?"]}},"paramCount":15,"sloc":{"logical":110,"physical":131}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":131,"lineStart":1,"maintainability":59.948,"methods":[{"cyclomatic":2,"cyclomaticDensity":4.167,"halstead":{"bugs":0.325,"difficulty":8.475,"effort":8262.238,"length":158,"time":459.013,"vocabulary":72,"volume":974.848,"operands":{"distinct":61,"total":94,"identifiers":["Random","mockjs","cgiMock","\"/movie/in_theaters_mock\"","req","res","\"/movie/test_mock\"","\"/watchtest\"","\"/number\"","999","url","\"/json\"","result","code","\"400101\"","msg","\"不合法的请求:Missing cookie 'wb_app_id' for method parameter of type String\"","transactionTime","\"20170309171146\"","success","false","\"/text\"","cparagraph","\"/random\"","mock","\"string|1-10\"","\"★\"","/\\/abc|\\/xyz/","\"regexp test!\"","/\\/function$/","\"/file\"","utils","file","\"./package.json\"","/\\/who/","method","\"GET\"","query","name","\"kwan\"","json","kwan","\"孤独患者\"","send","\"Nooooooooooo\"","headers","\"Content-Type\"","\"text/plain\"","\"Content-Length\"","\"123\"","ETag","\"12345\"","cookies","\"myname\"","value","maxAge","900000","httpOnly","true","\"/v2/audit/list\"","\"/v2/upload\""]},"operators":{"distinct":11,"total":64,"identifiers":["const","=","{}","()","function=>",":",".","if","else","===","[]"]}},"paramCount":3,"sloc":{"logical":48,"physical":130},"errors":[],"lineEnd":130,"lineStart":1,"name":"","paramNames":["cgiMock","mockjs","utils"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.027,"difficulty":2,"effort":164.089,"length":21,"time":9.116,"vocabulary":15,"volume":82.045,"operands":{"distinct":11,"total":11,"identifiers":["res","send","JSON","stringify","code","\"0\"","msg","\"\"","result","text","\"movie: movie/in_theaters_mock ~~~~~\""]},"operators":{"distinct":4,"total":10,"identifiers":["()",".","{}",":"]}},"paramCount":2,"sloc":{"logical":6,"physical":9},"errors":[],"lineEnd":13,"lineStart":5,"name":"","paramNames":["req","res"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.027,"difficulty":2,"effort":164.089,"length":21,"time":9.116,"vocabulary":15,"volume":82.045,"operands":{"distinct":11,"total":11,"identifiers":["res","send","JSON","stringify","code","\"0\"","msg","\"\"","result","text","\"mock: movie/test_mock\""]},"operators":{"distinct":4,"total":10,"identifiers":["()",".","{}",":"]}},"paramCount":2,"sloc":{"logical":6,"physical":9},"errors":[],"lineEnd":22,"lineStart":14,"name":"","paramNames":["req","res"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.027,"difficulty":2,"effort":164.089,"length":21,"time":9.116,"vocabulary":15,"volume":82.045,"operands":{"distinct":11,"total":11,"identifiers":["res","send","JSON","stringify","code","\"0\"","msg","\"\"","result","text","\"通过 register 测试 mock watch: 初始状态\""]},"operators":{"distinct":4,"total":10,"identifiers":["()",".","{}",":"]}},"paramCount":2,"sloc":{"logical":6,"physical":9},"errors":[],"lineEnd":33,"lineStart":25,"name":"","paramNames":["req","res"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["res","send","\"function test\""]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":2,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":61,"lineStart":59,"name":"","paramNames":["req","res"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":6.25,"halstead":{"bugs":0.074,"difficulty":4.9,"effort":1095.051,"length":47,"time":60.836,"vocabulary":27,"volume":223.48,"operands":{"distinct":20,"total":28,"identifiers":["currentPage","pageSize","isAudited","req","body","res","send","code","\"0\"","msg","\"\"","data","totalPage","2","totalCount","12","pageData","Array","from","length"]},"operators":{"distinct":7,"total":19,"identifiers":["const","=","{}",".","()",":","function=>"]}},"paramCount":2,"sloc":{"logical":16,"physical":32},"errors":[],"lineEnd":121,"lineStart":90,"name":"","paramNames":["req","res"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":8.696,"halstead":{"bugs":0.131,"difficulty":3.071,"effort":1209.598,"length":74,"time":67.2,"vocabulary":40,"volume":393.823,"operands":{"distinct":35,"total":43,"identifiers":["title","Random","authorName","cname","authorId","name","createTime","Date","now","updateTime","readCount","integer","60","1000","favoriteCount","1","50","postId","\"12323\"","serviceTag","\"业务类型\"","productTag","\"产品类型\"","requestTag","\"需求类型\"","handleTag","\"已采纳\"","postType","\"voice\"","postStatus","isAudited","\"pass\"","\"auditing\"","auditStatus","\"audit1\""]},"operators":{"distinct":5,"total":31,"identifiers":["{}",":","()",".",":?"]}},"paramCount":0,"sloc":{"logical":23,"physical":17},"errors":[],"lineEnd":118,"lineStart":102,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.012,"difficulty":2,"effort":73.082,"length":11,"time":4.06,"vocabulary":10,"volume":36.541,"operands":{"distinct":6,"total":6,"identifiers":["res","send","code","\"0\"","msg","\"文件上传成功\""]},"operators":{"distinct":4,"total":5,"identifiers":["()",".","{}",":"]}},"paramCount":2,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":129,"lineStart":124,"name":"","paramNames":["req","res"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.222,"cyclomaticDensity":1.111,"halstead":{"bugs":0.094,"difficulty":1.307,"effort":3327.613,"length":40.333,"time":184.867,"vocabulary":14.333,"volume":282.786,"operands":{"distinct":12.889,"total":23.333},"operators":{"distinct":1.444,"total":17}},"paramCount":1.667,"sloc":{"logical":12.222,"physical":14.556}},"methodAverage":{"cyclomatic":1.25,"cyclomaticDensity":25.306,"halstead":{"bugs":0.079,"difficulty":3.181,"effort":1392.981,"length":44.75,"time":77.388,"vocabulary":24.875,"volume":235.804,"operands":{"distinct":19.75,"total":25.875},"operators":{"distinct":5.125,"total":18.875}},"paramCount":1.875,"sloc":{"logical":13.625,"physical":26.875}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/core/coreExports.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":19}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":19,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":19}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/core/plugin.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.055,"difficulty":3.5,"effort":577.705,"length":36,"time":32.095,"vocabulary":24,"volume":165.059,"operands":{"distinct":17,"total":17,"identifiers":["plugin","Plugin","validKeys","\"beforeRender\"","\"modifyClientRenderOpts\"","\"rootContainer\"","\"onAppCreated\"","\"render\"","\"patchRoutes\"","\"modifyCreateHistroy\"","\"onRouterCreated\"","\"access\"","\"layout\"","\"locale\"","\"request\"","\"qiankun\"","\"monacoEditor\""]},"operators":{"distinct":7,"total":19,"identifiers":["const","=","new","{}",":","[]",","]}},"paramCount":0,"sloc":{"logical":2,"physical":8}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"/Users/qlin/code/fes.js/packages/fes-runtime","type":"esm"}],"errors":[],"lineEnd":8,"lineStart":1,"maintainability":80.715,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.055,"difficulty":3.5,"effort":577.705,"length":36,"time":32.095,"vocabulary":24,"volume":165.059,"operands":{"distinct":17,"total":17},"operators":{"distinct":7,"total":19}},"paramCount":0,"sloc":{"logical":2,"physical":8}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/core/pluginExports.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":8}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":8,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":8}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/core/pluginRegister.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":4.167,"halstead":{"bugs":0.134,"difficulty":4.8,"effort":1936.688,"length":88,"time":107.594,"vocabulary":24,"volume":403.477,"operands":{"distinct":20,"total":48,"identifiers":["plugin","register","apply","Plugin_0","path","\"/Users/qlin/code/fes.js/packages/fes-template/src/app.js\"","Plugin_1","\"@@/core/routes/runtime.js\"","Plugin_2","\"@@/plugin-access/runtime.js\"","Plugin_3","\"@@/plugin-layout/runtime.js\"","Plugin_4","\"@@/plugin-locale/runtime.js\"","Plugin_5","\"@@/plugin-model/runtime.js\"","Plugin_6","\"@@/plugin-vuex/runtime.js\"","Plugin_7","\"@@/plugin-monaco-editor/runtime.js\""]},"operators":{"distinct":4,"total":40,"identifiers":["()",".","{}",":"]}},"paramCount":0,"sloc":{"logical":24,"physical":43}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./plugin","type":"esm"},{"line":2,"path":"/Users/qlin/code/fes.js/packages/fes-template/src/app.js","type":"esm"},{"line":3,"path":"@@/core/routes/runtime.js","type":"esm"},{"line":4,"path":"@@/plugin-access/runtime.js","type":"esm"},{"line":5,"path":"@@/plugin-layout/runtime.js","type":"esm"},{"line":6,"path":"@@/plugin-locale/runtime.js","type":"esm"},{"line":7,"path":"@@/plugin-model/runtime.js","type":"esm"},{"line":8,"path":"@@/plugin-vuex/runtime.js","type":"esm"},{"line":9,"path":"@@/plugin-monaco-editor/runtime.js","type":"esm"}],"errors":[],"lineEnd":43,"lineStart":1,"maintainability":54.755,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":4.167,"halstead":{"bugs":0.134,"difficulty":4.8,"effort":1936.688,"length":88,"time":107.594,"vocabulary":24,"volume":403.477,"operands":{"distinct":20,"total":48},"operators":{"distinct":4,"total":40}},"paramCount":0,"sloc":{"logical":24,"physical":43}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/core/routes/routes.js","report":{"aggregate":{"cyclomatic":17,"cyclomaticDensity":14.167,"halstead":{"bugs":0.678,"difficulty":18.022,"effort":36665.046,"length":320,"time":2036.947,"vocabulary":82,"volume":2034.417,"operands":{"distinct":67,"total":161,"identifiers":["getRoutes","routes","\"path\"","\"/\"","\"component\"","\"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-layout/index.js\"","\"children\"","\"/a/b\"","\"@/pages/a/b\"","\"name\"","\"a_b\"","\"meta\"","\"count\"","14","\"/editor\"","\"@/pages/editor\"","\"editor\"","\"title\"","\"monaco-editor\"","7","\"/onepiece\"","\"@/pages/onepiece\"","\"onepiece\"","\"/store\"","\"@/pages/store\"","\"store\"","\"vuex测试\"","\"/test\"","\"@/pages/test\"","\"test\"","\"侧事故\"","\"/b\"","\"@/pages/b/index\"","\"b_index\"","\"@/pages/index\"","\"index\"","\"home\"","5","ROUTER_BASE","\"\"","router","null","history","createRouter","createHistory","plugin","applyPlugins","key","\"modifyCreateHistroy\"","type","ApplyPluginsType","modify","args","base","initialValue","createWebHistory","\"patchRoutes\"","event","createVueRouter","\"onRouterCreated\"","getRouter","console","warn","[preset-build-in] router is null","getHistory","[preset-build-in] history is null","destroyRouter"]},"operators":{"distinct":15,"total":159,"identifiers":["function","const","=","[]","{}",":","function=>","()",",","return","let","if",".","! (prefix)","``"]}},"paramCount":1,"sloc":{"logical":120,"physical":134}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"/Users/qlin/code/fes.js/packages/fes-runtime","type":"esm"},{"line":2,"path":"@@/core/coreExports","type":"esm"}],"errors":[],"lineEnd":134,"lineStart":1,"maintainability":63.792,"methods":[{"cyclomatic":1,"cyclomaticDensity":1.724,"halstead":{"bugs":0.285,"difficulty":11.31,"effort":9662.997,"length":164,"time":536.833,"vocabulary":37,"volume":854.35,"operands":{"distinct":29,"total":82,"identifiers":["routes","\"path\"","\"/\"","\"component\"","\"children\"","\"/a/b\"","\"name\"","\"a_b\"","\"meta\"","\"count\"","14","\"/editor\"","\"editor\"","\"title\"","\"monaco-editor\"","7","\"/onepiece\"","\"onepiece\"","\"/store\"","\"store\"","\"vuex测试\"","\"/test\"","\"test\"","\"侧事故\"","\"/b\"","\"b_index\"","\"index\"","\"home\"","5"]},"operators":{"distinct":8,"total":82,"identifiers":["const","=","[]","{}",":","function=>",",","return"]}},"paramCount":0,"sloc":{"logical":58,"physical":75},"errors":[],"lineEnd":78,"lineStart":4,"name":"getRoutes","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["\"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-layout/index.js\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":8,"lineStart":8,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["\"@/pages/a/b\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":12,"lineStart":12,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["\"@/pages/editor\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":19,"lineStart":19,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["\"@/pages/onepiece\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":29,"lineStart":29,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["\"@/pages/store\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":39,"lineStart":39,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["\"@/pages/test\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":49,"lineStart":49,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["\"@/pages/b/index\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":59,"lineStart":59,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["\"@/pages/index\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":66,"lineStart":66,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":7.692,"halstead":{"bugs":0.13,"difficulty":9,"effort":3504.562,"length":81,"time":194.698,"vocabulary":28,"volume":389.396,"operands":{"distinct":20,"total":45,"identifiers":["router","createHistory","plugin","applyPlugins","key","\"modifyCreateHistroy\"","type","ApplyPluginsType","modify","args","base","ROUTER_BASE","initialValue","createWebHistory","history","\"patchRoutes\"","event","routes","createVueRouter","\"onRouterCreated\""]},"operators":{"distinct":8,"total":36,"identifiers":["if","return","const","=","()",".","{}",":"]}},"paramCount":1,"sloc":{"logical":26,"physical":32},"errors":[],"lineEnd":114,"lineStart":83,"name":"","paramNames":["routes"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.012,"difficulty":3.75,"effort":137.03,"length":11,"time":7.613,"vocabulary":10,"volume":36.541,"operands":{"distinct":4,"total":5,"identifiers":["router","console","warn","[preset-build-in] router is null"]},"operators":{"distinct":6,"total":6,"identifiers":["if","! (prefix)","()",".","``","return"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":121,"lineStart":116,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.012,"difficulty":3.75,"effort":137.03,"length":11,"time":7.613,"vocabulary":10,"volume":36.541,"operands":{"distinct":4,"total":5,"identifiers":["history","console","warn","[preset-build-in] history is null"]},"operators":{"distinct":6,"total":6,"identifiers":["if","! (prefix)","()",".","``","return"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":128,"lineStart":123,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":0.667,"effort":8,"length":6,"time":0.444,"vocabulary":4,"volume":12,"operands":{"distinct":3,"total":4,"identifiers":["router","null","history"]},"operators":{"distinct":1,"total":2,"identifiers":["="]}},"paramCount":0,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":133,"lineStart":130,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.214,"cyclomaticDensity":1.012,"halstead":{"bugs":0.048,"difficulty":1.287,"effort":2618.932,"length":22.857,"time":145.496,"vocabulary":5.857,"volume":145.315,"operands":{"distinct":4.786,"total":11.5},"operators":{"distinct":1.071,"total":11.357}},"paramCount":0.071,"sloc":{"logical":8.571,"physical":9.571}},"methodAverage":{"cyclomatic":1.231,"cyclomaticDensity":45.596,"halstead":{"bugs":0.034,"difficulty":2.498,"effort":1035.201,"length":22.231,"time":57.511,"vocabulary":8.077,"volume":103.448,"operands":{"distinct":5.231,"total":11.462},"operators":{"distinct":2.846,"total":10.769}},"paramCount":0.077,"sloc":{"logical":8.308,"physical":10.077}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/core/routes/runtime.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.019,"difficulty":4.5,"effort":258.117,"length":16,"time":14.34,"vocabulary":12,"volume":57.359,"operands":{"distinct":6,"total":9,"identifiers":["onAppCreated","app","routes","router","createRouter","use"]},"operators":{"distinct":6,"total":7,"identifiers":["function","{}","const","=","()","."]}},"paramCount":2,"sloc":{"logical":4,"physical":7}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./routes","type":"esm"}],"errors":[],"lineEnd":7,"lineStart":1,"maintainability":83.713,"methods":[{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.012,"difficulty":2.4,"effort":83.686,"length":11,"time":4.649,"vocabulary":9,"volume":34.869,"operands":{"distinct":5,"total":6,"identifiers":["router","createRouter","routes","app","use"]},"operators":{"distinct":4,"total":5,"identifiers":["const","=","()","."]}},"paramCount":2,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":6,"lineStart":3,"name":"onAppCreated","paramNames":["app","routes"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.01,"difficulty":2.25,"effort":129.059,"length":8,"time":7.17,"vocabulary":6,"volume":28.68,"operands":{"distinct":3,"total":4.5},"operators":{"distinct":3,"total":3.5}},"paramCount":1,"sloc":{"logical":2,"physical":3.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.012,"difficulty":2.4,"effort":83.686,"length":11,"time":4.649,"vocabulary":9,"volume":34.869,"operands":{"distinct":5,"total":6},"operators":{"distinct":4,"total":5}},"paramCount":2,"sloc":{"logical":3,"physical":4}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/fes.js","report":{"aggregate":{"cyclomatic":10,"cyclomaticDensity":12.048,"halstead":{"bugs":0.514,"difficulty":24.933,"effort":38450.612,"length":259,"time":2136.145,"vocabulary":62,"volume":1542.137,"operands":{"distinct":45,"total":132,"identifiers":["require","\"../global.css\"","renderClient","opts","plugin","routes","rootElement","initialState","rootContainer","applyPlugins","type","ApplyPluginsType","modify","key","\"rootContainer\"","initialValue","defineComponent","args","app","createApp","provide","\"initialState\"","\"onAppCreated\"","event","mount","beforeRender","beforeRenderConfig","\"beforeRender\"","loading","null","action","\"function\"","e","console","error","[fes] beforeRender执行出现异常:","unmount","getClientRender","\"render\"","compose","\"modifyClientRenderOpts\"","getRoutes","\"#app\"","defaultTitle","clientRender"]},"operators":{"distinct":17,"total":127,"identifiers":["()","const","=","function=>","{}",".",":","if","return","let","===","typeof (prefix)","try","catch","``","||","... (spread)"]}},"paramCount":3,"sloc":{"logical":83,"physical":93}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"windi.css","type":"esm"},{"line":6,"path":"vue","type":"esm"},{"line":7,"path":"./core/plugin","type":"esm"},{"line":8,"path":"./core/pluginRegister","type":"esm"},{"line":9,"path":"/Users/qlin/code/fes.js/packages/fes-runtime","type":"esm"},{"line":10,"path":"./core/routes/routes","type":"esm"},{"line":14,"path":"../global.css","type":"cjs"}],"errors":[],"lineEnd":93,"lineStart":1,"maintainability":59.141,"methods":[{"cyclomatic":2,"cyclomaticDensity":7.407,"halstead":{"bugs":0.137,"difficulty":9.818,"effort":4037.22,"length":83,"time":224.29,"vocabulary":31,"volume":411.198,"operands":{"distinct":22,"total":48,"identifiers":["plugin","routes","rootElement","initialState","opts","rootContainer","applyPlugins","type","ApplyPluginsType","modify","key","\"rootContainer\"","initialValue","defineComponent","args","app","createApp","provide","\"initialState\"","\"onAppCreated\"","event","mount"]},"operators":{"distinct":9,"total":35,"identifiers":["const","=","{}","()",".",":","function=>","if","return"]}},"paramCount":1,"sloc":{"logical":27,"physical":26},"errors":[],"lineEnd":41,"lineStart":16,"name":"","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0,"difficulty":0.5,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":1,"total":1,"identifiers":["function=>"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":21,"lineStart":21,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":21,"lineStart":21,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":10,"halstead":{"bugs":0.13,"difficulty":11.261,"effort":4399.723,"length":75,"time":244.429,"vocabulary":37,"volume":390.709,"operands":{"distinct":23,"total":37,"identifiers":["beforeRenderConfig","plugin","applyPlugins","key","\"beforeRender\"","type","ApplyPluginsType","modify","initialValue","loading","null","action","initialState","\"function\"","app","createApp","mount","rootElement","e","console","error","[fes] beforeRender执行出现异常:","unmount"]},"operators":{"distinct":14,"total":38,"identifiers":["const","=","()",".","{}",":","let","if","===","typeof (prefix)","try","catch","``","return"]}},"paramCount":1,"sloc":{"logical":20,"physical":23},"errors":[],"lineEnd":65,"lineStart":43,"name":"","paramNames":["rootElement"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.023,"difficulty":2.778,"effort":190.368,"length":18,"time":10.576,"vocabulary":14,"volume":68.532,"operands":{"distinct":9,"total":10,"identifiers":["plugin","applyPlugins","key","\"render\"","type","ApplyPluginsType","compose","initialValue","args"]},"operators":{"distinct":5,"total":8,"identifiers":["()",".","{}",":","function=>"]}},"paramCount":1,"sloc":{"logical":7,"physical":19},"errors":[],"lineEnd":85,"lineStart":67,"name":"","paramNames":["args"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":13.333,"halstead":{"bugs":0.079,"difficulty":6.944,"effort":1635.836,"length":49,"time":90.88,"vocabulary":28,"volume":235.56,"operands":{"distinct":18,"total":25,"identifiers":["opts","plugin","applyPlugins","key","\"modifyClientRenderOpts\"","type","ApplyPluginsType","modify","initialValue","routes","args","getRoutes","rootElement","\"#app\"","defaultTitle","initialState","beforeRender","renderClient"]},"operators":{"distinct":10,"total":24,"identifiers":["const","=","()",".","{}",":","||","``","return","... (spread)"]}},"paramCount":0,"sloc":{"logical":15,"physical":14},"errors":[],"lineEnd":83,"lineStart":70,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.429,"cyclomaticDensity":1.721,"halstead":{"bugs":0.073,"difficulty":3.562,"effort":5492.945,"length":37,"time":305.164,"vocabulary":8.857,"volume":220.305,"operands":{"distinct":6.429,"total":18.857},"operators":{"distinct":2.429,"total":18.143}},"paramCount":0.429,"sloc":{"logical":11.857,"physical":13.286}},"methodAverage":{"cyclomatic":1.5,"cyclomaticDensity":32.504,"halstead":{"bugs":0.061,"difficulty":5.217,"effort":1710.524,"length":37.667,"time":95.029,"vocabulary":18.5,"volume":184.333,"operands":{"distinct":12,"total":20},"operators":{"distinct":6.5,"total":17.667}},"paramCount":0.5,"sloc":{"logical":12,"physical":14}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-access/core.js","report":{"aggregate":{"cyclomatic":44,"cyclomaticDensity":30.769,"halstead":{"bugs":1.161,"difficulty":39.326,"effort":136982.721,"length":507,"time":7610.151,"vocabulary":117,"volume":3483.275,"operands":{"distinct":89,"total":250,"identifiers":["accessKey","Symbol","\"plugin-access\"","isPromise","obj","\"object\"","\"function\"","then","state","reactive","roles","\"admin\"","\"*\"","\"menuTest\"","\"/\"","\"/onepiece\"","\"/store\"","currentRoleId","\"\"","currentAccessIds","rolePromiseList","accessPromiseList","getAllowAccessIds","roleAccessIds","Array","isArray","length","0","concat","_syncSetAccessIds","promise","push","accessIds","setAccess","catch","e","console","error","index","indexOf","1","splice","isPlainObject","roleId","setRole","Error","\"[plugin-access]: argument to the setAccess() must be array or promise or object\"","_syncSetRoleId","\"string\"","\"[plugin-access]: argument to the setRole() must be string or promise\"","match","path","null","undefined","false","split","\"?\"","len","i","true","reg","RegExp","replace","\".+\"","^","$","test","isDataReady","hasAccess","Promise","all","install","app","allowPageIds","computed","useAccess","result","unref","value","provide","directive","\"access\"","createDirective","component","\"Access\"","createComponent","access","getAccess","inject"]},"operators":{"distinct":28,"total":257,"identifiers":["const","=","()","function","return","&&","! (prefix)","||","===","typeof (prefix)",".","{}",":","[]",",","function=>","if",">","!==","- (prefix)","throw","new","for","let","<","++ (postfix)","``","${}"]}},"paramCount":15,"sloc":{"logical":143,"physical":158}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"vue","type":"esm"},{"line":2,"path":"./createDirective","type":"esm"},{"line":3,"path":"./createComponent","type":"esm"},{"line":4,"path":"/Users/qlin/code/fes.js/node_modules/lodash-es","type":"esm"}],"errors":[],"lineEnd":158,"lineStart":1,"maintainability":63.239,"methods":[{"cyclomatic":4,"cyclomaticDensity":400,"halstead":{"bugs":0.024,"difficulty":7,"effort":508.536,"length":21,"time":28.252,"vocabulary":11,"volume":72.648,"operands":{"distinct":4,"total":8,"identifiers":["obj","\"object\"","\"function\"","then"]},"operators":{"distinct":7,"total":13,"identifiers":["return","&&","! (prefix)","||","===","typeof (prefix)","."]}},"paramCount":1,"sloc":{"logical":1,"physical":7},"errors":[],"lineEnd":14,"lineStart":8,"name":"isPromise","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":50,"halstead":{"bugs":0.048,"difficulty":7.65,"effort":1104.886,"length":34,"time":61.383,"vocabulary":19,"volume":144.43,"operands":{"distinct":10,"total":17,"identifiers":["roleAccessIds","state","roles","currentRoleId","Array","isArray","length","0","currentAccessIds","concat"]},"operators":{"distinct":9,"total":17,"identifiers":["const","=","[]",".","if","&&","()",">","return"]}},"paramCount":0,"sloc":{"logical":6,"physical":7},"errors":[],"lineEnd":31,"lineStart":25,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.022,"difficulty":1.929,"effort":128.132,"length":20,"time":7.118,"vocabulary":10,"volume":66.439,"operands":{"distinct":7,"total":9,"identifiers":["accessPromiseList","push","promise","then","accessIds","catch","e"]},"operators":{"distinct":3,"total":11,"identifiers":["()",".","function=>"]}},"paramCount":1,"sloc":{"logical":7,"physical":16},"errors":[],"lineEnd":48,"lineStart":33,"name":"","paramNames":["promise"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["setAccess","accessIds"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":38,"lineStart":36,"name":"","paramNames":["accessIds"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["console","error","e"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":41,"lineStart":39,"name":"","paramNames":["e"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.023,"difficulty":5.833,"effort":410.132,"length":19,"time":22.785,"vocabulary":13,"volume":70.308,"operands":{"distinct":6,"total":10,"identifiers":["index","accessPromiseList","indexOf","promise","1","splice"]},"operators":{"distinct":7,"total":9,"identifiers":["const","=","()",".","if","!==","- (prefix)"]}},"paramCount":0,"sloc":{"logical":4,"physical":6},"errors":[],"lineEnd":47,"lineStart":42,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":40,"halstead":{"bugs":0.069,"difficulty":7.385,"effort":1524.472,"length":47,"time":84.693,"vocabulary":21,"volume":206.439,"operands":{"distinct":13,"total":24,"identifiers":["isPromise","accessIds","_syncSetAccessIds","isPlainObject","setAccess","roleId","setRole","Array","isArray","Error","\"[plugin-access]: argument to the setAccess() must be array or promise or object\"","state","currentAccessIds"]},"operators":{"distinct":8,"total":23,"identifiers":["if","()","return",".","! (prefix)","throw","new","="]}},"paramCount":1,"sloc":{"logical":15,"physical":18},"errors":[],"lineEnd":67,"lineStart":50,"name":"","paramNames":["accessIds"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.022,"difficulty":1.929,"effort":128.132,"length":20,"time":7.118,"vocabulary":10,"volume":66.439,"operands":{"distinct":7,"total":9,"identifiers":["rolePromiseList","push","promise","then","roleId","catch","e"]},"operators":{"distinct":3,"total":11,"identifiers":["()",".","function=>"]}},"paramCount":1,"sloc":{"logical":7,"physical":16},"errors":[],"lineEnd":84,"lineStart":69,"name":"","paramNames":["promise"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["setRole","roleId"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":74,"lineStart":72,"name":"","paramNames":["roleId"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["console","error","e"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":77,"lineStart":75,"name":"","paramNames":["e"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.023,"difficulty":5.833,"effort":410.132,"length":19,"time":22.785,"vocabulary":13,"volume":70.308,"operands":{"distinct":6,"total":10,"identifiers":["index","rolePromiseList","indexOf","promise","1","splice"]},"operators":{"distinct":7,"total":9,"identifiers":["const","=","()",".","if","!==","- (prefix)"]}},"paramCount":0,"sloc":{"logical":4,"physical":6},"errors":[],"lineEnd":83,"lineStart":78,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":42.857,"halstead":{"bugs":0.03,"difficulty":6.188,"effort":556.406,"length":22,"time":30.911,"vocabulary":17,"volume":89.924,"operands":{"distinct":8,"total":11,"identifiers":["isPromise","roleId","_syncSetRoleId","\"string\"","Error","\"[plugin-access]: argument to the setRole() must be string or promise\"","state","currentRoleId"]},"operators":{"distinct":9,"total":11,"identifiers":["if","()","return","!==","typeof (prefix)","throw","new","=","."]}},"paramCount":1,"sloc":{"logical":7,"physical":9},"errors":[],"lineEnd":94,"lineStart":86,"name":"","paramNames":["roleId"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":9,"cyclomaticDensity":47.368,"halstead":{"bugs":0.164,"difficulty":16.646,"effort":8204.644,"length":92,"time":455.814,"vocabulary":41,"volume":492.895,"operands":{"distinct":24,"total":47,"identifiers":["path","null","undefined","false","Array","isArray","accessIds","length","0","split","\"?\"","\"\"","\"/\"","len","i","true","reg","RegExp","replace","\"*\"","\".+\"","^","$","test"]},"operators":{"distinct":17,"total":45,"identifiers":["if","||","===","return","! (prefix)","()",".","=","[]","const","for","let","<","++ (postfix)","new","``","${}"]}},"paramCount":2,"sloc":{"logical":19,"physical":25},"errors":[],"lineEnd":120,"lineStart":96,"name":"","paramNames":["path","accessIds"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":200,"halstead":{"bugs":0.007,"difficulty":2,"effort":41.359,"length":8,"time":2.298,"vocabulary":6,"volume":20.68,"operands":{"distinct":3,"total":4,"identifiers":["rolePromiseList","length","accessPromiseList"]},"operators":{"distinct":3,"total":4,"identifiers":["return","||","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":124,"lineStart":122,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":18.182,"halstead":{"bugs":0.032,"difficulty":3.333,"effort":317.28,"length":25,"time":17.627,"vocabulary":14,"volume":95.184,"operands":{"distinct":9,"total":12,"identifiers":["isDataReady","match","path","getAllowAccessIds","Promise","all","rolePromiseList","concat","accessPromiseList"]},"operators":{"distinct":5,"total":13,"identifiers":["if","! (prefix)","()","return","."]}},"paramCount":1,"sloc":{"logical":11,"physical":7},"errors":[],"lineEnd":132,"lineStart":126,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.047,"difficulty":3.393,"effort":475.616,"length":33,"time":26.423,"vocabulary":19,"volume":140.182,"operands":{"distinct":14,"total":19,"identifiers":["allowPageIds","computed","getAllowAccessIds","useAccess","path","app","provide","accessKey","directive","\"access\"","createDirective","component","\"Access\"","createComponent"]},"operators":{"distinct":5,"total":14,"identifiers":["const","=","()","function=>","."]}},"paramCount":1,"sloc":{"logical":9,"physical":12},"errors":[],"lineEnd":145,"lineStart":134,"name":"","paramNames":["app"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.007,"difficulty":3.75,"effort":84.221,"length":8,"time":4.679,"vocabulary":7,"volume":22.459,"operands":{"distinct":2,"total":3,"identifiers":["result","computed"]},"operators":{"distinct":5,"total":5,"identifiers":["const","=","()","function=>","return"]}},"paramCount":1,"sloc":{"logical":4,"physical":6},"errors":[],"lineEnd":141,"lineStart":136,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.009,"difficulty":1.5,"effort":40.5,"length":9,"time":2.25,"vocabulary":8,"volume":27,"operands":{"distinct":5,"total":5,"identifiers":["match","unref","path","allowPageIds","value"]},"operators":{"distinct":3,"total":4,"identifiers":["return","()","."]}},"paramCount":0,"sloc":{"logical":3,"physical":3},"errors":[],"lineEnd":139,"lineStart":137,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.005,"difficulty":1,"effort":13.932,"length":6,"time":0.774,"vocabulary":5,"volume":13.932,"operands":{"distinct":3,"total":3,"identifiers":["inject","accessKey","path"]},"operators":{"distinct":2,"total":3,"identifiers":["return","()"]}},"paramCount":1,"sloc":{"logical":3,"physical":3},"errors":[],"lineEnd":157,"lineStart":155,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.2,"cyclomaticDensity":1.538,"halstead":{"bugs":0.058,"difficulty":1.966,"effort":6849.136,"length":25.35,"time":380.508,"vocabulary":5.85,"volume":174.164,"operands":{"distinct":4.45,"total":12.5},"operators":{"distinct":1.4,"total":12.85}},"paramCount":0.75,"sloc":{"logical":7.15,"physical":7.9}},"methodAverage":{"cyclomatic":2.263,"cyclomaticDensity":75.25,"halstead":{"bugs":0.029,"difficulty":4.125,"effort":735.598,"length":21,"time":40.867,"vocabulary":12.105,"volume":85.894,"operands":{"distinct":6.895,"total":10.579},"operators":{"distinct":5.211,"total":10.421}},"paramCount":0.789,"sloc":{"logical":5.526,"physical":8.211}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-access/createComponent.js","report":{"aggregate":{"cyclomatic":5,"cyclomaticDensity":55.556,"halstead":{"bugs":0.048,"difficulty":9.167,"effort":1307.383,"length":33,"time":72.632,"vocabulary":20,"volume":142.624,"operands":{"distinct":9,"total":15,"identifiers":["createComponent","useAccess","props","slots","access","id","value","default","null"]},"operators":{"distinct":11,"total":18,"identifiers":["function","return","function=>","{}","const","=","()",".","if","||","! (prefix)"]}},"paramCount":3,"sloc":{"logical":9,"physical":8}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":8,"lineStart":1,"maintainability":77.139,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":1.5,"effort":17.414,"length":5,"time":0.967,"vocabulary":5,"volume":11.61,"operands":{"distinct":2,"total":2,"identifiers":["props","slots"]},"operators":{"distinct":3,"total":3,"identifiers":["return","function=>","{}"]}},"paramCount":1,"sloc":{"logical":2,"physical":7},"errors":[],"lineEnd":7,"lineStart":1,"name":"createComponent","paramNames":["useAccess"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":50,"halstead":{"bugs":0.033,"difficulty":5.5,"effort":550,"length":25,"time":30.556,"vocabulary":16,"volume":100,"operands":{"distinct":8,"total":11,"identifiers":["access","useAccess","props","id","value","slots","default","null"]},"operators":{"distinct":8,"total":14,"identifiers":["const","=","()",".","if","||","! (prefix)","return"]}},"paramCount":2,"sloc":{"logical":6,"physical":5},"errors":[],"lineEnd":6,"lineStart":2,"name":"","paramNames":["props","slots"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.667,"cyclomaticDensity":18.519,"halstead":{"bugs":0.016,"difficulty":3.056,"effort":435.794,"length":11,"time":24.211,"vocabulary":6.667,"volume":47.541,"operands":{"distinct":3,"total":5},"operators":{"distinct":3.667,"total":6}},"paramCount":1,"sloc":{"logical":3,"physical":2.667}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.019,"difficulty":3.5,"effort":283.707,"length":15,"time":15.762,"vocabulary":10.5,"volume":55.805,"operands":{"distinct":5,"total":6.5},"operators":{"distinct":5.5,"total":8.5}},"paramCount":1.5,"sloc":{"logical":4,"physical":6}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-access/createDirective.js","report":{"aggregate":{"cyclomatic":10,"cyclomaticDensity":24.39,"halstead":{"bugs":0.266,"difficulty":27.158,"effort":21661.832,"length":161,"time":1203.435,"vocabulary":31,"volume":797.626,"operands":{"distinct":19,"total":86,"identifiers":["cache","WeakMap","setDispaly","el","access","value","style","display","_display","\"none\"","createDirective","useAccess","ctx","watch","path","set","binding","get","unwatch"]},"operators":{"distinct":12,"total":75,"identifiers":["const","=","new","function=>","if","else",".","function","return","{}","||","()"]}},"paramCount":4,"sloc":{"logical":41,"physical":47}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"vue","type":"esm"}],"errors":[],"lineEnd":47,"lineStart":1,"maintainability":62.913,"methods":[{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.024,"difficulty":3.143,"effort":228.322,"length":21,"time":12.685,"vocabulary":11,"volume":72.648,"operands":{"distinct":7,"total":11,"identifiers":["access","value","el","style","display","_display","\"none\""]},"operators":{"distinct":4,"total":10,"identifiers":["if","else",".","="]}},"paramCount":2,"sloc":{"logical":4,"physical":7},"errors":[],"lineEnd":10,"lineStart":4,"name":"","paramNames":["el","access"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":16,"halstead":{"bugs":0.131,"difficulty":20,"effort":7839.459,"length":94,"time":435.526,"vocabulary":18,"volume":391.973,"operands":{"distinct":10,"total":50,"identifiers":["el","ctx","watch","path","cache","set","binding","get","unwatch","value"]},"operators":{"distinct":8,"total":44,"identifiers":["return","{}","const","=",".","function=>","()","if"]}},"paramCount":1,"sloc":{"logical":25,"physical":36},"errors":[],"lineEnd":46,"lineStart":11,"name":"createDirective","paramNames":["useAccess"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.037,"difficulty":5.833,"effort":653.333,"length":28,"time":36.296,"vocabulary":16,"volume":112,"operands":{"distinct":9,"total":15,"identifiers":["el","_display","style","display","access","useAccess","path","setDispaly","watch"]},"operators":{"distinct":7,"total":13,"identifiers":["=",".","||","const","()","return","function=>"]}},"paramCount":1,"sloc":{"logical":7,"physical":8},"errors":[],"lineEnd":22,"lineStart":15,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":0.5,"effort":4,"length":4,"time":0.222,"vocabulary":4,"volume":8,"operands":{"distinct":3,"total":3,"identifiers":["setDispaly","el","access"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":21,"lineStart":19,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":4.878,"halstead":{"bugs":0.053,"difficulty":5.432,"effort":4332.366,"length":32.2,"time":240.687,"vocabulary":6.2,"volume":159.525,"operands":{"distinct":3.8,"total":17.2},"operators":{"distinct":2.4,"total":15}},"paramCount":0.8,"sloc":{"logical":8.2,"physical":9.4}},"methodAverage":{"cyclomatic":2.25,"cyclomaticDensity":48.643,"halstead":{"bugs":0.049,"difficulty":7.369,"effort":2181.279,"length":36.75,"time":121.182,"vocabulary":12.25,"volume":146.155,"operands":{"distinct":7.25,"total":19.75},"operators":{"distinct":5,"total":17}},"paramCount":1,"sloc":{"logical":9.25,"physical":13.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-access/runtime.js","report":{"aggregate":{"cyclomatic":11,"cyclomaticDensity":30.556,"halstead":{"bugs":0.252,"difficulty":20,"effort":15134.56,"length":137,"time":840.809,"vocabulary":46,"volume":756.728,"operands":{"distinct":30,"total":75,"identifiers":["onRouterCreated","router","beforeEach","to","from","next","runtimeConfig","plugin","applyPlugins","key","\"access\"","type","ApplyPluginsType","modify","initialValue","matched","length","0","noFoundHandler","\"function\"","path","1","canRoute","access","hasAccess","unAccessHandler","false","onAppCreated","app","install"]},"operators":{"distinct":16,"total":62,"identifiers":["function","{}","()",".","function=>","const","=",":","if","===","&&","typeof (prefix)","return","let","else","[]"]}},"paramCount":5,"sloc":{"logical":36,"physical":40}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@@/core/coreExports","type":"esm"},{"line":2,"path":"./core","type":"esm"}],"errors":[],"lineEnd":40,"lineStart":1,"maintainability":62.116,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.008,"difficulty":1.5,"effort":36,"length":8,"time":2,"vocabulary":8,"volume":24,"operands":{"distinct":5,"total":5,"identifiers":["router","beforeEach","to","from","next"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","function=>"]}},"paramCount":1,"sloc":{"logical":2,"physical":32},"errors":[],"lineEnd":35,"lineStart":4,"name":"onRouterCreated","paramNames":["router"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":8,"cyclomaticDensity":25.806,"halstead":{"bugs":0.208,"difficulty":17.92,"effort":11176.3,"length":118,"time":620.906,"vocabulary":39,"volume":623.677,"operands":{"distinct":25,"total":64,"identifiers":["runtimeConfig","plugin","applyPlugins","key","\"access\"","type","ApplyPluginsType","modify","initialValue","to","matched","length","0","noFoundHandler","\"function\"","router","from","next","path","1","canRoute","access","hasAccess","unAccessHandler","false"]},"operators":{"distinct":14,"total":54,"identifiers":["const","=","()",".","{}",":","if","===","&&","typeof (prefix)","return","let","else","[]"]}},"paramCount":3,"sloc":{"logical":31,"physical":30},"errors":[],"lineEnd":34,"lineStart":5,"name":"","paramNames":["to","from","next"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["install","app"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":39,"lineStart":37,"name":"onAppCreated","paramNames":["app"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.75,"cyclomaticDensity":7.639,"halstead":{"bugs":0.063,"difficulty":5,"effort":3783.64,"length":34.25,"time":210.202,"vocabulary":11.5,"volume":189.182,"operands":{"distinct":7.5,"total":18.75},"operators":{"distinct":4,"total":15.5}},"paramCount":1.25,"sloc":{"logical":9,"physical":10}},"methodAverage":{"cyclomatic":3.333,"cyclomaticDensity":58.602,"halstead":{"bugs":0.072,"difficulty":6.64,"effort":3738.226,"length":43,"time":207.679,"vocabulary":16.667,"volume":217.477,"operands":{"distinct":10.667,"total":23.667},"operators":{"distinct":6,"total":19.333}},"paramCount":1.667,"sloc":{"logical":11.333,"physical":21.667}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-enums/core.js","report":{"aggregate":{"cyclomatic":44,"cyclomaticDensity":30.556,"halstead":{"bugs":1.491,"difficulty":64.367,"effort":287963.54,"length":661,"time":15997.974,"vocabulary":109,"volume":4473.77,"operands":{"distinct":79,"total":339,"identifiers":["_ENUMS","\"status\"","\"0\"","\"无效的\"","\"1\"","\"有效的\"","ENUMS","Object","keys","forEach","key","convert","get","name","opt","dir","'value'","extend","prototype","toString","call","\"[object Object]\"","null","list","value","undefined","res","filter","item","0","parseValueDir","format","\"object\"","readonly","remove","push","_enum","keyName","''","valueName","console","warn","enums warn: the ","'s enum already exists, cover!","concat","before","false","partList","length","map","_item","fItem","transfer","\"function\"","includes","\"value\"","startsWith","\"[\"","slice","1","indexOf","\"]\"","\".\"","index","_index","Math","min","Error","enums error: name must not be empty!","Array","isArray","enums error: the ","'s enum must be array!","\"key\"","enums warn: the key "," enum item[","] must be array or object!"," enum item already exists, cover!","enums"]},"operators":{"distinct":30,"total":322,"identifiers":["const","=","{}",":","[]",",","()",".","function=>","function","if","===","let","||","else","&&","!==","! (prefix)","return",":?","typeof (prefix)","delete (prefix)","``","${}","<=","... (spread)","+","- (prefix)","throw","new"]}},"paramCount":24,"sloc":{"logical":144,"physical":163}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"vue","type":"esm"}],"errors":[],"lineEnd":163,"lineStart":1,"maintainability":57.386,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.009,"difficulty":2.25,"effort":63.165,"length":10,"time":3.509,"vocabulary":7,"volume":28.074,"operands":{"distinct":4,"total":6,"identifiers":["ENUMS","key","convert","_ENUMS"]},"operators":{"distinct":3,"total":4,"identifiers":["=","[]","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":8,"lineStart":6,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":8,"cyclomaticDensity":42.105,"halstead":{"bugs":0.146,"difficulty":14.609,"effort":6408.665,"length":83,"time":356.037,"vocabulary":39,"volume":438.688,"operands":{"distinct":23,"total":42,"identifiers":["Object","prototype","toString","call","key","\"[object Object]\"","opt","null","list","ENUMS","name","value","undefined","res","filter","item","0","parseValueDir","dir","format","extend","\"object\"","readonly"]},"operators":{"distinct":16,"total":41,"identifiers":["if","===","()",".","=","let","||","[]","else","&&","!==","function=>","! (prefix)","return",":?","typeof (prefix)"]}},"paramCount":3,"sloc":{"logical":19,"physical":16},"errors":[],"lineEnd":31,"lineStart":16,"name":"get","paramNames":["name","key","opt"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1.5,"effort":15,"length":5,"time":0.833,"vocabulary":4,"volume":10,"operands":{"distinct":2,"total":3,"identifiers":["item","key"]},"operators":{"distinct":2,"total":2,"identifiers":["===","."]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":24,"lineStart":24,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["ENUMS","name"]},"operators":{"distinct":2,"total":2,"identifiers":["delete (prefix)","[]"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":39,"lineStart":37,"name":"remove","paramNames":["name"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.036,"difficulty":6,"effort":650.508,"length":26,"time":36.139,"vocabulary":18,"volume":108.418,"operands":{"distinct":10,"total":15,"identifiers":["ENUMS","name","console","warn","enums warn: the ","'s enum already exists, cover!","convert","_enum","opt","get"]},"operators":{"distinct":8,"total":11,"identifiers":["if","[]","()",".","``","${}","=","return"]}},"paramCount":3,"sloc":{"logical":6,"physical":7},"errors":[],"lineEnd":53,"lineStart":47,"name":"push","paramNames":["name","_enum","opt"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":33.333,"halstead":{"bugs":0.067,"difficulty":8.625,"effort":1742.652,"length":46,"time":96.814,"vocabulary":21,"volume":202.047,"operands":{"distinct":12,"total":23,"identifiers":["list","ENUMS","name","partList","convert","_enum","opt","before","concat","readonly","format","extend"]},"operators":{"distinct":9,"total":23,"identifiers":["let","=","||","[]","()","if","else",".","return"]}},"paramCount":3,"sloc":{"logical":12,"physical":10},"errors":[],"lineEnd":70,"lineStart":61,"name":"concat","paramNames":["name","_enum","opt"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":60,"halstead":{"bugs":0.023,"difficulty":5.333,"effort":365.506,"length":18,"time":20.306,"vocabulary":14,"volume":68.532,"operands":{"distinct":6,"total":8,"identifiers":["extend","length","0","_enum","map","item"]},"operators":{"distinct":8,"total":10,"identifiers":["if","||","! (prefix)","<=",".","return","()","function=>"]}},"paramCount":2,"sloc":{"logical":5,"physical":15},"errors":[],"lineEnd":91,"lineStart":77,"name":"format","paramNames":["_enum","extend"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.017,"difficulty":4.8,"effort":248.67,"length":14,"time":13.815,"vocabulary":13,"volume":51.806,"operands":{"distinct":5,"total":6,"identifiers":["_item","item","extend","forEach","fItem"]},"operators":{"distinct":8,"total":8,"identifiers":["let","=","{}","... (spread)","()",".","function=>","return"]}},"paramCount":1,"sloc":{"logical":4,"physical":12},"errors":[],"lineEnd":90,"lineStart":79,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":37.5,"halstead":{"bugs":0.055,"difficulty":10.556,"effort":1748.73,"length":39,"time":97.152,"vocabulary":19,"volume":165.669,"operands":{"distinct":9,"total":19,"identifiers":["fItem","key","transfer","\"function\"","_item","item","parseValueDir","value","dir"]},"operators":{"distinct":10,"total":20,"identifiers":["if","! (prefix)",".","return","else","===","typeof (prefix)","=","[]","()"]}},"paramCount":1,"sloc":{"logical":8,"physical":8},"errors":[],"lineEnd":88,"lineStart":81,"name":"","paramNames":["fItem"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":9,"cyclomaticDensity":28.125,"halstead":{"bugs":0.236,"difficulty":24.643,"effort":17454.036,"length":137,"time":969.669,"vocabulary":36,"volume":708.28,"operands":{"distinct":21,"total":69,"identifiers":["\"object\"","\"function\"","includes","value","dir","\"value\"","startsWith","\"[\"","key","slice","1","indexOf","\"]\"","parseValueDir","\".\"","index","_index","length","Math","min","0"]},"operators":{"distinct":15,"total":68,"identifiers":["if","||","! (prefix)","()",".","[]",",","typeof (prefix)","===","return","else","let","=","+","- (prefix)"]}},"paramCount":2,"sloc":{"logical":32,"physical":18},"errors":[],"lineEnd":115,"lineStart":98,"name":"parseValueDir","paramNames":["value","dir"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.056,"difficulty":8.667,"effort":1448.883,"length":36,"time":80.494,"vocabulary":25,"volume":167.179,"operands":{"distinct":12,"total":16,"identifiers":["name","Error","enums error: name must not be empty!","Array","isArray","_enum","enums error: the ","'s enum must be array!","list","forEach","item","index"]},"operators":{"distinct":13,"total":20,"identifiers":["if","! (prefix)","throw","new","``","()",".","${}","let","=","[]","function=>","return"]}},"paramCount":3,"sloc":{"logical":9,"physical":33},"errors":[],"lineEnd":155,"lineStart":123,"name":"convert","paramNames":["name","_enum","opt"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":24,"halstead":{"bugs":0.214,"difficulty":16.552,"effort":10635.258,"length":117,"time":590.848,"vocabulary":45,"volume":642.547,"operands":{"distinct":29,"total":60,"identifiers":["_item","Array","isArray","item","key","0","value","1","Object","prototype","toString","call","\"[object Object]\"","opt","keyName","\"key\"","valueName","console","warn","name","index","enums warn: the key "," enum item[","] must be array or object!","res","list","filter"," enum item already exists, cover!","push"]},"operators":{"distinct":16,"total":57,"identifiers":["let","if","else","()",".","=","{}",":","[]","===","! (prefix)",":?","``","${}","return","function=>"]}},"paramCount":2,"sloc":{"logical":25,"physical":23},"errors":[],"lineEnd":153,"lineStart":131,"name":"","paramNames":["item","index"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":1.333,"effort":21.671,"length":7,"time":1.204,"vocabulary":5,"volume":16.253,"operands":{"distinct":3,"total":4,"identifiers":["item","key","_item"]},"operators":{"distinct":2,"total":3,"identifiers":["===","."]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":146,"lineStart":146,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3.143,"cyclomaticDensity":2.183,"halstead":{"bugs":0.107,"difficulty":4.598,"effort":20568.824,"length":47.214,"time":1142.712,"vocabulary":7.786,"volume":319.555,"operands":{"distinct":5.643,"total":24.214},"operators":{"distinct":2.143,"total":23}},"paramCount":1.714,"sloc":{"logical":10.286,"physical":11.643}},"methodAverage":{"cyclomatic":3.308,"cyclomaticDensity":51.287,"halstead":{"bugs":0.067,"difficulty":8.144,"effort":3139.288,"length":41.692,"time":174.405,"vocabulary":19.231,"volume":201.192,"operands":{"distinct":10.615,"total":21},"operators":{"distinct":8.615,"total":20.692}},"paramCount":1.846,"sloc":{"logical":9.615,"physical":11.538}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-layout/helpers/pluginAccess.js","report":{"aggregate":{"cyclomatic":17,"cyclomaticDensity":47.222,"halstead":{"bugs":0.241,"difficulty":21.12,"effort":15275.452,"length":135,"time":848.636,"vocabulary":41,"volume":723.27,"operands":{"distinct":25,"total":66,"identifiers":["useAccess","Error","\"[plugin-layout]: pLugin-layout depends on plugin-access,please install plugin-access first!\"","hasAccessByMenuItem","item","res","path","children","length","0","computed","some","child","rst","value","_addAccessTag","arr","Array","isArray","forEach","access","transform","menus","originData","unref"]},"operators":{"distinct":16,"total":69,"identifiers":["if","! (prefix)","throw","new","const","=","function=>","let","else","&&",".","||","===","()",">","return"]}},"paramCount":5,"sloc":{"logical":36,"physical":41}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"vue","type":"esm"},{"line":3,"path":"../../plugin-access/core","type":"esm"}],"errors":[],"lineEnd":41,"lineStart":1,"maintainability":68.591,"methods":[{"cyclomatic":6,"cyclomaticDensity":60,"halstead":{"bugs":0.067,"difficulty":17.875,"effort":3611.583,"length":46,"time":200.644,"vocabulary":21,"volume":202.047,"operands":{"distinct":8,"total":22,"identifiers":["res","item","path","children","length","0","useAccess","computed"]},"operators":{"distinct":13,"total":24,"identifiers":["let","if","else","&&",".","||","! (prefix)","===","=","()",">","function=>","return"]}},"paramCount":1,"sloc":{"logical":10,"physical":12},"errors":[],"lineEnd":22,"lineStart":11,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":33.688,"length":8,"time":1.872,"vocabulary":7,"volume":22.459,"operands":{"distinct":4,"total":4,"identifiers":["item","children","some","child"]},"operators":{"distinct":3,"total":4,"identifiers":["()",".","function=>"]}},"paramCount":0,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":19,"lineStart":16,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.013,"difficulty":4.5,"effort":179.384,"length":12,"time":9.966,"vocabulary":10,"volume":39.863,"operands":{"distinct":4,"total":6,"identifiers":["rst","hasAccessByMenuItem","child","value"]},"operators":{"distinct":6,"total":6,"identifiers":["const","=","()","return","&&","."]}},"paramCount":1,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":19,"lineStart":16,"name":"","paramNames":["child"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.013,"difficulty":2.4,"effort":91.294,"length":12,"time":5.072,"vocabulary":9,"volume":38.039,"operands":{"distinct":5,"total":6,"identifiers":["Array","isArray","arr","forEach","item"]},"operators":{"distinct":4,"total":6,"identifiers":["if","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":4,"physical":10},"errors":[],"lineEnd":33,"lineStart":24,"name":"","paramNames":["arr"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":75,"halstead":{"bugs":0.03,"difficulty":5.571,"effort":494.802,"length":24,"time":27.489,"vocabulary":13,"volume":88.811,"operands":{"distinct":7,"total":13,"identifiers":["item","access","hasAccessByMenuItem","children","length","0","_addAccessTag"]},"operators":{"distinct":6,"total":11,"identifiers":["=",".","()","if","&&",">"]}},"paramCount":1,"sloc":{"logical":4,"physical":6},"errors":[],"lineEnd":31,"lineStart":26,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.011,"difficulty":3,"effort":99,"length":11,"time":5.5,"vocabulary":8,"volume":33,"operands":{"distinct":4,"total":6,"identifiers":["originData","unref","menus","_addAccessTag"]},"operators":{"distinct":4,"total":5,"identifiers":["const","=","()","return"]}},"paramCount":1,"sloc":{"logical":4,"physical":6},"errors":[],"lineEnd":40,"lineStart":35,"name":"","paramNames":["menus"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.429,"cyclomaticDensity":6.746,"halstead":{"bugs":0.034,"difficulty":3.017,"effort":2182.207,"length":19.286,"time":121.234,"vocabulary":5.857,"volume":103.324,"operands":{"distinct":3.571,"total":9.429},"operators":{"distinct":2.286,"total":9.857}},"paramCount":0.714,"sloc":{"logical":5.143,"physical":5.857}},"methodAverage":{"cyclomatic":2.5,"cyclomaticDensity":51.667,"halstead":{"bugs":0.024,"difficulty":5.808,"effort":751.625,"length":18.833,"time":41.757,"vocabulary":11.333,"volume":70.703,"operands":{"distinct":5.333,"total":9.5},"operators":{"distinct":6,"total":9.333}},"paramCount":0.833,"sloc":{"logical":4.667,"physical":7}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-layout/helpers/pluginLocale.js","report":{"aggregate":{"cyclomatic":11,"cyclomaticDensity":34.375,"halstead":{"bugs":0.175,"difficulty":10.625,"effort":5567.592,"length":103,"time":309.311,"vocabulary":34,"volume":524.009,"operands":{"distinct":24,"total":51,"identifiers":["transTitle","name","sharedLocale","plugin","getShared","\"locale\"","t","useI18n","_transform","arr","Array","isArray","forEach","item","title","_title","computed","children","length","0","transform","menus","originData","unref"]},"operators":{"distinct":10,"total":52,"identifiers":["const","=","function=>","()",".","if","{}","return","&&",">"]}},"paramCount":4,"sloc":{"logical":32,"physical":34}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"vue","type":"esm"},{"line":2,"path":"@@/core/coreExports","type":"esm"}],"errors":[],"lineEnd":34,"lineStart":1,"maintainability":70.121,"methods":[{"cyclomatic":2,"cyclomaticDensity":22.222,"halstead":{"bugs":0.032,"difficulty":6,"effort":571.103,"length":25,"time":31.728,"vocabulary":14,"volume":95.184,"operands":{"distinct":7,"total":12,"identifiers":["sharedLocale","plugin","getShared","\"locale\"","t","useI18n","name"]},"operators":{"distinct":7,"total":13,"identifiers":["const","=","()",".","if","{}","return"]}},"paramCount":1,"sloc":{"logical":9,"physical":8},"errors":[],"lineEnd":12,"lineStart":5,"name":"","paramNames":["name"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.013,"difficulty":2.4,"effort":91.294,"length":12,"time":5.072,"vocabulary":9,"volume":38.039,"operands":{"distinct":5,"total":6,"identifiers":["Array","isArray","arr","forEach","item"]},"operators":{"distinct":4,"total":6,"identifiers":["if","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":4,"physical":13},"errors":[],"lineEnd":27,"lineStart":15,"name":"","paramNames":["arr"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":57.143,"halstead":{"bugs":0.046,"difficulty":7.875,"effort":1076.837,"length":35,"time":59.824,"vocabulary":15,"volume":136.741,"operands":{"distinct":8,"total":18,"identifiers":["item","title","_title","computed","children","length","0","_transform"]},"operators":{"distinct":7,"total":17,"identifiers":["if",".","=","()","function=>","&&",">"]}},"paramCount":1,"sloc":{"logical":7,"physical":9},"errors":[],"lineEnd":25,"lineStart":17,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["transTitle","item","_title"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":20,"lineStart":20,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.011,"difficulty":3,"effort":99,"length":11,"time":5.5,"vocabulary":8,"volume":33,"operands":{"distinct":4,"total":6,"identifiers":["originData","unref","menus","_transform"]},"operators":{"distinct":4,"total":5,"identifiers":["const","=","()","return"]}},"paramCount":1,"sloc":{"logical":4,"physical":5},"errors":[],"lineEnd":33,"lineStart":29,"name":"","paramNames":["menus"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.833,"cyclomaticDensity":5.729,"halstead":{"bugs":0.029,"difficulty":1.771,"effort":927.932,"length":17.167,"time":51.552,"vocabulary":5.667,"volume":87.335,"operands":{"distinct":4,"total":8.5},"operators":{"distinct":1.667,"total":8.667}},"paramCount":0.667,"sloc":{"logical":5.333,"physical":5.667}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":40.873,"halstead":{"bugs":0.021,"difficulty":4.055,"effort":369.969,"length":17.6,"time":20.554,"vocabulary":10.2,"volume":62.915,"operands":{"distinct":5.4,"total":9},"operators":{"distinct":4.8,"total":8.6}},"paramCount":0.8,"sloc":{"logical":5.2,"physical":7.2}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-layout/helpers/svg.js","report":{"aggregate":{"cyclomatic":16,"cyclomaticDensity":43.243,"halstead":{"bugs":0.351,"difficulty":28,"effort":29488.044,"length":183,"time":1638.225,"vocabulary":54,"volume":1053.144,"operands":{"distinct":33,"total":88,"identifiers":["isStr","str","\"string\"","isValid","elm","nodeType","1","nodeName","toLowerCase","\"script\"","false","i","0","attributes","length","val","value","indexOf","\"on\"","childNodes","true","validateContent","svgContent","div","document","createElement","\"div\"","innerHTML","\"svg\"","removeChild","svgElm","firstElementChild","\"\""]},"operators":{"distinct":21,"total":95,"identifiers":["const","=","function","return","===","typeof (prefix)","function=>","if",".","()","for","let","<","++ (postfix)","[]","&&","! (prefix)","-",">=","-- (postfix)","!=="]}},"paramCount":3,"sloc":{"logical":37,"physical":50}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":50,"lineStart":1,"maintainability":60.303,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1.5,"effort":17.414,"length":5,"time":0.967,"vocabulary":5,"volume":11.61,"operands":{"distinct":2,"total":2,"identifiers":["str","\"string\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","typeof (prefix)"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":3,"lineStart":1,"name":"","paramNames":["str"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":8,"cyclomaticDensity":50,"halstead":{"bugs":0.143,"difficulty":15.105,"effort":6476.737,"length":85,"time":359.819,"vocabulary":33,"volume":428.774,"operands":{"distinct":19,"total":41,"identifiers":["elm","nodeType","1","nodeName","toLowerCase","\"script\"","false","i","0","attributes","length","val","value","isStr","indexOf","\"on\"","childNodes","isValid","true"]},"operators":{"distinct":14,"total":44,"identifiers":["if","===",".","()","return","for","let","=","<","++ (postfix)","const","[]","&&","! (prefix)"]}},"paramCount":1,"sloc":{"logical":16,"physical":21},"errors":[],"lineEnd":25,"lineStart":5,"name":"","paramNames":["elm"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":42.857,"halstead":{"bugs":0.132,"difficulty":15.395,"effort":6108.972,"length":78,"time":339.387,"vocabulary":34,"volume":396.822,"operands":{"distinct":19,"total":39,"identifiers":["div","document","createElement","\"div\"","innerHTML","svgContent","i","childNodes","length","1","0","nodeName","toLowerCase","\"svg\"","removeChild","svgElm","firstElementChild","isValid","\"\""]},"operators":{"distinct":15,"total":39,"identifiers":["const","=","()",".","for","let","-",">=","-- (postfix)","if","!==","[]","&&","===","return"]}},"paramCount":1,"sloc":{"logical":14,"physical":23},"errors":[],"lineEnd":49,"lineStart":27,"name":"","paramNames":["svgContent"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":4,"cyclomaticDensity":10.811,"halstead":{"bugs":0.088,"difficulty":7,"effort":7372.011,"length":45.75,"time":409.556,"vocabulary":13.5,"volume":263.286,"operands":{"distinct":8.25,"total":22},"operators":{"distinct":5.25,"total":23.75}},"paramCount":0.75,"sloc":{"logical":9.25,"physical":12.5}},"methodAverage":{"cyclomatic":5,"cyclomaticDensity":64.286,"halstead":{"bugs":0.093,"difficulty":10.667,"effort":4201.041,"length":56,"time":233.391,"vocabulary":24,"volume":279.068,"operands":{"distinct":13.333,"total":27.333},"operators":{"distinct":10.667,"total":28.667}},"paramCount":1,"sloc":{"logical":10.333,"physical":15.667}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-layout/icons.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.001,"difficulty":1,"effort":3,"length":3,"time":0.167,"vocabulary":2,"volume":3,"operands":{"distinct":1,"total":2,"identifiers":["UserOutlined"]},"operators":{"distinct":1,"total":1,"identifiers":["{}"]}},"paramCount":0,"sloc":{"logical":1,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"@ant-design/icons-vue/es/icons/UserOutlined","type":"esm"}],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":97.803,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.001,"difficulty":1,"effort":3,"length":3,"time":0.167,"vocabulary":2,"volume":3,"operands":{"distinct":1,"total":2},"operators":{"distinct":1,"total":1}},"paramCount":0,"sloc":{"logical":1,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-layout/index.js","report":{"aggregate":{"cyclomatic":7,"cyclomaticDensity":12.281,"halstead":{"bugs":0.356,"difficulty":9.368,"effort":10014.765,"length":175,"time":556.376,"vocabulary":69,"volume":1068.992,"operands":{"distinct":57,"total":89,"identifiers":["userConfig","reactive","\"title\"","\"Fes.js\"","\"footer\"","\"Created by MumbleFe\"","\"multiTabs\"","false","\"navigation\"","\"mixin\"","\"theme\"","\"light\"","\"menus\"","\"name\"","\"index\"","\"icon\"","\"/wine-outline.svg\"","\"home\"","\"path\"","\"/\"","\"onepiece\"","\"type\"","\"UserOutlined\"","\"https://www.baidu.com\"","\"abcd\"","\"children\"","\"store\"","\"vuex测试\"","\"/store\"","\"setting\"","\"test\"","\"侧事故\"","\"/test\"","\"editor\"","\"monaco-editor\"","\"/editor\"","Layout","defineComponent","name","\"Layout\"","runtimeConfig","plugin","applyPlugins","key","\"layout\"","type","ApplyPluginsType","modify","initialValue","localeShared","getShared","\"locale\"","slots","customHeader","null","locale","true"]},"operators":{"distinct":12,"total":86,"identifiers":["const","=","()","{}",":","[]",",",".","return","function=>","if",":?"]}},"paramCount":0,"sloc":{"logical":57,"physical":39}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"vue","type":"esm"},{"line":2,"path":"@@/core/coreExports","type":"esm"},{"line":3,"path":"./views/BaseLayout.vue","type":"esm"}],"errors":[],"lineEnd":39,"lineStart":1,"maintainability":58.852,"methods":[{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.022,"difficulty":4,"effort":258.9,"length":17,"time":14.383,"vocabulary":14,"volume":64.725,"operands":{"distinct":7,"total":8,"identifiers":["slots","customHeader","locale","localeShared","true","false","userConfig"]},"operators":{"distinct":7,"total":9,"identifiers":["const","=","{}",":","function=>","return",":?"]}},"paramCount":0,"sloc":{"logical":6,"physical":19},"errors":[],"lineEnd":34,"lineStart":16,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.006,"difficulty":1.5,"effort":27.142,"length":7,"time":1.508,"vocabulary":6,"volume":18.095,"operands":{"distinct":3,"total":3,"identifiers":["runtimeConfig","customHeader","null"]},"operators":{"distinct":3,"total":4,"identifiers":["if",".","return"]}},"paramCount":0,"sloc":{"logical":3,"physical":8},"errors":[],"lineEnd":25,"lineStart":18,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.003,"difficulty":1,"effort":10,"length":5,"time":0.556,"vocabulary":4,"volume":10,"operands":{"distinct":2,"total":2,"identifiers":["localeShared","null"]},"operators":{"distinct":2,"total":3,"identifiers":["if","return"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":31,"lineStart":26,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.75,"cyclomaticDensity":3.07,"halstead":{"bugs":0.089,"difficulty":2.342,"effort":2503.691,"length":43.75,"time":139.094,"vocabulary":17.25,"volume":267.248,"operands":{"distinct":14.25,"total":22.25},"operators":{"distinct":3,"total":21.5}},"paramCount":0,"sloc":{"logical":14.25,"physical":9.75}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":55.556,"halstead":{"bugs":0.01,"difficulty":2.167,"effort":98.681,"length":9.667,"time":5.482,"vocabulary":8,"volume":30.94,"operands":{"distinct":4,"total":4.333},"operators":{"distinct":4,"total":5.333}},"paramCount":0,"sloc":{"logical":4,"physical":11}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-layout/runtime.js","report":{"aggregate":{"cyclomatic":12,"cyclomaticDensity":17.143,"halstead":{"bugs":0.469,"difficulty":30.817,"effort":43323.873,"length":238,"time":2406.882,"vocabulary":60,"volume":1405.84,"operands":{"distinct":41,"total":133,"identifiers":["accessApi","Error","\"[plugin-layout]: pLugin-layout depends on plugin-access,please install plugin-access first!\"","handle","type","router","accesssIds","getAccess","path","/","name","Exception","components","404","Exception404","403","Exception403","includes","setAccess","concat","hasRoute","addRoute","component","access","memo","to","from","next","runtimeConfig","plugin","applyPlugins","key","\"layout\"","ApplyPluginsType","modify","initialValue","unAccessHandler","\"function\"","\"/404\"","\"/403\"","noFoundHandler"]},"operators":{"distinct":19,"total":105,"identifiers":["if","! (prefix)","throw","new","const","=","function=>","()",".","``","${}","{}",":","[]","&&","===","typeof (prefix)","return","... (spread)"]}},"paramCount":3,"sloc":{"logical":70,"physical":72}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@@/core/coreExports","type":"esm"},{"line":3,"path":"../plugin-access/core","type":"esm"},{"line":4,"path":"./views/404","type":"esm"},{"line":5,"path":"./views/403","type":"esm"}],"errors":[],"lineEnd":72,"lineStart":1,"maintainability":50.193,"methods":[{"cyclomatic":3,"cyclomaticDensity":17.647,"halstead":{"bugs":0.114,"difficulty":9.35,"effort":3196.2,"length":69,"time":177.567,"vocabulary":31,"volume":341.84,"operands":{"distinct":20,"total":34,"identifiers":["accesssIds","accessApi","getAccess","path","type","/","name","Exception","components","404","Exception404","403","Exception403","includes","setAccess","concat","router","hasRoute","addRoute","component"]},"operators":{"distinct":11,"total":35,"identifiers":["const","=","()",".","``","${}","{}",":","if","! (prefix)","[]"]}},"paramCount":2,"sloc":{"logical":17,"physical":15},"errors":[],"lineEnd":27,"lineStart":13,"name":"","paramNames":["type","router"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":7,"cyclomaticDensity":14.894,"halstead":{"bugs":0.258,"difficulty":23.739,"effort":18386.473,"length":151,"time":1021.471,"vocabulary":35,"volume":774.522,"operands":{"distinct":23,"total":91,"identifiers":["router","to","from","next","runtimeConfig","plugin","applyPlugins","key","\"layout\"","type","ApplyPluginsType","modify","initialValue","unAccessHandler","\"function\"","path","\"/404\"","handle","404","403","\"/403\"","noFoundHandler","memo"]},"operators":{"distinct":12,"total":60,"identifiers":["{}","const","=","()",".",":","if","&&","===","typeof (prefix)","return","... (spread)"]}},"paramCount":1,"sloc":{"logical":47,"physical":43},"errors":[],"lineEnd":71,"lineStart":29,"name":"","paramNames":["memo"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":4,"cyclomaticDensity":5.714,"halstead":{"bugs":0.156,"difficulty":10.272,"effort":14441.291,"length":79.333,"time":802.294,"vocabulary":20,"volume":468.613,"operands":{"distinct":13.667,"total":44.333},"operators":{"distinct":6.333,"total":35}},"paramCount":1,"sloc":{"logical":23.333,"physical":24}},"methodAverage":{"cyclomatic":5,"cyclomaticDensity":16.27,"halstead":{"bugs":0.186,"difficulty":16.545,"effort":10791.336,"length":110,"time":599.519,"vocabulary":33,"volume":558.181,"operands":{"distinct":21.5,"total":62.5},"operators":{"distinct":11.5,"total":47.5}},"paramCount":1.5,"sloc":{"logical":32,"physical":29}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-layout/views/403.vue","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":18.182,"halstead":{"bugs":0.041,"difficulty":7,"effort":868,"length":31,"time":48.222,"vocabulary":16,"volume":124,"operands":{"distinct":8,"total":14,"identifiers":["components","Result","name","Button","router","useRouter","click","back"]},"operators":{"distinct":8,"total":17,"identifiers":["{}",":",".","const","=","()","function=>","return"]}},"paramCount":0,"sloc":{"logical":11,"physical":23}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"@@/core/coreExports","type":"esm"},{"line":3,"path":"ant-design-vue/lib/result","type":"esm"},{"line":4,"path":"ant-design-vue/lib/result/style/css","type":"esm"},{"line":5,"path":"ant-design-vue/lib/button","type":"esm"},{"line":6,"path":"ant-design-vue/lib/button/style/css","type":"esm"}],"errors":[],"lineEnd":23,"lineStart":1,"maintainability":71.704,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["router","back"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":17,"lineStart":15,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":9.091,"halstead":{"bugs":0.021,"difficulty":3.5,"effort":434,"length":15.5,"time":24.111,"vocabulary":8,"volume":62,"operands":{"distinct":4,"total":7},"operators":{"distinct":4,"total":8.5}},"paramCount":0,"sloc":{"logical":5.5,"physical":11.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2},"operators":{"distinct":2,"total":2}},"paramCount":0,"sloc":{"logical":1,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-layout/views/404.vue","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":18.182,"halstead":{"bugs":0.041,"difficulty":7,"effort":868,"length":31,"time":48.222,"vocabulary":16,"volume":124,"operands":{"distinct":8,"total":14,"identifiers":["components","Result","name","Button","router","useRouter","click","back"]},"operators":{"distinct":8,"total":17,"identifiers":["{}",":",".","const","=","()","function=>","return"]}},"paramCount":0,"sloc":{"logical":11,"physical":23}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"@@/core/coreExports","type":"esm"},{"line":3,"path":"ant-design-vue/lib/result","type":"esm"},{"line":4,"path":"ant-design-vue/lib/result/style/css","type":"esm"},{"line":5,"path":"ant-design-vue/lib/button","type":"esm"},{"line":6,"path":"ant-design-vue/lib/button/style/css","type":"esm"}],"errors":[],"lineEnd":23,"lineStart":1,"maintainability":71.704,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["router","back"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":17,"lineStart":15,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":9.091,"halstead":{"bugs":0.021,"difficulty":3.5,"effort":434,"length":15.5,"time":24.111,"vocabulary":8,"volume":62,"operands":{"distinct":4,"total":7},"operators":{"distinct":4,"total":8.5}},"paramCount":0,"sloc":{"logical":5.5,"physical":11.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2},"operators":{"distinct":2,"total":2}},"paramCount":0,"sloc":{"logical":1,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-layout/views/BaseLayout.vue","report":{"aggregate":{"cyclomatic":20,"cyclomaticDensity":18.018,"halstead":{"bugs":0.872,"difficulty":30.589,"effort":79984.302,"length":398,"time":4443.572,"vocabulary":95,"volume":2614.803,"operands":{"distinct":73,"total":203,"identifiers":["components","Layout","name","Sider","Content","Header","Footer","Menu","MultiTabProvider","props","menus","type","Array","title","String","default","\"\"","locale","Boolean","false","logo","defaultLogo","theme","\"dark\"","navigation","\"side\"","fixedHeader","fixedSideBar","true","multiTabs","sideWidth","Number","200","footer","collapsed","ref","route","useRoute","routeLayoutDefault","side","top","routeLayout","computed","config","metaLayoutConfig","meta","layout","undefined","\"boolean\"","\"object\"","console","error","\"[plugin-layout]: meta layout must be object or boolean!\"","routeQueryLayoutConfig","query","JSON","parse","\"[plugin-layout]: query layout must be object or boolean!\"","siderTheme","\"mixin\"","\"light\"","currentFixedHeader","siderFixedStuffStyle","value","width","\"80px\"","px","headerFixedStyle","left","calc(100% - ","px)","0","\"100%\""]},"operators":{"distinct":22,"total":195,"identifiers":["{}",":",".","return","[]","const","=","()","function=>","let",":?","===","if","else","typeof (prefix)","... (spread)","&&","!==","||","``","${}","! (prefix)"]}},"paramCount":0,"sloc":{"logical":111,"physical":138}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"vue","type":"esm"},{"line":3,"path":"@@/core/coreExports","type":"esm"},{"line":4,"path":"ant-design-vue/lib/layout","type":"esm"},{"line":5,"path":"ant-design-vue/lib/layout/style/css","type":"esm"},{"line":6,"path":"./Menu","type":"esm"},{"line":7,"path":"./MultiTabProvider","type":"esm"},{"line":8,"path":"../assets/logo.png","type":"esm"}],"errors":[],"lineEnd":138,"lineStart":1,"maintainability":52.658,"methods":[{"cyclomatic":10,"cyclomaticDensity":50,"halstead":{"bugs":0.175,"difficulty":19.737,"effort":10342.276,"length":103,"time":574.571,"vocabulary":34,"volume":524.009,"operands":{"distinct":19,"total":50,"identifiers":["config","metaLayoutConfig","route","meta","layout","undefined","true","\"boolean\"","routeLayoutDefault","false","\"object\"","console","error","\"[plugin-layout]: meta layout must be object or boolean!\"","routeQueryLayoutConfig","query","JSON","parse","\"[plugin-layout]: query layout must be object or boolean!\""]},"operators":{"distinct":15,"total":53,"identifiers":["let","const","=",":?","===",".","if","else","typeof (prefix)","{}","... (spread)","()","&&","!==","return"]}},"paramCount":0,"sloc":{"logical":20,"physical":22},"errors":[],"lineEnd":94,"lineStart":73,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.013,"difficulty":2.4,"effort":91.294,"length":12,"time":5.072,"vocabulary":9,"volume":38.039,"operands":{"distinct":5,"total":6,"identifiers":["props","navigation","\"mixin\"","\"light\"","theme"]},"operators":{"distinct":4,"total":6,"identifiers":["if","===",".","return"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":100,"lineStart":95,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":200,"halstead":{"bugs":0.008,"difficulty":1.875,"effort":47.374,"length":9,"time":2.632,"vocabulary":7,"volume":25.266,"operands":{"distinct":4,"total":5,"identifiers":["props","fixedHeader","navigation","\"mixin\""]},"operators":{"distinct":3,"total":4,"identifiers":["||",".","==="]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":101,"lineStart":101,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.024,"difficulty":4,"effort":289.359,"length":19,"time":16.075,"vocabulary":14,"volume":72.34,"operands":{"distinct":7,"total":8,"identifiers":["collapsed","value","width","\"80px\"","props","sideWidth","px"]},"operators":{"distinct":7,"total":11,"identifiers":["if",".","return","{}",":","``","${}"]}},"paramCount":0,"sloc":{"logical":5,"physical":10},"errors":[],"lineEnd":111,"lineStart":102,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.059,"difficulty":6.231,"effort":1111.428,"length":40,"time":61.746,"vocabulary":22,"volume":178.377,"operands":{"distinct":13,"total":18,"identifiers":["currentFixedHeader","value","props","navigation","\"side\"","left","sideWidth","px","width","calc(100% - ","px)","0","\"100%\""]},"operators":{"distinct":9,"total":22,"identifiers":["if","! (prefix)",".","return","{}","===",":","``","${}"]}},"paramCount":0,"sloc":{"logical":9,"physical":15},"errors":[],"lineEnd":126,"lineStart":112,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3.333,"cyclomaticDensity":3.003,"halstead":{"bugs":0.145,"difficulty":5.098,"effort":13330.717,"length":66.333,"time":740.595,"vocabulary":15.833,"volume":435.8,"operands":{"distinct":12.167,"total":33.833},"operators":{"distinct":3.667,"total":32.5}},"paramCount":0,"sloc":{"logical":18.5,"physical":23}},"methodAverage":{"cyclomatic":3.8,"cyclomaticDensity":78,"halstead":{"bugs":0.056,"difficulty":6.849,"effort":2376.346,"length":36.6,"time":132.019,"vocabulary":17.2,"volume":167.606,"operands":{"distinct":9.6,"total":17.4},"operators":{"distinct":7.6,"total":19.2}},"paramCount":0,"sloc":{"logical":7.6,"physical":10.8}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-layout/views/Menu.vue","report":{"aggregate":{"cyclomatic":5,"cyclomaticDensity":11.364,"halstead":{"bugs":0.253,"difficulty":9.987,"effort":7569.885,"length":135,"time":420.549,"vocabulary":49,"volume":757.986,"operands":{"distinct":38,"total":69,"identifiers":["components","Menu","name","SubMenu","Item","MenuIcon","props","menus","type","Array","theme","String","default","\"dark\"","toRefs","route","useRoute","router","useRouter","fixedMenus","transformByLocale","transformByAccess","onMenuClick","e","path","key","/^https?:\\/\\//","test","window","open","\"_blank\"","/^\\//","push","console","warn","\"[plugin-layout]: 菜单的path只能使以http(s)开头的网址或者路由地址\"","selectedKeys","computed"]},"operators":{"distinct":11,"total":66,"identifiers":["{}",":",".","return","[]","const","=","()","function=>","if","else"]}},"paramCount":1,"sloc":{"logical":44,"physical":54}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"vue","type":"esm"},{"line":3,"path":"@@/core/coreExports","type":"esm"},{"line":4,"path":"ant-design-vue/lib/menu","type":"esm"},{"line":5,"path":"ant-design-vue/lib/menu/style/css","type":"esm"},{"line":6,"path":"./MenuIcon","type":"esm"},{"line":7,"path":"../helpers/pluginAccess","type":"esm"},{"line":8,"path":"../helpers/pluginLocale","type":"esm"}],"errors":[],"lineEnd":54,"lineStart":1,"maintainability":58.592,"methods":[{"cyclomatic":3,"cyclomaticDensity":30,"halstead":{"bugs":0.052,"difficulty":4.071,"effort":633.471,"length":36,"time":35.193,"vocabulary":20,"volume":155.589,"operands":{"distinct":14,"total":19,"identifiers":["path","e","key","/^https?:\\/\\//","test","window","open","\"_blank\"","/^\\//","router","push","console","warn","\"[plugin-layout]: 菜单的path只能使以http(s)开头的网址或者路由地址\""]},"operators":{"distinct":6,"total":17,"identifiers":["const","=",".","if","else","()"]}},"paramCount":1,"sloc":{"logical":10,"physical":12},"errors":[],"lineEnd":45,"lineStart":34,"name":"","paramNames":["e"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["route","path"]},"operators":{"distinct":2,"total":2,"identifiers":["[]","."]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":46,"lineStart":46,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.667,"cyclomaticDensity":3.788,"halstead":{"bugs":0.084,"difficulty":3.329,"effort":2523.295,"length":45,"time":140.183,"vocabulary":16.333,"volume":252.662,"operands":{"distinct":12.667,"total":23},"operators":{"distinct":3.667,"total":22}},"paramCount":0.333,"sloc":{"logical":14.667,"physical":18}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":65,"halstead":{"bugs":0.027,"difficulty":2.536,"effort":320.736,"length":20,"time":17.819,"vocabulary":12,"volume":81.795,"operands":{"distinct":8,"total":10.5},"operators":{"distinct":4,"total":9.5}},"paramCount":0.5,"sloc":{"logical":5.5,"physical":6.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-layout/views/MenuIcon.vue","report":{"aggregate":{"cyclomatic":10,"cyclomaticDensity":34.483,"halstead":{"bugs":0.171,"difficulty":14.955,"effort":7654.074,"length":99,"time":425.226,"vocabulary":36,"volume":511.823,"operands":{"distinct":22,"total":47,"identifiers":["props","icon","String","Object","AIcon","ref","null","AText","onBeforeMount","type","\"icon\"","value","Icons","name","fetch","then","rsp","ok","text","svgContent","validateContent","\"fes-layout-icon anticon\""]},"operators":{"distinct":14,"total":52,"identifiers":["{}",":","[]",",","const","=","()","function=>","if","else","&&",".","===","return"]}},"paramCount":2,"sloc":{"logical":29,"physical":44}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":3,"path":"vue","type":"esm"},{"line":5,"path":"../icons","type":"esm"},{"line":6,"path":"../helpers/svg","type":"esm"}],"errors":[],"lineEnd":44,"lineStart":1,"maintainability":68.274,"methods":[{"cyclomatic":3,"cyclomaticDensity":50,"halstead":{"bugs":0.049,"difficulty":6.955,"effort":1021.94,"length":34,"time":56.774,"vocabulary":20,"volume":146.946,"operands":{"distinct":11,"total":17,"identifiers":["props","icon","type","\"icon\"","AIcon","value","Icons","name","fetch","then","rsp"]},"operators":{"distinct":9,"total":17,"identifiers":["if","else","&&",".","===","=","[]","()","function=>"]}},"paramCount":0,"sloc":{"logical":6,"physical":13},"errors":[],"lineEnd":28,"lineStart":16,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.016,"difficulty":3,"effort":139.521,"length":14,"time":7.751,"vocabulary":10,"volume":46.507,"operands":{"distinct":5,"total":6,"identifiers":["rsp","ok","text","then","svgContent"]},"operators":{"distinct":5,"total":8,"identifiers":["if",".","return","()","function=>"]}},"paramCount":1,"sloc":{"logical":5,"physical":7},"errors":[],"lineEnd":26,"lineStart":20,"name":"","paramNames":["rsp"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":29.477,"length":7,"time":1.638,"vocabulary":7,"volume":19.651,"operands":{"distinct":4,"total":4,"identifiers":["AText","value","validateContent","svgContent"]},"operators":{"distinct":3,"total":3,"identifiers":["=",".","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":24,"lineStart":22,"name":"","paramNames":["svgContent"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":60,"halstead":{"bugs":0.016,"difficulty":2.4,"effort":115.2,"length":16,"time":6.4,"vocabulary":8,"volume":48,"operands":{"distinct":5,"total":8,"identifiers":["AIcon","value","AText","\"fes-layout-icon anticon\"","null"]},"operators":{"distinct":3,"total":8,"identifiers":["if",".","return"]}},"paramCount":0,"sloc":{"logical":5,"physical":12},"errors":[],"lineEnd":41,"lineStart":30,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":6.897,"halstead":{"bugs":0.034,"difficulty":2.991,"effort":1530.815,"length":19.8,"time":85.045,"vocabulary":7.2,"volume":102.365,"operands":{"distinct":4.4,"total":9.4},"operators":{"distinct":2.8,"total":10.4}},"paramCount":0.4,"sloc":{"logical":5.8,"physical":8.8}},"methodAverage":{"cyclomatic":2.25,"cyclomaticDensity":50,"halstead":{"bugs":0.022,"difficulty":3.464,"effort":326.534,"length":17.75,"time":18.141,"vocabulary":11.25,"volume":65.276,"operands":{"distinct":6.25,"total":8.75},"operators":{"distinct":5,"total":9}},"paramCount":0.5,"sloc":{"logical":4.5,"physical":8.75}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-layout/views/MultiTabProvider.vue","report":{"aggregate":{"cyclomatic":20,"cyclomaticDensity":18.868,"halstead":{"bugs":0.684,"difficulty":33.25,"effort":68244.435,"length":336,"time":3791.358,"vocabulary":69,"volume":2052.464,"operands":{"distinct":50,"total":175,"identifiers":["i","0","getKey","components","Dropdown","name","Menu","Item","Tabs","TabPane","ReloadOutlined","MoreOutlined","route","useRoute","router","useRouter","pageList","reactive","path","unref","query","params","meta","key","findPage","find","item","beforeEach","to","push","true","switchPage","selectedPage","onEdit","targetKey","action","\"remove\"","index","indexOf","splice","1","reloadPage","closeOtherPage","length","getPageKey","_route","\"\"","handlerMore","\"closeOtherPage\"","\"reloadPage\""]},"operators":{"distinct":19,"total":161,"identifiers":["let","=","const","function=>","++ (prefix)","{}",":",".","()","[]","===","if","! (prefix)","return","||","switch","case","break","default"]}},"paramCount":10,"sloc":{"logical":106,"physical":108}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"vue","type":"esm"},{"line":3,"path":"ant-design-vue/lib/tabs","type":"esm"},{"line":4,"path":"ant-design-vue/lib/dropdown","type":"esm"},{"line":5,"path":"ant-design-vue/lib/menu","type":"esm"},{"line":6,"path":"ant-design-vue/lib/menu/style/css","type":"esm"},{"line":7,"path":"ant-design-vue/lib/dropdown/style/css","type":"esm"},{"line":8,"path":"ant-design-vue/lib/tabs/style/css","type":"esm"},{"line":9,"path":"@ant-design/icons-vue","type":"esm"},{"line":10,"path":"@@/core/coreExports","type":"esm"}],"errors":[],"lineEnd":108,"lineStart":1,"maintainability":60.721,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["i"]},"operators":{"distinct":1,"total":1,"identifiers":["++ (prefix)"]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":13,"lineStart":13,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["pageList","find","item"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","function=>"]}},"paramCount":1,"sloc":{"logical":3,"physical":1},"errors":[],"lineEnd":38,"lineStart":38,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.008,"difficulty":2.5,"effort":58.162,"length":9,"time":3.231,"vocabulary":6,"volume":23.265,"operands":{"distinct":3,"total":5,"identifiers":["unref","item","path"]},"operators":{"distinct":3,"total":4,"identifiers":["===","()","."]}},"paramCount":1,"sloc":{"logical":3,"physical":1},"errors":[],"lineEnd":38,"lineStart":38,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":22.222,"halstead":{"bugs":0.046,"difficulty":5.409,"effort":744.332,"length":33,"time":41.352,"vocabulary":18,"volume":137.608,"operands":{"distinct":11,"total":17,"identifiers":["findPage","to","path","pageList","push","route","name","meta","key","getKey","true"]},"operators":{"distinct":7,"total":16,"identifiers":["if","! (prefix)","()",".","{}",":","return"]}},"paramCount":1,"sloc":{"logical":9,"physical":11},"errors":[],"lineEnd":49,"lineStart":39,"name":"","paramNames":["to"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.038,"difficulty":7,"effort":793.099,"length":29,"time":44.061,"vocabulary":15,"volume":113.3,"operands":{"distinct":8,"total":16,"identifiers":["selectedPage","findPage","path","router","push","query","route","params"]},"operators":{"distinct":7,"total":13,"identifiers":["const","=","()","if",".","{}",":"]}},"paramCount":1,"sloc":{"logical":7,"physical":10},"errors":[],"lineEnd":60,"lineStart":51,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.032,"difficulty":3.9,"effort":374.4,"length":24,"time":20.8,"vocabulary":16,"volume":96,"operands":{"distinct":10,"total":13,"identifiers":["action","\"remove\"","selectedPage","findPage","targetKey","index","pageList","indexOf","splice","1"]},"operators":{"distinct":6,"total":11,"identifiers":["if","===","const","=","()","."]}},"paramCount":2,"sloc":{"logical":6,"physical":7},"errors":[],"lineEnd":67,"lineStart":61,"name":"","paramNames":["targetKey","action"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":50,"halstead":{"bugs":0.025,"difficulty":4.286,"effort":317.181,"length":20,"time":17.621,"vocabulary":13,"volume":74.009,"operands":{"distinct":7,"total":10,"identifiers":["selectedPage","findPage","path","unref","route","key","getKey"]},"operators":{"distinct":6,"total":10,"identifiers":["const","=","()","||",".","if"]}},"paramCount":1,"sloc":{"logical":6,"physical":6},"errors":[],"lineEnd":73,"lineStart":68,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.028,"difficulty":3.333,"effort":279.206,"length":22,"time":15.511,"vocabulary":14,"volume":83.762,"operands":{"distinct":9,"total":12,"identifiers":["selectedPage","findPage","path","unref","route","pageList","length","0","push"]},"operators":{"distinct":5,"total":10,"identifiers":["const","=","()","||","."]}},"paramCount":1,"sloc":{"logical":5,"physical":5},"errors":[],"lineEnd":78,"lineStart":74,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.019,"difficulty":4,"effort":229.438,"length":16,"time":12.747,"vocabulary":12,"volume":57.359,"operands":{"distinct":6,"total":8,"identifiers":["selectedPage","findPage","_route","path","key","\"\""]},"operators":{"distinct":6,"total":8,"identifiers":["const","=","()",".","if","return"]}},"paramCount":1,"sloc":{"logical":5,"physical":7},"errors":[],"lineEnd":85,"lineStart":79,"name":"","paramNames":["_route"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":37.5,"halstead":{"bugs":0.014,"difficulty":2.5,"effort":107.963,"length":13,"time":5.998,"vocabulary":10,"volume":43.185,"operands":{"distinct":5,"total":5,"identifiers":["key","closeOtherPage","\"closeOtherPage\"","reloadPage","\"reloadPage\""]},"operators":{"distinct":5,"total":8,"identifiers":["switch","case","()","break","default"]}},"paramCount":1,"sloc":{"logical":8,"physical":11},"errors":[],"lineEnd":96,"lineStart":86,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.818,"cyclomaticDensity":1.715,"halstead":{"bugs":0.062,"difficulty":3.023,"effort":6204.04,"length":30.545,"time":344.669,"vocabulary":6.273,"volume":186.588,"operands":{"distinct":4.545,"total":15.909},"operators":{"distinct":1.727,"total":14.636}},"paramCount":0.909,"sloc":{"logical":9.636,"physical":9.818}},"methodAverage":{"cyclomatic":1.9,"cyclomaticDensity":41.829,"halstead":{"bugs":0.022,"difficulty":3.493,"effort":292.804,"length":17.4,"time":16.267,"vocabulary":11.2,"volume":64.6,"operands":{"distinct":6.3,"total":9},"operators":{"distinct":4.9,"total":8.4}},"paramCount":1,"sloc":{"logical":5.3,"physical":6}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-locale/core.js","report":{"aggregate":{"cyclomatic":13,"cyclomaticDensity":15.294,"halstead":{"bugs":0.714,"difficulty":19.758,"effort":42342.306,"length":343,"time":2352.35,"vocabulary":76,"volume":2143.039,"operands":{"distinct":62,"total":175,"identifiers":["plugin","share","\"locale\"","useI18n","SelectLang","locales","\"en-US\"","\"message\"","require","\"/Users/qlin/code/fes.js/packages/fes-template/src/locales/en-US.js\"","default","\"id-ID\"","\"/Users/qlin/code/fes.js/packages/fes-template/src/locales/id-ID.js\"","\"pt-BR\"","\"/Users/qlin/code/fes.js/packages/fes-template/src/locales/pt-BR.js\"","\"zh-CN\"","\"/Users/qlin/code/fes.js/packages/fes-template/src/locales/zh-CN.js\"","\"zh-TW\"","\"/Users/qlin/code/fes.js/packages/fes-template/src/locales/zh-TW.js\"","defaultOptions","\"fallbackLocale\"","\"legacy\"","true","BASE_NAVIGATOR","getDefaultLocale","fes_locale","window","localStorage","getItem","\"fes_locale\"","locale","fallbackLocale","navigator","language","messages","Array","isArray","forEach","item","message","i18n","createI18n","setItem","global","setLocale","isRef","value","addLocale","getAllLocales","Object","keys","sort","install","app","runtimeConfig","applyPlugins","key","type","ApplyPluginsType","modify","initialValue","use"]},"operators":{"distinct":14,"total":168,"identifiers":["()",".","{}","const","=","[]",",",":","function=>","if","return","... (spread)","else",":?"]}},"paramCount":5,"sloc":{"logical":85,"physical":124}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":8,"path":"vue","type":"esm"},{"line":9,"path":"/Users/qlin/code/fes.js/node_modules/vue-i18n","type":"esm"},{"line":10,"path":"@@/core/coreExports","type":"esm"},{"line":11,"path":"./views/SelectLang","type":"esm"},{"line":19,"path":"/Users/qlin/code/fes.js/packages/fes-template/src/locales/en-US.js","type":"cjs"},{"line":23,"path":"/Users/qlin/code/fes.js/packages/fes-template/src/locales/id-ID.js","type":"cjs"},{"line":27,"path":"/Users/qlin/code/fes.js/packages/fes-template/src/locales/pt-BR.js","type":"cjs"},{"line":31,"path":"/Users/qlin/code/fes.js/packages/fes-template/src/locales/zh-CN.js","type":"cjs"},{"line":35,"path":"/Users/qlin/code/fes.js/packages/fes-template/src/locales/zh-TW.js","type":"cjs"}],"errors":[],"lineEnd":124,"lineStart":1,"maintainability":58.569,"methods":[{"cyclomatic":3,"cyclomaticDensity":23.077,"halstead":{"bugs":0.065,"difficulty":8.364,"effort":1634.294,"length":46,"time":90.794,"vocabulary":19,"volume":195.405,"operands":{"distinct":11,"total":23,"identifiers":["fes_locale","window","localStorage","getItem","\"fes_locale\"","locale","fallbackLocale","BASE_NAVIGATOR","navigator","language","\"zh-CN\""]},"operators":{"distinct":8,"total":23,"identifiers":["const","=","()",".","if","return","{}",":"]}},"paramCount":0,"sloc":{"logical":13,"physical":19},"errors":[],"lineEnd":65,"lineStart":47,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.008,"difficulty":1.875,"effort":47.374,"length":9,"time":2.632,"vocabulary":7,"volume":25.266,"operands":{"distinct":4,"total":5,"identifiers":["messages","item","locale","message"]},"operators":{"distinct":3,"total":4,"identifiers":["=","[]","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":71,"lineStart":69,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.042,"difficulty":5,"effort":628.214,"length":33,"time":34.901,"vocabulary":14,"volume":125.643,"operands":{"distinct":9,"total":18,"identifiers":["isRef","i18n","global","locale","value","window","localStorage","setItem","\"fes_locale\""]},"operators":{"distinct":5,"total":15,"identifiers":["if","else","()",".","="]}},"paramCount":1,"sloc":{"logical":6,"physical":8},"errors":[],"lineEnd":88,"lineStart":81,"name":"","paramNames":["locale"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.041,"difficulty":9,"effort":1096.999,"length":34,"time":60.944,"vocabulary":12,"volume":121.889,"operands":{"distinct":6,"total":18,"identifiers":["messages","locale","isRef","i18n","global","value"]},"operators":{"distinct":6,"total":16,"identifiers":["=","[]","if","else","()","."]}},"paramCount":2,"sloc":{"logical":6,"physical":8},"errors":[],"lineEnd":97,"lineStart":90,"name":"","paramNames":["locale","messages"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.033,"difficulty":3.5,"effort":351.326,"length":28,"time":19.518,"vocabulary":12,"volume":100.379,"operands":{"distinct":8,"total":14,"identifiers":["Object","keys","isRef","i18n","global","messages","value","sort"]},"operators":{"distinct":4,"total":14,"identifiers":["return","()",".",":?"]}},"paramCount":0,"sloc":{"logical":4,"physical":7},"errors":[],"lineEnd":105,"lineStart":99,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.033,"difficulty":3,"effort":300.235,"length":24,"time":16.68,"vocabulary":18,"volume":100.078,"operands":{"distinct":12,"total":12,"identifiers":["runtimeConfig","plugin","applyPlugins","key","\"locale\"","type","ApplyPluginsType","modify","initialValue","app","use","i18n"]},"operators":{"distinct":6,"total":12,"identifiers":["const","=","()",".","{}",":"]}},"paramCount":1,"sloc":{"logical":6,"physical":8},"errors":[],"lineEnd":114,"lineStart":107,"name":"","paramNames":["app"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.857,"cyclomaticDensity":2.185,"halstead":{"bugs":0.102,"difficulty":2.823,"effort":6048.901,"length":49,"time":336.05,"vocabulary":10.857,"volume":306.148,"operands":{"distinct":8.857,"total":25},"operators":{"distinct":2,"total":24}},"paramCount":0.714,"sloc":{"logical":12.143,"physical":17.714}},"methodAverage":{"cyclomatic":1.833,"cyclomaticDensity":42.735,"halstead":{"bugs":0.037,"difficulty":5.123,"effort":676.407,"length":29,"time":37.578,"vocabulary":13.667,"volume":111.443,"operands":{"distinct":8.333,"total":15},"operators":{"distinct":5.333,"total":14}},"paramCount":0.833,"sloc":{"logical":6,"physical":8.833}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-locale/langUConfigMap.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0.385,"halstead":{"bugs":1.986,"difficulty":2.388,"effort":14227.504,"length":781,"time":790.417,"vocabulary":198,"volume":5958.528,"operands":{"distinct":196,"total":468,"identifiers":["\"ar-EG\"","lang","label","\"العربية\"","icon","\"🇪🇬\"","title","\"لغة\"","\"az-AZ\"","\"Azərbaycan dili\"","\"🇦🇿\"","\"Dil\"","\"bg-BG\"","\"Български език\"","\"🇧🇬\"","\"език\"","\"ca-ES\"","\"Catalá\"","\"🇨🇦\"","\"llengua\"","\"cs-CZ\"","\"Čeština\"","\"🇨🇿\"","\"Jazyk\"","\"da-DK\"","\"Dansk\"","\"🇩🇰\"","\"Sprog\"","\"de-DE\"","\"Deutsch\"","\"🇩🇪\"","\"Sprache\"","\"el-GR\"","\"Ελληνικά\"","\"🇬🇷\"","\"Γλώσσα\"","\"en-GB\"","\"English\"","\"🇬🇧\"","\"Language\"","\"en-US\"","\"🇺🇸\"","\"es-ES\"","\"Español\"","\"🇪🇸\"","\"Idioma\"","\"et-EE\"","\"Eesti\"","\"🇪🇪\"","\"Keel\"","\"fa-IR\"","\"فارسی\"","\"🇮🇷\"","\"زبان\"","\"fi-FI\"","\"Suomi\"","\"🇫🇮\"","\"Kieli\"","\"fr-BE\"","\"Français\"","\"🇧🇪\"","\"Langue\"","\"fr-FR\"","\"🇫🇷\"","\"ga-IE\"","\"Gaeilge\"","\"🇮🇪\"","\"Teanga\"","\"he-IL\"","\"עברית\"","\"🇮🇱\"","\"שפה\"","\"hi-IN\"","\"हिन्दी, हिंदी\"","\"🇮🇳\"","\"भाषा: हिन्दी\"","\"hr-HR\"","\"Hrvatski jezik\"","\"🇭🇷\"","\"Jezik\"","\"hu-HU\"","\"Magyar\"","\"🇭🇺\"","\"Nyelv\"","\"hy-AM\"","\"Հայերեն\"","\"🇦🇲\"","\"Լեզու\"","\"id-ID\"","\"Bahasa Indonesia\"","\"🇮🇩\"","\"Bahasa\"","\"it-IT\"","\"Italiano\"","\"🇮🇹\"","\"Linguaggio\"","\"is-IS\"","\"Íslenska\"","\"🇮🇸\"","\"Tungumál\"","\"ja-JP\"","\"日本語\"","\"🇯🇵\"","\"言語\"","\"ku-IQ\"","\"کوردی\"","\"🇮🇶\"","\"Ziman\"","\"kn-IN\"","\"zh-TW\"","\"ಕನ್ನಡ\"","\"ಭಾಷೆ\"","\"ko-KR\"","\"한국어\"","\"🇰🇷\"","\"언어\"","\"lv-LV\"","\"Latviešu valoda\"","\"🇱🇮\"","\"Kalba\"","\"mk-MK\"","\"македонски јазик\"","\"🇲🇰\"","\"Јазик\"","\"mn-MN\"","\"Монгол хэл\"","\"🇲🇳\"","\"Хэл\"","\"ms-MY\"","\"بهاس ملايو‎\"","\"🇲🇾\"","\"nb-NO\"","\"Norsk\"","\"🇳🇴\"","\"Språk\"","\"ne-NP\"","\"नेपाली\"","\"🇳🇵\"","\"भाषा\"","\"nl-BE\"","\"Vlaams\"","\"Taal\"","\"nl-NL\"","\"🇳🇱\"","\"pt-BR\"","\"Português\"","\"🇧🇷\"","\"Idiomas\"","\"pt-PT\"","\"🇵🇹\"","\"ro-RO\"","\"Română\"","\"🇷🇴\"","\"Limba\"","\"ru-RU\"","\"русский\"","\"🇷🇺\"","\"язык\"","\"sk-SK\"","\"Slovenčina\"","\"🇸🇰\"","\"sr-RS\"","\"српски језик\"","\"🇸🇷\"","\"Језик\"","\"sl-SI\"","\"Slovenščina\"","\"🇸🇱\"","\"sv-SE\"","\"Svenska\"","\"🇸🇪\"","\"ta-IN\"","\"தமிழ்\"","\"மொழி\"","\"th-TH\"","\"ไทย\"","\"🇹🇭\"","\"ภาษา\"","\"tr-TR\"","\"Türkçe\"","\"🇹🇷\"","\"uk-UA\"","\"Українська\"","\"🇺🇰\"","\"Мова\"","\"vi-VN\"","\"Tiếng Việt\"","\"🇻🇳\"","\"Ngôn ngữ\"","\"zh-CN\"","\"简体中文\"","\"🇨🇳\"","\"语言\"","\"繁体中文\"","\"🇭🇰\"","\"語言\""]},"operators":{"distinct":2,"total":313,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":260,"physical":315}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":315,"lineStart":1,"maintainability":28.194,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0.385,"halstead":{"bugs":1.986,"difficulty":2.388,"effort":14227.504,"length":781,"time":790.417,"vocabulary":198,"volume":5958.528,"operands":{"distinct":196,"total":468},"operators":{"distinct":2,"total":313}},"paramCount":0,"sloc":{"logical":260,"physical":315}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-locale/runtime.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.006,"difficulty":2,"effort":36.189,"length":7,"time":2.011,"vocabulary":6,"volume":18.095,"operands":{"distinct":3,"total":4,"identifiers":["onAppCreated","app","install"]},"operators":{"distinct":3,"total":3,"identifiers":["function","{}","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":6}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./core","type":"esm"}],"errors":[],"lineEnd":6,"lineStart":1,"maintainability":94.209,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["install","app"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":5,"lineStart":3,"name":"onAppCreated","paramNames":["app"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":18.095,"length":3.5,"time":1.005,"vocabulary":3,"volume":9.047,"operands":{"distinct":1.5,"total":2},"operators":{"distinct":1.5,"total":1.5}},"paramCount":0.5,"sloc":{"logical":1,"physical":3}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2},"operators":{"distinct":1,"total":1}},"paramCount":1,"sloc":{"logical":1,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-locale/views/SelectLang.vue","report":{"aggregate":{"cyclomatic":6,"cyclomaticDensity":18.75,"halstead":{"bugs":0.186,"difficulty":10,"effort":5574.115,"length":107,"time":309.673,"vocabulary":37,"volume":557.412,"operands":{"distinct":27,"total":54,"identifiers":["components","Dropdown","name","Menu","Item","GlobalOutlined","messages","locale","useI18n","selectedKeys","computed","value","configs","arr","Object","keys","sort","forEach","item","push","langUConfigMap","handleClick","key","window","localStorage","setItem","\"fes_locale\""]},"operators":{"distinct":10,"total":53,"identifiers":["{}",":",".","const","=","()","function=>","[]","||","return"]}},"paramCount":2,"sloc":{"logical":32,"physical":41}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"ant-design-vue/lib/dropdown","type":"esm"},{"line":3,"path":"ant-design-vue/lib/menu","type":"esm"},{"line":4,"path":"ant-design-vue/lib/dropdown/style/css","type":"esm"},{"line":5,"path":"ant-design-vue/lib/menu/style/css","type":"esm"},{"line":6,"path":"@ant-design/icons-vue","type":"esm"},{"line":7,"path":"vue-i18n","type":"esm"},{"line":8,"path":"vue","type":"esm"},{"line":9,"path":"../langUConfigMap","type":"esm"}],"errors":[],"lineEnd":41,"lineStart":1,"maintainability":68.274,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["locale","value"]},"operators":{"distinct":2,"total":2,"identifiers":["[]","."]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":20,"lineStart":20,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.027,"difficulty":3.938,"effort":323.051,"length":21,"time":17.947,"vocabulary":15,"volume":82.045,"operands":{"distinct":8,"total":9,"identifiers":["arr","Object","keys","messages","value","sort","forEach","item"]},"operators":{"distinct":7,"total":12,"identifiers":["const","=","[]","()",".","function=>","return"]}},"paramCount":0,"sloc":{"logical":6,"physical":9},"errors":[],"lineEnd":29,"lineStart":21,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":200,"halstead":{"bugs":0.01,"difficulty":2.5,"effort":71.323,"length":9,"time":3.962,"vocabulary":9,"volume":28.529,"operands":{"distinct":4,"total":4,"identifiers":["arr","push","langUConfigMap","item"]},"operators":{"distinct":5,"total":5,"identifiers":["()",".","||","[]","{}"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":27,"lineStart":25,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.014,"difficulty":1.714,"effort":74.032,"length":13,"time":4.113,"vocabulary":10,"volume":43.185,"operands":{"distinct":7,"total":8,"identifiers":["locale","value","key","window","localStorage","setItem","\"fes_locale\""]},"operators":{"distinct":3,"total":5,"identifiers":["=",".","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":33,"lineStart":30,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.2,"cyclomaticDensity":3.75,"halstead":{"bugs":0.037,"difficulty":2,"effort":1114.823,"length":21.4,"time":61.935,"vocabulary":7.4,"volume":111.482,"operands":{"distinct":5.4,"total":10.8},"operators":{"distinct":2,"total":10.6}},"paramCount":0.4,"sloc":{"logical":6.4,"physical":8.2}},"methodAverage":{"cyclomatic":1.25,"cyclomaticDensity":91.667,"halstead":{"bugs":0.013,"difficulty":2.288,"effort":119.101,"length":11.75,"time":6.617,"vocabulary":9.5,"volume":40.44,"operands":{"distinct":5.25,"total":5.75},"operators":{"distinct":4.25,"total":6}},"paramCount":0.5,"sloc":{"logical":2.5,"physical":4.25}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-model/core.js","report":{"aggregate":{"cyclomatic":7,"cyclomaticDensity":25.926,"halstead":{"bugs":0.163,"difficulty":14.08,"effort":6864.524,"length":91,"time":381.362,"vocabulary":41,"volume":487.537,"operands":{"distinct":25,"total":44,"identifiers":["modelKey","Symbol","\"plugin-model\"","models","\"@@initialState\"","initialState","\"user\"","model0","cache","Map","install","app","useModel","name","model","undefined","Error","\"[plugin-model]: useModel, name is undefined.\"","\"function\"","\"[plugin-model]: useModel is not a function.\"","has","set","get","provide","inject"]},"operators":{"distinct":16,"total":47,"identifiers":["const","=","()","{}",":","new","function=>","[]","if","===","throw","!==","typeof (prefix)","! (prefix)",".","return"]}},"paramCount":3,"sloc":{"logical":27,"physical":36}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"vue","type":"esm"},{"line":5,"path":"/Users/qlin/code/fes.js/packages/fes-template/src/models/user","type":"esm"},{"line":6,"path":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-model/models/initialState","type":"esm"}],"errors":[],"lineEnd":36,"lineStart":1,"maintainability":66.687,"methods":[{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.012,"difficulty":3,"effort":109.624,"length":11,"time":6.09,"vocabulary":10,"volume":36.541,"operands":{"distinct":5,"total":6,"identifiers":["useModel","name","app","provide","modelKey"]},"operators":{"distinct":5,"total":5,"identifiers":["const","=","function=>","()","."]}},"paramCount":1,"sloc":{"logical":3,"physical":16},"errors":[],"lineEnd":29,"lineStart":14,"name":"","paramNames":["app"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":36.364,"halstead":{"bugs":0.067,"difficulty":11.375,"effort":2271.426,"length":43,"time":126.19,"vocabulary":25,"volume":199.686,"operands":{"distinct":12,"total":21,"identifiers":["model","models","name","undefined","Error","\"[plugin-model]: useModel, name is undefined.\"","\"function\"","\"[plugin-model]: useModel is not a function.\"","cache","has","set","get"]},"operators":{"distinct":13,"total":22,"identifiers":["const","=","[]","if","===","throw","new","!==","typeof (prefix)","! (prefix)","()",".","return"]}},"paramCount":1,"sloc":{"logical":11,"physical":13},"errors":[],"lineEnd":27,"lineStart":15,"name":"","paramNames":["name"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.005,"difficulty":1,"effort":13.932,"length":6,"time":0.774,"vocabulary":5,"volume":13.932,"operands":{"distinct":3,"total":3,"identifiers":["inject","modelKey","name"]},"operators":{"distinct":2,"total":3,"identifiers":["return","()"]}},"paramCount":1,"sloc":{"logical":3,"physical":3},"errors":[],"lineEnd":33,"lineStart":31,"name":"","paramNames":["name"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.75,"cyclomaticDensity":6.481,"halstead":{"bugs":0.041,"difficulty":3.52,"effort":1716.131,"length":22.75,"time":95.341,"vocabulary":10.25,"volume":121.884,"operands":{"distinct":6.25,"total":11},"operators":{"distinct":4,"total":11.75}},"paramCount":0.75,"sloc":{"logical":6.75,"physical":9}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":34.343,"halstead":{"bugs":0.028,"difficulty":5.125,"effort":798.327,"length":20,"time":44.352,"vocabulary":13.333,"volume":83.386,"operands":{"distinct":6.667,"total":10},"operators":{"distinct":6.667,"total":10}},"paramCount":1,"sloc":{"logical":5.667,"physical":10.667}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-model/models/initialState.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":33.688,"length":8,"time":1.872,"vocabulary":7,"volume":22.459,"operands":{"distinct":4,"total":4,"identifiers":["initalModel","reactive","inject","\"initialState\""]},"operators":{"distinct":3,"total":4,"identifiers":["function","return","()"]}},"paramCount":0,"sloc":{"logical":4,"physical":6}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"vue","type":"esm"}],"errors":[],"lineEnd":6,"lineStart":1,"maintainability":87.785,"methods":[{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.005,"difficulty":1,"effort":13.932,"length":6,"time":0.774,"vocabulary":5,"volume":13.932,"operands":{"distinct":3,"total":3,"identifiers":["reactive","inject","\"initialState\""]},"operators":{"distinct":2,"total":3,"identifiers":["return","()"]}},"paramCount":0,"sloc":{"logical":3,"physical":3},"errors":[],"lineEnd":5,"lineStart":3,"name":"initalModel","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.004,"difficulty":0.75,"effort":16.844,"length":4,"time":0.936,"vocabulary":3.5,"volume":11.229,"operands":{"distinct":2,"total":2},"operators":{"distinct":1.5,"total":2}},"paramCount":0,"sloc":{"logical":2,"physical":3}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.005,"difficulty":1,"effort":13.932,"length":6,"time":0.774,"vocabulary":5,"volume":13.932,"operands":{"distinct":3,"total":3},"operators":{"distinct":2,"total":3}},"paramCount":0,"sloc":{"logical":3,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-model/runtime.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.006,"difficulty":2,"effort":36.189,"length":7,"time":2.011,"vocabulary":6,"volume":18.095,"operands":{"distinct":3,"total":4,"identifiers":["onAppCreated","app","install"]},"operators":{"distinct":3,"total":3,"identifiers":["function","{}","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":6}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./core","type":"esm"}],"errors":[],"lineEnd":6,"lineStart":1,"maintainability":94.209,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["install","app"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":5,"lineStart":3,"name":"onAppCreated","paramNames":["app"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":18.095,"length":3.5,"time":1.005,"vocabulary":3,"volume":9.047,"operands":{"distinct":1.5,"total":2},"operators":{"distinct":1.5,"total":1.5}},"paramCount":0.5,"sloc":{"logical":1,"physical":3}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2},"operators":{"distinct":1,"total":1}},"paramCount":1,"sloc":{"logical":1,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-monaco-editor/core.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.007,"difficulty":1,"effort":20.68,"length":8,"time":1.149,"vocabulary":6,"volume":20.68,"operands":{"distinct":4,"total":4,"identifiers":["MonacoEditor","Editor","monaco","_monaco"]},"operators":{"distinct":2,"total":4,"identifiers":["const","="]}},"paramCount":0,"sloc":{"logical":2,"physical":6}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./editor","type":"esm"},{"line":2,"path":"./loader","type":"esm"}],"errors":[],"lineEnd":6,"lineStart":1,"maintainability":87.375,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.007,"difficulty":1,"effort":20.68,"length":8,"time":1.149,"vocabulary":6,"volume":20.68,"operands":{"distinct":4,"total":4},"operators":{"distinct":2,"total":4}},"paramCount":0,"sloc":{"logical":2,"physical":6}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-monaco-editor/editor.vue","report":{"aggregate":{"cyclomatic":50,"cyclomaticDensity":23.697,"halstead":{"bugs":1.564,"difficulty":35.165,"effort":164973.474,"length":659,"time":9165.193,"vocabulary":139,"volume":4691.382,"operands":{"distinct":115,"total":337,"identifiers":["processSize","size","/^\\d+$/","test","px","name","\"MonacoEditor\"","props","theme","type","String","default","\"defaultTheme\"","language","\"\"","height","Number","\"100%\"","width","modelValue","readOnly","Boolean","options","Object","check","false","emits","\"update:modelValue\"","\"onload\"","\"scrollChange\"","emit","containRef","ref","null","style","computed","fixedWidth","fixedHeight","currentConfig","config","merge","automaticLayout","true","scrollBeyondLastLine","minimap","enabled","glyphMargin","fontSize","\"14px\"","contextmenu","editor","editorModel","getValue","text","lineEnding","\"\n\"","preserveBOM","\"json\"","JSON","parse","e","watch","updateOptions","value","newVal","monaco","setModelLanguage","setTheme","layout","newValue","getRawOptions","setValue","range","getFullModelRange","op","identifier","major","1","minor","forceMoveMarkers","executeEdits","\"insertValue\"","initMonaco","create","getModel","onDidScrollChange","debounce","300","onDidChangeModelContent","100","onDidBlurEditorText","trigger","\"anyString\"","\"editor.action.formatDocument\"","undo","\"undo\"","redo","\"redo\"","saveViewState","viewState","restoreViewState","getValueInRange","selection","getSelection","isEmpty","insertValueIntoEditor","SelectedRange","Range","startLineNumber","startColumn","endLineNumber","endColumn","onMounted","onBeforeUnmount","dispose"]},"operators":{"distinct":24,"total":322,"identifiers":["const","=","function","return",":?","! (prefix)","()",".","``","${}","{}",":","[]",",","function=>","let","if","===","try","catch","else","... (spread)","&&","new"]}},"paramCount":6,"sloc":{"logical":211,"physical":285}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":4,"path":"vue","type":"esm"},{"line":5,"path":"/Users/qlin/code/fes.js/node_modules/lodash-es","type":"esm"},{"line":7,"path":"./loader","type":"esm"}],"errors":[],"lineEnd":285,"lineStart":1,"maintainability":62.726,"methods":[{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.015,"difficulty":5.25,"effort":236.106,"length":13,"time":13.117,"vocabulary":11,"volume":44.973,"operands":{"distinct":4,"total":6,"identifiers":["/^\\d+$/","test","size","px"]},"operators":{"distinct":7,"total":7,"identifiers":["return",":?","! (prefix)","()",".","``","${}"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":11,"lineStart":9,"name":"","paramNames":["size"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.03,"difficulty":7,"effort":621.674,"length":24,"time":34.537,"vocabulary":13,"volume":88.811,"operands":{"distinct":6,"total":12,"identifiers":["fixedWidth","processSize","props","width","fixedHeight","height"]},"operators":{"distinct":7,"total":12,"identifiers":["const","=","()",".","return","{}",":"]}},"paramCount":0,"sloc":{"logical":7,"physical":8},"errors":[],"lineEnd":51,"lineStart":44,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":9.091,"halstead":{"bugs":0.056,"difficulty":4.9,"effort":830.346,"length":38,"time":46.13,"vocabulary":22,"volume":169.458,"operands":{"distinct":15,"total":21,"identifiers":["config","merge","automaticLayout","true","scrollBeyondLastLine","false","minimap","enabled","glyphMargin","fontSize","\"14px\"","contextmenu","props","options","readOnly"]},"operators":{"distinct":7,"total":17,"identifiers":["const","=","()","{}",":",".","return"]}},"paramCount":0,"sloc":{"logical":11,"physical":19},"errors":[],"lineEnd":71,"lineStart":53,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":30.769,"halstead":{"bugs":0.069,"difficulty":7.875,"effort":1627.891,"length":43,"time":90.438,"vocabulary":28,"volume":206.716,"operands":{"distinct":16,"total":21,"identifiers":["editor","\"\"","text","getValue","lineEnding","\"\n\"","preserveBOM","false","props","check","language","\"json\"","JSON","parse","e","modelValue"]},"operators":{"distinct":12,"total":22,"identifiers":["if","! (prefix)","return","const","=","()",".","{}",":","===","try","catch"]}},"paramCount":0,"sloc":{"logical":13,"physical":20},"errors":[],"lineEnd":95,"lineStart":76,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.008,"difficulty":1.875,"effort":47.374,"length":9,"time":2.632,"vocabulary":7,"volume":25.266,"operands":{"distinct":4,"total":5,"identifiers":["editor","updateOptions","currentConfig","value"]},"operators":{"distinct":3,"total":4,"identifiers":["if","()","."]}},"paramCount":0,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":101,"lineStart":97,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["props","language"]},"operators":{"distinct":1,"total":1,"identifiers":["."]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":103,"lineStart":103,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.01,"difficulty":1.8,"effort":54,"length":10,"time":3,"vocabulary":8,"volume":30,"operands":{"distinct":5,"total":6,"identifiers":["editorModel","monaco","editor","setModelLanguage","newVal"]},"operators":{"distinct":3,"total":4,"identifiers":["if","()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":107,"lineStart":103,"name":"","paramNames":["newVal"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["props","theme"]},"operators":{"distinct":1,"total":1,"identifiers":["."]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":109,"lineStart":109,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.008,"difficulty":1.875,"effort":47.374,"length":9,"time":2.632,"vocabulary":7,"volume":25.266,"operands":{"distinct":4,"total":5,"identifiers":["editor","monaco","setTheme","newVal"]},"operators":{"distinct":3,"total":4,"identifiers":["if","()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":113,"lineStart":109,"name":"","paramNames":["newVal"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["props","width"]},"operators":{"distinct":1,"total":1,"identifiers":["."]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":115,"lineStart":115,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["props","height"]},"operators":{"distinct":1,"total":1,"identifiers":["."]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":115,"lineStart":115,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":2.25,"effort":31.346,"length":6,"time":1.741,"vocabulary":5,"volume":13.932,"operands":{"distinct":2,"total":3,"identifiers":["editor","layout"]},"operators":{"distinct":3,"total":3,"identifiers":["if","()","."]}},"paramCount":0,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":119,"lineStart":115,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["props","modelValue"]},"operators":{"distinct":1,"total":1,"identifiers":["."]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":122,"lineStart":122,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":19.048,"halstead":{"bugs":0.107,"difficulty":10.105,"effort":3254.125,"length":65,"time":180.785,"vocabulary":31,"volume":322.023,"operands":{"distinct":19,"total":32,"identifiers":["editor","newValue","getValue","readOnly","getRawOptions","setValue","range","editorModel","getFullModelRange","text","op","identifier","major","1","minor","forceMoveMarkers","true","executeEdits","\"insertValue\""]},"operators":{"distinct":12,"total":33,"identifiers":["if","! (prefix)","return","===","()","const","=",".","else","{}",":","[]"]}},"paramCount":1,"sloc":{"logical":21,"physical":27},"errors":[],"lineEnd":149,"lineStart":123,"name":"","paramNames":["newValue"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":9.524,"halstead":{"bugs":0.124,"difficulty":9.762,"effort":3627.179,"length":75,"time":201.51,"vocabulary":31,"volume":371.565,"operands":{"distinct":21,"total":41,"identifiers":["containRef","value","editor","monaco","create","currentConfig","language","props","theme","modelValue","editorModel","getModel","emit","\"onload\"","onDidScrollChange","debounce","e","300","onDidChangeModelContent","100","onDidBlurEditorText"]},"operators":{"distinct":10,"total":34,"identifiers":["if","! (prefix)",".","return","=","()","{}","... (spread)",":","function=>"]}},"paramCount":0,"sloc":{"logical":21,"physical":35},"errors":[],"lineEnd":186,"lineStart":152,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":0.5,"effort":4,"length":4,"time":0.222,"vocabulary":4,"volume":8,"operands":{"distinct":3,"total":3,"identifiers":["emit","\"scrollChange\"","e"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":171,"lineStart":169,"name":"","paramNames":["e"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":0.5,"effort":5,"length":5,"time":0.278,"vocabulary":4,"volume":10,"operands":{"distinct":3,"total":3,"identifiers":["emit","\"update:modelValue\"","getValue"]},"operators":{"distinct":1,"total":2,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":178,"lineStart":176,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":1,"effort":15.51,"length":6,"time":0.862,"vocabulary":6,"volume":15.51,"operands":{"distinct":4,"total":4,"identifiers":["editor","trigger","\"anyString\"","\"editor.action.formatDocument\""]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":1,"physical":4},"errors":[],"lineEnd":185,"lineStart":182,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.011,"difficulty":3.125,"effort":99.06,"length":10,"time":5.503,"vocabulary":9,"volume":31.699,"operands":{"distinct":4,"total":5,"identifiers":["editor","trigger","\"anyString\"","\"undo\""]},"operators":{"distinct":5,"total":5,"identifiers":["if","! (prefix)","return","()","."]}},"paramCount":0,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":191,"lineStart":188,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.011,"difficulty":3.125,"effort":99.06,"length":10,"time":5.503,"vocabulary":9,"volume":31.699,"operands":{"distinct":4,"total":5,"identifiers":["editor","trigger","\"anyString\"","\"redo\""]},"operators":{"distinct":5,"total":5,"identifiers":["if","! (prefix)","return","()","."]}},"paramCount":0,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":196,"lineStart":193,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.013,"difficulty":3.75,"effort":149.487,"length":12,"time":8.305,"vocabulary":10,"volume":39.863,"operands":{"distinct":4,"total":5,"identifiers":["editorModel","viewState","editor","saveViewState"]},"operators":{"distinct":6,"total":7,"identifiers":["if","! (prefix)","return","=",".","()"]}},"paramCount":0,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":217,"lineStart":214,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":150,"halstead":{"bugs":0.013,"difficulty":3.5,"effort":136.5,"length":13,"time":7.583,"vocabulary":8,"volume":39,"operands":{"distinct":4,"total":7,"identifiers":["editorModel","viewState","editor","restoreViewState"]},"operators":{"distinct":4,"total":6,"identifiers":["if","&&",".","()"]}},"paramCount":0,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":224,"lineStart":220,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":42.857,"halstead":{"bugs":0.03,"difficulty":5.714,"effort":513.477,"length":23,"time":28.527,"vocabulary":15,"volume":89.858,"operands":{"distinct":7,"total":10,"identifiers":["editor","selection","getSelection","isEmpty","null","editorModel","getValueInRange"]},"operators":{"distinct":8,"total":13,"identifiers":["if","! (prefix)","return","const","=","()",".",":?"]}},"paramCount":0,"sloc":{"logical":7,"physical":7},"errors":[],"lineEnd":233,"lineStart":227,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":18.75,"halstead":{"bugs":0.112,"difficulty":9.818,"effort":3296.676,"length":66,"time":183.149,"vocabulary":34,"volume":335.773,"operands":{"distinct":22,"total":36,"identifiers":["editor","SelectedRange","getSelection","range","null","monaco","Range","startLineNumber","startColumn","endLineNumber","endColumn","text","value","op","identifier","major","1","minor","forceMoveMarkers","true","executeEdits","\"insertValue\""]},"operators":{"distinct":12,"total":30,"identifiers":["if","! (prefix)","return","const","=","()",".","let","new","{}",":","[]"]}},"paramCount":1,"sloc":{"logical":16,"physical":26},"errors":[],"lineEnd":261,"lineStart":236,"name":"","paramNames":["value"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["initMonaco"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":265,"lineStart":263,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":75,"halstead":{"bugs":0.01,"difficulty":3,"effort":93.059,"length":12,"time":5.17,"vocabulary":6,"volume":31.02,"operands":{"distinct":3,"total":6,"identifiers":["editor","dispose","editorModel"]},"operators":{"distinct":3,"total":6,"identifiers":["&&","()","."]}},"paramCount":0,"sloc":{"logical":4,"physical":5},"errors":[],"lineEnd":271,"lineStart":267,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.852,"cyclomaticDensity":0.878,"halstead":{"bugs":0.058,"difficulty":1.302,"effort":6110.129,"length":24.407,"time":339.452,"vocabulary":5.148,"volume":173.755,"operands":{"distinct":4.259,"total":12.481},"operators":{"distinct":0.889,"total":11.926}},"paramCount":0.222,"sloc":{"logical":7.815,"physical":10.556}},"methodAverage":{"cyclomatic":1.885,"cyclomaticDensity":73.179,"halstead":{"bugs":0.025,"difficulty":3.451,"effort":569.313,"length":18.077,"time":31.628,"vocabulary":10.962,"volume":75.239,"operands":{"distinct":6.346,"total":9.5},"operators":{"distinct":4.615,"total":8.577}},"paramCount":0.231,"sloc":{"logical":5.077,"physical":7.885}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-monaco-editor/loader.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":1.333,"effort":18.575,"length":6,"time":1.032,"vocabulary":5,"volume":13.932,"operands":{"distinct":3,"total":4,"identifiers":["defaultTheme","register","monaco"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":1,"physical":7}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"/Users/qlin/code/fes.js/node_modules/monaco-editor","type":"esm"},{"line":2,"path":"./theme/default","type":"esm"}],"errors":[],"lineEnd":7,"lineStart":1,"maintainability":94.156,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":1.333,"effort":18.575,"length":6,"time":1.032,"vocabulary":5,"volume":13.932,"operands":{"distinct":3,"total":4},"operators":{"distinct":2,"total":2}},"paramCount":0,"sloc":{"logical":1,"physical":7}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-monaco-editor/runtime.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":1}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":1,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":1}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-monaco-editor/theme/default.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":1.667,"halstead":{"bugs":0.461,"difficulty":5.758,"effort":7956.805,"length":227,"time":442.045,"vocabulary":68,"volume":1381.854,"operands":{"distinct":62,"total":119,"identifiers":["monaco","editor","defineTheme","\"defaultTheme\"","base","\"vs\"","inherit","true","rules","foreground","\"c41a16\"","token","\"string\"","\"1c00cf\"","\"constant.numeric\"","\"aa0d91\"","\"keyword\"","\"000000\"","\"keyword.operator\"","\"constant.language\"","\"990000\"","\"support.class.exception\"","\"entity.name.function\"","fontStyle","\"bold underline\"","\"entity.name.type\"","\"italic\"","\"variable.parameter\"","\"007400\"","\"comment\"","\"ff0000\"","\"invalid\"","background","\"e71a1100\"","\"invalid.deprecated.trailing-whitespace\"","\"fafafafc\"","\"text source\"","\"meta.tag\"","\"declaration.tag\"","\"bold\"","\"support\"","\"storage\"","\"entity.name.section\"","\"entity.name.function.frame\"","\"333333\"","\"meta.tag.preprocessor.xml\"","\"994500\"","\"entity.other.attribute-name\"","\"881280\"","\"entity.name.tag\"","colors","\"editor.foreground\"","\"#000000\"","\"editor.background\"","\"#FFFFFF\"","\"editor.selectionBackground\"","\"#BAD6FD\"","\"editor.lineHighlightBackground\"","\"#0000001A\"","\"editorCursor.foreground\"","\"editorWhitespace.foreground\"","\"#B3B3B3F4\""]},"operators":{"distinct":6,"total":108,"identifiers":["{}","()",".",":","[]",","]}},"paramCount":0,"sloc":{"logical":60,"physical":112}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":112,"lineStart":1,"maintainability":43.248,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":1.667,"halstead":{"bugs":0.461,"difficulty":5.758,"effort":7956.805,"length":227,"time":442.045,"vocabulary":68,"volume":1381.854,"operands":{"distinct":62,"total":119},"operators":{"distinct":6,"total":108}},"paramCount":0,"sloc":{"logical":60,"physical":112}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-request/cacheControl.js","report":{"aggregate":{"cyclomatic":44,"cyclomaticDensity":30.769,"halstead":{"bugs":1.382,"difficulty":53.167,"effort":220411.941,"length":609,"time":12245.108,"vocabulary":112,"volume":4145.679,"operands":{"distinct":84,"total":319,"identifiers":["CACHE_KEY_PREFIX","\"__FES_REQUEST_CACHE:\"","CACHE_TYPE","ram","\"ram\"","session","\"sessionStorage\"","local","\"localStorage\"","CACHE_DATA_MAP","Map","genInnerKey","key","cacheType","'ram'","canCache","data","isObject","isString","Array","isArray","isURLSearchParams","setCacheData","cacheTime","1000","60","3","_key","currentCacheData","expire","Date","now","cacheInstance","window","setItem","JSON","stringify","e","item","startsWith","Object","prototype","hasOwnProperty","call","removeItem","set","isExpire","false","true","getCacheData","text","getItem","null","parse","get","delete","cacheStartFlag","cachingQueue","handleCachingStart","ctx","config","cache","caching","Promise","resolve","queue","concat","handleCachingQueueSuccess","length","0","forEach","response","handleCachingQueueError","firstResolve","shift","next","cacheData","result","keys","requestdata","checkHttpRequestHasBody","method","params","error"]},"operators":{"distinct":28,"total":290,"identifiers":["const","=","{}",":","new","function","if","!==",".","return","``","${}","||","! (prefix)","()","*","+","else","[]","try","catch","forin","&&",">=","function=>",">",":?","... (spread)"]}},"paramCount":27,"sloc":{"logical":143,"physical":210}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":3,"path":"./helpers","type":"esm"}],"errors":[],"lineEnd":210,"lineStart":1,"maintainability":57.093,"methods":[{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.016,"difficulty":3.6,"effort":174.355,"length":14,"time":9.686,"vocabulary":11,"volume":48.432,"operands":{"distinct":5,"total":6,"identifiers":["cacheType","CACHE_TYPE","ram","CACHE_KEY_PREFIX","key"]},"operators":{"distinct":6,"total":8,"identifiers":["if","!==",".","return","``","${}"]}},"paramCount":2,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":54,"lineStart":49,"name":"genInnerKey","paramNames":["key","cacheType"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":5,"cyclomaticDensity":100,"halstead":{"bugs":0.024,"difficulty":4.167,"effort":302.7,"length":21,"time":16.817,"vocabulary":11,"volume":72.648,"operands":{"distinct":6,"total":10,"identifiers":["data","isObject","isString","Array","isArray","isURLSearchParams"]},"operators":{"distinct":5,"total":11,"identifiers":["return","||","! (prefix)","()","."]}},"paramCount":1,"sloc":{"logical":5,"physical":3},"errors":[],"lineEnd":58,"lineStart":56,"name":"canCache","paramNames":["data"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":19.048,"halstead":{"bugs":0.154,"difficulty":12.589,"effort":5806.588,"length":85,"time":322.588,"vocabulary":43,"volume":461.233,"operands":{"distinct":28,"total":47,"identifiers":["_key","genInnerKey","key","cacheType","currentCacheData","data","cacheTime","expire","Date","now","CACHE_TYPE","ram","cacheInstance","window","setItem","JSON","stringify","e","item","startsWith","CACHE_KEY_PREFIX","Object","prototype","hasOwnProperty","call","removeItem","CACHE_DATA_MAP","set"]},"operators":{"distinct":15,"total":38,"identifiers":["const","=","()","{}",":","+",".","if","else","!==","[]","try","catch","forin","&&"]}},"paramCount":8,"sloc":{"logical":21,"physical":30},"errors":[],"lineEnd":89,"lineStart":60,"name":"setCacheData","paramNames":["key","cacheType","'ram'","data","cacheTime","1000","60","3"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":75,"halstead":{"bugs":0.017,"difficulty":3.5,"effort":181.322,"length":14,"time":10.073,"vocabulary":13,"volume":51.806,"operands":{"distinct":6,"total":6,"identifiers":["cacheTime","expire","Date","now","false","true"]},"operators":{"distinct":7,"total":8,"identifiers":["if","||","! (prefix)",">=","()",".","return"]}},"paramCount":2,"sloc":{"logical":4,"physical":6},"errors":[],"lineEnd":96,"lineStart":91,"name":"isExpire","paramNames":["expire","cacheTime"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":7,"cyclomaticDensity":28,"halstead":{"bugs":0.161,"difficulty":15.667,"effort":7553.724,"length":94,"time":419.651,"vocabulary":35,"volume":482.153,"operands":{"distinct":21,"total":47,"identifiers":["_key","genInnerKey","key","cacheType","CACHE_TYPE","ram","cacheInstance","window","text","getItem","null","currentCacheData","JSON","parse","isExpire","data","removeItem","e","CACHE_DATA_MAP","get","delete"]},"operators":{"distinct":14,"total":47,"identifiers":["const","=","()","if","else","!==",".","[]","||","try","&&","! (prefix)","return","catch"]}},"paramCount":3,"sloc":{"logical":25,"physical":25},"errors":[],"lineEnd":122,"lineStart":98,"name":"getCacheData","paramNames":["key","cacheType","'ram'"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.051,"difficulty":5.143,"effort":779.763,"length":34,"time":43.32,"vocabulary":22,"volume":151.621,"operands":{"distinct":14,"total":18,"identifiers":["_key","genInnerKey","ctx","key","config","cache","cacheType","caching","cacheStartFlag","get","Promise","resolve","set","true"]},"operators":{"distinct":8,"total":16,"identifiers":["const","=","()",".","if","return","new","function=>"]}},"paramCount":2,"sloc":{"logical":8,"physical":11},"errors":[],"lineEnd":143,"lineStart":133,"name":"handleCachingStart","paramNames":["ctx","config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.025,"difficulty":4.286,"effort":317.181,"length":20,"time":17.621,"vocabulary":13,"volume":74.009,"operands":{"distinct":7,"total":10,"identifiers":["queue","cachingQueue","get","_key","set","concat","resolve"]},"operators":{"distinct":6,"total":10,"identifiers":["const","=","||","()",".","[]"]}},"paramCount":1,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":140,"lineStart":137,"name":"","paramNames":["resolve"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.069,"difficulty":6,"effort":1237.94,"length":45,"time":68.774,"vocabulary":24,"volume":206.323,"operands":{"distinct":16,"total":24,"identifiers":["_key","genInnerKey","ctx","key","config","cache","cacheType","queue","cachingQueue","get","length","0","forEach","resolve","delete","cacheStartFlag"]},"operators":{"distinct":8,"total":21,"identifiers":["const","=","()",".","if","&&",">","function=>"]}},"paramCount":2,"sloc":{"logical":9,"physical":14},"errors":[],"lineEnd":159,"lineStart":146,"name":"handleCachingQueueSuccess","paramNames":["ctx","config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.007,"difficulty":2.667,"effort":59.89,"length":8,"time":3.327,"vocabulary":7,"volume":22.459,"operands":{"distinct":3,"total":4,"identifiers":["resolve","response","ctx"]},"operators":{"distinct":4,"total":4,"identifiers":["()","{}",":","."]}},"paramCount":1,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":155,"lineStart":151,"name":"","paramNames":["resolve"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":25,"halstead":{"bugs":0.085,"difficulty":6.824,"effort":1742.812,"length":55,"time":96.823,"vocabulary":25,"volume":255.412,"operands":{"distinct":17,"total":29,"identifiers":["_key","genInnerKey","ctx","key","config","cache","cacheType","queue","cachingQueue","get","length","0","firstResolve","shift","set","delete","cacheStartFlag"]},"operators":{"distinct":8,"total":26,"identifiers":["const","=","()",".","if","else","&&",">"]}},"paramCount":2,"sloc":{"logical":12,"physical":12},"errors":[],"lineEnd":173,"lineStart":162,"name":"handleCachingQueueError","paramNames":["ctx","config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":10,"cyclomaticDensity":31.25,"halstead":{"bugs":0.226,"difficulty":19.25,"effort":13031.916,"length":129,"time":723.995,"vocabulary":38,"volume":676.983,"operands":{"distinct":24,"total":66,"identifiers":["config","ctx","cache","cacheData","getCacheData","key","cacheType","response","data","result","handleCachingStart","Object","keys","forEach","next","requestdata","checkHttpRequestHasBody","method","params","error","canCache","handleCachingQueueSuccess","setCacheData","handleCachingQueueError"]},"operators":{"distinct":14,"total":63,"identifiers":["const","=","{}","if",".","()",":","return","function=>",":?","else","&&","! (prefix)","... (spread)"]}},"paramCount":2,"sloc":{"logical":32,"physical":35},"errors":[],"lineEnd":209,"lineStart":175,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":1.333,"effort":21.671,"length":7,"time":1.204,"vocabulary":5,"volume":16.253,"operands":{"distinct":3,"total":4,"identifiers":["ctx","key","result"]},"operators":{"distinct":2,"total":3,"identifiers":["=","[]"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":189,"lineStart":187,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3.385,"cyclomaticDensity":2.367,"halstead":{"bugs":0.106,"difficulty":4.09,"effort":16954.765,"length":46.846,"time":941.931,"vocabulary":8.615,"volume":318.898,"operands":{"distinct":6.462,"total":24.538},"operators":{"distinct":2.154,"total":22.308}},"paramCount":2.077,"sloc":{"logical":11,"physical":16.154}},"methodAverage":{"cyclomatic":3.583,"cyclomaticDensity":50.275,"halstead":{"bugs":0.07,"difficulty":7.085,"effort":2600.822,"length":43.833,"time":144.49,"vocabulary":20.583,"volume":209.944,"operands":{"distinct":12.5,"total":22.583},"operators":{"distinct":8.083,"total":21.25}},"paramCount":2.25,"sloc":{"logical":10.5,"physical":12.833}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-request/genRequestKey.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":15.789,"halstead":{"bugs":0.13,"difficulty":9.625,"effort":3752.071,"length":76,"time":208.448,"vocabulary":35,"volume":389.826,"operands":{"distinct":24,"total":42,"identifiers":["Object","defineProperty","exports","\"__esModule\"","value","true","default","genRequestKey","_helpers","require","\"./helpers\"","ctx","next","url","data","method","config","0","isURLSearchParams","key","toString","JSON","stringify","\"use strict\""]},"operators":{"distinct":11,"total":34,"identifiers":["()",".","{}",":","=","var","function","const","if","``","${}"]}},"paramCount":2,"sloc":{"logical":19,"physical":29}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":8,"path":"./helpers","type":"cjs"}],"errors":[],"lineEnd":29,"lineStart":1,"maintainability":63.361,"methods":[{"cyclomatic":2,"cyclomaticDensity":16.667,"halstead":{"bugs":0.073,"difficulty":8,"effort":1756.927,"length":50,"time":97.607,"vocabulary":21,"volume":219.616,"operands":{"distinct":13,"total":26,"identifiers":["url","data","method","ctx","config","0","_helpers","isURLSearchParams","key","toString","JSON","stringify","next"]},"operators":{"distinct":8,"total":24,"identifiers":["const","=","{}",".","if","()","``","${}"]}},"paramCount":2,"sloc":{"logical":12,"physical":14},"errors":[],"lineEnd":29,"lineStart":16,"name":"genRequestKey","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":7.895,"halstead":{"bugs":0.065,"difficulty":4.813,"effort":1876.035,"length":38,"time":104.224,"vocabulary":17.5,"volume":194.913,"operands":{"distinct":12,"total":21},"operators":{"distinct":5.5,"total":17}},"paramCount":1,"sloc":{"logical":9.5,"physical":14.5}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":16.667,"halstead":{"bugs":0.073,"difficulty":8,"effort":1756.927,"length":50,"time":97.607,"vocabulary":21,"volume":219.616,"operands":{"distinct":13,"total":26},"operators":{"distinct":8,"total":24}},"paramCount":2,"sloc":{"logical":12,"physical":14}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-request/helpers.js","report":{"aggregate":{"cyclomatic":16,"cyclomaticDensity":22.222,"halstead":{"bugs":0.463,"difficulty":14.875,"effort":20661.77,"length":223,"time":1147.876,"vocabulary":75,"volume":1389.027,"operands":{"distinct":60,"total":119,"identifiers":["typeOf","obj","map","\"[object Boolean]\"","\"boolean\"","\"[object Number]\"","\"number\"","\"[object String]\"","\"string\"","\"[object Function]\"","\"function\"","\"[object Array]\"","\"array\"","\"[object Date]\"","\"date\"","\"[object RegExp]\"","\"regExp\"","\"[object Undefined]\"","\"undefined\"","\"[object Null]\"","\"null\"","\"[object Object]\"","\"object\"","\"[object URLSearchParams]\"","\"URLSearchParams\"","Object","prototype","toString","call","isFunction","isDate","isString","isArray","isObject","isURLSearchParams","isUndefined","val","undefined","isDefined","null","checkHttpRequestHasBody","method","toUpperCase","HTTP_METHOD","GET","request_body","false","POST","true","PUT","DELETE","HEAD","OPTIONS","PATCH","trimObj","entries","forEach","key","value","trim"]},"operators":{"distinct":15,"total":104,"identifiers":["function","const","=","{}",":","return","[]","()",".","===","function=>","!=","if",",","else"]}},"paramCount":13,"sloc":{"logical":72,"physical":91}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":91,"lineStart":1,"maintainability":68.92,"methods":[{"cyclomatic":1,"cyclomaticDensity":7.143,"halstead":{"bugs":0.084,"difficulty":4.143,"effort":1049.495,"length":49,"time":58.305,"vocabulary":36,"volume":253.326,"operands":{"distinct":28,"total":29,"identifiers":["map","\"[object Boolean]\"","\"boolean\"","\"[object Number]\"","\"number\"","\"[object String]\"","\"string\"","\"[object Function]\"","\"function\"","\"[object Array]\"","\"array\"","\"[object Date]\"","\"date\"","\"[object RegExp]\"","\"regExp\"","\"[object Undefined]\"","\"undefined\"","\"[object Null]\"","\"null\"","\"[object Object]\"","\"object\"","\"[object URLSearchParams]\"","\"URLSearchParams\"","Object","prototype","toString","call","obj"]},"operators":{"distinct":8,"total":20,"identifiers":["const","=","{}",":","return","[]","()","."]}},"paramCount":1,"sloc":{"logical":14,"physical":16},"errors":[],"lineEnd":20,"lineStart":5,"name":"typeOf","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"function\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":24,"lineStart":22,"name":"isFunction","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"date\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":28,"lineStart":26,"name":"isDate","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"string\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":32,"lineStart":30,"name":"isString","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"array\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":36,"lineStart":34,"name":"isArray","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"object\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":40,"lineStart":38,"name":"isObject","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"URLSearchParams\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":44,"lineStart":42,"name":"isURLSearchParams","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["val","undefined"]},"operators":{"distinct":1,"total":1,"identifiers":["==="]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":47,"lineStart":47,"name":"","paramNames":["val"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["val","null"]},"operators":{"distinct":1,"total":1,"identifiers":["!="]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":49,"lineStart":49,"name":"","paramNames":["val"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":5.556,"halstead":{"bugs":0.085,"difficulty":8.615,"effort":2194.807,"length":58,"time":121.934,"vocabulary":21,"volume":254.754,"operands":{"distinct":13,"total":28,"identifiers":["method","toUpperCase","HTTP_METHOD","GET","request_body","false","POST","true","PUT","DELETE","HEAD","OPTIONS","PATCH"]},"operators":{"distinct":8,"total":30,"identifiers":["=","()",".","const","{}",":","return","[]"]}},"paramCount":1,"sloc":{"logical":18,"physical":27},"errors":[],"lineEnd":78,"lineStart":52,"name":"checkHttpRequestHasBody","paramNames":["method"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.021,"difficulty":3.429,"effort":215.683,"length":17,"time":11.982,"vocabulary":13,"volume":62.907,"operands":{"distinct":7,"total":8,"identifiers":["isObject","obj","Object","entries","forEach","key","value"]},"operators":{"distinct":6,"total":9,"identifiers":["if","()",".","function=>","[]",","]}},"paramCount":1,"sloc":{"logical":5,"physical":11},"errors":[],"lineEnd":90,"lineStart":80,"name":"trimObj","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":37.5,"halstead":{"bugs":0.025,"difficulty":4.286,"effort":317.181,"length":20,"time":17.621,"vocabulary":13,"volume":74.009,"operands":{"distinct":7,"total":10,"identifiers":["isString","value","obj","key","trim","isObject","trimObj"]},"operators":{"distinct":6,"total":10,"identifiers":["if","else","()","=","[]","."]}},"paramCount":2,"sloc":{"logical":8,"physical":7},"errors":[],"lineEnd":88,"lineStart":82,"name":"","paramNames":["key","value"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.231,"cyclomaticDensity":1.709,"halstead":{"bugs":0.036,"difficulty":1.144,"effort":1589.367,"length":17.154,"time":88.298,"vocabulary":5.769,"volume":106.848,"operands":{"distinct":4.615,"total":9.154},"operators":{"distinct":1.154,"total":8}},"paramCount":1,"sloc":{"logical":5.538,"physical":7}},"methodAverage":{"cyclomatic":1.25,"cyclomaticDensity":49.183,"halstead":{"bugs":0.021,"difficulty":2.539,"effort":326.792,"length":15.5,"time":18.155,"vocabulary":10.417,"volume":62.297,"operands":{"distinct":6.417,"total":8.083},"operators":{"distinct":4,"total":7.417}},"paramCount":1.083,"sloc":{"logical":4.917,"physical":6.75}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-request/paramsProcess.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.036,"difficulty":6.563,"effort":717.891,"length":28,"time":39.883,"vocabulary":15,"volume":109.393,"operands":{"distinct":8,"total":15,"identifiers":["ctx","next","config","checkHttpRequestHasBody","method","trimObj","data","params"]},"operators":{"distinct":7,"total":13,"identifiers":["function=>","const","=",".","if","else","()"]}},"paramCount":2,"sloc":{"logical":9,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./helpers","type":"esm"}],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":73.747,"methods":[{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.032,"difficulty":4.875,"effort":464.021,"length":25,"time":25.779,"vocabulary":14,"volume":95.184,"operands":{"distinct":8,"total":13,"identifiers":["config","ctx","checkHttpRequestHasBody","method","trimObj","data","params","next"]},"operators":{"distinct":6,"total":12,"identifiers":["const","=",".","if","else","()"]}},"paramCount":2,"sloc":{"logical":8,"physical":9},"errors":[],"lineEnd":11,"lineStart":3,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":16.667,"halstead":{"bugs":0.018,"difficulty":3.281,"effort":358.946,"length":14,"time":19.941,"vocabulary":7.5,"volume":54.696,"operands":{"distinct":4,"total":7.5},"operators":{"distinct":3.5,"total":6.5}},"paramCount":1,"sloc":{"logical":4.5,"physical":6}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.032,"difficulty":4.875,"effort":464.021,"length":25,"time":25.779,"vocabulary":14,"volume":95.184,"operands":{"distinct":8,"total":13},"operators":{"distinct":6,"total":12}},"paramCount":2,"sloc":{"logical":8,"physical":9}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-request/preventRepeatReq.js","report":{"aggregate":{"cyclomatic":17,"cyclomaticDensity":32.075,"halstead":{"bugs":0.419,"difficulty":30.281,"effort":38084.577,"length":224,"time":2115.81,"vocabulary":49,"volume":1257.695,"operands":{"distinct":32,"total":114,"identifiers":["requestMap","Map","mergeRequestMap","requestQueue","handleCachingStart","ctx","isRequesting","get","key","Promise","resolve","queue","set","concat","true","handleRepeatRequest","length","0","forEach","error","response","delete","next","config","mergeRequest","result","Object","keys","type","\"REPEAT\"","msg","\"重复请求\""]},"operators":{"distinct":17,"total":110,"identifiers":["const","=","new","function","()",".","if","return","function=>","||","[]","&&",">","else","{}",":","! (prefix)"]}},"paramCount":7,"sloc":{"logical":53,"physical":65}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":65,"lineStart":1,"maintainability":63.099,"methods":[{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.034,"difficulty":5.778,"effort":590.411,"length":25,"time":32.801,"vocabulary":17,"volume":102.187,"operands":{"distinct":9,"total":13,"identifiers":["isRequesting","mergeRequestMap","get","ctx","key","Promise","resolve","set","true"]},"operators":{"distinct":8,"total":12,"identifiers":["const","=","()",".","if","return","new","function=>"]}},"paramCount":1,"sloc":{"logical":6,"physical":10},"errors":[],"lineEnd":15,"lineStart":6,"name":"handleCachingStart","paramNames":["ctx"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.03,"difficulty":4.5,"effort":411.194,"length":24,"time":22.844,"vocabulary":14,"volume":91.377,"operands":{"distinct":8,"total":12,"identifiers":["queue","requestQueue","get","ctx","key","set","concat","resolve"]},"operators":{"distinct":6,"total":12,"identifiers":["const","=","||","()",".","[]"]}},"paramCount":1,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":12,"lineStart":9,"name":"","paramNames":["resolve"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":42.857,"halstead":{"bugs":0.054,"difficulty":7.273,"effort":1173.973,"length":38,"time":65.221,"vocabulary":19,"volume":161.421,"operands":{"distinct":11,"total":20,"identifiers":["queue","requestQueue","get","ctx","key","length","0","forEach","resolve","delete","mergeRequestMap"]},"operators":{"distinct":8,"total":18,"identifiers":["const","=","()",".","if","&&",">","function=>"]}},"paramCount":1,"sloc":{"logical":7,"physical":18},"errors":[],"lineEnd":34,"lineStart":17,"name":"handleRepeatRequest","paramNames":["ctx"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.023,"difficulty":7.5,"effort":523.204,"length":21,"time":29.067,"vocabulary":10,"volume":69.76,"operands":{"distinct":4,"total":10,"identifiers":["ctx","error","resolve","response"]},"operators":{"distinct":6,"total":11,"identifiers":["if","else",".","()","{}",":"]}},"paramCount":1,"sloc":{"logical":6,"physical":11},"errors":[],"lineEnd":30,"lineStart":20,"name":"","paramNames":["resolve"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":26.087,"halstead":{"bugs":0.143,"difficulty":12.286,"effort":5267.789,"length":85,"time":292.655,"vocabulary":33,"volume":428.774,"operands":{"distinct":21,"total":43,"identifiers":["ctx","config","mergeRequest","result","handleCachingStart","Object","keys","forEach","key","requestMap","get","error","type","\"REPEAT\"","msg","\"重复请求\"","set","true","next","handleRepeatRequest","delete"]},"operators":{"distinct":12,"total":42,"identifiers":["if","else",".","const","=","()","function=>","return","&&","! (prefix)","{}",":"]}},"paramCount":2,"sloc":{"logical":23,"physical":29},"errors":[],"lineEnd":64,"lineStart":36,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":1.333,"effort":21.671,"length":7,"time":1.204,"vocabulary":5,"volume":16.253,"operands":{"distinct":3,"total":4,"identifiers":["ctx","key","result"]},"operators":{"distinct":2,"total":3,"identifiers":["=","[]"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":42,"lineStart":40,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.429,"cyclomaticDensity":4.582,"halstead":{"bugs":0.06,"difficulty":4.326,"effort":5440.654,"length":32,"time":302.259,"vocabulary":7,"volume":179.671,"operands":{"distinct":4.571,"total":16.286},"operators":{"distinct":2.429,"total":15.714}},"paramCount":1,"sloc":{"logical":7.571,"physical":9.286}},"methodAverage":{"cyclomatic":2.667,"cyclomaticDensity":47.602,"halstead":{"bugs":0.048,"difficulty":6.445,"effort":1331.374,"length":33.333,"time":73.965,"vocabulary":16.333,"volume":144.962,"operands":{"distinct":9.333,"total":17},"operators":{"distinct":7,"total":16.333}},"paramCount":1.167,"sloc":{"logical":7.833,"physical":12.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-request/request.js","report":{"aggregate":{"cyclomatic":50,"cyclomaticDensity":23.256,"halstead":{"bugs":2.035,"difficulty":44.591,"effort":272283.563,"length":835,"time":15126.865,"vocabulary":159,"volume":6106.257,"operands":{"distinct":132,"total":436,"identifiers":["Object","defineProperty","exports","\"__esModule\"","value","true","useRequest","request","0","_axios","_interopRequireDefault","require","\"axios\"","_fes","\"@fesjs/fes\"","_vue","\"vue\"","_scheduler","\"./scheduler\"","_helpers","\"./helpers\"","_setDataField","\"./setDataField\"","_paramsProcess","\"./paramsProcess\"","_genRequestKey","\"./genRequestKey\"","_preventRepeatReq","\"./preventRepeatReq\"","_throttle","\"./throttle\"","_cacheControl","\"./cacheControl\"","_resDataAdaptor","\"./resDataAdaptor\"","_resErrorProcess","\"./resErrorProcess\"","obj","__esModule","default","addInterceptors","instance","interceptors","type","'request'","forEach","fn","Array","isArray","use","isFunction","addRequestInterceptors","\"request\"","addResponseInterceptors","\"response\"","axiosMiddleware","context","next","response","config","error","getRequestInstance","responseDataAdaptor","requestInterceptors","responseInterceptors","errorHandler","otherConfigs","plugin","applyPlugins","key","ApplyPluginsType","modify","initialValue","defaultConfig","assign","timeout","10000","withCredentials","create","dataField","\"result\"","compose","handleApiPathBase","url","options","startsWith","\"http\"","base","userConfigHandler","data","method","\"post\"","toUpperCase","checkHttpRequestHasBody","params","currentRequestInstance","null","createContext","userConfig","getResponseCode","_rawData","code","skipErrorHandlerToObj","skipErrorHandler","reduce","acc","cur","handleRequestError","skipObj","resCode","errorKey","\"default\"","status","\"string\"","then","useResonse","Promise","reject","isPromiseLike","\"object\"","\"function\"","loadingRef","ref","errorRef","dataRef","promise","res","catch","finally","false","loading","\"use strict\""]},"operators":{"distinct":27,"total":399,"identifiers":["()",".","{}",":","=","void (prefix)","var","function","return",":?","&&","function=>","if","else","[]","... (spread)","try","catch","const","... (rest)","``","${}","||","let","! (prefix)","===","typeof (prefix)"]}},"paramCount":34,"sloc":{"logical":215,"physical":236}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":8,"path":"axios","type":"cjs"},{"line":10,"path":"@fesjs/fes","type":"cjs"},{"line":12,"path":"vue","type":"cjs"},{"line":14,"path":"./scheduler","type":"cjs"},{"line":16,"path":"./helpers","type":"cjs"},{"line":18,"path":"./setDataField","type":"cjs"},{"line":20,"path":"./paramsProcess","type":"cjs"},{"line":22,"path":"./genRequestKey","type":"cjs"},{"line":24,"path":"./preventRepeatReq","type":"cjs"},{"line":26,"path":"./throttle","type":"cjs"},{"line":28,"path":"./cacheControl","type":"cjs"},{"line":30,"path":"./resDataAdaptor","type":"cjs"},{"line":32,"path":"./resErrorProcess","type":"cjs"}],"errors":[],"lineEnd":236,"lineStart":1,"maintainability":59.077,"methods":[{"cyclomatic":3,"cyclomaticDensity":150,"halstead":{"bugs":0.013,"difficulty":6,"effort":228.235,"length":12,"time":12.68,"vocabulary":9,"volume":38.039,"operands":{"distinct":3,"total":6,"identifiers":["obj","__esModule","default"]},"operators":{"distinct":6,"total":6,"identifiers":["return",":?","&&",".","{}",":"]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":34,"lineStart":34,"name":"_interopRequireDefault","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["interceptors","forEach","fn"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","function=>"]}},"paramCount":3,"sloc":{"logical":2,"physical":9},"errors":[],"lineEnd":44,"lineStart":36,"name":"addInterceptors","paramNames":["instance","interceptors","type"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":42.857,"halstead":{"bugs":0.044,"difficulty":5.1,"effort":673.2,"length":33,"time":37.4,"vocabulary":16,"volume":132,"operands":{"distinct":10,"total":17,"identifiers":["Array","isArray","fn","instance","interceptors","type","use","0","_helpers","isFunction"]},"operators":{"distinct":6,"total":16,"identifiers":["if","else","()",".","[]","... (spread)"]}},"paramCount":1,"sloc":{"logical":7,"physical":7},"errors":[],"lineEnd":43,"lineStart":37,"name":"","paramNames":["fn"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":0.5,"effort":5.805,"length":5,"time":0.322,"vocabulary":5,"volume":11.61,"operands":{"distinct":4,"total":4,"identifiers":["addInterceptors","instance","interceptors","\"request\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":2,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":48,"lineStart":46,"name":"addRequestInterceptors","paramNames":["instance","interceptors"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":0.5,"effort":5.805,"length":5,"time":0.322,"vocabulary":5,"volume":11.61,"operands":{"distinct":4,"total":4,"identifiers":["addInterceptors","instance","interceptors","\"response\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":2,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":52,"lineStart":50,"name":"addResponseInterceptors","paramNames":["instance","interceptors"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.027,"difficulty":4.286,"effort":353.375,"length":23,"time":19.632,"vocabulary":12,"volume":82.454,"operands":{"distinct":7,"total":12,"identifiers":["context","response","instance","request","config","error","next"]},"operators":{"distinct":5,"total":11,"identifiers":["try","=",".","()","catch"]}},"paramCount":2,"sloc":{"logical":7,"physical":9},"errors":[],"lineEnd":62,"lineStart":54,"name":"axiosMiddleware","paramNames":["context","next"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":2.703,"halstead":{"bugs":0.279,"difficulty":8.477,"effort":7103.212,"length":147,"time":394.623,"vocabulary":52,"volume":837.965,"operands":{"distinct":43,"total":81,"identifiers":["responseDataAdaptor","requestInterceptors","responseInterceptors","errorHandler","otherConfigs","_fes","plugin","applyPlugins","key","\"request\"","type","ApplyPluginsType","modify","initialValue","defaultConfig","Object","assign","timeout","10000","withCredentials","true","instance","_axios","default","create","addRequestInterceptors","addResponseInterceptors","_scheduler","use","_paramsProcess","_genRequestKey","_cacheControl","_preventRepeatReq","_throttle","axiosMiddleware","_resDataAdaptor","_resErrorProcess","_setDataField","context","dataField","\"result\"","request","compose"]},"operators":{"distinct":9,"total":66,"identifiers":["const","=","{}","[]","... (rest)","()",".",":","return"]}},"paramCount":0,"sloc":{"logical":37,"physical":37},"errors":[],"lineEnd":100,"lineStart":64,"name":"getRequestInstance","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":50,"halstead":{"bugs":0.028,"difficulty":6,"effort":498.158,"length":24,"time":27.675,"vocabulary":11,"volume":83.026,"operands":{"distinct":5,"total":10,"identifiers":["url","startsWith","\"http\"","options","base"]},"operators":{"distinct":6,"total":14,"identifiers":["if","()",".","return","``","${}"]}},"paramCount":2,"sloc":{"logical":6,"physical":9},"errors":[],"lineEnd":111,"lineStart":103,"name":"handleApiPathBase","paramNames":["url","options"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":30,"halstead":{"bugs":0.058,"difficulty":7.318,"effort":1281.683,"length":42,"time":71.205,"vocabulary":18,"volume":175.137,"operands":{"distinct":11,"total":23,"identifiers":["options","url","handleApiPathBase","method","\"post\"","toUpperCase","0","_helpers","checkHttpRequestHasBody","data","params"]},"operators":{"distinct":7,"total":19,"identifiers":["=",".","()","||","if","else","return"]}},"paramCount":3,"sloc":{"logical":10,"physical":12},"errors":[],"lineEnd":124,"lineStart":113,"name":"userConfigHandler","paramNames":["url","data","options"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.019,"difficulty":3.5,"effort":197.655,"length":17,"time":10.981,"vocabulary":10,"volume":56.473,"operands":{"distinct":5,"total":7,"identifiers":["currentRequestInstance","context","config","defaultConfig","userConfig"]},"operators":{"distinct":5,"total":10,"identifiers":["return","{}","... (spread)",".",":"]}},"paramCount":1,"sloc":{"logical":2,"physical":7},"errors":[],"lineEnd":134,"lineStart":128,"name":"createContext","paramNames":["userConfig"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":66.667,"halstead":{"bugs":0.024,"difficulty":3.6,"effort":259.2,"length":24,"time":14.4,"vocabulary":8,"volume":72,"operands":{"distinct":5,"total":12,"identifiers":["response","_rawData","code","data","null"]},"operators":{"distinct":3,"total":12,"identifiers":["if",".","return"]}},"paramCount":1,"sloc":{"logical":6,"physical":8},"errors":[],"lineEnd":143,"lineStart":136,"name":"getResponseCode","paramNames":["response"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.026,"difficulty":6.75,"effort":527.43,"length":20,"time":29.302,"vocabulary":15,"volume":78.138,"operands":{"distinct":6,"total":9,"identifiers":["Array","isArray","skipErrorHandler","reduce","acc","cur"]},"operators":{"distinct":9,"total":11,"identifiers":["if","! (prefix)","()",".","=","[]","return","function=>","{}"]}},"paramCount":1,"sloc":{"logical":6,"physical":10},"errors":[],"lineEnd":154,"lineStart":145,"name":"skipErrorHandlerToObj","paramNames":["skipErrorHandler"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.006,"difficulty":2,"effort":36.189,"length":7,"time":2.011,"vocabulary":6,"volume":18.095,"operands":{"distinct":3,"total":4,"identifiers":["acc","cur","true"]},"operators":{"distinct":3,"total":3,"identifiers":["=","[]","return"]}},"paramCount":2,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":153,"lineStart":150,"name":"","paramNames":["acc","cur"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":10,"cyclomaticDensity":55.556,"halstead":{"bugs":0.133,"difficulty":18,"effort":7191.673,"length":85,"time":399.537,"vocabulary":26,"volume":399.537,"operands":{"distinct":14,"total":42,"identifiers":["config","skipErrorHandler","true","skipObj","skipErrorHandlerToObj","resCode","getResponseCode","response","errorKey","\"default\"","errorHandler","error","type","status"]},"operators":{"distinct":12,"total":43,"identifiers":["if","===",".","return","const","=","()","let","else","&&","[]","! (prefix)"]}},"paramCount":4,"sloc":{"logical":18,"physical":24},"errors":[],"lineEnd":179,"lineStart":156,"name":"handleRequestError","paramNames":["errorHandler","error","response","config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":21.429,"halstead":{"bugs":0.065,"difficulty":9.231,"effort":1800.387,"length":42,"time":100.022,"vocabulary":25,"volume":195.042,"operands":{"distinct":13,"total":20,"identifiers":["options","\"string\"","method","currentRequestInstance","getRequestInstance","userConfig","userConfigHandler","url","data","context","createContext","request","then"]},"operators":{"distinct":12,"total":22,"identifiers":["if","===","typeof (prefix)","=","{}",":","! (prefix)","()","const","return",".","function=>"]}},"paramCount":3,"sloc":{"logical":14,"physical":22},"errors":[],"lineEnd":202,"lineStart":181,"name":"","paramNames":["url","data","options"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":50,"halstead":{"bugs":0.04,"difficulty":5.333,"effort":645.939,"length":31,"time":35.886,"vocabulary":15,"volume":121.114,"operands":{"distinct":9,"total":16,"identifiers":["context","error","config","useResonse","response","data","handleRequestError","Promise","reject"]},"operators":{"distinct":6,"total":15,"identifiers":["if","! (prefix)",".","return",":?","()"]}},"paramCount":0,"sloc":{"logical":6,"physical":8},"errors":[],"lineEnd":201,"lineStart":194,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":300,"halstead":{"bugs":0.018,"difficulty":4.5,"effort":239.179,"length":16,"time":13.288,"vocabulary":10,"volume":53.151,"operands":{"distinct":4,"total":6,"identifiers":["obj","\"object\"","then","\"function\""]},"operators":{"distinct":6,"total":10,"identifiers":["return","&&","! (prefix)","===","typeof (prefix)","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":208,"lineStart":206,"name":"isPromiseLike","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":8.696,"halstead":{"bugs":0.116,"difficulty":10.175,"effort":3528.626,"length":70,"time":196.035,"vocabulary":31,"volume":346.794,"operands":{"distinct":20,"total":37,"identifiers":["loadingRef","0","_vue","ref","true","errorRef","null","dataRef","promise","isPromiseLike","url","request","data","options","then","res","catch","error","finally","loading"]},"operators":{"distinct":11,"total":33,"identifiers":["const","=","()",".","let","if","else","function=>","return","{}",":"]}},"paramCount":3,"sloc":{"logical":23,"physical":25},"errors":[],"lineEnd":234,"lineStart":210,"name":"","paramNames":["url","data","options"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["dataRef","value","res"]},"operators":{"distinct":2,"total":2,"identifiers":["=","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":224,"lineStart":222,"name":"","paramNames":["res"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["errorRef","value","error"]},"operators":{"distinct":2,"total":2,"identifiers":["=","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":226,"lineStart":224,"name":"","paramNames":["error"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["loadingRef","value","false"]},"operators":{"distinct":2,"total":2,"identifiers":["=","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":228,"lineStart":226,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.273,"cyclomaticDensity":1.057,"halstead":{"bugs":0.093,"difficulty":2.027,"effort":12376.526,"length":37.955,"time":687.585,"vocabulary":7.227,"volume":277.557,"operands":{"distinct":6,"total":19.818},"operators":{"distinct":1.227,"total":18.136}},"paramCount":1.545,"sloc":{"logical":9.773,"physical":10.727}},"methodAverage":{"cyclomatic":2.333,"cyclomaticDensity":70.263,"halstead":{"bugs":0.044,"difficulty":5.037,"effort":1173.04,"length":29.714,"time":65.169,"vocabulary":14.048,"volume":131.549,"operands":{"distinct":8.476,"total":15.333},"operators":{"distinct":5.571,"total":14.381}},"paramCount":1.619,"sloc":{"logical":7.333,"physical":10}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-request/resDataAdaptor.js","report":{"aggregate":{"cyclomatic":6,"cyclomaticDensity":66.667,"halstead":{"bugs":0.044,"difficulty":10.286,"effort":1366.295,"length":34,"time":75.905,"vocabulary":15,"volume":132.834,"operands":{"distinct":7,"total":18,"identifiers":["response","responseDataAdaptor","next","isFunction","isObject","data","isString"]},"operators":{"distinct":8,"total":16,"identifiers":["function=>","{}","if","&&","()","||",".","="]}},"paramCount":3,"sloc":{"logical":9,"physical":9}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./helpers","type":"esm"}],"errors":[],"lineEnd":9,"lineStart":1,"maintainability":72.055,"methods":[{"cyclomatic":5,"cyclomaticDensity":62.5,"halstead":{"bugs":0.036,"difficulty":6.429,"effort":689.868,"length":29,"time":38.326,"vocabulary":13,"volume":107.313,"operands":{"distinct":7,"total":15,"identifiers":["isFunction","responseDataAdaptor","response","isObject","data","isString","next"]},"operators":{"distinct":6,"total":14,"identifiers":["if","&&","()","||",".","="]}},"paramCount":3,"sloc":{"logical":8,"physical":6},"errors":[],"lineEnd":8,"lineStart":3,"name":"","paramNames":["response","responseDataAdaptor","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.022,"difficulty":5.143,"effort":683.148,"length":17,"time":37.953,"vocabulary":7.5,"volume":66.417,"operands":{"distinct":3.5,"total":9},"operators":{"distinct":4,"total":8}},"paramCount":1.5,"sloc":{"logical":4.5,"physical":4.5}},"methodAverage":{"cyclomatic":5,"cyclomaticDensity":62.5,"halstead":{"bugs":0.036,"difficulty":6.429,"effort":689.868,"length":29,"time":38.326,"vocabulary":13,"volume":107.313,"operands":{"distinct":7,"total":15},"operators":{"distinct":6,"total":14}},"paramCount":3,"sloc":{"logical":8,"physical":6}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-request/resErrorProcess.js","report":{"aggregate":{"cyclomatic":6,"cyclomaticDensity":54.545,"halstead":{"bugs":0.062,"difficulty":11.5,"effort":2137.193,"length":43,"time":118.733,"vocabulary":20,"volume":185.843,"operands":{"distinct":10,"total":23,"identifiers":["ctx","next","response","config","closeResDataCheck","isObject","data","code","\"0\"","error"]},"operators":{"distinct":10,"total":20,"identifiers":["function=>","const","=","{}","if","&&","! (prefix)",".","()","!=="]}},"paramCount":2,"sloc":{"logical":11,"physical":18}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./helpers","type":"esm"}],"errors":[],"lineEnd":18,"lineStart":1,"maintainability":69.259,"methods":[{"cyclomatic":5,"cyclomaticDensity":50,"halstead":{"bugs":0.057,"difficulty":9.45,"effort":1605.717,"length":40,"time":89.206,"vocabulary":19,"volume":169.917,"operands":{"distinct":10,"total":21,"identifiers":["response","config","ctx","closeResDataCheck","isObject","data","code","\"0\"","error","next"]},"operators":{"distinct":9,"total":19,"identifiers":["const","=","{}","if","&&","! (prefix)",".","()","!=="]}},"paramCount":2,"sloc":{"logical":10,"physical":14},"errors":[],"lineEnd":17,"lineStart":4,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3,"cyclomaticDensity":27.273,"halstead":{"bugs":0.031,"difficulty":5.75,"effort":1068.597,"length":21.5,"time":59.366,"vocabulary":10,"volume":92.921,"operands":{"distinct":5,"total":11.5},"operators":{"distinct":5,"total":10}},"paramCount":1,"sloc":{"logical":5.5,"physical":9}},"methodAverage":{"cyclomatic":5,"cyclomaticDensity":50,"halstead":{"bugs":0.057,"difficulty":9.45,"effort":1605.717,"length":40,"time":89.206,"vocabulary":19,"volume":169.917,"operands":{"distinct":10,"total":21},"operators":{"distinct":9,"total":19}},"paramCount":2,"sloc":{"logical":10,"physical":14}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-request/scheduler.js","report":{"aggregate":{"cyclomatic":10,"cyclomaticDensity":29.412,"halstead":{"bugs":0.216,"difficulty":22.846,"effort":14801.01,"length":116,"time":822.278,"vocabulary":48,"volume":647.856,"operands":{"distinct":26,"total":54,"identifiers":["Scheduler","constructor","middlewares","use","fn","\"function\"","TypeError","\"middleware must be a function!\"","push","compose","context","next","index","1","dispatch","i","Promise","reject","Error","\"next() called multiple times\"","length","resolve","bind","null","e","0"]},"operators":{"distinct":22,"total":62,"identifiers":["class","=",".","this","[]","if","!==","typeof (prefix)","throw","new","()","return","function=>","let","- (prefix)","const","<=","===","! (prefix)","try","+","catch"]}},"paramCount":4,"sloc":{"logical":34,"physical":34}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[{"aggregate":{"cyclomatic":9,"cyclomaticDensity":27.273,"halstead":{"bugs":0.206,"difficulty":21.84,"effort":13511.074,"length":112,"time":750.615,"vocabulary":46,"volume":618.639,"operands":{"distinct":25,"total":52,"identifiers":["constructor","middlewares","use","fn","\"function\"","TypeError","\"middleware must be a function!\"","push","compose","context","next","index","1","dispatch","i","Promise","reject","Error","\"next() called multiple times\"","length","resolve","bind","null","e","0"]},"operators":{"distinct":21,"total":60,"identifiers":["=",".","this","[]","if","!==","typeof (prefix)","throw","new","()","return","function=>","let","- (prefix)","const","<=","===","! (prefix)","try","+","catch"]}},"paramCount":4,"sloc":{"logical":33,"physical":30}},"errors":[],"lineEnd":31,"lineStart":2,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":2,"effort":23.219,"length":5,"time":1.29,"vocabulary":5,"volume":11.61,"operands":{"distinct":1,"total":1,"identifiers":["middlewares"]},"operators":{"distinct":4,"total":4,"identifiers":["=",".","this","[]"]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":5,"lineStart":3,"name":"constructor","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.023,"difficulty":5.25,"effort":369.201,"length":18,"time":20.511,"vocabulary":15,"volume":70.324,"operands":{"distinct":6,"total":7,"identifiers":["fn","\"function\"","TypeError","\"middleware must be a function!\"","middlewares","push"]},"operators":{"distinct":9,"total":11,"identifiers":["if","!==","typeof (prefix)","throw","new","()",".","this","return"]}},"paramCount":1,"sloc":{"logical":4,"physical":5},"errors":[],"lineEnd":11,"lineStart":7,"name":"use","paramNames":["fn"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["context","next"]},"operators":{"distinct":2,"total":2,"identifiers":["return","function=>"]}},"paramCount":0,"sloc":{"logical":2,"physical":18},"errors":[],"lineEnd":30,"lineStart":13,"name":"compose","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.017,"difficulty":4.2,"effort":210.796,"length":14,"time":11.711,"vocabulary":12,"volume":50.189,"operands":{"distinct":5,"total":6,"identifiers":["index","1","dispatch","i","0"]},"operators":{"distinct":7,"total":8,"identifiers":["let","=","- (prefix)","const","function=>","return","()"]}},"paramCount":2,"sloc":{"logical":5,"physical":16},"errors":[],"lineEnd":29,"lineStart":14,"name":"","paramNames":["context","next"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":22.222,"halstead":{"bugs":0.112,"difficulty":14.118,"effort":4729.412,"length":67,"time":262.745,"vocabulary":32,"volume":335,"operands":{"distinct":17,"total":32,"identifiers":["i","index","Promise","reject","Error","\"next() called multiple times\"","fn","middlewares","length","next","resolve","context","dispatch","bind","null","1","e"]},"operators":{"distinct":15,"total":35,"identifiers":["if","<=","return","()",".","new","=","let","[]","this","===","! (prefix)","try","+","catch"]}},"paramCount":1,"sloc":{"logical":18,"physical":12},"errors":[],"lineEnd":27,"lineStart":16,"name":"","paramNames":["i"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":4.545,"halstead":{"bugs":0.034,"difficulty":3.64,"effort":2251.846,"length":18.667,"time":125.103,"vocabulary":7.667,"volume":103.106,"operands":{"distinct":4.167,"total":8.667},"operators":{"distinct":3.5,"total":10}},"paramCount":0.667,"sloc":{"logical":5.5,"physical":5}},"methodAverage":{"cyclomatic":1.8,"cyclomaticDensity":48.444,"halstead":{"bugs":0.032,"difficulty":5.314,"effort":1068.126,"length":21.6,"time":59.34,"vocabulary":13.6,"volume":95.025,"operands":{"distinct":6.2,"total":9.6},"operators":{"distinct":7.4,"total":12}},"paramCount":0.8,"sloc":{"logical":6,"physical":10.8}},"name":"Scheduler","maintainability":68.734}],"dependencies":[],"errors":[],"lineEnd":34,"lineStart":1,"maintainability":67.647,"methods":[],"aggregateAverage":{"cyclomatic":1.667,"cyclomaticDensity":4.902,"halstead":{"bugs":0.036,"difficulty":3.808,"effort":2466.835,"length":19.333,"time":137.046,"vocabulary":8,"volume":107.976,"operands":{"distinct":4.333,"total":9},"operators":{"distinct":3.667,"total":10.333}},"paramCount":0.667,"sloc":{"logical":5.667,"physical":5.667}},"methodAverage":{"cyclomatic":1.8,"cyclomaticDensity":48.444,"halstead":{"bugs":0.032,"difficulty":5.314,"effort":1068.126,"length":21.6,"time":59.34,"vocabulary":13.6,"volume":95.025,"operands":{"distinct":6.2,"total":9.6},"operators":{"distinct":7.4,"total":12}},"paramCount":0.8,"sloc":{"logical":6,"physical":10.8}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-request/setDataField.js","report":{"aggregate":{"cyclomatic":6,"cyclomaticDensity":75,"halstead":{"bugs":0.085,"difficulty":17.222,"effort":4389.525,"length":60,"time":243.863,"vocabulary":19,"volume":254.876,"operands":{"distinct":9,"total":31,"identifiers":["ctx","next","dataField","config","error","response","isObject","data","_rawData"]},"operators":{"distinct":10,"total":29,"identifiers":["function=>","const","=","??",".","if","&&","! (prefix)","()","[]"]}},"paramCount":2,"sloc":{"logical":8,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./helpers","type":"esm"}],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":70.837,"methods":[{"cyclomatic":5,"cyclomaticDensity":71.429,"halstead":{"bugs":0.079,"difficulty":14.5,"effort":3446.443,"length":57,"time":191.469,"vocabulary":18,"volume":237.686,"operands":{"distinct":9,"total":29,"identifiers":["dataField","ctx","config","error","response","isObject","data","_rawData","next"]},"operators":{"distinct":9,"total":28,"identifiers":["const","=","??",".","if","&&","! (prefix)","()","[]"]}},"paramCount":2,"sloc":{"logical":7,"physical":8},"errors":[],"lineEnd":11,"lineStart":4,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3,"cyclomaticDensity":37.5,"halstead":{"bugs":0.042,"difficulty":8.611,"effort":2194.763,"length":30,"time":121.931,"vocabulary":9.5,"volume":127.438,"operands":{"distinct":4.5,"total":15.5},"operators":{"distinct":5,"total":14.5}},"paramCount":1,"sloc":{"logical":4,"physical":6}},"methodAverage":{"cyclomatic":5,"cyclomaticDensity":71.429,"halstead":{"bugs":0.079,"difficulty":14.5,"effort":3446.443,"length":57,"time":191.469,"vocabulary":18,"volume":237.686,"operands":{"distinct":9,"total":29},"operators":{"distinct":9,"total":28}},"paramCount":2,"sloc":{"logical":7,"physical":8}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-request/throttle.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":28.571,"halstead":{"bugs":0.093,"difficulty":10.875,"effort":3032.239,"length":58,"time":168.458,"vocabulary":28,"volume":278.827,"operands":{"distinct":16,"total":29,"identifiers":["throttleMap","Map","ctx","next","config","throttle","get","key","Date","now","error","type","\"FREQUENTLY\"","msg","\"请求过于频繁\"","set"]},"operators":{"distinct":12,"total":29,"identifiers":["const","=","new","function=>","if",".",">=","()","{}",":","return","+"]}},"paramCount":2,"sloc":{"logical":14,"physical":17}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":17,"lineStart":1,"maintainability":66.512,"methods":[{"cyclomatic":3,"cyclomaticDensity":25,"halstead":{"bugs":0.076,"difficulty":7.5,"effort":1719.361,"length":50,"time":95.52,"vocabulary":24,"volume":229.248,"operands":{"distinct":15,"total":25,"identifiers":["ctx","config","throttle","throttleMap","get","key","Date","now","error","type","\"FREQUENTLY\"","msg","\"请求过于频繁\"","next","set"]},"operators":{"distinct":9,"total":25,"identifiers":["if",".",">=","()","=","{}",":","return","+"]}},"paramCount":2,"sloc":{"logical":12,"physical":13},"errors":[],"lineEnd":16,"lineStart":4,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":14.286,"halstead":{"bugs":0.046,"difficulty":5.438,"effort":1516.12,"length":29,"time":84.229,"vocabulary":14,"volume":139.413,"operands":{"distinct":8,"total":14.5},"operators":{"distinct":6,"total":14.5}},"paramCount":1,"sloc":{"logical":7,"physical":8.5}},"methodAverage":{"cyclomatic":3,"cyclomaticDensity":25,"halstead":{"bugs":0.076,"difficulty":7.5,"effort":1719.361,"length":50,"time":95.52,"vocabulary":24,"volume":229.248,"operands":{"distinct":15,"total":25},"operators":{"distinct":9,"total":25}},"paramCount":2,"sloc":{"logical":12,"physical":13}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-vuex/core.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":5,"halstead":{"bugs":0.24,"difficulty":6.244,"effort":4487.386,"length":128,"time":249.299,"vocabulary":49,"volume":718.683,"operands":{"distinct":41,"total":64,"identifiers":["modules","counter","fooBar","user","MUTATION_TYPES","\"user\"","\"posts\"","\"doSomething\"","\"user/posts/doSomething\"","\"increment\"","\"user/increment\"","\"fooBar\"","\"fooBar/increment\"","\"counter\"","\"counter/increment\"","ACTION_TYPES","\"asyncIncrement\"","\"user/asyncIncrement\"","\"login\"","\"user/login\"","\"fooBar/asyncIncrement\"","\"counter/asyncIncrement\"","GETTER_TYPES","\"address\"","\"user/address\"","\"doubleCount\"","\"user/doubleCount\"","\"fooBar/doubleCount\"","\"counter/doubleCount\"","conifg","\"strict\"","true","store","createStore","plugins","pluginLoger","strict","devtools","install","app","use"]},"operators":{"distinct":8,"total":64,"identifiers":["const","=","{}",":","()","[]",".","function"]}},"paramCount":1,"sloc":{"logical":40,"physical":31}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"vuex","type":"esm"},{"line":2,"path":"/Users/qlin/code/fes.js/packages/fes-template/src/stores/counter.js","type":"esm"},{"line":3,"path":"/Users/qlin/code/fes.js/packages/fes-template/src/stores/foo/bar.js","type":"esm"},{"line":4,"path":"/Users/qlin/code/fes.js/packages/fes-template/src/stores/user.js","type":"esm"},{"line":5,"path":"/Users/qlin/code/fes.js/packages/fes-template/src/stores/plugin-loger.js","type":"esm"}],"errors":[],"lineEnd":31,"lineStart":1,"maintainability":56.188,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["app","use","store"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":22,"lineStart":20,"name":"","paramNames":["app"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":2.5,"halstead":{"bugs":0.12,"difficulty":3.122,"effort":2243.693,"length":64,"time":124.65,"vocabulary":24.5,"volume":359.341,"operands":{"distinct":20.5,"total":32},"operators":{"distinct":4,"total":32}},"paramCount":0.5,"sloc":{"logical":20,"physical":15.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3},"operators":{"distinct":2,"total":2}},"paramCount":1,"sloc":{"logical":1,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/.fes/plugin-vuex/runtime.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.006,"difficulty":2,"effort":36.189,"length":7,"time":2.011,"vocabulary":6,"volume":18.095,"operands":{"distinct":3,"total":4,"identifiers":["onAppCreated","app","install"]},"operators":{"distinct":3,"total":3,"identifiers":["function","{}","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":7}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"./core","type":"esm"}],"errors":[],"lineEnd":7,"lineStart":1,"maintainability":94.209,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["install","app"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":6,"lineStart":4,"name":"onAppCreated","paramNames":["app"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":18.095,"length":3.5,"time":1.005,"vocabulary":3,"volume":9.047,"operands":{"distinct":1.5,"total":2},"operators":{"distinct":1.5,"total":1.5}},"paramCount":0.5,"sloc":{"logical":1,"physical":3.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2},"operators":{"distinct":1,"total":1}},"paramCount":1,"sloc":{"logical":1,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/app.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":18.75,"halstead":{"bugs":0.098,"difficulty":6.087,"effort":1780.89,"length":58,"time":98.938,"vocabulary":33,"volume":292.575,"operands":{"distinct":23,"total":28,"identifiers":["console","log","store","getters","GETTER_TYPES","user","address","process","env","FES_APP_PUBLISH_ERROR_PAGE","beforeRender","loading","setRole","accessApi","Promise","resolve","setTimeout","\"menuTest\"","userName","\"harrywan\"","1000","layout","customHeader"]},"operators":{"distinct":10,"total":30,"identifiers":["()",".","[]","const","=","{}",":","return","new","function=>"]}},"paramCount":1,"sloc":{"logical":16,"physical":34}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":3,"path":"@fesjs/fes","type":"esm"},{"line":4,"path":"@/components/PageLoading","type":"esm"},{"line":5,"path":"@/components/UserCenter","type":"esm"}],"errors":[],"lineEnd":34,"lineStart":1,"maintainability":71.369,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["setTimeout","1000"]},"operators":{"distinct":2,"total":2,"identifiers":["()","function=>"]}},"paramCount":1,"sloc":{"logical":2,"physical":8},"errors":[],"lineEnd":21,"lineStart":14,"name":"","paramNames":["resolve"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.009,"difficulty":1.5,"effort":40.5,"length":9,"time":2.25,"vocabulary":8,"volume":27,"operands":{"distinct":5,"total":5,"identifiers":["setRole","\"menuTest\"","resolve","userName","\"harrywan\""]},"operators":{"distinct":3,"total":4,"identifiers":["()","{}",":"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":20,"lineStart":15,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":6.25,"halstead":{"bugs":0.033,"difficulty":2.029,"effort":593.63,"length":19.333,"time":32.979,"vocabulary":11,"volume":97.525,"operands":{"distinct":7.667,"total":9.333},"operators":{"distinct":3.333,"total":10}},"paramCount":0.333,"sloc":{"logical":5.333,"physical":11.333}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":41.667,"halstead":{"bugs":0.006,"difficulty":1.25,"effort":24.25,"length":6.5,"time":1.347,"vocabulary":6,"volume":17.5,"operands":{"distinct":3.5,"total":3.5},"operators":{"distinct":2.5,"total":3}},"paramCount":0.5,"sloc":{"logical":2.5,"physical":7}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/common/service.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.022,"difficulty":1.5,"effort":96.794,"length":18,"time":5.377,"vocabulary":12,"volume":64.529,"operands":{"distinct":9,"total":9,"identifiers":["requestWrap","login","url","\"\"","throttle","300","options","method","\"get\""]},"operators":{"distinct":3,"total":9,"identifiers":["()","{}",":"]}},"paramCount":0,"sloc":{"logical":6,"physical":20}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"@fesjs/fes","type":"esm"}],"errors":[],"lineEnd":20,"lineStart":1,"maintainability":73.88,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.022,"difficulty":1.5,"effort":96.794,"length":18,"time":5.377,"vocabulary":12,"volume":64.529,"operands":{"distinct":9,"total":9},"operators":{"distinct":3,"total":9}},"paramCount":0,"sloc":{"logical":6,"physical":20}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/components/PageLoading.vue","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.006,"difficulty":2.25,"effort":41.795,"length":8,"time":2.322,"vocabulary":5,"volume":18.575,"operands":{"distinct":2,"total":3,"identifiers":["components","Spin"]},"operators":{"distinct":3,"total":5,"identifiers":["{}",":","return"]}},"paramCount":0,"sloc":{"logical":4,"physical":14}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"ant-design-vue/lib/spin","type":"esm"},{"line":3,"path":"ant-design-vue/lib/spin/style/css","type":"esm"}],"errors":[],"lineEnd":14,"lineStart":1,"maintainability":79.401,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.006,"difficulty":2.25,"effort":41.795,"length":8,"time":2.322,"vocabulary":5,"volume":18.575,"operands":{"distinct":2,"total":3},"operators":{"distinct":3,"total":5}},"paramCount":0,"sloc":{"logical":4,"physical":14}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/components/UserCenter.vue","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.011,"difficulty":4.167,"effort":137.5,"length":11,"time":7.639,"vocabulary":8,"volume":33,"operands":{"distinct":3,"total":5,"identifiers":["initialState","useModel","\"@@initialState\""]},"operators":{"distinct":5,"total":6,"identifiers":["{}","const","=","()","return"]}},"paramCount":0,"sloc":{"logical":5,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"@fesjs/fes","type":"esm"}],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":74.905,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.011,"difficulty":4.167,"effort":137.5,"length":11,"time":7.639,"vocabulary":8,"volume":33,"operands":{"distinct":3,"total":5},"operators":{"distinct":5,"total":6}},"paramCount":0,"sloc":{"logical":5,"physical":12}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/locales/en-US.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.04,"difficulty":1,"effort":121.014,"length":28,"time":6.723,"vocabulary":20,"volume":121.014,"operands":{"distinct":18,"total":18,"identifiers":["test","\"test\"","home","\"home\"","\"navBar.lang\"","\"Languages\"","\"layout.user.link.help\"","\"Help\"","\"layout.user.link.privacy\"","\"Privacy\"","\"layout.user.link.terms\"","\"Terms\"","\"app.preview.down.block\"","\"Download this page to your local project\"","\"app.welcome.link.fetch-blocks\"","\"Get all block\"","\"app.welcome.link.block-list\"","\"Quickly build standard, pages based on `block` development\""]},"operators":{"distinct":2,"total":10,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":9,"physical":13}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":13,"lineStart":1,"maintainability":69.592,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.04,"difficulty":1,"effort":121.014,"length":28,"time":6.723,"vocabulary":20,"volume":121.014,"operands":{"distinct":18,"total":18},"operators":{"distinct":2,"total":10}},"paramCount":0,"sloc":{"logical":9,"physical":13}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/locales/id-ID.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.029,"difficulty":1,"effort":88,"length":22,"time":4.889,"vocabulary":16,"volume":88,"operands":{"distinct":14,"total":14,"identifiers":["\"navbar.lang\"","\"Bahasa\"","\"layout.user.link.help\"","\"Bantuan\"","\"layout.user.link.privacy\"","\"Privasi\"","\"layout.user.link.terms\"","\"Ketentuan\"","\"app.preview.down.block\"","\"Unduh halaman ini dalam projek lokal anda\"","\"app.welcome.link.fetch-blocks\"","\"Dapatkan semua blok\"","\"app.welcome.link.block-list\"","\"Buat standar dengan cepat, halaman-halaman berdasarkan pengembangan `block`\""]},"operators":{"distinct":2,"total":8,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":7,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":72.61,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.029,"difficulty":1,"effort":88,"length":22,"time":4.889,"vocabulary":16,"volume":88,"operands":{"distinct":14,"total":14},"operators":{"distinct":2,"total":8}},"paramCount":0,"sloc":{"logical":7,"physical":12}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/locales/pt-BR.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.019,"difficulty":1,"effort":57.359,"length":16,"time":3.187,"vocabulary":12,"volume":57.359,"operands":{"distinct":10,"total":10,"identifiers":["\"navBar.lang\"","\"Idiomas\"","\"layout.user.link.help\"","\"ajuda\"","\"layout.user.link.privacy\"","\"política de privacidade\"","\"layout.user.link.terms\"","\"termos de serviços\"","\"app.preview.down.block\"","\"Download this page to your local project\""]},"operators":{"distinct":2,"total":6,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":5,"physical":9}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":9,"lineStart":1,"maintainability":76.654,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.019,"difficulty":1,"effort":57.359,"length":16,"time":3.187,"vocabulary":12,"volume":57.359,"operands":{"distinct":10,"total":10},"operators":{"distinct":2,"total":6}},"paramCount":0,"sloc":{"logical":5,"physical":9}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/locales/zh-CN.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.04,"difficulty":1,"effort":121.014,"length":28,"time":6.723,"vocabulary":20,"volume":121.014,"operands":{"distinct":18,"total":18,"identifiers":["test","\"测试\"","home","\"首页\"","\"navBar.lang\"","\"语言\"","\"layout.user.link.help\"","\"帮助\"","\"layout.user.link.privacy\"","\"隐私\"","\"layout.user.link.terms\"","\"条款\"","\"app.preview.down.block\"","\"下载此页面到本地项目\"","\"app.welcome.link.fetch-blocks\"","\"获取全部区块\"","\"app.welcome.link.block-list\"","\"基于 block 开发,快速构建标准页面\""]},"operators":{"distinct":2,"total":10,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":9,"physical":13}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":13,"lineStart":1,"maintainability":69.592,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.04,"difficulty":1,"effort":121.014,"length":28,"time":6.723,"vocabulary":20,"volume":121.014,"operands":{"distinct":18,"total":18},"operators":{"distinct":2,"total":10}},"paramCount":0,"sloc":{"logical":9,"physical":13}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/locales/zh-TW.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.019,"difficulty":1,"effort":57.359,"length":16,"time":3.187,"vocabulary":12,"volume":57.359,"operands":{"distinct":10,"total":10,"identifiers":["\"navBar.lang\"","\"語言\"","\"layout.user.link.help\"","\"幫助\"","\"layout.user.link.privacy\"","\"隱私\"","\"layout.user.link.terms\"","\"條款\"","\"app.preview.down.block\"","\"下載此頁面到本地項目\""]},"operators":{"distinct":2,"total":6,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":5,"physical":9}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":9,"lineStart":1,"maintainability":76.654,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.019,"difficulty":1,"effort":57.359,"length":16,"time":3.187,"vocabulary":12,"volume":57.359,"operands":{"distinct":10,"total":10},"operators":{"distinct":2,"total":6}},"paramCount":0,"sloc":{"logical":5,"physical":9}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/models/user.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.013,"difficulty":4.5,"effort":179.384,"length":12,"time":9.966,"vocabulary":10,"volume":39.863,"operands":{"distinct":4,"total":6,"identifiers":["user","count","ref","1"]},"operators":{"distinct":6,"total":6,"identifiers":["function","const","=","()","return","{}"]}},"paramCount":0,"sloc":{"logical":5,"physical":9}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"vue","type":"esm"}],"errors":[],"lineEnd":9,"lineStart":1,"maintainability":82.327,"methods":[{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.01,"difficulty":4.167,"effort":125,"length":10,"time":6.944,"vocabulary":8,"volume":30,"operands":{"distinct":3,"total":5,"identifiers":["count","ref","1"]},"operators":{"distinct":5,"total":5,"identifiers":["const","=","()","return","{}"]}},"paramCount":0,"sloc":{"logical":4,"physical":6},"errors":[],"lineEnd":8,"lineStart":3,"name":"user","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.007,"difficulty":2.25,"effort":89.692,"length":6,"time":4.983,"vocabulary":5,"volume":19.932,"operands":{"distinct":2,"total":3},"operators":{"distinct":3,"total":3}},"paramCount":0,"sloc":{"logical":2.5,"physical":4.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.01,"difficulty":4.167,"effort":125,"length":10,"time":6.944,"vocabulary":8,"volume":30,"operands":{"distinct":3,"total":5},"operators":{"distinct":5,"total":5}},"paramCount":0,"sloc":{"logical":4,"physical":6}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/pages/editor.vue","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":16.667,"halstead":{"bugs":0.063,"difficulty":7.077,"effort":1336.616,"length":43,"time":74.256,"vocabulary":21,"volume":188.87,"operands":{"distinct":13,"total":23,"identifiers":["components","MonacoEditor","editorRef","ref","json","\"\"","language","\"json\"","onMounted","setTimeout","value","\"html\"","3000"]},"operators":{"distinct":8,"total":20,"identifiers":["{}",":","const","=","()","function=>",".","return"]}},"paramCount":0,"sloc":{"logical":18,"physical":25}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"vue","type":"esm"},{"line":3,"path":"@fesjs/fes","type":"esm"}],"errors":[],"lineEnd":25,"lineStart":1,"maintainability":70.827,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["setTimeout","3000"]},"operators":{"distinct":2,"total":2,"identifiers":["()","function=>"]}},"paramCount":0,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":17,"lineStart":13,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["language","value","\"html\""]},"operators":{"distinct":2,"total":2,"identifiers":["=","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":16,"lineStart":14,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":5.556,"halstead":{"bugs":0.021,"difficulty":2.359,"effort":445.539,"length":14.333,"time":24.752,"vocabulary":7,"volume":62.957,"operands":{"distinct":4.333,"total":7.667},"operators":{"distinct":2.667,"total":6.667}},"paramCount":0,"sloc":{"logical":6,"physical":8.333}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":75,"halstead":{"bugs":0.003,"difficulty":1,"effort":9.805,"length":4.5,"time":0.545,"vocabulary":4.5,"volume":9.805,"operands":{"distinct":2.5,"total":2.5},"operators":{"distinct":2,"total":2}},"paramCount":0,"sloc":{"logical":1.5,"physical":4}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/pages/index.vue","report":{"aggregate":{"cyclomatic":13,"cyclomaticDensity":11.607,"halstead":{"bugs":0.923,"difficulty":14.693,"effort":40672.17,"length":409,"time":2259.565,"vocabulary":109,"volume":2768.187,"operands":{"distinct":96,"total":217,"identifiers":["components","Button","name","Input","fes","ref","\"fes upgrade to vue3\"","accessOnepicess","useAccess","\"/onepiece1\"","localI18n","useI18n","router","useRouter","accessId","enums","push","\"roles\"","id","\"1\"","cName","\"系统管理员\"","eName","\"System\"","perm","\"2\"","\"3\"","\"业务管理员\"","\"Business\"","\"普通用户\"","\"User\"","keyName","\"id\"","roles","get","extend","key","\"name\"","dir","\"cName\"","\"disabled\"","transfer","item","value","some","i","2","console","log","\"enums roles=>\"","\"enums roles[1]=>\"","\"enums status[0]=> \"","\"status\"","0","\"enums status concat\"","concat","\"普通的\"","\"value\"","\"enums status get extend=>\"","\"0\"","onMounted","setTimeout","locale","setLocale","\"en-US\"","addLocale","\"ja-JP\"","messages","test","\"テスト\"","getAllLocales","2000","\"11\"","4000","\"测试 mock!!\"","request","\"/v2/file\"","then","data","catch","err","\"/v2/movie/in_theaters_mock\"","a","1","\"get\"","\"测试 proxy!!\"","\"/v2/movie/in_theaters_proxy\"","method","headers","Accept","\"*/*\"","resp","t","enumsGet","\"$style:\"","$style"]},"operators":{"distinct":13,"total":192,"identifiers":["{}",":",".","const","=","()","[]",",","function=>",">=","===","return","this"]}},"paramCount":9,"sloc":{"logical":112,"physical":113}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"vue","type":"esm"},{"line":5,"path":"@fesjs/fes","type":"esm"},{"line":6,"path":"ant-design-vue","type":"esm"}],"errors":[],"lineEnd":113,"lineStart":1,"maintainability":63.501,"methods":[{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.01,"difficulty":1.5,"effort":45,"length":10,"time":2.5,"vocabulary":8,"volume":30,"operands":{"distinct":5,"total":5,"identifiers":["item","value","perm","some","i"]},"operators":{"distinct":3,"total":5,"identifiers":["()",".","function=>"]}},"paramCount":1,"sloc":{"logical":3,"physical":1},"errors":[],"lineEnd":47,"lineStart":47,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["i","2"]},"operators":{"distinct":1,"total":1,"identifiers":[">="]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":47,"lineStart":47,"name":"","paramNames":["i"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["item","key","\"0\""]},"operators":{"distinct":2,"total":2,"identifiers":["===","."]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":63,"lineStart":63,"name":"","paramNames":["item"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":3.704,"halstead":{"bugs":0.131,"difficulty":4.271,"effort":1680.558,"length":81,"time":93.364,"vocabulary":29,"volume":393.496,"operands":{"distinct":24,"total":41,"identifiers":["console","log","router","setTimeout","2000","4000","\"测试 mock!!\"","request","\"/v2/file\"","then","data","catch","err","\"/v2/movie/in_theaters_mock\"","a","1","\"get\"","\"测试 proxy!!\"","\"/v2/movie/in_theaters_proxy\"","method","headers","Accept","\"*/*\"","resp"]},"operators":{"distinct":5,"total":40,"identifiers":["()",".","function=>","{}",":"]}},"paramCount":0,"sloc":{"logical":27,"physical":33},"errors":[],"lineEnd":99,"lineStart":67,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":12.5,"halstead":{"bugs":0.039,"difficulty":2.727,"effort":319.655,"length":30,"time":17.759,"vocabulary":15,"volume":117.207,"operands":{"distinct":11,"total":15,"identifiers":["locale","setLocale","\"en-US\"","addLocale","\"ja-JP\"","messages","test","\"テスト\"","console","log","getAllLocales"]},"operators":{"distinct":4,"total":15,"identifiers":["()",".","{}",":"]}},"paramCount":0,"sloc":{"logical":8,"physical":5},"errors":[],"lineEnd":73,"lineStart":69,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["accessId","value","\"11\""]},"operators":{"distinct":2,"total":2,"identifiers":["=","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":76,"lineStart":74,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["console","log","data"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":81,"lineStart":79,"name":"","paramNames":["data"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["console","log","err"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":83,"lineStart":81,"name":"","paramNames":["err"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["console","log","data"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":86,"lineStart":84,"name":"","paramNames":["data"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["console","log","err"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":88,"lineStart":86,"name":"","paramNames":["err"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["console","log","resp"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":96,"lineStart":94,"name":"","paramNames":["resp"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["console","log","err"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":98,"lineStart":96,"name":"","paramNames":["err"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0.893,"halstead":{"bugs":0.071,"difficulty":1.13,"effort":3128.628,"length":31.462,"time":173.813,"vocabulary":8.385,"volume":212.937,"operands":{"distinct":7.385,"total":16.692},"operators":{"distinct":1,"total":14.769}},"paramCount":0.692,"sloc":{"logical":8.615,"physical":8.692}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":79.128,"halstead":{"bugs":0.018,"difficulty":1.417,"effort":178.372,"length":13.667,"time":9.91,"vocabulary":7.917,"volume":53.195,"operands":{"distinct":5.5,"total":7.25},"operators":{"distinct":2.417,"total":6.417}},"paramCount":0.75,"sloc":{"logical":3.917,"physical":5.167}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/pages/onepiece.vue","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.011,"difficulty":4.167,"effort":137.5,"length":11,"time":7.639,"vocabulary":8,"volume":33,"operands":{"distinct":3,"total":5,"identifiers":["fes","ref","\"fes upgrade to vue3\""]},"operators":{"distinct":5,"total":6,"identifiers":["{}","const","=","()","return"]}},"paramCount":0,"sloc":{"logical":5,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"vue","type":"esm"}],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":74.905,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.011,"difficulty":4.167,"effort":137.5,"length":11,"time":7.639,"vocabulary":8,"volume":33,"operands":{"distinct":3,"total":5},"operators":{"distinct":5,"total":6}},"paramCount":0,"sloc":{"logical":5,"physical":12}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/pages/store.vue","report":{"aggregate":{"cyclomatic":8,"cyclomaticDensity":22.222,"halstead":{"bugs":0.211,"difficulty":9.15,"effort":5803.372,"length":120,"time":322.41,"vocabulary":39,"volume":634.248,"operands":{"distinct":30,"total":61,"identifiers":["store","useStore","console","log","\"store==>\"","disabled","ref","false","address","computed","getters","GETTER_TYPES","user","doubleCount","counter","increment","commit","MUTATION_TYPES","login","value","true","dispatch","ACTION_TYPES","then","res","window","alert","fooBarIncrement","fooBar","fooBarDoubleCount"]},"operators":{"distinct":9,"total":59,"identifiers":["{}","const","=","()",".","return",":","function=>","[]"]}},"paramCount":1,"sloc":{"logical":36,"physical":29}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"vue","type":"esm"},{"line":3,"path":"vuex","type":"esm"},{"line":4,"path":"@fesjs/fes","type":"esm"}],"errors":[],"lineEnd":29,"lineStart":1,"maintainability":72.577,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.008,"difficulty":1,"effort":25.266,"length":9,"time":1.404,"vocabulary":7,"volume":25.266,"operands":{"distinct":5,"total":5,"identifiers":["store","getters","GETTER_TYPES","user","address"]},"operators":{"distinct":2,"total":4,"identifiers":["[]","."]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":12,"lineStart":12,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.008,"difficulty":1,"effort":25.266,"length":9,"time":1.404,"vocabulary":7,"volume":25.266,"operands":{"distinct":5,"total":5,"identifiers":["store","getters","GETTER_TYPES","counter","doubleCount"]},"operators":{"distinct":2,"total":4,"identifiers":["[]","."]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":13,"lineStart":13,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.008,"difficulty":1,"effort":25.266,"length":9,"time":1.404,"vocabulary":7,"volume":25.266,"operands":{"distinct":5,"total":5,"identifiers":["store","commit","MUTATION_TYPES","counter","increment"]},"operators":{"distinct":2,"total":4,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":15,"lineStart":15,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.024,"difficulty":2,"effort":144.679,"length":19,"time":8.038,"vocabulary":14,"volume":72.34,"operands":{"distinct":10,"total":10,"identifiers":["disabled","value","true","store","dispatch","ACTION_TYPES","user","login","then","res"]},"operators":{"distinct":4,"total":9,"identifiers":["=",".","()","function=>"]}},"paramCount":0,"sloc":{"logical":4,"physical":8},"errors":[],"lineEnd":23,"lineStart":16,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.011,"difficulty":1.5,"effort":47.549,"length":10,"time":2.642,"vocabulary":9,"volume":31.699,"operands":{"distinct":6,"total":6,"identifiers":["window","alert","res","disabled","value","false"]},"operators":{"distinct":3,"total":4,"identifiers":["()",".","="]}},"paramCount":1,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":22,"lineStart":18,"name":"","paramNames":["res"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.008,"difficulty":1,"effort":25.266,"length":9,"time":1.404,"vocabulary":7,"volume":25.266,"operands":{"distinct":5,"total":5,"identifiers":["store","commit","MUTATION_TYPES","fooBar","increment"]},"operators":{"distinct":2,"total":4,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":24,"lineStart":24,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.008,"difficulty":1,"effort":25.266,"length":9,"time":1.404,"vocabulary":7,"volume":25.266,"operands":{"distinct":5,"total":5,"identifiers":["store","getters","GETTER_TYPES","fooBar","doubleCount"]},"operators":{"distinct":2,"total":4,"identifiers":["[]","."]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":25,"lineStart":25,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":2.778,"halstead":{"bugs":0.026,"difficulty":1.144,"effort":725.421,"length":15,"time":40.301,"vocabulary":4.875,"volume":79.281,"operands":{"distinct":3.75,"total":7.625},"operators":{"distinct":1.125,"total":7.375}},"paramCount":0.125,"sloc":{"logical":4.5,"physical":3.625}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":67.857,"halstead":{"bugs":0.011,"difficulty":1.214,"effort":45.508,"length":10.571,"time":2.528,"vocabulary":8.286,"volume":32.91,"operands":{"distinct":5.857,"total":5.857},"operators":{"distinct":2.429,"total":4.714}},"paramCount":0.143,"sloc":{"logical":1.857,"physical":2.571}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/pages/test.vue","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0.5,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":1,"total":1,"identifiers":["{}"]}},"paramCount":0,"sloc":{"logical":0,"physical":7}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"@fesjs/fes","type":"esm"}],"errors":[],"lineEnd":7,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0.5,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":1,"total":1}},"paramCount":0,"sloc":{"logical":0,"physical":7}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/stores/counter.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":17.647,"halstead":{"bugs":0.061,"difficulty":6.462,"effort":1192.007,"length":42,"time":66.223,"vocabulary":21,"volume":184.477,"operands":{"distinct":13,"total":21,"identifiers":["namespaced","true","state","count","0","mutations","getters","2","actions","commit","setTimeout","\"increment\"","2000"]},"operators":{"distinct":8,"total":21,"identifiers":["{}",":","function=>","++ (postfix)",".","return","*","()"]}},"paramCount":0,"sloc":{"logical":17,"physical":24}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":24,"lineStart":1,"maintainability":71.597,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["count","0"]},"operators":{"distinct":2,"total":2,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":5,"lineStart":3,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["commit","\"increment\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":20,"lineStart":18,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":5.882,"halstead":{"bugs":0.02,"difficulty":2.154,"effort":397.336,"length":14,"time":22.074,"vocabulary":7,"volume":61.492,"operands":{"distinct":4.333,"total":7},"operators":{"distinct":2.667,"total":7}},"paramCount":0,"sloc":{"logical":5.667,"physical":8}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":75,"halstead":{"bugs":0.002,"difficulty":0.75,"effort":5.189,"length":3.5,"time":0.288,"vocabulary":3.5,"volume":6.377,"operands":{"distinct":2,"total":2},"operators":{"distinct":1.5,"total":1.5}},"paramCount":0,"sloc":{"logical":1.5,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/stores/foo/bar.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":17.647,"halstead":{"bugs":0.061,"difficulty":6.462,"effort":1192.007,"length":42,"time":66.223,"vocabulary":21,"volume":184.477,"operands":{"distinct":13,"total":21,"identifiers":["namespaced","true","state","count","0","mutations","getters","2","actions","commit","setTimeout","\"increment\"","2000"]},"operators":{"distinct":8,"total":21,"identifiers":["{}",":","function=>","++ (postfix)",".","return","*","()"]}},"paramCount":0,"sloc":{"logical":17,"physical":24}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":24,"lineStart":1,"maintainability":71.597,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["count","0"]},"operators":{"distinct":2,"total":2,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":5,"lineStart":3,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["commit","\"increment\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":20,"lineStart":18,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":5.882,"halstead":{"bugs":0.02,"difficulty":2.154,"effort":397.336,"length":14,"time":22.074,"vocabulary":7,"volume":61.492,"operands":{"distinct":4.333,"total":7},"operators":{"distinct":2.667,"total":7}},"paramCount":0,"sloc":{"logical":5.667,"physical":8}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":75,"halstead":{"bugs":0.002,"difficulty":0.75,"effort":5.189,"length":3.5,"time":0.288,"vocabulary":3.5,"volume":6.377,"operands":{"distinct":2,"total":2},"operators":{"distinct":1.5,"total":1.5}},"paramCount":0,"sloc":{"logical":1.5,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/stores/plugin-loger.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["createLogger"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":1,"physical":4}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"vuex","type":"esm"}],"errors":[],"lineEnd":4,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1},"operators":{"distinct":1,"total":1}},"paramCount":0,"sloc":{"logical":1,"physical":4}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/stores/user.js","report":{"aggregate":{"cyclomatic":7,"cyclomaticDensity":15.909,"halstead":{"bugs":0.204,"difficulty":8.485,"effort":5202.637,"length":113,"time":289.035,"vocabulary":43,"volume":613.168,"operands":{"distinct":33,"total":56,"identifiers":["namespaced","true","state","name","\"aring\"","age","20","count","0","mutations","getters","2","actions","commit","setTimeout","\"increment\"","2000","Promise","reslove","console","log","\"login\"","\"OK\"","1000","modules","address","province","\"广东省\"","city","\"深圳市\"","zone","\"南山区\"","posts"]},"operators":{"distinct":10,"total":57,"identifiers":["{}",":","function=>","++ (postfix)",".","return","*","()","new","+"]}},"paramCount":1,"sloc":{"logical":44,"physical":55}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":55,"lineStart":1,"maintainability":69.363,"methods":[{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.01,"difficulty":1,"effort":30,"length":10,"time":1.667,"vocabulary":8,"volume":30,"operands":{"distinct":6,"total":6,"identifiers":["name","\"aring\"","age","20","count","0"]},"operators":{"distinct":2,"total":4,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":4,"physical":5},"errors":[],"lineEnd":7,"lineStart":3,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["commit","\"increment\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":22,"lineStart":20,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["setTimeout","1000"]},"operators":{"distinct":2,"total":2,"identifiers":["()","function=>"]}},"paramCount":1,"sloc":{"logical":2,"physical":6},"errors":[],"lineEnd":30,"lineStart":25,"name":"","paramNames":["reslove"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.007,"difficulty":1,"effort":22.459,"length":8,"time":1.248,"vocabulary":7,"volume":22.459,"operands":{"distinct":5,"total":5,"identifiers":["console","log","\"login\"","reslove","\"OK\""]},"operators":{"distinct":2,"total":3,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":29,"lineStart":26,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.01,"difficulty":1,"effort":30,"length":10,"time":1.667,"vocabulary":8,"volume":30,"operands":{"distinct":6,"total":6,"identifiers":["province","\"广东省\"","city","\"深圳市\"","zone","\"南山区\""]},"operators":{"distinct":2,"total":4,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":4,"physical":5},"errors":[],"lineEnd":39,"lineStart":35,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0,"difficulty":0.5,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":1,"total":1,"identifiers":["{}"]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":48,"lineStart":48,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":2.273,"halstead":{"bugs":0.029,"difficulty":1.212,"effort":743.234,"length":16.143,"time":41.291,"vocabulary":6.143,"volume":87.595,"operands":{"distinct":4.714,"total":8},"operators":{"distinct":1.429,"total":8.143}},"paramCount":0.143,"sloc":{"logical":6.286,"physical":7.857}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":58.333,"halstead":{"bugs":0.005,"difficulty":0.833,"effort":15.473,"length":6,"time":0.86,"vocabulary":5.167,"volume":15.869,"operands":{"distinct":3.5,"total":3.5},"operators":{"distinct":1.667,"total":2.5}},"paramCount":0.167,"sloc":{"logical":2.333,"physical":4}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template/src/utils/sum.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.007,"difficulty":2.5,"effort":51.699,"length":8,"time":2.872,"vocabulary":6,"volume":20.68,"operands":{"distinct":3,"total":5,"identifiers":["sum","a","b"]},"operators":{"distinct":3,"total":3,"identifiers":["function","return","+"]}},"paramCount":2,"sloc":{"logical":2,"physical":4}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":4,"lineStart":1,"maintainability":93.495,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["a","b"]},"operators":{"distinct":2,"total":2,"identifiers":["return","+"]}},"paramCount":2,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":3,"lineStart":1,"name":"sum","paramNames":["a","b"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1.25,"effort":25.85,"length":4,"time":1.436,"vocabulary":3,"volume":10.34,"operands":{"distinct":1.5,"total":2.5},"operators":{"distinct":1.5,"total":1.5}},"paramCount":1,"sloc":{"logical":1,"physical":2}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2},"operators":{"distinct":2,"total":2}},"paramCount":2,"sloc":{"logical":1,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/.fes.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":4.167,"halstead":{"bugs":0.132,"difficulty":2.162,"effort":857.208,"length":74,"time":47.623,"vocabulary":41,"volume":396.459,"operands":{"distinct":37,"total":40,"identifiers":["define","publicPath","\"/\"","request","base","\"/ras-mas\"","dataField","\"result\"","html","title","\"拉夫德鲁\"","extraPostCSSPlugins","pxtoviewport","unitToConvert","\"px\"","viewportWidth","375","unitPrecision","5","propList","\"*\"","viewportUnit","\"vw\"","fontViewportUnit","selectorBlackList","minPixelValue","1","mediaQuery","false","replace","true","exclude","landscape","landscapeUnit","devServer","port","8000"]},"operators":{"distinct":4,"total":34,"identifiers":["{}",":","[]","()"]}},"paramCount":0,"sloc":{"logical":24,"physical":39}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"@ttou/postcss-px-to-viewport","type":"esm"}],"errors":[],"lineEnd":39,"lineStart":1,"maintainability":56.385,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":4.167,"halstead":{"bugs":0.132,"difficulty":2.162,"effort":857.208,"length":74,"time":47.623,"vocabulary":41,"volume":396.459,"operands":{"distinct":37,"total":40},"operators":{"distinct":4,"total":34}},"paramCount":0,"sloc":{"logical":24,"physical":39}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/.fes.prod.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1,"effort":16.253,"length":7,"time":0.903,"vocabulary":5,"volume":16.253,"operands":{"distinct":3,"total":3,"identifiers":["request","base","\"/api\""]},"operators":{"distinct":2,"total":4,"identifiers":["{}",":"]}},"paramCount":0,"sloc":{"logical":2,"physical":9}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":9,"lineStart":1,"maintainability":87.857,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1,"effort":16.253,"length":7,"time":0.903,"vocabulary":5,"volume":16.253,"operands":{"distinct":3,"total":3},"operators":{"distinct":2,"total":4}},"paramCount":0,"sloc":{"logical":2,"physical":9}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/core/coreExports.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":19}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":19,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":19}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/core/plugin.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.04,"difficulty":3.5,"effort":423.549,"length":28,"time":23.53,"vocabulary":20,"volume":121.014,"operands":{"distinct":13,"total":13,"identifiers":["plugin","Plugin","validKeys","\"beforeRender\"","\"modifyClientRenderOpts\"","\"rootContainer\"","\"onAppCreated\"","\"render\"","\"patchRoutes\"","\"modifyCreateHistroy\"","\"onRouterCreated\"","\"\"","\"request\""]},"operators":{"distinct":7,"total":15,"identifiers":["const","=","new","{}",":","[]",","]}},"paramCount":0,"sloc":{"logical":2,"physical":8}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"/Users/qlin/code/fes.js/packages/fes-runtime","type":"esm"}],"errors":[],"lineEnd":8,"lineStart":1,"maintainability":81.336,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.04,"difficulty":3.5,"effort":423.549,"length":28,"time":23.53,"vocabulary":20,"volume":121.014,"operands":{"distinct":13,"total":13},"operators":{"distinct":7,"total":15}},"paramCount":0,"sloc":{"logical":2,"physical":8}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/core/pluginExports.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":2}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":2,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":2}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/core/pluginRegister.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.042,"difficulty":3.6,"effort":452.314,"length":33,"time":25.129,"vocabulary":14,"volume":125.643,"operands":{"distinct":10,"total":18,"identifiers":["plugin","register","apply","Plugin_0","path","\"/Users/qlin/code/fes.js/packages/fes-template-h5/src/app.js\"","Plugin_1","\"@@/core/routes/runtime.js\"","Plugin_2","\"@@/plugin-icon/runtime.js\""]},"operators":{"distinct":4,"total":15,"identifiers":["()",".","{}",":"]}},"paramCount":0,"sloc":{"logical":9,"physical":18}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./plugin","type":"esm"},{"line":2,"path":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/app.js","type":"esm"},{"line":3,"path":"@@/core/routes/runtime.js","type":"esm"},{"line":4,"path":"@@/plugin-icon/runtime.js","type":"esm"}],"errors":[],"lineEnd":18,"lineStart":1,"maintainability":66.955,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":11.111,"halstead":{"bugs":0.042,"difficulty":3.6,"effort":452.314,"length":33,"time":25.129,"vocabulary":14,"volume":125.643,"operands":{"distinct":10,"total":18},"operators":{"distinct":4,"total":15}},"paramCount":0,"sloc":{"logical":9,"physical":18}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/core/routes/routes.js","report":{"aggregate":{"cyclomatic":9,"cyclomaticDensity":13.846,"halstead":{"bugs":0.407,"difficulty":15.441,"effort":18853.176,"length":202,"time":1047.399,"vocabulary":66,"volume":1220.968,"operands":{"distinct":51,"total":105,"identifiers":["getRoutes","routes","\"path\"","\"/onepiece\"","\"component\"","require","\"@/pages/onepiece\"","default","\"name\"","\"onepiece\"","\"meta\"","\"title\"","\"layout\"","\"true\"","\"count\"","7","\"/\"","\"@/pages/index\"","\"testIndex\"","\"首页\"","\"false\"","5","ROUTER_BASE","\"\"","router","null","history","createRouter","createHistory","plugin","applyPlugins","key","\"modifyCreateHistroy\"","type","ApplyPluginsType","modify","args","base","initialValue","createWebHashHistory","\"patchRoutes\"","event","createVueRouter","\"onRouterCreated\"","getRouter","console","warn","[preset-build-in] router is null","getHistory","[preset-build-in] history is null","destroyRouter"]},"operators":{"distinct":15,"total":97,"identifiers":["function","const","=","[]",",","{}",":",".","()","return","let","function=>","if","! (prefix)","``"]}},"paramCount":1,"sloc":{"logical":65,"physical":85}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"/Users/qlin/code/fes.js/packages/fes-runtime","type":"esm"},{"line":2,"path":"@@/core/coreExports","type":"esm"},{"line":8,"path":"@/pages/onepiece","type":"cjs"},{"line":18,"path":"@/pages/index","type":"cjs"}],"errors":[],"lineEnd":85,"lineStart":1,"maintainability":61.085,"methods":[{"cyclomatic":1,"cyclomaticDensity":5.263,"halstead":{"bugs":0.101,"difficulty":7.286,"effort":2216.513,"length":62,"time":123.14,"vocabulary":30,"volume":304.227,"operands":{"distinct":21,"total":34,"identifiers":["routes","\"path\"","\"/onepiece\"","\"component\"","require","\"@/pages/onepiece\"","default","\"name\"","\"onepiece\"","\"meta\"","\"title\"","\"layout\"","\"true\"","\"count\"","7","\"/\"","\"@/pages/index\"","\"testIndex\"","\"首页\"","\"false\"","5"]},"operators":{"distinct":9,"total":28,"identifiers":["const","=","[]",",","{}",":",".","()","return"]}},"paramCount":0,"sloc":{"logical":19,"physical":26},"errors":[],"lineEnd":29,"lineStart":4,"name":"getRoutes","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":7.692,"halstead":{"bugs":0.13,"difficulty":9,"effort":3504.562,"length":81,"time":194.698,"vocabulary":28,"volume":389.396,"operands":{"distinct":20,"total":45,"identifiers":["router","createHistory","plugin","applyPlugins","key","\"modifyCreateHistroy\"","type","ApplyPluginsType","modify","args","base","ROUTER_BASE","initialValue","createWebHashHistory","history","\"patchRoutes\"","event","routes","createVueRouter","\"onRouterCreated\""]},"operators":{"distinct":8,"total":36,"identifiers":["if","return","const","=","()",".","{}",":"]}},"paramCount":1,"sloc":{"logical":26,"physical":32},"errors":[],"lineEnd":65,"lineStart":34,"name":"","paramNames":["routes"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.012,"difficulty":3.75,"effort":137.03,"length":11,"time":7.613,"vocabulary":10,"volume":36.541,"operands":{"distinct":4,"total":5,"identifiers":["router","console","warn","[preset-build-in] router is null"]},"operators":{"distinct":6,"total":6,"identifiers":["if","! (prefix)","()",".","``","return"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":72,"lineStart":67,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.012,"difficulty":3.75,"effort":137.03,"length":11,"time":7.613,"vocabulary":10,"volume":36.541,"operands":{"distinct":4,"total":5,"identifiers":["history","console","warn","[preset-build-in] history is null"]},"operators":{"distinct":6,"total":6,"identifiers":["if","! (prefix)","()",".","``","return"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":79,"lineStart":74,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.004,"difficulty":0.667,"effort":8,"length":6,"time":0.444,"vocabulary":4,"volume":12,"operands":{"distinct":3,"total":4,"identifiers":["router","null","history"]},"operators":{"distinct":1,"total":2,"identifiers":["="]}},"paramCount":0,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":84,"lineStart":81,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":2.308,"halstead":{"bugs":0.068,"difficulty":2.574,"effort":3142.196,"length":33.667,"time":174.566,"vocabulary":11,"volume":203.495,"operands":{"distinct":8.5,"total":17.5},"operators":{"distinct":2.5,"total":16.167}},"paramCount":0.167,"sloc":{"logical":10.833,"physical":14.167}},"methodAverage":{"cyclomatic":1.6,"cyclomaticDensity":39.258,"halstead":{"bugs":0.052,"difficulty":4.89,"effort":1200.627,"length":34.2,"time":66.701,"vocabulary":16.4,"volume":155.741,"operands":{"distinct":10.4,"total":18.6},"operators":{"distinct":6,"total":15.6}},"paramCount":0.2,"sloc":{"logical":10.6,"physical":14.8}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/core/routes/runtime.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.019,"difficulty":4.5,"effort":258.117,"length":16,"time":14.34,"vocabulary":12,"volume":57.359,"operands":{"distinct":6,"total":9,"identifiers":["onAppCreated","app","routes","router","createRouter","use"]},"operators":{"distinct":6,"total":7,"identifiers":["function","{}","const","=","()","."]}},"paramCount":2,"sloc":{"logical":4,"physical":7}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./routes","type":"esm"}],"errors":[],"lineEnd":7,"lineStart":1,"maintainability":83.713,"methods":[{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.012,"difficulty":2.4,"effort":83.686,"length":11,"time":4.649,"vocabulary":9,"volume":34.869,"operands":{"distinct":5,"total":6,"identifiers":["router","createRouter","routes","app","use"]},"operators":{"distinct":4,"total":5,"identifiers":["const","=","()","."]}},"paramCount":2,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":6,"lineStart":3,"name":"onAppCreated","paramNames":["app","routes"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.01,"difficulty":2.25,"effort":129.059,"length":8,"time":7.17,"vocabulary":6,"volume":28.68,"operands":{"distinct":3,"total":4.5},"operators":{"distinct":3,"total":3.5}},"paramCount":1,"sloc":{"logical":2,"physical":3.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.012,"difficulty":2.4,"effort":83.686,"length":11,"time":4.649,"vocabulary":9,"volume":34.869,"operands":{"distinct":5,"total":6},"operators":{"distinct":4,"total":5}},"paramCount":2,"sloc":{"logical":3,"physical":4}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/fes.js","report":{"aggregate":{"cyclomatic":10,"cyclomaticDensity":12.195,"halstead":{"bugs":0.504,"difficulty":25.698,"effort":38859.098,"length":256,"time":2158.839,"vocabulary":60,"volume":1512.164,"operands":{"distinct":43,"total":130,"identifiers":["renderClient","opts","plugin","routes","rootElement","initialState","rootContainer","applyPlugins","type","ApplyPluginsType","modify","key","\"rootContainer\"","initialValue","defineComponent","args","app","createApp","provide","\"initialState\"","\"onAppCreated\"","event","mount","beforeRender","beforeRenderConfig","\"beforeRender\"","loading","null","action","\"function\"","e","console","error","[fes] beforeRender执行出现异常:","unmount","getClientRender","\"render\"","compose","\"modifyClientRenderOpts\"","getRoutes","\"#app\"","defaultTitle","clientRender"]},"operators":{"distinct":17,"total":126,"identifiers":["const","=","function=>","{}","()",".",":","if","return","let","===","typeof (prefix)","try","catch","``","||","... (spread)"]}},"paramCount":3,"sloc":{"logical":82,"physical":93}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":6,"path":"vue","type":"esm"},{"line":7,"path":"./core/plugin","type":"esm"},{"line":8,"path":"./core/pluginRegister","type":"esm"},{"line":9,"path":"/Users/qlin/code/fes.js/packages/fes-runtime","type":"esm"},{"line":10,"path":"./core/routes/routes","type":"esm"}],"errors":[],"lineEnd":93,"lineStart":1,"maintainability":59.235,"methods":[{"cyclomatic":2,"cyclomaticDensity":7.407,"halstead":{"bugs":0.137,"difficulty":9.818,"effort":4037.22,"length":83,"time":224.29,"vocabulary":31,"volume":411.198,"operands":{"distinct":22,"total":48,"identifiers":["plugin","routes","rootElement","initialState","opts","rootContainer","applyPlugins","type","ApplyPluginsType","modify","key","\"rootContainer\"","initialValue","defineComponent","args","app","createApp","provide","\"initialState\"","\"onAppCreated\"","event","mount"]},"operators":{"distinct":9,"total":35,"identifiers":["const","=","{}","()",".",":","function=>","if","return"]}},"paramCount":1,"sloc":{"logical":27,"physical":26},"errors":[],"lineEnd":41,"lineStart":16,"name":"","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0,"difficulty":0.5,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":1,"total":1,"identifiers":["function=>"]}},"paramCount":0,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":21,"lineStart":21,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":21,"lineStart":21,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":10,"halstead":{"bugs":0.13,"difficulty":11.261,"effort":4399.723,"length":75,"time":244.429,"vocabulary":37,"volume":390.709,"operands":{"distinct":23,"total":37,"identifiers":["beforeRenderConfig","plugin","applyPlugins","key","\"beforeRender\"","type","ApplyPluginsType","modify","initialValue","loading","null","action","initialState","\"function\"","app","createApp","mount","rootElement","e","console","error","[fes] beforeRender执行出现异常:","unmount"]},"operators":{"distinct":14,"total":38,"identifiers":["const","=","()",".","{}",":","let","if","===","typeof (prefix)","try","catch","``","return"]}},"paramCount":1,"sloc":{"logical":20,"physical":23},"errors":[],"lineEnd":65,"lineStart":43,"name":"","paramNames":["rootElement"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.023,"difficulty":2.778,"effort":190.368,"length":18,"time":10.576,"vocabulary":14,"volume":68.532,"operands":{"distinct":9,"total":10,"identifiers":["plugin","applyPlugins","key","\"render\"","type","ApplyPluginsType","compose","initialValue","args"]},"operators":{"distinct":5,"total":8,"identifiers":["()",".","{}",":","function=>"]}},"paramCount":1,"sloc":{"logical":7,"physical":19},"errors":[],"lineEnd":85,"lineStart":67,"name":"","paramNames":["args"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":13.333,"halstead":{"bugs":0.079,"difficulty":6.944,"effort":1635.836,"length":49,"time":90.88,"vocabulary":28,"volume":235.56,"operands":{"distinct":18,"total":25,"identifiers":["opts","plugin","applyPlugins","key","\"modifyClientRenderOpts\"","type","ApplyPluginsType","modify","initialValue","routes","args","getRoutes","rootElement","\"#app\"","defaultTitle","initialState","beforeRender","renderClient"]},"operators":{"distinct":10,"total":24,"identifiers":["const","=","()",".","{}",":","||","``","return","... (spread)"]}},"paramCount":0,"sloc":{"logical":15,"physical":14},"errors":[],"lineEnd":83,"lineStart":70,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.429,"cyclomaticDensity":1.742,"halstead":{"bugs":0.072,"difficulty":3.671,"effort":5551.3,"length":36.571,"time":308.406,"vocabulary":8.571,"volume":216.023,"operands":{"distinct":6.143,"total":18.571},"operators":{"distinct":2.429,"total":18}},"paramCount":0.429,"sloc":{"logical":11.714,"physical":13.286}},"methodAverage":{"cyclomatic":1.5,"cyclomaticDensity":32.504,"halstead":{"bugs":0.061,"difficulty":5.217,"effort":1710.524,"length":37.667,"time":95.029,"vocabulary":18.5,"volume":184.333,"operands":{"distinct":12,"total":20},"operators":{"distinct":6.5,"total":17.667}},"paramCount":0.5,"sloc":{"logical":12,"physical":14}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-icon/Icon/Icon.vue","report":{"aggregate":{"cyclomatic":12,"cyclomaticDensity":38.71,"halstead":{"bugs":0.241,"difficulty":21,"effort":15203.073,"length":127,"time":844.615,"vocabulary":52,"volume":723.956,"operands":{"distinct":31,"total":62,"identifiers":["noop","name","\"FesIcon\"","props","\"type\"","\"spin\"","\"rotate\"","\"tabIndex\"","attrs","CurrentIcon","computed","icons","type","iconTabIndex","tabIndex","null","onClick","1","svgStyle","rotate","msTransform","rotate(","deg)","transform","svgCls","\"inner-icon--spin\"","spin","\"loading\"","value","\"img\"","\"inner-icon\""]},"operators":{"distinct":21,"total":65,"identifiers":["const","=","function=>","{}",":","[]",",","()",".","let","if","&&","==","- (prefix)","return",":?","``","${}","||","! (prefix)","==="]}},"paramCount":0,"sloc":{"logical":31,"physical":41}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"vue","type":"esm"},{"line":4,"path":"../icons","type":"esm"}],"errors":[],"lineEnd":41,"lineStart":1,"maintainability":70.221,"methods":[{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":1},"errors":[],"lineEnd":6,"lineStart":6,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["icons","props","type"]},"operators":{"distinct":2,"total":2,"identifiers":["[]","."]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":12,"lineStart":12,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":75,"halstead":{"bugs":0.025,"difficulty":6.667,"effort":507.647,"length":20,"time":28.203,"vocabulary":14,"volume":76.147,"operands":{"distinct":6,"total":10,"identifiers":["tabIndex","props","null","attrs","onClick","1"]},"operators":{"distinct":8,"total":10,"identifiers":["let","=",".","if","&&","==","- (prefix)","return"]}},"paramCount":0,"sloc":{"logical":4,"physical":7},"errors":[],"lineEnd":19,"lineStart":13,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.03,"difficulty":5.571,"effort":494.802,"length":24,"time":27.489,"vocabulary":13,"volume":88.811,"operands":{"distinct":7,"total":13,"identifiers":["props","rotate","msTransform","rotate(","deg)","transform","null"]},"operators":{"distinct":6,"total":11,"identifiers":[":?",".","{}",":","``","${}"]}},"paramCount":0,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":25,"lineStart":20,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.016,"difficulty":3.6,"effort":174.355,"length":14,"time":9.686,"vocabulary":11,"volume":48.432,"operands":{"distinct":5,"total":6,"identifiers":["\"inner-icon--spin\"","props","spin","type","\"loading\""]},"operators":{"distinct":6,"total":8,"identifiers":["{}",":","||","! (prefix)",".","==="]}},"paramCount":0,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":28,"lineStart":26,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":200,"halstead":{"bugs":0.018,"difficulty":1.222,"effort":67.651,"length":16,"time":3.758,"vocabulary":11,"volume":55.351,"operands":{"distinct":9,"total":11,"identifiers":["iconTabIndex","value","\"img\"","\"inner-icon\"","attrs","onClick","noop","svgCls","svgStyle"]},"operators":{"distinct":2,"total":5,"identifiers":[".","||"]}},"paramCount":0,"sloc":{"logical":1,"physical":10},"errors":[],"lineEnd":38,"lineStart":29,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.714,"cyclomaticDensity":5.53,"halstead":{"bugs":0.034,"difficulty":3,"effort":2171.868,"length":18.143,"time":120.659,"vocabulary":7.429,"volume":103.422,"operands":{"distinct":4.429,"total":8.857},"operators":{"distinct":3,"total":9.286}},"paramCount":0,"sloc":{"logical":4.429,"physical":5.857}},"methodAverage":{"cyclomatic":1.833,"cyclomaticDensity":90.278,"halstead":{"bugs":0.016,"difficulty":3.01,"effort":209.344,"length":13.167,"time":11.63,"vocabulary":9,"volume":46.725,"operands":{"distinct":5,"total":7.167},"operators":{"distinct":4,"total":6}},"paramCount":0,"sloc":{"logical":1.833,"physical":4.667}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-icon/Icon/index.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":1,"total":1,"identifiers":["Icon"]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":5}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./Icon","type":"esm"},{"line":2,"path":"./icon.less","type":"esm"}],"errors":[],"lineEnd":5,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":1,"total":1},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":5}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-icon/icons/hello.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":0.5,"effort":4,"length":4,"time":0.222,"vocabulary":4,"volume":8,"operands":{"distinct":3,"total":3,"identifiers":["\"http://www.w3.org/2000/svg\"","\"0 0 1024 1024\"","\"M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm352 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 0 1 248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 0 1 249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 0 1 775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 0 1 775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 0 0-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 0 0-8-8.4z\""]},"operators":{"distinct":1,"total":1,"identifiers":["function=>"]}},"paramCount":0,"sloc":{"logical":2,"physical":1}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":1,"lineStart":1,"maintainability":98.614,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0,"effort":0,"length":3,"time":0,"vocabulary":3,"volume":4.755,"operands":{"distinct":3,"total":3,"identifiers":["\"http://www.w3.org/2000/svg\"","\"0 0 1024 1024\"","\"M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm352 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 0 1 248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 0 1 249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 0 1 775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 0 1 775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 0 0-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 0 0-8-8.4z\""]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":1,"lineStart":1,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.001,"difficulty":0.25,"effort":2,"length":2,"time":0.111,"vocabulary":2,"volume":4,"operands":{"distinct":1.5,"total":1.5},"operators":{"distinct":0.5,"total":0.5}},"paramCount":0,"sloc":{"logical":1,"physical":0.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0,"effort":0,"length":3,"time":0,"vocabulary":3,"volume":4.755,"operands":{"distinct":3,"total":3},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":1,"physical":1}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-icon/icons/smile.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.003,"difficulty":0.5,"effort":4,"length":4,"time":0.222,"vocabulary":4,"volume":8,"operands":{"distinct":3,"total":3,"identifiers":["\"http://www.w3.org/2000/svg\"","\"0 0 1024 1024\"","\"M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm352 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 0 1 248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 0 1 249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 0 1 775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 0 1 775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 0 0-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 0 0-8-8.4z\""]},"operators":{"distinct":1,"total":1,"identifiers":["function=>"]}},"paramCount":0,"sloc":{"logical":2,"physical":1}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":1,"lineStart":1,"maintainability":98.614,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0,"effort":0,"length":3,"time":0,"vocabulary":3,"volume":4.755,"operands":{"distinct":3,"total":3,"identifiers":["\"http://www.w3.org/2000/svg\"","\"0 0 1024 1024\"","\"M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm352 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 0 1 248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 0 1 249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 0 1 775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 0 1 775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 0 0-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 0 0-8-8.4z\""]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":1,"lineStart":1,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.001,"difficulty":0.25,"effort":2,"length":2,"time":0.111,"vocabulary":2,"volume":4,"operands":{"distinct":1.5,"total":1.5},"operators":{"distinct":0.5,"total":0.5}},"paramCount":0,"sloc":{"logical":1,"physical":0.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0,"effort":0,"length":3,"time":0,"vocabulary":3,"volume":4.755,"operands":{"distinct":3,"total":3},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":1,"physical":1}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-icon/icons.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":7.925,"length":5,"time":0.44,"vocabulary":3,"volume":7.925,"operands":{"distinct":2,"total":4,"identifiers":["hello","smile"]},"operators":{"distinct":1,"total":1,"identifiers":["{}"]}},"paramCount":0,"sloc":{"logical":2,"physical":7}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./icons/hello","type":"esm"},{"line":2,"path":"./icons/smile","type":"esm"}],"errors":[],"lineEnd":7,"lineStart":1,"maintainability":89.293,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":7.925,"length":5,"time":0.44,"vocabulary":3,"volume":7.925,"operands":{"distinct":2,"total":4},"operators":{"distinct":1,"total":1}},"paramCount":0,"sloc":{"logical":2,"physical":7}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-icon/runtime.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.011,"difficulty":2.4,"effort":76.078,"length":10,"time":4.227,"vocabulary":9,"volume":31.699,"operands":{"distinct":5,"total":6,"identifiers":["onAppCreated","app","component","\"fes-icon\"","Icon"]},"operators":{"distinct":4,"total":4,"identifiers":["function","{}","()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":6}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./Icon","type":"esm"}],"errors":[],"lineEnd":6,"lineStart":1,"maintainability":92.723,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":1,"effort":15.51,"length":6,"time":0.862,"vocabulary":6,"volume":15.51,"operands":{"distinct":4,"total":4,"identifiers":["app","component","\"fes-icon\"","Icon"]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":5,"lineStart":3,"name":"onAppCreated","paramNames":["app"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.2,"effort":38.039,"length":5,"time":2.113,"vocabulary":4.5,"volume":15.85,"operands":{"distinct":2.5,"total":3},"operators":{"distinct":2,"total":2}},"paramCount":0.5,"sloc":{"logical":1,"physical":3}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":1,"effort":15.51,"length":6,"time":0.862,"vocabulary":6,"volume":15.51,"operands":{"distinct":4,"total":4},"operators":{"distinct":2,"total":2}},"paramCount":1,"sloc":{"logical":1,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-request/cacheControl.js","report":{"aggregate":{"cyclomatic":44,"cyclomaticDensity":30.769,"halstead":{"bugs":1.382,"difficulty":53.167,"effort":220411.941,"length":609,"time":12245.108,"vocabulary":112,"volume":4145.679,"operands":{"distinct":84,"total":319,"identifiers":["CACHE_KEY_PREFIX","\"__FES_REQUEST_CACHE:\"","CACHE_TYPE","ram","\"ram\"","session","\"sessionStorage\"","local","\"localStorage\"","CACHE_DATA_MAP","Map","genInnerKey","key","cacheType","'ram'","canCache","data","isObject","isString","Array","isArray","isURLSearchParams","setCacheData","cacheTime","1000","60","3","_key","currentCacheData","expire","Date","now","cacheInstance","window","setItem","JSON","stringify","e","item","startsWith","Object","prototype","hasOwnProperty","call","removeItem","set","isExpire","false","true","getCacheData","text","getItem","null","parse","get","delete","cacheStartFlag","cachingQueue","handleCachingStart","ctx","config","cache","caching","Promise","resolve","queue","concat","handleCachingQueueSuccess","length","0","forEach","response","handleCachingQueueError","firstResolve","shift","next","cacheData","result","keys","requestdata","checkHttpRequestHasBody","method","params","error"]},"operators":{"distinct":28,"total":290,"identifiers":["const","=","{}",":","new","function","if","!==",".","return","``","${}","||","! (prefix)","()","*","+","else","[]","try","catch","forin","&&",">=","function=>",">",":?","... (spread)"]}},"paramCount":27,"sloc":{"logical":143,"physical":210}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":3,"path":"./helpers","type":"esm"}],"errors":[],"lineEnd":210,"lineStart":1,"maintainability":57.093,"methods":[{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.016,"difficulty":3.6,"effort":174.355,"length":14,"time":9.686,"vocabulary":11,"volume":48.432,"operands":{"distinct":5,"total":6,"identifiers":["cacheType","CACHE_TYPE","ram","CACHE_KEY_PREFIX","key"]},"operators":{"distinct":6,"total":8,"identifiers":["if","!==",".","return","``","${}"]}},"paramCount":2,"sloc":{"logical":3,"physical":6},"errors":[],"lineEnd":54,"lineStart":49,"name":"genInnerKey","paramNames":["key","cacheType"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":5,"cyclomaticDensity":100,"halstead":{"bugs":0.024,"difficulty":4.167,"effort":302.7,"length":21,"time":16.817,"vocabulary":11,"volume":72.648,"operands":{"distinct":6,"total":10,"identifiers":["data","isObject","isString","Array","isArray","isURLSearchParams"]},"operators":{"distinct":5,"total":11,"identifiers":["return","||","! (prefix)","()","."]}},"paramCount":1,"sloc":{"logical":5,"physical":3},"errors":[],"lineEnd":58,"lineStart":56,"name":"canCache","paramNames":["data"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":19.048,"halstead":{"bugs":0.154,"difficulty":12.589,"effort":5806.588,"length":85,"time":322.588,"vocabulary":43,"volume":461.233,"operands":{"distinct":28,"total":47,"identifiers":["_key","genInnerKey","key","cacheType","currentCacheData","data","cacheTime","expire","Date","now","CACHE_TYPE","ram","cacheInstance","window","setItem","JSON","stringify","e","item","startsWith","CACHE_KEY_PREFIX","Object","prototype","hasOwnProperty","call","removeItem","CACHE_DATA_MAP","set"]},"operators":{"distinct":15,"total":38,"identifiers":["const","=","()","{}",":","+",".","if","else","!==","[]","try","catch","forin","&&"]}},"paramCount":8,"sloc":{"logical":21,"physical":30},"errors":[],"lineEnd":89,"lineStart":60,"name":"setCacheData","paramNames":["key","cacheType","'ram'","data","cacheTime","1000","60","3"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":75,"halstead":{"bugs":0.017,"difficulty":3.5,"effort":181.322,"length":14,"time":10.073,"vocabulary":13,"volume":51.806,"operands":{"distinct":6,"total":6,"identifiers":["cacheTime","expire","Date","now","false","true"]},"operators":{"distinct":7,"total":8,"identifiers":["if","||","! (prefix)",">=","()",".","return"]}},"paramCount":2,"sloc":{"logical":4,"physical":6},"errors":[],"lineEnd":96,"lineStart":91,"name":"isExpire","paramNames":["expire","cacheTime"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":7,"cyclomaticDensity":28,"halstead":{"bugs":0.161,"difficulty":15.667,"effort":7553.724,"length":94,"time":419.651,"vocabulary":35,"volume":482.153,"operands":{"distinct":21,"total":47,"identifiers":["_key","genInnerKey","key","cacheType","CACHE_TYPE","ram","cacheInstance","window","text","getItem","null","currentCacheData","JSON","parse","isExpire","data","removeItem","e","CACHE_DATA_MAP","get","delete"]},"operators":{"distinct":14,"total":47,"identifiers":["const","=","()","if","else","!==",".","[]","||","try","&&","! (prefix)","return","catch"]}},"paramCount":3,"sloc":{"logical":25,"physical":25},"errors":[],"lineEnd":122,"lineStart":98,"name":"getCacheData","paramNames":["key","cacheType","'ram'"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.051,"difficulty":5.143,"effort":779.763,"length":34,"time":43.32,"vocabulary":22,"volume":151.621,"operands":{"distinct":14,"total":18,"identifiers":["_key","genInnerKey","ctx","key","config","cache","cacheType","caching","cacheStartFlag","get","Promise","resolve","set","true"]},"operators":{"distinct":8,"total":16,"identifiers":["const","=","()",".","if","return","new","function=>"]}},"paramCount":2,"sloc":{"logical":8,"physical":11},"errors":[],"lineEnd":143,"lineStart":133,"name":"handleCachingStart","paramNames":["ctx","config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.025,"difficulty":4.286,"effort":317.181,"length":20,"time":17.621,"vocabulary":13,"volume":74.009,"operands":{"distinct":7,"total":10,"identifiers":["queue","cachingQueue","get","_key","set","concat","resolve"]},"operators":{"distinct":6,"total":10,"identifiers":["const","=","||","()",".","[]"]}},"paramCount":1,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":140,"lineStart":137,"name":"","paramNames":["resolve"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.069,"difficulty":6,"effort":1237.94,"length":45,"time":68.774,"vocabulary":24,"volume":206.323,"operands":{"distinct":16,"total":24,"identifiers":["_key","genInnerKey","ctx","key","config","cache","cacheType","queue","cachingQueue","get","length","0","forEach","resolve","delete","cacheStartFlag"]},"operators":{"distinct":8,"total":21,"identifiers":["const","=","()",".","if","&&",">","function=>"]}},"paramCount":2,"sloc":{"logical":9,"physical":14},"errors":[],"lineEnd":159,"lineStart":146,"name":"handleCachingQueueSuccess","paramNames":["ctx","config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.007,"difficulty":2.667,"effort":59.89,"length":8,"time":3.327,"vocabulary":7,"volume":22.459,"operands":{"distinct":3,"total":4,"identifiers":["resolve","response","ctx"]},"operators":{"distinct":4,"total":4,"identifiers":["()","{}",":","."]}},"paramCount":1,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":155,"lineStart":151,"name":"","paramNames":["resolve"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":25,"halstead":{"bugs":0.085,"difficulty":6.824,"effort":1742.812,"length":55,"time":96.823,"vocabulary":25,"volume":255.412,"operands":{"distinct":17,"total":29,"identifiers":["_key","genInnerKey","ctx","key","config","cache","cacheType","queue","cachingQueue","get","length","0","firstResolve","shift","set","delete","cacheStartFlag"]},"operators":{"distinct":8,"total":26,"identifiers":["const","=","()",".","if","else","&&",">"]}},"paramCount":2,"sloc":{"logical":12,"physical":12},"errors":[],"lineEnd":173,"lineStart":162,"name":"handleCachingQueueError","paramNames":["ctx","config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":10,"cyclomaticDensity":31.25,"halstead":{"bugs":0.226,"difficulty":19.25,"effort":13031.916,"length":129,"time":723.995,"vocabulary":38,"volume":676.983,"operands":{"distinct":24,"total":66,"identifiers":["config","ctx","cache","cacheData","getCacheData","key","cacheType","response","data","result","handleCachingStart","Object","keys","forEach","next","requestdata","checkHttpRequestHasBody","method","params","error","canCache","handleCachingQueueSuccess","setCacheData","handleCachingQueueError"]},"operators":{"distinct":14,"total":63,"identifiers":["const","=","{}","if",".","()",":","return","function=>",":?","else","&&","! (prefix)","... (spread)"]}},"paramCount":2,"sloc":{"logical":32,"physical":35},"errors":[],"lineEnd":209,"lineStart":175,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":1.333,"effort":21.671,"length":7,"time":1.204,"vocabulary":5,"volume":16.253,"operands":{"distinct":3,"total":4,"identifiers":["ctx","key","result"]},"operators":{"distinct":2,"total":3,"identifiers":["=","[]"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":189,"lineStart":187,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3.385,"cyclomaticDensity":2.367,"halstead":{"bugs":0.106,"difficulty":4.09,"effort":16954.765,"length":46.846,"time":941.931,"vocabulary":8.615,"volume":318.898,"operands":{"distinct":6.462,"total":24.538},"operators":{"distinct":2.154,"total":22.308}},"paramCount":2.077,"sloc":{"logical":11,"physical":16.154}},"methodAverage":{"cyclomatic":3.583,"cyclomaticDensity":50.275,"halstead":{"bugs":0.07,"difficulty":7.085,"effort":2600.822,"length":43.833,"time":144.49,"vocabulary":20.583,"volume":209.944,"operands":{"distinct":12.5,"total":22.583},"operators":{"distinct":8.083,"total":21.25}},"paramCount":2.25,"sloc":{"logical":10.5,"physical":12.833}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-request/genRequestKey.js","report":{"aggregate":{"cyclomatic":5,"cyclomaticDensity":19.231,"halstead":{"bugs":0.166,"difficulty":12.552,"effort":6266.026,"length":92,"time":348.113,"vocabulary":43,"volume":499.216,"operands":{"distinct":29,"total":52,"identifiers":["Object","defineProperty","exports","\"__esModule\"","value","true","default","genRequestKey","_helpers","require","\"./helpers\"","getQueryString","data","0","isURLSearchParams","toString","JSON","stringify","\"\"","ctx","next","url","params","method","config","key","console","log","\"use strict\""]},"operators":{"distinct":14,"total":40,"identifiers":["()",".","{}",":","=","var","const","function=>","if","return",":?","function","``","${}"]}},"paramCount":3,"sloc":{"logical":26,"physical":34}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":8,"path":"./helpers","type":"cjs"}],"errors":[],"lineEnd":34,"lineStart":1,"maintainability":63.954,"methods":[{"cyclomatic":3,"cyclomaticDensity":50,"halstead":{"bugs":0.026,"difficulty":3.438,"effort":267.125,"length":21,"time":14.84,"vocabulary":13,"volume":77.709,"operands":{"distinct":8,"total":11,"identifiers":["0","_helpers","isURLSearchParams","data","toString","JSON","stringify","\"\""]},"operators":{"distinct":5,"total":10,"identifiers":["if","()",".","return",":?"]}},"paramCount":1,"sloc":{"logical":6,"physical":7},"errors":[],"lineEnd":22,"lineStart":16,"name":"","paramNames":["data"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":9.091,"halstead":{"bugs":0.056,"difficulty":7.318,"effort":1220.651,"length":40,"time":67.814,"vocabulary":18,"volume":166.797,"operands":{"distinct":11,"total":23,"identifiers":["url","data","params","method","ctx","config","key","getQueryString","console","log","next"]},"operators":{"distinct":7,"total":17,"identifiers":["const","=","{}",".","``","${}","()"]}},"paramCount":2,"sloc":{"logical":11,"physical":11},"errors":[],"lineEnd":34,"lineStart":24,"name":"genRequestKey","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.667,"cyclomaticDensity":6.41,"halstead":{"bugs":0.055,"difficulty":4.184,"effort":2088.675,"length":30.667,"time":116.038,"vocabulary":14.333,"volume":166.405,"operands":{"distinct":9.667,"total":17.333},"operators":{"distinct":4.667,"total":13.333}},"paramCount":1,"sloc":{"logical":8.667,"physical":11.333}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":29.545,"halstead":{"bugs":0.041,"difficulty":5.378,"effort":743.888,"length":30.5,"time":41.327,"vocabulary":15.5,"volume":122.253,"operands":{"distinct":9.5,"total":17},"operators":{"distinct":6,"total":13.5}},"paramCount":1.5,"sloc":{"logical":8.5,"physical":9}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-request/helpers.js","report":{"aggregate":{"cyclomatic":16,"cyclomaticDensity":22.222,"halstead":{"bugs":0.463,"difficulty":14.875,"effort":20661.77,"length":223,"time":1147.876,"vocabulary":75,"volume":1389.027,"operands":{"distinct":60,"total":119,"identifiers":["typeOf","obj","map","\"[object Boolean]\"","\"boolean\"","\"[object Number]\"","\"number\"","\"[object String]\"","\"string\"","\"[object Function]\"","\"function\"","\"[object Array]\"","\"array\"","\"[object Date]\"","\"date\"","\"[object RegExp]\"","\"regExp\"","\"[object Undefined]\"","\"undefined\"","\"[object Null]\"","\"null\"","\"[object Object]\"","\"object\"","\"[object URLSearchParams]\"","\"URLSearchParams\"","Object","prototype","toString","call","isFunction","isDate","isString","isArray","isObject","isURLSearchParams","isUndefined","val","undefined","isDefined","null","checkHttpRequestHasBody","method","toUpperCase","HTTP_METHOD","GET","request_body","false","POST","true","PUT","DELETE","HEAD","OPTIONS","PATCH","trimObj","entries","forEach","key","value","trim"]},"operators":{"distinct":15,"total":104,"identifiers":["function","const","=","{}",":","return","[]","()",".","===","function=>","!=","if",",","else"]}},"paramCount":13,"sloc":{"logical":72,"physical":91}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":91,"lineStart":1,"maintainability":68.92,"methods":[{"cyclomatic":1,"cyclomaticDensity":7.143,"halstead":{"bugs":0.084,"difficulty":4.143,"effort":1049.495,"length":49,"time":58.305,"vocabulary":36,"volume":253.326,"operands":{"distinct":28,"total":29,"identifiers":["map","\"[object Boolean]\"","\"boolean\"","\"[object Number]\"","\"number\"","\"[object String]\"","\"string\"","\"[object Function]\"","\"function\"","\"[object Array]\"","\"array\"","\"[object Date]\"","\"date\"","\"[object RegExp]\"","\"regExp\"","\"[object Undefined]\"","\"undefined\"","\"[object Null]\"","\"null\"","\"[object Object]\"","\"object\"","\"[object URLSearchParams]\"","\"URLSearchParams\"","Object","prototype","toString","call","obj"]},"operators":{"distinct":8,"total":20,"identifiers":["const","=","{}",":","return","[]","()","."]}},"paramCount":1,"sloc":{"logical":14,"physical":16},"errors":[],"lineEnd":20,"lineStart":5,"name":"typeOf","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"function\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":24,"lineStart":22,"name":"isFunction","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"date\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":28,"lineStart":26,"name":"isDate","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"string\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":32,"lineStart":30,"name":"isString","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"array\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":36,"lineStart":34,"name":"isArray","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"object\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":40,"lineStart":38,"name":"isObject","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["typeOf","obj","\"URLSearchParams\""]},"operators":{"distinct":3,"total":3,"identifiers":["return","===","()"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":44,"lineStart":42,"name":"isURLSearchParams","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["val","undefined"]},"operators":{"distinct":1,"total":1,"identifiers":["==="]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":47,"lineStart":47,"name":"","paramNames":["val"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["val","null"]},"operators":{"distinct":1,"total":1,"identifiers":["!="]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":49,"lineStart":49,"name":"","paramNames":["val"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":5.556,"halstead":{"bugs":0.085,"difficulty":8.615,"effort":2194.807,"length":58,"time":121.934,"vocabulary":21,"volume":254.754,"operands":{"distinct":13,"total":28,"identifiers":["method","toUpperCase","HTTP_METHOD","GET","request_body","false","POST","true","PUT","DELETE","HEAD","OPTIONS","PATCH"]},"operators":{"distinct":8,"total":30,"identifiers":["=","()",".","const","{}",":","return","[]"]}},"paramCount":1,"sloc":{"logical":18,"physical":27},"errors":[],"lineEnd":78,"lineStart":52,"name":"checkHttpRequestHasBody","paramNames":["method"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.021,"difficulty":3.429,"effort":215.683,"length":17,"time":11.982,"vocabulary":13,"volume":62.907,"operands":{"distinct":7,"total":8,"identifiers":["isObject","obj","Object","entries","forEach","key","value"]},"operators":{"distinct":6,"total":9,"identifiers":["if","()",".","function=>","[]",","]}},"paramCount":1,"sloc":{"logical":5,"physical":11},"errors":[],"lineEnd":90,"lineStart":80,"name":"trimObj","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":37.5,"halstead":{"bugs":0.025,"difficulty":4.286,"effort":317.181,"length":20,"time":17.621,"vocabulary":13,"volume":74.009,"operands":{"distinct":7,"total":10,"identifiers":["isString","value","obj","key","trim","isObject","trimObj"]},"operators":{"distinct":6,"total":10,"identifiers":["if","else","()","=","[]","."]}},"paramCount":2,"sloc":{"logical":8,"physical":7},"errors":[],"lineEnd":88,"lineStart":82,"name":"","paramNames":["key","value"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.231,"cyclomaticDensity":1.709,"halstead":{"bugs":0.036,"difficulty":1.144,"effort":1589.367,"length":17.154,"time":88.298,"vocabulary":5.769,"volume":106.848,"operands":{"distinct":4.615,"total":9.154},"operators":{"distinct":1.154,"total":8}},"paramCount":1,"sloc":{"logical":5.538,"physical":7}},"methodAverage":{"cyclomatic":1.25,"cyclomaticDensity":49.183,"halstead":{"bugs":0.021,"difficulty":2.539,"effort":326.792,"length":15.5,"time":18.155,"vocabulary":10.417,"volume":62.297,"operands":{"distinct":6.417,"total":8.083},"operators":{"distinct":4,"total":7.417}},"paramCount":1.083,"sloc":{"logical":4.917,"physical":6.75}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-request/paramsProcess.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.036,"difficulty":6.563,"effort":717.891,"length":28,"time":39.883,"vocabulary":15,"volume":109.393,"operands":{"distinct":8,"total":15,"identifiers":["ctx","next","config","checkHttpRequestHasBody","method","trimObj","data","params"]},"operators":{"distinct":7,"total":13,"identifiers":["function=>","const","=",".","if","else","()"]}},"paramCount":2,"sloc":{"logical":9,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./helpers","type":"esm"}],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":73.747,"methods":[{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.032,"difficulty":4.875,"effort":464.021,"length":25,"time":25.779,"vocabulary":14,"volume":95.184,"operands":{"distinct":8,"total":13,"identifiers":["config","ctx","checkHttpRequestHasBody","method","trimObj","data","params","next"]},"operators":{"distinct":6,"total":12,"identifiers":["const","=",".","if","else","()"]}},"paramCount":2,"sloc":{"logical":8,"physical":9},"errors":[],"lineEnd":11,"lineStart":3,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":16.667,"halstead":{"bugs":0.018,"difficulty":3.281,"effort":358.946,"length":14,"time":19.941,"vocabulary":7.5,"volume":54.696,"operands":{"distinct":4,"total":7.5},"operators":{"distinct":3.5,"total":6.5}},"paramCount":1,"sloc":{"logical":4.5,"physical":6}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.032,"difficulty":4.875,"effort":464.021,"length":25,"time":25.779,"vocabulary":14,"volume":95.184,"operands":{"distinct":8,"total":13},"operators":{"distinct":6,"total":12}},"paramCount":2,"sloc":{"logical":8,"physical":9}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-request/preventRepeatReq.js","report":{"aggregate":{"cyclomatic":17,"cyclomaticDensity":32.075,"halstead":{"bugs":0.419,"difficulty":30.281,"effort":38084.577,"length":224,"time":2115.81,"vocabulary":49,"volume":1257.695,"operands":{"distinct":32,"total":114,"identifiers":["requestMap","Map","mergeRequestMap","requestQueue","handleCachingStart","ctx","isRequesting","get","key","Promise","resolve","queue","set","concat","true","handleRepeatRequest","length","0","forEach","error","response","delete","next","config","mergeRequest","result","Object","keys","type","\"REPEAT\"","msg","\"重复请求\""]},"operators":{"distinct":17,"total":110,"identifiers":["const","=","new","function","()",".","if","return","function=>","||","[]","&&",">","else","{}",":","! (prefix)"]}},"paramCount":7,"sloc":{"logical":53,"physical":65}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":65,"lineStart":1,"maintainability":63.099,"methods":[{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.034,"difficulty":5.778,"effort":590.411,"length":25,"time":32.801,"vocabulary":17,"volume":102.187,"operands":{"distinct":9,"total":13,"identifiers":["isRequesting","mergeRequestMap","get","ctx","key","Promise","resolve","set","true"]},"operators":{"distinct":8,"total":12,"identifiers":["const","=","()",".","if","return","new","function=>"]}},"paramCount":1,"sloc":{"logical":6,"physical":10},"errors":[],"lineEnd":15,"lineStart":6,"name":"handleCachingStart","paramNames":["ctx"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.03,"difficulty":4.5,"effort":411.194,"length":24,"time":22.844,"vocabulary":14,"volume":91.377,"operands":{"distinct":8,"total":12,"identifiers":["queue","requestQueue","get","ctx","key","set","concat","resolve"]},"operators":{"distinct":6,"total":12,"identifiers":["const","=","||","()",".","[]"]}},"paramCount":1,"sloc":{"logical":4,"physical":4},"errors":[],"lineEnd":12,"lineStart":9,"name":"","paramNames":["resolve"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":42.857,"halstead":{"bugs":0.054,"difficulty":7.273,"effort":1173.973,"length":38,"time":65.221,"vocabulary":19,"volume":161.421,"operands":{"distinct":11,"total":20,"identifiers":["queue","requestQueue","get","ctx","key","length","0","forEach","resolve","delete","mergeRequestMap"]},"operators":{"distinct":8,"total":18,"identifiers":["const","=","()",".","if","&&",">","function=>"]}},"paramCount":1,"sloc":{"logical":7,"physical":18},"errors":[],"lineEnd":34,"lineStart":17,"name":"handleRepeatRequest","paramNames":["ctx"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.023,"difficulty":7.5,"effort":523.204,"length":21,"time":29.067,"vocabulary":10,"volume":69.76,"operands":{"distinct":4,"total":10,"identifiers":["ctx","error","resolve","response"]},"operators":{"distinct":6,"total":11,"identifiers":["if","else",".","()","{}",":"]}},"paramCount":1,"sloc":{"logical":6,"physical":11},"errors":[],"lineEnd":30,"lineStart":20,"name":"","paramNames":["resolve"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":26.087,"halstead":{"bugs":0.143,"difficulty":12.286,"effort":5267.789,"length":85,"time":292.655,"vocabulary":33,"volume":428.774,"operands":{"distinct":21,"total":43,"identifiers":["ctx","config","mergeRequest","result","handleCachingStart","Object","keys","forEach","key","requestMap","get","error","type","\"REPEAT\"","msg","\"重复请求\"","set","true","next","handleRepeatRequest","delete"]},"operators":{"distinct":12,"total":42,"identifiers":["if","else",".","const","=","()","function=>","return","&&","! (prefix)","{}",":"]}},"paramCount":2,"sloc":{"logical":23,"physical":29},"errors":[],"lineEnd":64,"lineStart":36,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.005,"difficulty":1.333,"effort":21.671,"length":7,"time":1.204,"vocabulary":5,"volume":16.253,"operands":{"distinct":3,"total":4,"identifiers":["ctx","key","result"]},"operators":{"distinct":2,"total":3,"identifiers":["=","[]"]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":42,"lineStart":40,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.429,"cyclomaticDensity":4.582,"halstead":{"bugs":0.06,"difficulty":4.326,"effort":5440.654,"length":32,"time":302.259,"vocabulary":7,"volume":179.671,"operands":{"distinct":4.571,"total":16.286},"operators":{"distinct":2.429,"total":15.714}},"paramCount":1,"sloc":{"logical":7.571,"physical":9.286}},"methodAverage":{"cyclomatic":2.667,"cyclomaticDensity":47.602,"halstead":{"bugs":0.048,"difficulty":6.445,"effort":1331.374,"length":33.333,"time":73.965,"vocabulary":16.333,"volume":144.962,"operands":{"distinct":9.333,"total":17},"operators":{"distinct":7,"total":16.333}},"paramCount":1.167,"sloc":{"logical":7.833,"physical":12.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-request/request.js","report":{"aggregate":{"cyclomatic":47,"cyclomaticDensity":27.811,"halstead":{"bugs":1.531,"difficulty":39.236,"effort":180211.021,"length":651,"time":10011.723,"vocabulary":133,"volume":4592.989,"operands":{"distinct":108,"total":339,"identifiers":["addInterceptors","instance","interceptors","type","'request'","forEach","fn","Array","isArray","use","isFunction","addRequestInterceptors","\"request\"","addResponseInterceptors","\"response\"","axiosMiddleware","context","next","response","request","config","error","getRequestInstance","responseDataAdaptor","requestInterceptors","responseInterceptors","errorHandler","otherConfigs","plugin","applyPlugins","key","ApplyPluginsType","modify","initialValue","defaultConfig","Object","assign","timeout","10000","withCredentials","true","axios","create","scheduler","paramsProcess","genRequestKey","cacheControl","preventRepeatReq","throttle","resDataAdaptor","resErrorProcess","setDataField","dataField","\"result\"","compose","handleApiPathBase","url","options","startsWith","\"http\"","base","/ras-mas","userConfigHandler","data","method","\"post\"","toUpperCase","checkHttpRequestHasBody","params","currentRequestInstance","null","createContext","userConfig","getResponseCode","_rawData","code","skipErrorHandlerToObj","skipErrorHandler","reduce","acc","cur","handleRequestError","skipObj","resCode","errorKey","\"default\"","status","\"string\"","then","useResonse","Promise","reject","isPromiseLike","obj","\"object\"","\"function\"","useRequest","loadingRef","ref","errorRef","dataRef","promise","res","value","catch","finally","false","loading"]},"operators":{"distinct":25,"total":312,"identifiers":["function","=","()",".","function=>","if","else","[]","... (spread)","try","catch","const","{}","... (rest)",":","return","``","${}","||","let","! (prefix)","===","&&","typeof (prefix)",":?"]}},"paramCount":33,"sloc":{"logical":169,"physical":219}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"/Users/qlin/code/fes.js/node_modules/axios","type":"esm"},{"line":2,"path":"@fesjs/fes","type":"esm"},{"line":3,"path":"vue","type":"esm"},{"line":4,"path":"./scheduler","type":"esm"},{"line":8,"path":"./helpers","type":"esm"},{"line":10,"path":"./setDataField","type":"esm"},{"line":11,"path":"./paramsProcess","type":"esm"},{"line":12,"path":"./genRequestKey","type":"esm"},{"line":13,"path":"./preventRepeatReq","type":"esm"},{"line":14,"path":"./throttle","type":"esm"},{"line":15,"path":"./cacheControl","type":"esm"},{"line":16,"path":"./resDataAdaptor","type":"esm"},{"line":17,"path":"./resErrorProcess","type":"esm"}],"errors":[],"lineEnd":219,"lineStart":1,"maintainability":61.658,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["interceptors","forEach","fn"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","function=>"]}},"paramCount":3,"sloc":{"logical":2,"physical":9},"errors":[],"lineEnd":27,"lineStart":19,"name":"addInterceptors","paramNames":["instance","interceptors","type"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":42.857,"halstead":{"bugs":0.038,"difficulty":5.625,"effort":642.491,"length":30,"time":35.694,"vocabulary":14,"volume":114.221,"operands":{"distinct":8,"total":15,"identifiers":["Array","isArray","fn","instance","interceptors","type","use","isFunction"]},"operators":{"distinct":6,"total":15,"identifiers":["if","else","()",".","[]","... (spread)"]}},"paramCount":1,"sloc":{"logical":7,"physical":7},"errors":[],"lineEnd":26,"lineStart":20,"name":"","paramNames":["fn"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":0.5,"effort":5.805,"length":5,"time":0.322,"vocabulary":5,"volume":11.61,"operands":{"distinct":4,"total":4,"identifiers":["addInterceptors","instance","interceptors","\"request\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":2,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":31,"lineStart":29,"name":"addRequestInterceptors","paramNames":["instance","interceptors"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":0.5,"effort":5.805,"length":5,"time":0.322,"vocabulary":5,"volume":11.61,"operands":{"distinct":4,"total":4,"identifiers":["addInterceptors","instance","interceptors","\"response\""]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":2,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":35,"lineStart":33,"name":"addResponseInterceptors","paramNames":["instance","interceptors"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.027,"difficulty":4.286,"effort":353.375,"length":23,"time":19.632,"vocabulary":12,"volume":82.454,"operands":{"distinct":7,"total":12,"identifiers":["context","response","instance","request","config","error","next"]},"operators":{"distinct":5,"total":11,"identifiers":["try","=",".","()","catch"]}},"paramCount":2,"sloc":{"logical":7,"physical":8},"errors":[],"lineEnd":44,"lineStart":37,"name":"axiosMiddleware","paramNames":["context","next"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":2.703,"halstead":{"bugs":0.228,"difficulty":7.463,"effort":5096.815,"length":121,"time":283.156,"vocabulary":50,"volume":682.907,"operands":{"distinct":41,"total":68,"identifiers":["responseDataAdaptor","requestInterceptors","responseInterceptors","errorHandler","otherConfigs","plugin","applyPlugins","key","\"request\"","type","ApplyPluginsType","modify","initialValue","defaultConfig","Object","assign","timeout","10000","withCredentials","true","instance","axios","create","addRequestInterceptors","addResponseInterceptors","scheduler","use","paramsProcess","genRequestKey","cacheControl","preventRepeatReq","throttle","axiosMiddleware","resDataAdaptor","resErrorProcess","setDataField","context","dataField","\"result\"","request","compose"]},"operators":{"distinct":9,"total":53,"identifiers":["const","=","{}","[]","... (rest)","()",".",":","return"]}},"paramCount":0,"sloc":{"logical":37,"physical":45},"errors":[],"lineEnd":90,"lineStart":46,"name":"getRequestInstance","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":50,"halstead":{"bugs":0.03,"difficulty":5.5,"effort":492.932,"length":25,"time":27.385,"vocabulary":12,"volume":89.624,"operands":{"distinct":6,"total":11,"identifiers":["url","startsWith","\"http\"","options","base","/ras-mas"]},"operators":{"distinct":6,"total":14,"identifiers":["if","()",".","return","``","${}"]}},"paramCount":2,"sloc":{"logical":6,"physical":8},"errors":[],"lineEnd":100,"lineStart":93,"name":"handleApiPathBase","paramNames":["url","options"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":30,"halstead":{"bugs":0.052,"difficulty":8.167,"effort":1274,"length":39,"time":70.778,"vocabulary":16,"volume":156,"operands":{"distinct":9,"total":21,"identifiers":["options","url","handleApiPathBase","method","\"post\"","toUpperCase","checkHttpRequestHasBody","data","params"]},"operators":{"distinct":7,"total":18,"identifiers":["=",".","()","||","if","else","return"]}},"paramCount":3,"sloc":{"logical":10,"physical":10},"errors":[],"lineEnd":111,"lineStart":102,"name":"userConfigHandler","paramNames":["url","data","options"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.019,"difficulty":3.5,"effort":197.655,"length":17,"time":10.981,"vocabulary":10,"volume":56.473,"operands":{"distinct":5,"total":7,"identifiers":["currentRequestInstance","context","config","defaultConfig","userConfig"]},"operators":{"distinct":5,"total":10,"identifiers":["return","{}","... (spread)",".",":"]}},"paramCount":1,"sloc":{"logical":2,"physical":9},"errors":[],"lineEnd":123,"lineStart":115,"name":"createContext","paramNames":["userConfig"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":66.667,"halstead":{"bugs":0.024,"difficulty":3.6,"effort":259.2,"length":24,"time":14.4,"vocabulary":8,"volume":72,"operands":{"distinct":5,"total":12,"identifiers":["response","_rawData","code","data","null"]},"operators":{"distinct":3,"total":12,"identifiers":["if",".","return"]}},"paramCount":1,"sloc":{"logical":6,"physical":7},"errors":[],"lineEnd":132,"lineStart":126,"name":"getResponseCode","paramNames":["response"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.026,"difficulty":6.75,"effort":527.43,"length":20,"time":29.302,"vocabulary":15,"volume":78.138,"operands":{"distinct":6,"total":9,"identifiers":["Array","isArray","skipErrorHandler","reduce","acc","cur"]},"operators":{"distinct":9,"total":11,"identifiers":["if","! (prefix)","()",".","=","[]","return","function=>","{}"]}},"paramCount":1,"sloc":{"logical":6,"physical":10},"errors":[],"lineEnd":143,"lineStart":134,"name":"skipErrorHandlerToObj","paramNames":["skipErrorHandler"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.006,"difficulty":2,"effort":36.189,"length":7,"time":2.011,"vocabulary":6,"volume":18.095,"operands":{"distinct":3,"total":4,"identifiers":["acc","cur","true"]},"operators":{"distinct":3,"total":3,"identifiers":["=","[]","return"]}},"paramCount":2,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":142,"lineStart":139,"name":"","paramNames":["acc","cur"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":10,"cyclomaticDensity":55.556,"halstead":{"bugs":0.133,"difficulty":18,"effort":7191.673,"length":85,"time":399.537,"vocabulary":26,"volume":399.537,"operands":{"distinct":14,"total":42,"identifiers":["config","skipErrorHandler","true","skipObj","skipErrorHandlerToObj","resCode","getResponseCode","response","errorKey","\"default\"","errorHandler","error","type","status"]},"operators":{"distinct":12,"total":43,"identifiers":["if","===",".","return","const","=","()","let","else","&&","[]","! (prefix)"]}},"paramCount":4,"sloc":{"logical":18,"physical":25},"errors":[],"lineEnd":169,"lineStart":145,"name":"handleRequestError","paramNames":["errorHandler","error","response","config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":21.429,"halstead":{"bugs":0.065,"difficulty":9.231,"effort":1800.387,"length":42,"time":100.022,"vocabulary":25,"volume":195.042,"operands":{"distinct":13,"total":20,"identifiers":["options","\"string\"","method","currentRequestInstance","getRequestInstance","userConfig","userConfigHandler","url","data","context","createContext","request","then"]},"operators":{"distinct":12,"total":22,"identifiers":["if","===","typeof (prefix)","=","{}",":","! (prefix)","()","const","return",".","function=>"]}},"paramCount":3,"sloc":{"logical":14,"physical":20},"errors":[],"lineEnd":190,"lineStart":171,"name":"","paramNames":["url","data","options"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":50,"halstead":{"bugs":0.04,"difficulty":5.333,"effort":645.939,"length":31,"time":35.886,"vocabulary":15,"volume":121.114,"operands":{"distinct":9,"total":16,"identifiers":["context","error","config","useResonse","response","data","handleRequestError","Promise","reject"]},"operators":{"distinct":6,"total":15,"identifiers":["if","! (prefix)",".","return",":?","()"]}},"paramCount":0,"sloc":{"logical":6,"physical":7},"errors":[],"lineEnd":189,"lineStart":183,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":300,"halstead":{"bugs":0.018,"difficulty":4.5,"effort":239.179,"length":16,"time":13.288,"vocabulary":10,"volume":53.151,"operands":{"distinct":4,"total":6,"identifiers":["obj","\"object\"","then","\"function\""]},"operators":{"distinct":6,"total":10,"identifiers":["return","&&","! (prefix)","===","typeof (prefix)","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":194,"lineStart":192,"name":"isPromiseLike","paramNames":["obj"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":8.696,"halstead":{"bugs":0.099,"difficulty":9.472,"effort":2806.968,"length":61,"time":155.943,"vocabulary":29,"volume":296.337,"operands":{"distinct":18,"total":31,"identifiers":["loadingRef","ref","true","errorRef","null","dataRef","promise","isPromiseLike","url","request","data","options","then","res","catch","error","finally","loading"]},"operators":{"distinct":11,"total":30,"identifiers":["const","=","()","let","if","else",".","function=>","return","{}",":"]}},"paramCount":3,"sloc":{"logical":23,"physical":23},"errors":[],"lineEnd":218,"lineStart":196,"name":"","paramNames":["url","data","options"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["dataRef","value","res"]},"operators":{"distinct":2,"total":2,"identifiers":["=","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":208,"lineStart":206,"name":"","paramNames":["res"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["errorRef","value","error"]},"operators":{"distinct":2,"total":2,"identifiers":["=","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":210,"lineStart":208,"name":"","paramNames":["error"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["loadingRef","value","false"]},"operators":{"distinct":2,"total":2,"identifiers":["=","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":212,"lineStart":210,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.238,"cyclomaticDensity":1.324,"halstead":{"bugs":0.073,"difficulty":1.868,"effort":8581.477,"length":31,"time":476.749,"vocabulary":6.333,"volume":218.714,"operands":{"distinct":5.143,"total":16.143},"operators":{"distinct":1.19,"total":14.857}},"paramCount":1.571,"sloc":{"logical":8.048,"physical":10.429}},"methodAverage":{"cyclomatic":2.3,"cyclomaticDensity":66.276,"halstead":{"bugs":0.041,"difficulty":4.946,"effort":1081.697,"length":28.6,"time":60.094,"vocabulary":13.95,"volume":124.432,"operands":{"distinct":8.4,"total":14.7},"operators":{"distinct":5.55,"total":13.9}},"paramCount":1.65,"sloc":{"logical":7.6,"physical":10.5}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-request/resDataAdaptor.js","report":{"aggregate":{"cyclomatic":6,"cyclomaticDensity":66.667,"halstead":{"bugs":0.044,"difficulty":10.286,"effort":1366.295,"length":34,"time":75.905,"vocabulary":15,"volume":132.834,"operands":{"distinct":7,"total":18,"identifiers":["response","responseDataAdaptor","next","isFunction","isObject","data","isString"]},"operators":{"distinct":8,"total":16,"identifiers":["function=>","{}","if","&&","()","||",".","="]}},"paramCount":3,"sloc":{"logical":9,"physical":9}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./helpers","type":"esm"}],"errors":[],"lineEnd":9,"lineStart":1,"maintainability":72.055,"methods":[{"cyclomatic":5,"cyclomaticDensity":62.5,"halstead":{"bugs":0.036,"difficulty":6.429,"effort":689.868,"length":29,"time":38.326,"vocabulary":13,"volume":107.313,"operands":{"distinct":7,"total":15,"identifiers":["isFunction","responseDataAdaptor","response","isObject","data","isString","next"]},"operators":{"distinct":6,"total":14,"identifiers":["if","&&","()","||",".","="]}},"paramCount":3,"sloc":{"logical":8,"physical":6},"errors":[],"lineEnd":8,"lineStart":3,"name":"","paramNames":["response","responseDataAdaptor","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3,"cyclomaticDensity":33.333,"halstead":{"bugs":0.022,"difficulty":5.143,"effort":683.148,"length":17,"time":37.953,"vocabulary":7.5,"volume":66.417,"operands":{"distinct":3.5,"total":9},"operators":{"distinct":4,"total":8}},"paramCount":1.5,"sloc":{"logical":4.5,"physical":4.5}},"methodAverage":{"cyclomatic":5,"cyclomaticDensity":62.5,"halstead":{"bugs":0.036,"difficulty":6.429,"effort":689.868,"length":29,"time":38.326,"vocabulary":13,"volume":107.313,"operands":{"distinct":7,"total":15},"operators":{"distinct":6,"total":14}},"paramCount":3,"sloc":{"logical":8,"physical":6}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-request/resErrorProcess.js","report":{"aggregate":{"cyclomatic":6,"cyclomaticDensity":54.545,"halstead":{"bugs":0.062,"difficulty":11.5,"effort":2137.193,"length":43,"time":118.733,"vocabulary":20,"volume":185.843,"operands":{"distinct":10,"total":23,"identifiers":["ctx","next","response","config","closeResDataCheck","isObject","data","code","\"0\"","error"]},"operators":{"distinct":10,"total":20,"identifiers":["function=>","const","=","{}","if","&&","! (prefix)",".","()","!=="]}},"paramCount":2,"sloc":{"logical":11,"physical":18}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./helpers","type":"esm"}],"errors":[],"lineEnd":18,"lineStart":1,"maintainability":69.259,"methods":[{"cyclomatic":5,"cyclomaticDensity":50,"halstead":{"bugs":0.057,"difficulty":9.45,"effort":1605.717,"length":40,"time":89.206,"vocabulary":19,"volume":169.917,"operands":{"distinct":10,"total":21,"identifiers":["response","config","ctx","closeResDataCheck","isObject","data","code","\"0\"","error","next"]},"operators":{"distinct":9,"total":19,"identifiers":["const","=","{}","if","&&","! (prefix)",".","()","!=="]}},"paramCount":2,"sloc":{"logical":10,"physical":14},"errors":[],"lineEnd":17,"lineStart":4,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3,"cyclomaticDensity":27.273,"halstead":{"bugs":0.031,"difficulty":5.75,"effort":1068.597,"length":21.5,"time":59.366,"vocabulary":10,"volume":92.921,"operands":{"distinct":5,"total":11.5},"operators":{"distinct":5,"total":10}},"paramCount":1,"sloc":{"logical":5.5,"physical":9}},"methodAverage":{"cyclomatic":5,"cyclomaticDensity":50,"halstead":{"bugs":0.057,"difficulty":9.45,"effort":1605.717,"length":40,"time":89.206,"vocabulary":19,"volume":169.917,"operands":{"distinct":10,"total":21},"operators":{"distinct":9,"total":19}},"paramCount":2,"sloc":{"logical":10,"physical":14}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-request/scheduler.js","report":{"aggregate":{"cyclomatic":10,"cyclomaticDensity":29.412,"halstead":{"bugs":0.216,"difficulty":22.846,"effort":14801.01,"length":116,"time":822.278,"vocabulary":48,"volume":647.856,"operands":{"distinct":26,"total":54,"identifiers":["Scheduler","constructor","middlewares","use","fn","\"function\"","TypeError","\"middleware must be a function!\"","push","compose","context","next","index","1","dispatch","i","Promise","reject","Error","\"next() called multiple times\"","length","resolve","bind","null","e","0"]},"operators":{"distinct":22,"total":62,"identifiers":["class","=",".","this","[]","if","!==","typeof (prefix)","throw","new","()","return","function=>","let","- (prefix)","const","<=","===","! (prefix)","try","+","catch"]}},"paramCount":4,"sloc":{"logical":34,"physical":34}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[{"aggregate":{"cyclomatic":9,"cyclomaticDensity":27.273,"halstead":{"bugs":0.206,"difficulty":21.84,"effort":13511.074,"length":112,"time":750.615,"vocabulary":46,"volume":618.639,"operands":{"distinct":25,"total":52,"identifiers":["constructor","middlewares","use","fn","\"function\"","TypeError","\"middleware must be a function!\"","push","compose","context","next","index","1","dispatch","i","Promise","reject","Error","\"next() called multiple times\"","length","resolve","bind","null","e","0"]},"operators":{"distinct":21,"total":60,"identifiers":["=",".","this","[]","if","!==","typeof (prefix)","throw","new","()","return","function=>","let","- (prefix)","const","<=","===","! (prefix)","try","+","catch"]}},"paramCount":4,"sloc":{"logical":33,"physical":30}},"errors":[],"lineEnd":31,"lineStart":2,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":2,"effort":23.219,"length":5,"time":1.29,"vocabulary":5,"volume":11.61,"operands":{"distinct":1,"total":1,"identifiers":["middlewares"]},"operators":{"distinct":4,"total":4,"identifiers":["=",".","this","[]"]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":5,"lineStart":3,"name":"constructor","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":50,"halstead":{"bugs":0.023,"difficulty":5.25,"effort":369.201,"length":18,"time":20.511,"vocabulary":15,"volume":70.324,"operands":{"distinct":6,"total":7,"identifiers":["fn","\"function\"","TypeError","\"middleware must be a function!\"","middlewares","push"]},"operators":{"distinct":9,"total":11,"identifiers":["if","!==","typeof (prefix)","throw","new","()",".","this","return"]}},"paramCount":1,"sloc":{"logical":4,"physical":5},"errors":[],"lineEnd":11,"lineStart":7,"name":"use","paramNames":["fn"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["context","next"]},"operators":{"distinct":2,"total":2,"identifiers":["return","function=>"]}},"paramCount":0,"sloc":{"logical":2,"physical":18},"errors":[],"lineEnd":30,"lineStart":13,"name":"compose","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.017,"difficulty":4.2,"effort":210.796,"length":14,"time":11.711,"vocabulary":12,"volume":50.189,"operands":{"distinct":5,"total":6,"identifiers":["index","1","dispatch","i","0"]},"operators":{"distinct":7,"total":8,"identifiers":["let","=","- (prefix)","const","function=>","return","()"]}},"paramCount":2,"sloc":{"logical":5,"physical":16},"errors":[],"lineEnd":29,"lineStart":14,"name":"","paramNames":["context","next"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":22.222,"halstead":{"bugs":0.112,"difficulty":14.118,"effort":4729.412,"length":67,"time":262.745,"vocabulary":32,"volume":335,"operands":{"distinct":17,"total":32,"identifiers":["i","index","Promise","reject","Error","\"next() called multiple times\"","fn","middlewares","length","next","resolve","context","dispatch","bind","null","1","e"]},"operators":{"distinct":15,"total":35,"identifiers":["if","<=","return","()",".","new","=","let","[]","this","===","! (prefix)","try","+","catch"]}},"paramCount":1,"sloc":{"logical":18,"physical":12},"errors":[],"lineEnd":27,"lineStart":16,"name":"","paramNames":["i"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":4.545,"halstead":{"bugs":0.034,"difficulty":3.64,"effort":2251.846,"length":18.667,"time":125.103,"vocabulary":7.667,"volume":103.106,"operands":{"distinct":4.167,"total":8.667},"operators":{"distinct":3.5,"total":10}},"paramCount":0.667,"sloc":{"logical":5.5,"physical":5}},"methodAverage":{"cyclomatic":1.8,"cyclomaticDensity":48.444,"halstead":{"bugs":0.032,"difficulty":5.314,"effort":1068.126,"length":21.6,"time":59.34,"vocabulary":13.6,"volume":95.025,"operands":{"distinct":6.2,"total":9.6},"operators":{"distinct":7.4,"total":12}},"paramCount":0.8,"sloc":{"logical":6,"physical":10.8}},"name":"Scheduler","maintainability":68.734}],"dependencies":[],"errors":[],"lineEnd":34,"lineStart":1,"maintainability":67.647,"methods":[],"aggregateAverage":{"cyclomatic":1.667,"cyclomaticDensity":4.902,"halstead":{"bugs":0.036,"difficulty":3.808,"effort":2466.835,"length":19.333,"time":137.046,"vocabulary":8,"volume":107.976,"operands":{"distinct":4.333,"total":9},"operators":{"distinct":3.667,"total":10.333}},"paramCount":0.667,"sloc":{"logical":5.667,"physical":5.667}},"methodAverage":{"cyclomatic":1.8,"cyclomaticDensity":48.444,"halstead":{"bugs":0.032,"difficulty":5.314,"effort":1068.126,"length":21.6,"time":59.34,"vocabulary":13.6,"volume":95.025,"operands":{"distinct":6.2,"total":9.6},"operators":{"distinct":7.4,"total":12}},"paramCount":0.8,"sloc":{"logical":6,"physical":10.8}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-request/setDataField.js","report":{"aggregate":{"cyclomatic":6,"cyclomaticDensity":75,"halstead":{"bugs":0.085,"difficulty":17.222,"effort":4389.525,"length":60,"time":243.863,"vocabulary":19,"volume":254.876,"operands":{"distinct":9,"total":31,"identifiers":["ctx","next","dataField","config","error","response","isObject","data","_rawData"]},"operators":{"distinct":10,"total":29,"identifiers":["function=>","const","=","??",".","if","&&","! (prefix)","()","[]"]}},"paramCount":2,"sloc":{"logical":8,"physical":12}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"./helpers","type":"esm"}],"errors":[],"lineEnd":12,"lineStart":1,"maintainability":70.837,"methods":[{"cyclomatic":5,"cyclomaticDensity":71.429,"halstead":{"bugs":0.079,"difficulty":14.5,"effort":3446.443,"length":57,"time":191.469,"vocabulary":18,"volume":237.686,"operands":{"distinct":9,"total":29,"identifiers":["dataField","ctx","config","error","response","isObject","data","_rawData","next"]},"operators":{"distinct":9,"total":28,"identifiers":["const","=","??",".","if","&&","! (prefix)","()","[]"]}},"paramCount":2,"sloc":{"logical":7,"physical":8},"errors":[],"lineEnd":11,"lineStart":4,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3,"cyclomaticDensity":37.5,"halstead":{"bugs":0.042,"difficulty":8.611,"effort":2194.763,"length":30,"time":121.931,"vocabulary":9.5,"volume":127.438,"operands":{"distinct":4.5,"total":15.5},"operators":{"distinct":5,"total":14.5}},"paramCount":1,"sloc":{"logical":4,"physical":6}},"methodAverage":{"cyclomatic":5,"cyclomaticDensity":71.429,"halstead":{"bugs":0.079,"difficulty":14.5,"effort":3446.443,"length":57,"time":191.469,"vocabulary":18,"volume":237.686,"operands":{"distinct":9,"total":29},"operators":{"distinct":9,"total":28}},"paramCount":2,"sloc":{"logical":7,"physical":8}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/.fes/plugin-request/throttle.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":28.571,"halstead":{"bugs":0.093,"difficulty":10.875,"effort":3032.239,"length":58,"time":168.458,"vocabulary":28,"volume":278.827,"operands":{"distinct":16,"total":29,"identifiers":["throttleMap","Map","ctx","next","config","throttle","get","key","Date","now","error","type","\"FREQUENTLY\"","msg","\"请求过于频繁\"","set"]},"operators":{"distinct":12,"total":29,"identifiers":["const","=","new","function=>","if",".",">=","()","{}",":","return","+"]}},"paramCount":2,"sloc":{"logical":14,"physical":17}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":17,"lineStart":1,"maintainability":66.512,"methods":[{"cyclomatic":3,"cyclomaticDensity":25,"halstead":{"bugs":0.076,"difficulty":7.5,"effort":1719.361,"length":50,"time":95.52,"vocabulary":24,"volume":229.248,"operands":{"distinct":15,"total":25,"identifiers":["ctx","config","throttle","throttleMap","get","key","Date","now","error","type","\"FREQUENTLY\"","msg","\"请求过于频繁\"","next","set"]},"operators":{"distinct":9,"total":25,"identifiers":["if",".",">=","()","=","{}",":","return","+"]}},"paramCount":2,"sloc":{"logical":12,"physical":13},"errors":[],"lineEnd":16,"lineStart":4,"name":"","paramNames":["ctx","next"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":14.286,"halstead":{"bugs":0.046,"difficulty":5.438,"effort":1516.12,"length":29,"time":84.229,"vocabulary":14,"volume":139.413,"operands":{"distinct":8,"total":14.5},"operators":{"distinct":6,"total":14.5}},"paramCount":1,"sloc":{"logical":7,"physical":8.5}},"methodAverage":{"cyclomatic":3,"cyclomaticDensity":25,"halstead":{"bugs":0.076,"difficulty":7.5,"effort":1719.361,"length":50,"time":95.52,"vocabulary":24,"volume":229.248,"operands":{"distinct":15,"total":25},"operators":{"distinct":9,"total":25}},"paramCount":2,"sloc":{"logical":12,"physical":13}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/app.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":25,"halstead":{"bugs":0.062,"difficulty":9.091,"effort":1699.171,"length":44,"time":94.398,"vocabulary":19,"volume":186.909,"operands":{"distinct":11,"total":25,"identifiers":["request","errorHandler","console","log","\"root:111\"","\"500 error\"","error","msg","data","patchRoutes","\"patchRoutes\""]},"operators":{"distinct":8,"total":19,"identifiers":["const","=","{}",":","()",".","||","function"]}},"paramCount":0,"sloc":{"logical":12,"physical":20}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":20,"lineStart":1,"maintainability":69.299,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["console","log","\"patchRoutes\""]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":19,"lineStart":17,"name":"patchRoutes","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":12.5,"halstead":{"bugs":0.031,"difficulty":4.545,"effort":849.586,"length":22,"time":47.199,"vocabulary":9.5,"volume":93.454,"operands":{"distinct":5.5,"total":12.5},"operators":{"distinct":4,"total":9.5}},"paramCount":0,"sloc":{"logical":6,"physical":10}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3},"operators":{"distinct":2,"total":2}},"paramCount":0,"sloc":{"logical":1,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/common/service.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":2}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":2,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":2}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/common/utils.js","report":{"aggregate":{"cyclomatic":25,"cyclomaticDensity":46.296,"halstead":{"bugs":0.665,"difficulty":21,"effort":41904.163,"length":301,"time":2328.009,"vocabulary":99,"volume":1995.436,"operands":{"distinct":78,"total":156,"identifiers":["resetContainerHeight","dom","originalHeight","document","body","clientHeight","documentElement","window","onresize","resizeHeight","container","querySelector","style","height","resetInputBlur","isWechat","navigator","userAgent","match","/MicroMessenger\\/([\\d.]+)/i","wechatVersion","1","version","appVersion","/OS (\\d+)_(\\d+)_?(\\d+)?/","replace","/\\./g","\"\"","674","12","scrollTo","0","Math","max","getQueryString","name","reg","RegExp","(^|&)","=([^&]*)(&|$)","\"i\"","r","location","search","substr","null","decodeURIComponent","2","simpleRequest","options","xhr","XMLHttpRequest","timeout","3000","type","\"GET\"","open","url","async","true","send","\"POST\"","setRequestHeader","\"Content-Type\"","\"application/json\"","JSON","stringify","data","onreadystatechange","readyState","4","status","200","300","successed","responseText","failed","ontimeout"]},"operators":{"distinct":21,"total":145,"identifiers":["function","const","=","||",".","if","<","()","! (prefix)","return","[]","&&",">=","+ (prefix)","new","``","${}","!=","else","===","{}"]}},"paramCount":3,"sloc":{"logical":54,"physical":67}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":67,"lineStart":1,"maintainability":64.116,"methods":[{"cyclomatic":2,"cyclomaticDensity":66.667,"halstead":{"bugs":0.023,"difficulty":3.214,"effort":218.939,"length":19,"time":12.163,"vocabulary":12,"volume":68.114,"operands":{"distinct":7,"total":9,"identifiers":["originalHeight","document","body","clientHeight","documentElement","window","onresize"]},"operators":{"distinct":5,"total":10,"identifiers":["const","=","||",".","function"]}},"paramCount":1,"sloc":{"logical":3,"physical":12},"errors":[],"lineEnd":19,"lineStart":8,"name":"resetContainerHeight","paramNames":["dom"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":60,"halstead":{"bugs":0.046,"difficulty":5.409,"effort":744.332,"length":33,"time":41.352,"vocabulary":18,"volume":137.608,"operands":{"distinct":11,"total":17,"identifiers":["resizeHeight","document","documentElement","clientHeight","body","originalHeight","container","querySelector","dom","style","height"]},"operators":{"distinct":7,"total":16,"identifiers":["const","=","||",".","if","<","()"]}},"paramCount":0,"sloc":{"logical":5,"physical":8},"errors":[],"lineEnd":18,"lineStart":11,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":36.364,"halstead":{"bugs":0.116,"difficulty":7.792,"effort":2717.665,"length":68,"time":150.981,"vocabulary":35,"volume":348.791,"operands":{"distinct":24,"total":34,"identifiers":["isWechat","window","navigator","userAgent","match","/MicroMessenger\\/([\\d.]+)/i","wechatVersion","1","version","appVersion","/OS (\\d+)_(\\d+)_?(\\d+)?/","replace","/\\./g","\"\"","674","12","scrollTo","0","Math","max","document","body","clientHeight","documentElement"]},"operators":{"distinct":11,"total":34,"identifiers":["const","=","()",".","if","! (prefix)","return","[]","&&",">=","+ (prefix)"]}},"paramCount":0,"sloc":{"logical":11,"physical":11},"errors":[],"lineEnd":32,"lineStart":22,"name":"resetInputBlur","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":25,"halstead":{"bugs":0.062,"difficulty":6.875,"effort":1274.904,"length":39,"time":70.828,"vocabulary":27,"volume":185.441,"operands":{"distinct":16,"total":20,"identifiers":["reg","RegExp","name","(^|&)","=([^&]*)(&|$)","\"i\"","r","window","location","search","substr","1","match","null","decodeURIComponent","2"]},"operators":{"distinct":11,"total":19,"identifiers":["const","=","new","``","${}","()",".","if","!=","return","[]"]}},"paramCount":1,"sloc":{"logical":8,"physical":8},"errors":[],"lineEnd":41,"lineStart":34,"name":"getQueryString","paramNames":["name"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":6,"cyclomaticDensity":40,"halstead":{"bugs":0.146,"difficulty":11.5,"effort":5046.916,"length":87,"time":280.384,"vocabulary":33,"volume":438.862,"operands":{"distinct":22,"total":46,"identifiers":["xhr","XMLHttpRequest","timeout","3000","options","type","\"GET\"","open","url","async","true","send","null","\"POST\"","setRequestHeader","\"Content-Type\"","\"application/json\"","JSON","stringify","data","onreadystatechange","ontimeout"]},"operators":{"distinct":11,"total":41,"identifiers":["const","=","new",".","if","else","===","()","||","{}","function"]}},"paramCount":1,"sloc":{"logical":15,"physical":24},"errors":[],"lineEnd":66,"lineStart":43,"name":"simpleRequest","paramNames":["options"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":5,"cyclomaticDensity":83.333,"halstead":{"bugs":0.049,"difficulty":7.2,"effort":1050.821,"length":35,"time":58.379,"vocabulary":18,"volume":145.947,"operands":{"distinct":10,"total":18,"identifiers":["xhr","readyState","4","status","200","300","options","successed","responseText","failed"]},"operators":{"distinct":8,"total":17,"identifiers":["if","===",".","else","&&",">=","<","()"]}},"paramCount":0,"sloc":{"logical":6,"physical":9},"errors":[],"lineEnd":62,"lineStart":54,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":100,"halstead":{"bugs":0.008,"difficulty":2.5,"effort":58.162,"length":9,"time":3.231,"vocabulary":6,"volume":23.265,"operands":{"distinct":3,"total":5,"identifiers":["options","failed","xhr"]},"operators":{"distinct":3,"total":4,"identifiers":["&&",".","()"]}},"paramCount":0,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":65,"lineStart":63,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":3.125,"cyclomaticDensity":5.787,"halstead":{"bugs":0.083,"difficulty":2.625,"effort":5238.02,"length":37.625,"time":291.001,"vocabulary":12.375,"volume":249.43,"operands":{"distinct":9.75,"total":19.5},"operators":{"distinct":2.625,"total":18.125}},"paramCount":0.375,"sloc":{"logical":6.75,"physical":8.375}},"methodAverage":{"cyclomatic":3.429,"cyclomaticDensity":58.766,"halstead":{"bugs":0.064,"difficulty":6.356,"effort":1587.391,"length":41.429,"time":88.188,"vocabulary":21.286,"volume":192.575,"operands":{"distinct":13.286,"total":21.286},"operators":{"distinct":8,"total":20.143}},"paramCount":0.429,"sloc":{"logical":7.143,"physical":10.714}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/components/helloTS.ts","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.005,"difficulty":2,"effort":31.02,"length":6,"time":1.723,"vocabulary":6,"volume":15.51,"operands":{"distinct":2,"total":2,"identifiers":["defineComponent","\"hello ts\""]},"operators":{"distinct":4,"total":4,"identifiers":["()","{}","return","function=>"]}},"paramCount":0,"sloc":{"logical":5,"physical":8}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"vue","type":"esm"}],"errors":[],"lineEnd":8,"lineStart":1,"maintainability":85.836,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":1,"total":1,"identifiers":["\"hello ts\""]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":5,"lineStart":5,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.003,"difficulty":1,"effort":15.51,"length":3,"time":0.862,"vocabulary":3,"volume":7.755,"operands":{"distinct":1,"total":1},"operators":{"distinct":2,"total":2}},"paramCount":0,"sloc":{"logical":2.5,"physical":4}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":1,"time":0,"vocabulary":1,"volume":0,"operands":{"distinct":1,"total":1},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":1,"physical":1}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/components/helloTSX.tsx","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.006,"difficulty":2,"effort":36.189,"length":7,"time":2.011,"vocabulary":6,"volume":18.095,"operands":{"distinct":2,"total":2,"identifiers":["defineComponent","\"hello tsx\""]},"operators":{"distinct":4,"total":5,"identifiers":["()","{}","return","function=>"]}},"paramCount":0,"sloc":{"logical":5,"physical":9}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"vue","type":"esm"}],"errors":[],"lineEnd":9,"lineStart":1,"maintainability":85.528,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1,"identifiers":["\"hello tsx\""]},"operators":{"distinct":1,"total":1,"identifiers":["return"]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":7,"lineStart":5,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.003,"difficulty":1,"effort":18.095,"length":3.5,"time":1.005,"vocabulary":3,"volume":9.047,"operands":{"distinct":1,"total":1},"operators":{"distinct":2,"total":2.5}},"paramCount":0,"sloc":{"logical":2.5,"physical":4.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.001,"difficulty":0.5,"effort":1,"length":2,"time":0.056,"vocabulary":2,"volume":2,"operands":{"distinct":1,"total":1},"operators":{"distinct":1,"total":1}},"paramCount":0,"sloc":{"logical":1,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/components/helloWorld.vue","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":1}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":1,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":1}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/models/user.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":1}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":1,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":1}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/pages/index.vue","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":12.903,"halstead":{"bugs":0.139,"difficulty":8.522,"effort":3546.343,"length":84,"time":197.019,"vocabulary":31,"volume":416.152,"operands":{"distinct":23,"total":49,"identifiers":["components","HelloWorld","HelloTSX","helloTS","fes","ref","\"fes upgrade to vue3\"","rotate","90","clickIcon","console","log","\"click Icon\"","get","id","request","\"/get/api\"","method","\"get\"","post","1","2","3"]},"operators":{"distinct":8,"total":35,"identifiers":["{}",":","const","=","()","function=>",".","return"]}},"paramCount":2,"sloc":{"logical":31,"physical":119}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"vue","type":"esm"},{"line":3,"path":"@fesjs/fes","type":"esm"},{"line":4,"path":"@/components/helloWorld","type":"esm"},{"line":5,"path":"@/components/helloTSX","type":"esm"},{"line":6,"path":"@/components/helloTS","type":"esm"}],"errors":[],"lineEnd":119,"lineStart":1,"maintainability":67.026,"methods":[{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.004,"difficulty":1,"effort":11.61,"length":5,"time":0.645,"vocabulary":5,"volume":11.61,"operands":{"distinct":3,"total":3,"identifiers":["console","log","\"click Icon\""]},"operators":{"distinct":2,"total":2,"identifiers":["()","."]}},"paramCount":0,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":19,"lineStart":17,"name":"","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.01,"difficulty":1.8,"effort":54,"length":10,"time":3,"vocabulary":8,"volume":30,"operands":{"distinct":5,"total":6,"identifiers":["request","\"/get/api\"","id","method","\"get\""]},"operators":{"distinct":3,"total":4,"identifiers":["()","{}",":"]}},"paramCount":1,"sloc":{"logical":3,"physical":5},"errors":[],"lineEnd":49,"lineStart":45,"name":"","paramNames":["id"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.333,"effort":21.671,"length":7,"time":1.204,"vocabulary":5,"volume":16.253,"operands":{"distinct":3,"total":4,"identifiers":["request","\"/get/api\"","id"]},"operators":{"distinct":2,"total":3,"identifiers":["()","{}"]}},"paramCount":1,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":54,"lineStart":51,"name":"","paramNames":["id"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":3.226,"halstead":{"bugs":0.035,"difficulty":2.13,"effort":886.586,"length":21,"time":49.255,"vocabulary":7.75,"volume":104.038,"operands":{"distinct":5.75,"total":12.25},"operators":{"distinct":2,"total":8.75}},"paramCount":0.5,"sloc":{"logical":7.75,"physical":29.75}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":61.111,"halstead":{"bugs":0.006,"difficulty":1.378,"effort":29.094,"length":7.333,"time":1.616,"vocabulary":6,"volume":19.288,"operands":{"distinct":3.667,"total":4.333},"operators":{"distinct":2.333,"total":3}},"paramCount":0.667,"sloc":{"logical":2,"physical":4}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-template-h5/src/pages/onepiece.vue","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.023,"difficulty":4.5,"effort":308.396,"length":18,"time":17.133,"vocabulary":14,"volume":68.532,"operands":{"distinct":7,"total":9,"identifiers":["fes","ref","\"fes upgrade to vue3\"","publicPath","process","env","BASE_URL"]},"operators":{"distinct":7,"total":9,"identifiers":["{}","const","=","()","return",":","."]}},"paramCount":0,"sloc":{"logical":6,"physical":13}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"vue","type":"esm"}],"errors":[],"lineEnd":13,"lineStart":1,"maintainability":71.563,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.023,"difficulty":4.5,"effort":308.396,"length":18,"time":17.133,"vocabulary":14,"volume":68.532,"operands":{"distinct":7,"total":9},"operators":{"distinct":7,"total":9}},"paramCount":0,"sloc":{"logical":6,"physical":13}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-utils/src/Generator.js","report":{"aggregate":{"cyclomatic":9,"cyclomaticDensity":18.367,"halstead":{"bugs":0.402,"difficulty":16.784,"effort":20261.214,"length":199,"time":1125.623,"vocabulary":67,"volume":1207.152,"operands":{"distinct":51,"total":107,"identifiers":["Generator","cwd","args","constructor","run","writing","copyTpl","opts","tpl","readFileSync","templatePath","\"utf-8\"","content","Mustache","render","context","mkdirp","sync","dirname","target","console","log","chalk","green","\"Write:\"","relative"," ","writeFileSync","copyDirectory","files","glob","\"**/*\"","path","dot","true","ignore","\"**/node_modules/**\"","forEach","file","absFile","join","statSync","isDirectory","endsWith","\".tpl\"","replace","/\\.tpl$/","\"\"","\"Copy: \"","absTarget","copyFileSync"]},"operators":{"distinct":16,"total":92,"identifiers":["class","{}","=",".","this","async","()","const","``","${}",":","[]","function=>","if","return","else"]}},"paramCount":5,"sloc":{"logical":49,"physical":62}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[{"aggregate":{"cyclomatic":8,"cyclomaticDensity":16.667,"halstead":{"bugs":0.393,"difficulty":15.75,"effort":18591.049,"length":196,"time":1032.836,"vocabulary":65,"volume":1180.384,"operands":{"distinct":50,"total":105,"identifiers":["cwd","args","constructor","run","writing","copyTpl","opts","tpl","readFileSync","templatePath","\"utf-8\"","content","Mustache","render","context","mkdirp","sync","dirname","target","console","log","chalk","green","\"Write:\"","relative"," ","writeFileSync","copyDirectory","files","glob","\"**/*\"","path","dot","true","ignore","\"**/node_modules/**\"","forEach","file","absFile","join","statSync","isDirectory","endsWith","\".tpl\"","replace","/\\.tpl$/","\"\"","\"Copy: \"","absTarget","copyFileSync"]},"operators":{"distinct":15,"total":91,"identifiers":["{}","=",".","this","async","()","const","``","${}",":","[]","function=>","if","return","else"]}},"paramCount":5,"sloc":{"logical":48,"physical":49}},"errors":[],"lineEnd":59,"lineStart":11,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.008,"difficulty":3,"effort":69.658,"length":10,"time":3.87,"vocabulary":5,"volume":23.219,"operands":{"distinct":2,"total":4,"identifiers":["cwd","args"]},"operators":{"distinct":3,"total":6,"identifiers":["=",".","this"]}},"paramCount":2,"sloc":{"logical":2,"physical":4},"errors":[],"lineEnd":19,"lineStart":16,"name":"constructor","paramNames":["cwd","args"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1.5,"effort":12,"length":4,"time":0.667,"vocabulary":4,"volume":8,"operands":{"distinct":1,"total":1,"identifiers":["writing"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","this"]}},"paramCount":0,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":23,"lineStart":21,"name":"run","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":1},"errors":[],"lineEnd":26,"lineStart":26,"name":"writing","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":10,"halstead":{"bugs":0.092,"difficulty":4.932,"effort":1365.645,"length":57,"time":75.869,"vocabulary":29,"volume":276.905,"operands":{"distinct":22,"total":31,"identifiers":["tpl","readFileSync","opts","templatePath","\"utf-8\"","content","Mustache","render","context","mkdirp","sync","dirname","target","console","log","chalk","green","\"Write:\"","relative","cwd"," ","writeFileSync"]},"operators":{"distinct":7,"total":26,"identifiers":["const","=","()",".","``","${}","this"]}},"paramCount":1,"sloc":{"logical":10,"physical":7},"errors":[],"lineEnd":34,"lineStart":28,"name":"copyTpl","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.04,"difficulty":4.308,"effort":510.86,"length":27,"time":28.381,"vocabulary":21,"volume":118.593,"operands":{"distinct":13,"total":14,"identifiers":["files","glob","sync","\"**/*\"","cwd","opts","path","dot","true","ignore","\"**/node_modules/**\"","forEach","file"]},"operators":{"distinct":8,"total":13,"identifiers":["const","=","()",".","{}",":","[]","function=>"]}},"paramCount":1,"sloc":{"logical":7,"physical":23},"errors":[],"lineEnd":58,"lineStart":36,"name":"copyDirectory","paramNames":["opts"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":13.636,"halstead":{"bugs":0.148,"difficulty":9.778,"effort":4341.077,"length":84,"time":241.171,"vocabulary":39,"volume":443.974,"operands":{"distinct":27,"total":44,"identifiers":["absFile","join","opts","path","file","statSync","isDirectory","endsWith","\".tpl\"","copyTpl","templatePath","target","replace","/\\.tpl$/","\"\"","context","console","log","chalk","green","\"Copy: \""," ","absTarget","mkdirp","sync","dirname","copyFileSync"]},"operators":{"distinct":12,"total":40,"identifiers":["const","=","()",".","if","return","else","this","{}",":","``","${}"]}},"paramCount":1,"sloc":{"logical":22,"physical":16},"errors":[],"lineEnd":57,"lineStart":42,"name":"","paramNames":["file"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.143,"cyclomaticDensity":2.381,"halstead":{"bugs":0.056,"difficulty":2.25,"effort":2655.864,"length":28,"time":147.548,"vocabulary":9.286,"volume":168.626,"operands":{"distinct":7.143,"total":15},"operators":{"distinct":2.143,"total":13}},"paramCount":0.714,"sloc":{"logical":6.857,"physical":7}},"methodAverage":{"cyclomatic":1.333,"cyclomaticDensity":22.987,"halstead":{"bugs":0.048,"difficulty":3.92,"effort":1049.873,"length":30.333,"time":58.326,"vocabulary":16.333,"volume":145.115,"operands":{"distinct":10.833,"total":15.667},"operators":{"distinct":5.5,"total":14.667}},"paramCount":0.833,"sloc":{"logical":7.167,"physical":9}},"name":"Generator","maintainability":67.261}],"dependencies":[{"line":3,"path":"fs","type":"esm"},{"line":4,"path":"path","type":"esm"},{"line":6,"path":"chalk","type":"esm"},{"line":7,"path":"mkdirp","type":"esm"},{"line":8,"path":"glob","type":"esm"},{"line":9,"path":"mustache","type":"esm"}],"errors":[],"lineEnd":62,"lineStart":1,"maintainability":65.477,"methods":[],"aggregateAverage":{"cyclomatic":1.286,"cyclomaticDensity":2.624,"halstead":{"bugs":0.057,"difficulty":2.398,"effort":2894.459,"length":28.429,"time":160.803,"vocabulary":9.571,"volume":172.45,"operands":{"distinct":7.286,"total":15.286},"operators":{"distinct":2.286,"total":13.143}},"paramCount":0.714,"sloc":{"logical":7,"physical":8.857}},"methodAverage":{"cyclomatic":1.333,"cyclomaticDensity":22.987,"halstead":{"bugs":0.048,"difficulty":3.92,"effort":1049.873,"length":30.333,"time":58.326,"vocabulary":16.333,"volume":145.115,"operands":{"distinct":10.833,"total":15.667},"operators":{"distinct":5.5,"total":14.667}},"paramCount":0.833,"sloc":{"logical":7.167,"physical":9}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-utils/src/cleanRequireCache.js","report":{"aggregate":{"cyclomatic":8,"cyclomaticDensity":72.727,"halstead":{"bugs":0.136,"difficulty":16.595,"effort":6793.067,"length":78,"time":377.393,"vocabulary":38,"volume":409.338,"operands":{"distinct":21,"total":41,"identifiers":["isWindows","process","\"undefined\"","platform","\"win32\"","cacheKey","cachePath","replace","/\\//g","\"\\\"","require","cache","cacheParent","parent","i","children","length","0","id","splice","1"]},"operators":{"distinct":17,"total":37,"identifiers":["const","=","&&","!==","typeof (prefix)","===",".","function",":?","()","if","[]","let","||","while","-- (postfix)","delete (prefix)"]}},"paramCount":1,"sloc":{"logical":11,"physical":22}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":22,"lineStart":1,"maintainability":66.778,"methods":[{"cyclomatic":6,"cyclomaticDensity":66.667,"halstead":{"bugs":0.103,"difficulty":13,"effort":4018.743,"length":63,"time":223.264,"vocabulary":30,"volume":309.134,"operands":{"distinct":17,"total":34,"identifiers":["cachePath","isWindows","cacheKey","replace","/\\//g","\"\\\"","require","cache","cacheParent","parent","i","children","length","0","id","splice","1"]},"operators":{"distinct":13,"total":29,"identifiers":["const","=",":?","()",".","if","[]","let","||","while","-- (postfix)","===","delete (prefix)"]}},"paramCount":1,"sloc":{"logical":9,"physical":16},"errors":[],"lineEnd":21,"lineStart":6,"name":"","paramNames":["cacheKey"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":4,"cyclomaticDensity":36.364,"halstead":{"bugs":0.068,"difficulty":8.298,"effort":3396.534,"length":39,"time":188.696,"vocabulary":19,"volume":204.669,"operands":{"distinct":10.5,"total":20.5},"operators":{"distinct":8.5,"total":18.5}},"paramCount":0.5,"sloc":{"logical":5.5,"physical":11}},"methodAverage":{"cyclomatic":6,"cyclomaticDensity":66.667,"halstead":{"bugs":0.103,"difficulty":13,"effort":4018.743,"length":63,"time":223.264,"vocabulary":30,"volume":309.134,"operands":{"distinct":17,"total":34},"operators":{"distinct":13,"total":29}},"paramCount":1,"sloc":{"logical":9,"physical":16}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-utils/src/compatESModuleRequire.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":150,"halstead":{"bugs":0.012,"difficulty":3.5,"effort":126,"length":12,"time":7,"vocabulary":8,"volume":36,"operands":{"distinct":4,"total":7,"identifiers":["compatESModuleRequire","m","__esModule","default"]},"operators":{"distinct":4,"total":5,"identifiers":["function","return",":?","."]}},"paramCount":1,"sloc":{"logical":2,"physical":4}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":4,"lineStart":1,"maintainability":91.477,"methods":[{"cyclomatic":2,"cyclomaticDensity":200,"halstead":{"bugs":0.008,"difficulty":2.5,"effort":58.162,"length":9,"time":3.231,"vocabulary":6,"volume":23.265,"operands":{"distinct":3,"total":5,"identifiers":["m","__esModule","default"]},"operators":{"distinct":3,"total":4,"identifiers":["return",":?","."]}},"paramCount":1,"sloc":{"logical":1,"physical":3},"errors":[],"lineEnd":3,"lineStart":1,"name":"compatESModuleRequire","paramNames":["m"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":75,"halstead":{"bugs":0.006,"difficulty":1.75,"effort":63,"length":6,"time":3.5,"vocabulary":4,"volume":18,"operands":{"distinct":2,"total":3.5},"operators":{"distinct":2,"total":2.5}},"paramCount":0.5,"sloc":{"logical":1,"physical":2}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":200,"halstead":{"bugs":0.008,"difficulty":2.5,"effort":58.162,"length":9,"time":3.231,"vocabulary":6,"volume":23.265,"operands":{"distinct":3,"total":5},"operators":{"distinct":3,"total":4}},"paramCount":1,"sloc":{"logical":1,"physical":3}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-utils/src/delay.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":60,"halstead":{"bugs":0.009,"difficulty":2.25,"effort":63.165,"length":10,"time":3.509,"vocabulary":7,"volume":28.074,"operands":{"distinct":4,"total":6,"identifiers":["ms","Promise","resolve","setTimeout"]},"operators":{"distinct":3,"total":4,"identifiers":["function=>","new","()"]}},"paramCount":2,"sloc":{"logical":5,"physical":2}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":2,"lineStart":1,"maintainability":89.066,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":1,"effort":8,"length":4,"time":0.444,"vocabulary":4,"volume":8,"operands":{"distinct":2,"total":2,"identifiers":["Promise","resolve"]},"operators":{"distinct":2,"total":2,"identifiers":["new","function=>"]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":1,"lineStart":1,"name":"","paramNames":["ms"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":0.5,"effort":4,"length":4,"time":0.222,"vocabulary":4,"volume":8,"operands":{"distinct":3,"total":3,"identifiers":["setTimeout","resolve","ms"]},"operators":{"distinct":1,"total":1,"identifiers":["()"]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":1,"lineStart":1,"name":"","paramNames":["resolve"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.003,"difficulty":0.75,"effort":21.055,"length":3.333,"time":1.17,"vocabulary":2.333,"volume":9.358,"operands":{"distinct":1.333,"total":2},"operators":{"distinct":1,"total":1.333}},"paramCount":0.667,"sloc":{"logical":1.667,"physical":0.667}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.003,"difficulty":0.75,"effort":6,"length":4,"time":0.333,"vocabulary":4,"volume":8,"operands":{"distinct":2.5,"total":2.5},"operators":{"distinct":1.5,"total":1.5}},"paramCount":1,"sloc":{"logical":2,"physical":1}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-utils/src/index.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0,"identifiers":[]},"operators":{"distinct":0,"total":0,"identifiers":[]}},"paramCount":0,"sloc":{"logical":0,"physical":56}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"chalk","type":"esm"},{"line":2,"path":"yargs-parser","type":"esm"},{"line":3,"path":"lodash","type":"esm"},{"line":4,"path":"chokidar","type":"esm"},{"line":5,"path":"semver","type":"esm"},{"line":6,"path":"deepmerge","type":"esm"},{"line":7,"path":"glob","type":"esm"},{"line":8,"path":"debug","type":"esm"},{"line":9,"path":"@babel/parser","type":"esm"},{"line":10,"path":"@babel/traverse","type":"esm"},{"line":11,"path":"rimraf","type":"esm"},{"line":12,"path":"mkdirp","type":"esm"},{"line":13,"path":"pkg-up","type":"esm"},{"line":14,"path":"portfinder","type":"esm"},{"line":15,"path":"resolve","type":"esm"},{"line":16,"path":"mustache","type":"esm"},{"line":18,"path":"./Generator","type":"esm"},{"line":19,"path":"./winPath","type":"esm"},{"line":20,"path":"./delay","type":"esm"},{"line":21,"path":"./resolvePkg","type":"esm"},{"line":22,"path":"./compatESModuleRequire","type":"esm"},{"line":23,"path":"./cleanRequireCache","type":"esm"},{"line":24,"path":"./parseRequireDeps","type":"esm"},{"line":25,"path":"./mergeConfig","type":"esm"}],"errors":[],"lineEnd":56,"lineStart":1,"maintainability":100,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":56}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-utils/src/mergeConfig.js","report":{"aggregate":{"cyclomatic":6,"cyclomaticDensity":37.5,"halstead":{"bugs":0.094,"difficulty":20.364,"effort":5712.781,"length":59,"time":317.377,"vocabulary":27,"volume":280.538,"operands":{"distinct":11,"total":28,"identifiers":["mergeConfig","defaultConfig","configs","ret","forEach","config","Object","keys","key","val","\"function\""]},"operators":{"distinct":16,"total":31,"identifiers":["function","... (rest)","const","=","{}","... (spread)","()",".","function=>","if","! (prefix)","return","[]","else","===","typeof (prefix)"]}},"paramCount":4,"sloc":{"logical":16,"physical":17}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":17,"lineStart":1,"maintainability":72.101,"methods":[{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.017,"difficulty":4.8,"effort":248.67,"length":14,"time":13.815,"vocabulary":13,"volume":51.806,"operands":{"distinct":5,"total":6,"identifiers":["ret","defaultConfig","configs","forEach","config"]},"operators":{"distinct":8,"total":8,"identifiers":["const","=","{}","... (spread)","()",".","function=>","return"]}},"paramCount":2,"sloc":{"logical":4,"physical":15},"errors":[],"lineEnd":16,"lineStart":2,"name":"mergeConfig","paramNames":["defaultConfig","configs"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":40,"halstead":{"bugs":0.016,"difficulty":3.6,"effort":174.355,"length":14,"time":9.686,"vocabulary":11,"volume":48.432,"operands":{"distinct":5,"total":6,"identifiers":["config","Object","keys","forEach","key"]},"operators":{"distinct":6,"total":8,"identifiers":["if","! (prefix)","return","()",".","function=>"]}},"paramCount":1,"sloc":{"logical":5,"physical":11},"errors":[],"lineEnd":14,"lineStart":4,"name":"","paramNames":["config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.032,"difficulty":10.4,"effort":1000.599,"length":26,"time":55.589,"vocabulary":13,"volume":96.211,"operands":{"distinct":5,"total":13,"identifiers":["val","config","key","\"function\"","ret"]},"operators":{"distinct":8,"total":13,"identifiers":["const","=","[]","if","else","===","typeof (prefix)","()"]}},"paramCount":1,"sloc":{"logical":6,"physical":8},"errors":[],"lineEnd":13,"lineStart":6,"name":"","paramNames":["key"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":9.375,"halstead":{"bugs":0.023,"difficulty":5.091,"effort":1428.195,"length":14.75,"time":79.344,"vocabulary":6.75,"volume":70.135,"operands":{"distinct":2.75,"total":7},"operators":{"distinct":4,"total":7.75}},"paramCount":1,"sloc":{"logical":4,"physical":4.25}},"methodAverage":{"cyclomatic":1.667,"cyclomaticDensity":32.778,"halstead":{"bugs":0.022,"difficulty":6.267,"effort":474.541,"length":18,"time":26.363,"vocabulary":12.333,"volume":65.483,"operands":{"distinct":5,"total":8.333},"operators":{"distinct":7.333,"total":9.667}},"paramCount":1.333,"sloc":{"logical":5,"physical":11.333}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-utils/src/parseRequireDeps.js","report":{"aggregate":{"cyclomatic":8,"cyclomaticDensity":24.242,"halstead":{"bugs":0.209,"difficulty":13.359,"effort":8385.259,"length":113,"time":465.848,"vocabulary":47,"volume":627.669,"operands":{"distinct":32,"total":57,"identifiers":["parse","filePath","content","readFileSync","\"utf-8\"","crequire","map","o","path","filter","charAt","0","\".\"","winPath","resolve","sync","basedir","dirname","extensions","\".tsx\"","\".ts\"","\".jsx\"","\".js\"","parseRequireDeps","paths","ret","length","extraPaths","lodash","pullAll","shift","push"]},"operators":{"distinct":15,"total":56,"identifiers":["function","const","=","()","return",".","function=>","===","{}",":","[]",",","while","if","... (spread)"]}},"paramCount":5,"sloc":{"logical":33,"physical":38}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":3,"path":"crequire","type":"esm"},{"line":4,"path":"lodash","type":"esm"},{"line":5,"path":"resolve","type":"esm"},{"line":6,"path":"fs","type":"esm"},{"line":7,"path":"path","type":"esm"},{"line":8,"path":"./winPath","type":"esm"}],"errors":[],"lineEnd":38,"lineStart":1,"maintainability":69.197,"methods":[{"cyclomatic":1,"cyclomaticDensity":10,"halstead":{"bugs":0.034,"difficulty":4,"effort":406.317,"length":26,"time":22.573,"vocabulary":15,"volume":101.579,"operands":{"distinct":9,"total":12,"identifiers":["content","readFileSync","filePath","\"utf-8\"","crequire","map","o","filter","path"]},"operators":{"distinct":6,"total":14,"identifiers":["const","=","()","return",".","function=>"]}},"paramCount":1,"sloc":{"logical":10,"physical":12},"errors":[],"lineEnd":21,"lineStart":10,"name":"parse","paramNames":["filePath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":100,"halstead":{"bugs":0.002,"difficulty":0.5,"effort":2.377,"length":3,"time":0.132,"vocabulary":3,"volume":4.755,"operands":{"distinct":2,"total":2,"identifiers":["o","path"]},"operators":{"distinct":1,"total":1,"identifiers":["."]}},"paramCount":1,"sloc":{"logical":1,"physical":1},"errors":[],"lineEnd":13,"lineStart":13,"name":"","paramNames":["o"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":29.477,"length":7,"time":1.638,"vocabulary":7,"volume":19.651,"operands":{"distinct":4,"total":4,"identifiers":["path","charAt","0","\".\""]},"operators":{"distinct":3,"total":3,"identifiers":["===","()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":1},"errors":[],"lineEnd":14,"lineStart":14,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.032,"difficulty":3,"effort":287.725,"length":23,"time":15.985,"vocabulary":18,"volume":95.908,"operands":{"distinct":12,"total":12,"identifiers":["winPath","resolve","sync","path","basedir","dirname","filePath","extensions","\".tsx\"","\".ts\"","\".jsx\"","\".js\""]},"operators":{"distinct":6,"total":11,"identifiers":["()",".","{}",":","[]",","]}},"paramCount":1,"sloc":{"logical":6,"physical":6},"errors":[],"lineEnd":20,"lineStart":15,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":25,"halstead":{"bugs":0.069,"difficulty":9.409,"effort":1951.94,"length":48,"time":108.441,"vocabulary":20,"volume":207.453,"operands":{"distinct":11,"total":23,"identifiers":["paths","filePath","ret","winPath","length","extraPaths","lodash","pullAll","parse","shift","push"]},"operators":{"distinct":9,"total":25,"identifiers":["const","=","[]","()","while",".","if","... (spread)","return"]}},"paramCount":1,"sloc":{"logical":12,"physical":15},"errors":[],"lineEnd":37,"lineStart":23,"name":"parseRequireDeps","paramNames":["filePath"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.333,"cyclomaticDensity":4.04,"halstead":{"bugs":0.035,"difficulty":2.227,"effort":1397.543,"length":18.833,"time":77.641,"vocabulary":7.833,"volume":104.611,"operands":{"distinct":5.333,"total":9.5},"operators":{"distinct":2.5,"total":9.333}},"paramCount":0.833,"sloc":{"logical":5.5,"physical":6.333}},"methodAverage":{"cyclomatic":1.4,"cyclomaticDensity":40.333,"halstead":{"bugs":0.029,"difficulty":3.682,"effort":535.567,"length":21.4,"time":29.754,"vocabulary":12.6,"volume":85.869,"operands":{"distinct":7.6,"total":10.6},"operators":{"distinct":5,"total":10.8}},"paramCount":1,"sloc":{"logical":6.2,"physical":7}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-utils/src/resolvePkg.js","report":{"aggregate":{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.023,"difficulty":4.5,"effort":308.396,"length":18,"time":17.133,"vocabulary":14,"volume":68.532,"operands":{"distinct":7,"total":9,"identifiers":["resolvePkg","pkgName","winPath","dirname","require","resolve","/package.json"]},"operators":{"distinct":7,"total":9,"identifiers":["const","=","function=>","()",".","``","${}"]}},"paramCount":1,"sloc":{"logical":6,"physical":7}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":1,"path":"path","type":"esm"},{"line":2,"path":"./winPath","type":"esm"}],"errors":[],"lineEnd":7,"lineStart":1,"maintainability":79.516,"methods":[{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.013,"difficulty":2,"effort":79.726,"length":12,"time":4.429,"vocabulary":10,"volume":39.863,"operands":{"distinct":6,"total":6,"identifiers":["winPath","dirname","require","resolve","pkgName","/package.json"]},"operators":{"distinct":4,"total":6,"identifiers":["()",".","``","${}"]}},"paramCount":1,"sloc":{"logical":4,"physical":1},"errors":[],"lineEnd":4,"lineStart":4,"name":"","paramNames":["pkgName"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.011,"difficulty":2.25,"effort":154.198,"length":9,"time":8.567,"vocabulary":7,"volume":34.266,"operands":{"distinct":3.5,"total":4.5},"operators":{"distinct":3.5,"total":4.5}},"paramCount":0.5,"sloc":{"logical":3,"physical":3.5}},"methodAverage":{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.013,"difficulty":2,"effort":79.726,"length":12,"time":4.429,"vocabulary":10,"volume":39.863,"operands":{"distinct":6,"total":6},"operators":{"distinct":4,"total":6}},"paramCount":1,"sloc":{"logical":4,"physical":1}}}},{"filePath":"/Users/qlin/code/fes.js/packages/fes-utils/src/winPath.js","report":{"aggregate":{"cyclomatic":3,"cyclomaticDensity":42.857,"halstead":{"bugs":0.027,"difficulty":5.5,"effort":439.749,"length":21,"time":24.431,"vocabulary":14,"volume":79.954,"operands":{"distinct":7,"total":11,"identifiers":["path","isExtendedLengthPath","/^\\\\\\\\\\?\\\\/","test","replace","/\\\\/g","\"/\""]},"operators":{"distinct":7,"total":10,"identifiers":["function","const","=","()",".","if","return"]}},"paramCount":1,"sloc":{"logical":7,"physical":9}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":9,"lineStart":1,"maintainability":77.108,"methods":[{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.023,"difficulty":4.286,"effort":301.322,"length":19,"time":16.74,"vocabulary":13,"volume":70.308,"operands":{"distinct":7,"total":10,"identifiers":["isExtendedLengthPath","/^\\\\\\\\\\?\\\\/","test","path","replace","/\\\\/g","\"/\""]},"operators":{"distinct":6,"total":9,"identifiers":["const","=","()",".","if","return"]}},"paramCount":1,"sloc":{"logical":6,"physical":8},"errors":[],"lineEnd":8,"lineStart":1,"name":"","paramNames":["path"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.5,"cyclomaticDensity":21.429,"halstead":{"bugs":0.013,"difficulty":2.75,"effort":219.875,"length":10.5,"time":12.215,"vocabulary":7,"volume":39.977,"operands":{"distinct":3.5,"total":5.5},"operators":{"distinct":3.5,"total":5}},"paramCount":0.5,"sloc":{"logical":3.5,"physical":4.5}},"methodAverage":{"cyclomatic":2,"cyclomaticDensity":33.333,"halstead":{"bugs":0.023,"difficulty":4.286,"effort":301.322,"length":19,"time":16.74,"vocabulary":13,"volume":70.308,"operands":{"distinct":7,"total":10},"operators":{"distinct":6,"total":9}},"paramCount":1,"sloc":{"logical":6,"physical":8}}}},{"filePath":"/Users/qlin/code/fes.js/scripts/build.js","report":{"aggregate":{"cyclomatic":40,"cyclomaticDensity":20.305,"halstead":{"bugs":1.848,"difficulty":28.773,"effort":159530.5,"length":767,"time":8862.806,"vocabulary":150,"volume":5544.504,"operands":{"distinct":132,"total":422,"identifiers":["fs","require","\"fs\"","fse","\"fs-extra\"","path","\"path\"","merge","\"deepmerge\"","chokidar","\"chokidar\"","chalk","\"chalk\"","argv","\"yargs-parser\"","process","slice","2","compiler","\"./compiler\"","randomColor","\"./randomColor\"","ESM_OUTPUT_DIR","\"es\"","NODE_CJS_OUTPUT_DIR","\"lib\"","SOURCE_DIR","\"src\"","CONFIG_FILE_NAME","\"build.config.js\"","GLOBAL_CONFIG_PATH","join","cwd","DEFAULT_CONFIG","target","\"node\"","pkgs","copy","PACKAGE_PATH","\"./packages\"","genLog","pkgName","msg","console","log",": ","getPkgPath","genShortPath","filePath","codePath","split","/","1","getPkgSourcePath","getOutputPath","config","\"browser\"","getGlobalConfig","existsSync","userConfig","getPkgConfig","pkgConfigPath","getNeedCompilerPkg","pkg","Array","isArray","length","readdirSync","cleanBeforeCompilerResult","esmOutputDir","cjsOutputDir","gray","Clean "," directory","removeSync","transformFile","outputPath","/\\.[jt]sx?$/","test","extname","code","readFileSync","\"utf-8\"","shortFilePath","transformedCode","type","yellow","blue","Transform to "," for ","outputFileSync","copySync","compilerPkg","codeDir","outputDir","files","forEach","file","outputFilePath","fileStats","lstatSync","includes","isDirectory","/__tests__/","ensureDirSync","isFile","watchFile","dir","watch","ignoreInitial","true","on","\"all\"","event","changeFile","baseName","basename","shortChangeFile","replace","stat","[","] ","compilerPkgs","globalConfig","sourceCodeDir","white","Build "," with babel","magenta","Start watch "," directory...","main"]},"operators":{"distinct":18,"total":345,"identifiers":["const","=","()",".","{}",":","[]","function","return","function=>","``","${}","if","===",":?","! (prefix)","else","&&"]}},"paramCount":30,"sloc":{"logical":197,"physical":179}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":4,"path":"fs","type":"cjs"},{"line":5,"path":"fs-extra","type":"cjs"},{"line":6,"path":"path","type":"cjs"},{"line":7,"path":"deepmerge","type":"cjs"},{"line":8,"path":"chokidar","type":"cjs"},{"line":9,"path":"chalk","type":"cjs"},{"line":10,"path":"yargs-parser","type":"cjs"},{"line":12,"path":"./compiler","type":"cjs"},{"line":13,"path":"./randomColor","type":"cjs"},{"line":58,"path":"* dynamic dependency *","type":"cjs"},{"line":67,"path":"* dynamic dependency *","type":"cjs"}],"errors":[],"lineEnd":179,"lineStart":1,"maintainability":59.337,"methods":[{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.002,"difficulty":1,"effort":4.755,"length":3,"time":0.264,"vocabulary":3,"volume":4.755,"operands":{"distinct":1,"total":1,"identifiers":["msg"]},"operators":{"distinct":2,"total":2,"identifiers":["return","function=>"]}},"paramCount":1,"sloc":{"logical":2,"physical":5},"errors":[],"lineEnd":33,"lineStart":29,"name":"genLog","paramNames":["pkgName"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.013,"difficulty":2,"effort":79.726,"length":12,"time":4.429,"vocabulary":10,"volume":39.863,"operands":{"distinct":6,"total":6,"identifiers":["console","log","randomColor","pkgName","msg",": "]},"operators":{"distinct":4,"total":6,"identifiers":["()",".","``","${}"]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":32,"lineStart":30,"name":"","paramNames":["msg"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.007,"difficulty":1.5,"effort":29.477,"length":7,"time":1.638,"vocabulary":7,"volume":19.651,"operands":{"distinct":4,"total":4,"identifiers":["path","join","PACKAGE_PATH","pkgName"]},"operators":{"distinct":3,"total":3,"identifiers":["return","()","."]}},"paramCount":1,"sloc":{"logical":2,"physical":3},"errors":[],"lineEnd":37,"lineStart":35,"name":"getPkgPath","paramNames":["pkgName"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.027,"difficulty":6.667,"effort":533.03,"length":21,"time":29.613,"vocabulary":14,"volume":79.954,"operands":{"distinct":6,"total":10,"identifiers":["codePath","filePath","split","SOURCE_DIR","/","1"]},"operators":{"distinct":8,"total":11,"identifiers":["const","=","[]","()",".","``","${}","return"]}},"paramCount":1,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":42,"lineStart":39,"name":"genShortPath","paramNames":["filePath"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.009,"difficulty":1.5,"effort":40.5,"length":9,"time":2.25,"vocabulary":8,"volume":27,"operands":{"distinct":5,"total":5,"identifiers":["path","join","getPkgPath","pkgName","SOURCE_DIR"]},"operators":{"distinct":3,"total":4,"identifiers":["return","()","."]}},"paramCount":1,"sloc":{"logical":3,"physical":3},"errors":[],"lineEnd":46,"lineStart":44,"name":"getPkgSourcePath","paramNames":["pkgName"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.03,"difficulty":3.611,"effort":329.971,"length":24,"time":18.332,"vocabulary":14,"volume":91.377,"operands":{"distinct":9,"total":13,"identifiers":["config","target","\"browser\"","path","join","getPkgPath","pkgName","ESM_OUTPUT_DIR","NODE_CJS_OUTPUT_DIR"]},"operators":{"distinct":5,"total":11,"identifiers":["if","===",".","return","()"]}},"paramCount":2,"sloc":{"logical":7,"physical":7},"errors":[],"lineEnd":54,"lineStart":48,"name":"getOutputPath","paramNames":["config","pkgName"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":28.571,"halstead":{"bugs":0.023,"difficulty":4.286,"effort":301.322,"length":19,"time":16.74,"vocabulary":13,"volume":70.308,"operands":{"distinct":7,"total":10,"identifiers":["fs","existsSync","GLOBAL_CONFIG_PATH","userConfig","require","merge","DEFAULT_CONFIG"]},"operators":{"distinct":6,"total":9,"identifiers":["if","()",".","const","=","return"]}},"paramCount":0,"sloc":{"logical":7,"physical":7},"errors":[],"lineEnd":62,"lineStart":56,"name":"getGlobalConfig","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":2,"cyclomaticDensity":22.222,"halstead":{"bugs":0.035,"difficulty":3.818,"effort":405.774,"length":26,"time":22.543,"vocabulary":17,"volume":106.274,"operands":{"distinct":11,"total":14,"identifiers":["pkgConfigPath","path","join","getPkgPath","pkgName","CONFIG_FILE_NAME","fs","existsSync","merge","config","require"]},"operators":{"distinct":6,"total":12,"identifiers":["const","=","()",".","if","return"]}},"paramCount":2,"sloc":{"logical":9,"physical":8},"errors":[],"lineEnd":71,"lineStart":64,"name":"getPkgConfig","paramNames":["config","pkgName"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":50,"halstead":{"bugs":0.054,"difficulty":8,"effort":1301.017,"length":39,"time":72.279,"vocabulary":18,"volume":162.627,"operands":{"distinct":10,"total":20,"identifiers":["argv","pkg","Array","isArray","config","pkgs","length","fs","readdirSync","PACKAGE_PATH"]},"operators":{"distinct":8,"total":19,"identifiers":["if",".","return",":?","()","! (prefix)","const","="]}},"paramCount":1,"sloc":{"logical":8,"physical":13},"errors":[],"lineEnd":85,"lineStart":73,"name":"getNeedCompilerPkg","paramNames":["config"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":3,"cyclomaticDensity":18.75,"halstead":{"bugs":0.101,"difficulty":7.412,"effort":2242.856,"length":66,"time":124.603,"vocabulary":24,"volume":302.608,"operands":{"distinct":17,"total":36,"identifiers":["esmOutputDir","path","join","getPkgPath","pkgName","ESM_OUTPUT_DIR","cjsOutputDir","NODE_CJS_OUTPUT_DIR","fs","existsSync","log","chalk","gray","Clean "," directory","fse","removeSync"]},"operators":{"distinct":7,"total":30,"identifiers":["const","=","()",".","if","``","${}"]}},"paramCount":2,"sloc":{"logical":16,"physical":12},"errors":[],"lineEnd":98,"lineStart":87,"name":"cleanBeforeCompilerResult","paramNames":["pkgName","log"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":25,"halstead":{"bugs":0.141,"difficulty":7.586,"effort":3207.692,"length":80,"time":178.205,"vocabulary":39,"volume":422.832,"operands":{"distinct":29,"total":44,"identifiers":["/\\.[jt]sx?$/","test","path","extname","filePath","code","fs","readFileSync","\"utf-8\"","shortFilePath","genShortPath","transformedCode","compiler","config","type","target","\"browser\"","ESM_OUTPUT_DIR","NODE_CJS_OUTPUT_DIR","log","chalk","yellow","blue","Transform to "," for ","fse","outputFileSync","outputPath","copySync"]},"operators":{"distinct":10,"total":36,"identifiers":["if","else","()",".","const","=",":?","===","``","${}"]}},"paramCount":4,"sloc":{"logical":16,"physical":13},"errors":[],"lineEnd":112,"lineStart":100,"name":"transformFile","paramNames":["filePath","outputPath","config","log"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.016,"difficulty":2.917,"effort":141.26,"length":14,"time":7.848,"vocabulary":11,"volume":48.432,"operands":{"distinct":6,"total":7,"identifiers":["files","fs","readdirSync","codeDir","forEach","file"]},"operators":{"distinct":5,"total":7,"identifiers":["const","=","()",".","function=>"]}},"paramCount":4,"sloc":{"logical":4,"physical":16},"errors":[],"lineEnd":129,"lineStart":114,"name":"compilerPkg","paramNames":["codeDir","outputDir","config","log"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":5,"cyclomaticDensity":26.316,"halstead":{"bugs":0.129,"difficulty":7.652,"effort":2957.009,"length":78,"time":164.278,"vocabulary":31,"volume":386.427,"operands":{"distinct":23,"total":44,"identifiers":["filePath","path","join","codeDir","file","outputFilePath","outputDir","fileStats","fs","lstatSync","config","copy","includes","fse","copySync","isDirectory","/__tests__/","test","ensureDirSync","compilerPkg","log","isFile","transformFile"]},"operators":{"distinct":8,"total":34,"identifiers":["const","=","()",".","if","else","&&","! (prefix)"]}},"paramCount":1,"sloc":{"logical":19,"physical":13},"errors":[],"lineEnd":128,"lineStart":116,"name":"","paramNames":["file"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":25,"halstead":{"bugs":0.02,"difficulty":2.5,"effort":152.294,"length":16,"time":8.461,"vocabulary":14,"volume":60.918,"operands":{"distinct":9,"total":9,"identifiers":["chokidar","watch","dir","ignoreInitial","true","on","\"all\"","event","changeFile"]},"operators":{"distinct":5,"total":7,"identifiers":["()",".","{}",":","function=>"]}},"paramCount":4,"sloc":{"logical":4,"physical":19},"errors":[],"lineEnd":149,"lineStart":131,"name":"watchFile","paramNames":["dir","outputDir","config","log"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":20,"halstead":{"bugs":0.131,"difficulty":6.462,"effort":2531.208,"length":77,"time":140.623,"vocabulary":34,"volume":391.735,"operands":{"distinct":26,"total":42,"identifiers":["baseName","path","basename","changeFile","shortChangeFile","genShortPath","outputPath","replace","dir","outputDir","stat","fs","lstatSync","log","event","[","] ","config","copy","includes","fse","copySync","isFile","transformFile","isDirectory","compilerPkg"]},"operators":{"distinct":8,"total":35,"identifiers":["const","=","()",".","``","${}","if","else"]}},"paramCount":2,"sloc":{"logical":20,"physical":15},"errors":[],"lineEnd":148,"lineStart":134,"name":"","paramNames":["event","changeFile"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":50,"halstead":{"bugs":0.005,"difficulty":1.5,"effort":23.265,"length":6,"time":1.292,"vocabulary":6,"volume":15.51,"operands":{"distinct":3,"total":3,"identifiers":["pkgs","forEach","pkgName"]},"operators":{"distinct":3,"total":3,"identifiers":["()",".","function=>"]}},"paramCount":2,"sloc":{"logical":2,"physical":19},"errors":[],"lineEnd":169,"lineStart":151,"name":"compilerPkgs","paramNames":["pkgs","globalConfig"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":21.053,"halstead":{"bugs":0.15,"difficulty":7.5,"effort":3369.444,"length":85,"time":187.191,"vocabulary":39,"volume":449.259,"operands":{"distinct":30,"total":50,"identifiers":["sourceCodeDir","getPkgSourcePath","pkgName","fs","existsSync","log","genLog","config","getPkgConfig","globalConfig","outputDir","getOutputPath","cleanBeforeCompilerResult","type","target","\"browser\"","ESM_OUTPUT_DIR","NODE_CJS_OUTPUT_DIR","chalk","white","Build "," with babel","compilerPkg","argv","watch","magenta","SOURCE_DIR","Start watch "," directory...","watchFile"]},"operators":{"distinct":9,"total":35,"identifiers":["const","=","()","if",".",":?","===","``","${}"]}},"paramCount":1,"sloc":{"logical":19,"physical":17},"errors":[],"lineEnd":168,"lineStart":152,"name":"","paramNames":["pkgName"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.015,"difficulty":2.4,"effort":108,"length":15,"time":6,"vocabulary":8,"volume":45,"operands":{"distinct":5,"total":8,"identifiers":["globalConfig","getGlobalConfig","pkgs","getNeedCompilerPkg","compilerPkgs"]},"operators":{"distinct":3,"total":7,"identifiers":["const","=","()"]}},"paramCount":0,"sloc":{"logical":5,"physical":6},"errors":[],"lineEnd":176,"lineStart":171,"name":"main","paramNames":[],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2.105,"cyclomaticDensity":1.069,"halstead":{"bugs":0.097,"difficulty":1.514,"effort":8396.342,"length":40.368,"time":466.463,"vocabulary":7.895,"volume":291.816,"operands":{"distinct":6.947,"total":22.211},"operators":{"distinct":0.947,"total":18.158}},"paramCount":1.579,"sloc":{"logical":10.368,"physical":9.421}},"methodAverage":{"cyclomatic":2.167,"cyclomaticDensity":32.064,"halstead":{"bugs":0.05,"difficulty":4.351,"effort":986.589,"length":33.167,"time":54.81,"vocabulary":17.222,"volume":151.363,"operands":{"distinct":11.5,"total":18.111},"operators":{"distinct":5.722,"total":15.056}},"paramCount":1.667,"sloc":{"logical":8.222,"physical":10.167}}}},{"filePath":"/Users/qlin/code/fes.js/scripts/compiler.js","report":{"aggregate":{"cyclomatic":8,"cyclomaticDensity":26.667,"halstead":{"bugs":0.221,"difficulty":17.419,"effort":11540.946,"length":118,"time":641.164,"vocabulary":49,"volume":662.536,"operands":{"distinct":31,"total":60,"identifiers":["babel","require","\"@babel/core\"","transform","code","options","result","transformSync","transformNodeCode","presets","\"@babel/preset-env\"","modules","\"cjs\"","targets","node","\"12\"","transformBrowserCode","false","useBuiltIns","chrome","\"51\"","compiler","config","target","\"node\"","\"browser\"","Error","config target error: ",", only can use 'node' and 'browser'","module","exports"]},"operators":{"distinct":18,"total":58,"identifiers":["const","=","()","function",".","return","{}",":","[]",",","if","||","! (prefix)","===","throw","new","``","${}"]}},"paramCount":6,"sloc":{"logical":30,"physical":49}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":4,"path":"@babel/core","type":"cjs"}],"errors":[],"lineEnd":49,"lineStart":1,"maintainability":67.262,"methods":[{"cyclomatic":1,"cyclomaticDensity":33.333,"halstead":{"bugs":0.014,"difficulty":3.5,"effort":151.148,"length":13,"time":8.397,"vocabulary":10,"volume":43.185,"operands":{"distinct":5,"total":7,"identifiers":["result","babel","transformSync","code","options"]},"operators":{"distinct":5,"total":6,"identifiers":["const","=","()",".","return"]}},"paramCount":2,"sloc":{"logical":3,"physical":4},"errors":[],"lineEnd":10,"lineStart":7,"name":"transform","paramNames":["code","options"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":16.667,"halstead":{"bugs":0.027,"difficulty":3,"effort":246.134,"length":21,"time":13.674,"vocabulary":15,"volume":82.045,"operands":{"distinct":9,"total":9,"identifiers":["transform","code","presets","\"@babel/preset-env\"","modules","\"cjs\"","targets","node","\"12\""]},"operators":{"distinct":6,"total":12,"identifiers":["return","()","{}",":","[]",","]}},"paramCount":1,"sloc":{"logical":6,"physical":10},"errors":[],"lineEnd":21,"lineStart":12,"name":"transformNodeCode","paramNames":["code"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":1,"cyclomaticDensity":14.286,"halstead":{"bugs":0.032,"difficulty":3.3,"effort":316.8,"length":24,"time":17.6,"vocabulary":16,"volume":96,"operands":{"distinct":10,"total":11,"identifiers":["transform","code","presets","\"@babel/preset-env\"","modules","false","useBuiltIns","targets","chrome","\"51\""]},"operators":{"distinct":6,"total":13,"identifiers":["return","()","{}",":","[]",","]}},"paramCount":1,"sloc":{"logical":7,"physical":13},"errors":[],"lineEnd":35,"lineStart":23,"name":"transformBrowserCode","paramNames":["code"],"maxNestedMethodDepth":0,"nestedMethods":[]},{"cyclomatic":4,"cyclomaticDensity":57.143,"halstead":{"bugs":0.051,"difficulty":9.35,"effort":1437.386,"length":35,"time":79.855,"vocabulary":21,"volume":153.731,"operands":{"distinct":10,"total":17,"identifiers":["config","target","\"node\"","transformNodeCode","code","\"browser\"","transformBrowserCode","Error","config target error: ",", only can use 'node' and 'browser'"]},"operators":{"distinct":11,"total":18,"identifiers":["if","||","! (prefix)",".","===","return","()","throw","new","``","${}"]}},"paramCount":2,"sloc":{"logical":7,"physical":9},"errors":[],"lineEnd":45,"lineStart":37,"name":"compiler","paramNames":["code","config"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":1.6,"cyclomaticDensity":5.333,"halstead":{"bugs":0.044,"difficulty":3.484,"effort":2308.189,"length":23.6,"time":128.233,"vocabulary":9.8,"volume":132.507,"operands":{"distinct":6.2,"total":12},"operators":{"distinct":3.6,"total":11.6}},"paramCount":1.2,"sloc":{"logical":6,"physical":9.8}},"methodAverage":{"cyclomatic":1.75,"cyclomaticDensity":30.357,"halstead":{"bugs":0.031,"difficulty":4.788,"effort":537.867,"length":23.25,"time":29.881,"vocabulary":15.5,"volume":93.74,"operands":{"distinct":8.5,"total":11},"operators":{"distinct":7,"total":12.25}},"paramCount":1.5,"sloc":{"logical":5.75,"physical":9}}}},{"filePath":"/Users/qlin/code/fes.js/scripts/randomColor.js","report":{"aggregate":{"cyclomatic":4,"cyclomaticDensity":23.529,"halstead":{"bugs":0.171,"difficulty":13.143,"effort":6744.738,"length":94,"time":374.708,"vocabulary":44,"volume":513.187,"operands":{"distinct":28,"total":46,"identifiers":["chalk","require","\"chalk\"","colors","\"red\"","\"green\"","\"yellow\"","\"blue\"","\"magenta\"","\"cyan\"","\"gray\"","\"redBright\"","\"greenBright\"","\"yellowBright\"","\"blueBright\"","\"magentaBright\"","\"cyanBright\"","index","0","cache","module","exports","pkg","color","str","bold","length","1"]},"operators":{"distinct":16,"total":48,"identifiers":["const","=","()","[]",",","let","{}",".","function","if","! (prefix)","else","===","-","+=","return"]}},"paramCount":1,"sloc":{"logical":17,"physical":36}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[{"line":2,"path":"chalk","type":"cjs"}],"errors":[],"lineEnd":36,"lineStart":1,"maintainability":63.074,"methods":[{"cyclomatic":3,"cyclomaticDensity":30,"halstead":{"bugs":0.068,"difficulty":12.545,"effort":2553.756,"length":45,"time":141.875,"vocabulary":23,"volume":203.56,"operands":{"distinct":11,"total":23,"identifiers":["cache","pkg","color","colors","index","str","chalk","bold","length","1","0"]},"operators":{"distinct":12,"total":22,"identifiers":["if","! (prefix)","[]","const","=","()",".","else","===","-","+=","return"]}},"paramCount":1,"sloc":{"logical":10,"physical":13},"errors":[],"lineEnd":35,"lineStart":23,"name":"","paramNames":["pkg"],"maxNestedMethodDepth":0,"nestedMethods":[]}],"aggregateAverage":{"cyclomatic":2,"cyclomaticDensity":11.765,"halstead":{"bugs":0.086,"difficulty":6.571,"effort":3372.369,"length":47,"time":187.354,"vocabulary":22,"volume":256.593,"operands":{"distinct":14,"total":23},"operators":{"distinct":8,"total":24}},"paramCount":0.5,"sloc":{"logical":8.5,"physical":18}},"methodAverage":{"cyclomatic":3,"cyclomaticDensity":30,"halstead":{"bugs":0.068,"difficulty":12.545,"effort":2553.756,"length":45,"time":141.875,"vocabulary":23,"volume":203.56,"operands":{"distinct":11,"total":23},"operators":{"distinct":12,"total":22}},"paramCount":1,"sloc":{"logical":10,"physical":13}}}},{"filePath":"/Users/qlin/code/fes.js/vetur.config.js","report":{"aggregate":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.022,"difficulty":2.813,"effort":187.335,"length":18,"time":10.407,"vocabulary":13,"volume":66.608,"operands":{"distinct":8,"total":9,"identifiers":["module","exports","settings","\"vetur.useWorkspaceDependencies\"","true","\"vetur.experimental.templateInterpolationService\"","projects","\"./packages/fes-template\""]},"operators":{"distinct":5,"total":9,"identifiers":["=",".","{}",":","[]"]}},"paramCount":0,"sloc":{"logical":5,"physical":17}},"settings":{"commonjs":true,"esmImportExport":{"halstead":false,"lloc":false},"forin":false,"logicalor":true,"switchcase":true,"templateExpression":{"halstead":true,"lloc":true},"trycatch":false,"newmi":true},"classes":[],"dependencies":[],"errors":[],"lineEnd":17,"lineStart":1,"maintainability":74.287,"methods":[],"aggregateAverage":{"cyclomatic":1,"cyclomaticDensity":20,"halstead":{"bugs":0.022,"difficulty":2.813,"effort":187.335,"length":18,"time":10.407,"vocabulary":13,"volume":66.608,"operands":{"distinct":8,"total":9},"operators":{"distinct":5,"total":9}},"paramCount":0,"sloc":{"logical":5,"physical":17}},"methodAverage":{"cyclomatic":0,"cyclomaticDensity":0,"halstead":{"bugs":0,"difficulty":0,"effort":0,"length":0,"time":0,"vocabulary":0,"volume":0,"operands":{"distinct":0,"total":0},"operators":{"distinct":0,"total":0}},"paramCount":0,"sloc":{"logical":0,"physical":0}}}}]}