提交 33a76585 编写于 作者: R recena

[JENKINS-34438] The build will fail if there are JSHint errors

上级 f523a0ee
......@@ -54,5 +54,6 @@ builder.bundle('src/main/js/add-item.js')
gulp.task('lint', function() {
return gulp.src('./src/main/js/**/*.js')
.pipe(jshint())
.pipe(jshint.reporter('default'));
.pipe(jshint.reporter('default'))
.pipe(jshint.reporter('fail'));
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册