【文件属性】:
文件名称:grunt-phpcpd:Grunt插件,用于运行PHP CopyPaste Detector(PHPCPD)
文件大小:5KB
文件格式:ZIP
更新时间:2021-04-30 19:49:29
CoffeeScript
grunt-phpcpd
用于运行Grunt插件。
该插件是为Grunt 0.4.0开发的,未经测试与Grunt 0.3.x向后兼容。
入门
使用follwing命令安装此grunt插件:
npm install grunt-phpcpd --save-dev
将此添加到您项目的Gruntfile.js :
grunt . loadNpmTasks ( 'grunt-phpcpd' ) ;
PHPCPD任务
使用grunt phpcpd命令运行此任务。
该任务是一项因此应根据文档指定任何目标,文件和选项。
使用范例
phpcpd: {
application: {
dir : 'application'
}
options: {
quiet : true
}
}
目标属性
目录
类型: String
phpmd应该在其中搜索文件的文件或目录。
选项
箱子
【文件预览】:
grunt-phpcpd-master
----.npmignore(53B)
----tasks()
--------lib()
--------phpcpd.coffee(271B)
----.travis.yml(338B)
----test()
--------Hello.php(573B)
----Gruntfile.coffee(245B)
----README.md(2KB)
----.gitignore(62B)
----package.json(619B)
----composer.json(128B)