在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):yannickcr/gulp-jscpd开源软件地址(OpenSource Url):https://github.com/yannickcr/gulp-jscpd开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-jscpd
Installation
Usagevar gulp = require('gulp');
var jscpd = require('gulp-jscpd');
gulp.task('jscpd', function() {
return gulp.src('**/*.js')
.pipe(jscpd({
'min-lines': 10,
verbose : true
}));
}); Optionsmin-linesType: Min size of duplication in code lines, default to min-tokensType: Min size of duplication in code tokens, default to reporterType: Reporter name or path to the custom reporter, default to languagesType: List of languages which scan for duplicates, default to outputType: Path to report XML file, default to verboseType: Show full info about copies, default to debugType: Show debug information (options list and selected files), default to silentType: Don't print a report summary, default to failOnErrorType: Don't throw an error in case of duplicated occurrences (useful for CI), default to TestsRun tests using mocha
Code CoverageOutput a code coverage report in coverage.html
Code StyleCheck the code style with JSCS
Licensegulp-jscpd is licensed under the MIT License. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论