jscpd 查重时能够跳过标记为忽略的块和新行以及空符号和注释(不支持尖括号注释
minLines: 10000,
minTokens: 10000,
"maxTokens": 10000000,
"maxSize": 10000000,
ignoreCase: true,
silent: true,
threshold: 10,
"formatsExts": "markup:vue",
reporters: [
"console",
"json",
"html",
],
languages: [
"js",
"html",
"css",
"markup",
"scss"
],
mode: "strict",
blame: true,
absolute: true,
gitignore: true,
failOnError: true,
output: "./report",
verbose: true,
}
jscpd ./ -f "javascript,css,vue,markup" -t 5 -r "console,html" -i"node_modules" -m weak -l 5 -o "./report"