Open arl opened 9 years ago
this is really problematic, because analyze' task is a subtask of build, the only workaround if there are too many jshint/jscs errors and one doesn't want or doesn't have the time to fix them is to bypass the analyze from the build process
panty@Computerino:[~/Documents/dev/spaghetto]: gulp analyze
[20:04:21] Using gulpfile ~/Documents/dev/spaghetto/gulpfile.js
[20:04:21] Starting 'analyze'...
[20:04:21] Analyzing source with JSHint, JSCS, and Plato
[20:04:21] Running JSHint
[20:04:21] Running JSCS
[20:04:21] Running Plato
[20:04:26] { total: { jshint: 52, sloc: 2637, maintainability: 3840.543689520619 },
average: { sloc: 52, maintainability: '76.81', jshint: '1.04' } }
stream.js:94
throw er; // Unhandled stream error in pipe.
^
Error: ; and *
* @ngdoc function
* @name app.myFunc
* @description
* This is a sample function
* @param {number} x - any number, don't matter which
should have at most 2 line(s) between them at app.module.js :
1 |(function() {
2 | 'use strict';
-------------------------^
3 |
4 |
task is never finished, on the contrary if jshint/jscs errors are fixed, we get :
panty@Computerino:[~/Documents/dev/spaghetto]: gulp analyze
[20:04:49] Using gulpfile ~/Documents/dev/spaghetto/gulpfile.js
[20:04:49] Starting 'analyze'...
[20:04:49] Analyzing source with JSHint, JSCS, and Plato
[20:04:49] Running JSHint
[20:04:50] Running JSCS
[20:04:50] Running Plato
[20:04:55] { total: { jshint: 52, sloc: 2636, maintainability: 3840.543689520619 },
average: { sloc: 52, maintainability: '76.81', jshint: '1.04' } }
[20:04:56] Finished 'analyze' after 7.25 s
strange error because that wasn't before