博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Nodejs项目重复文件扫描
阅读量:7017 次
发布时间:2019-06-28

本文共 1205 字,大约阅读时间需要 4 分钟。

项目地址:

 

1.安装jsinspect

npm install -g jsinspect

 

2.进入至项目目录

dcd report/wes/demoproject

 

3.执行扫描

jsinspect --t 50 --ignore "test" ./src

用法

Usage: jsinspect [options] 
Detect copy-pasted and structurally similar JavaScript codeExample use: jsinspect -I -L -t 20 --ignore "test" ./path/to/srcOptions: -h, --help output usage information -V, --version output the version number -t, --threshold
number of nodes (default: 30) -m, --min-instances
min instances for a match (default: 2) -c, --config [config] path to config file (default: .jsinspectrc) -r, --reporter [default|json|pmd] specify the reporter to use -I, --no-identifiers do not match identifiers -L, --no-literals do not match literals -C, --no-color disable colors --ignore
ignore paths matching a regex --truncate
length to truncate lines (default: 100, off: 0) --debug print debug information

 

转载于:https://www.cnblogs.com/weschen/p/9521810.html

你可能感兴趣的文章
java.io几种读写文件的方式
查看>>
Spring中常用的注解(@Entity,@Table,@Column,@Repository,@Service)
查看>>
SharePoint 2013 配置传入电子邮件(一)
查看>>
Linux命令篇之chsh命令和chfn命令
查看>>
Useful websites
查看>>
转贴:下辈子,无论爱与不爱,都不会再见
查看>>
内核mailbox
查看>>
echarts - 树图实现四个层级
查看>>
【Kotlin】spring boot项目中,在Idea下启动,报错@Configuration class 'BugsnagClient' may not be final....
查看>>
Leetcode | Merge k Sorted Lists
查看>>
深入理解JavaScript(1)
查看>>
foreach遍历----for(object o: list)
查看>>
iOS被开发者遗忘在角落的NSException-其实它很强大
查看>>
java.lang.IllegalArgumentException: Can not set int field *** to null value
查看>>
NSString类的相关用法
查看>>
Python编写简单计算器(正则表达式应用)
查看>>
KMP - HDU 1711 Number Sequence
查看>>
Storm 第四章 Storm常见问题
查看>>
「每日一码」(精品代码,质量保证)阶乘
查看>>
python日常使用
查看>>