From d25dac69d2392e5e87fa87396b11bf5bc33b0b24 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Fri, 10 Mar 2017 20:04:14 +0000 Subject: [PATCH] ask istanbul for more reports as default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and create a simple “grunt coverage” task synonym. --- .jshintrc | 3 +++ Gruntfile.js | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.jshintrc b/.jshintrc index db63befe3..f03a6dc8f 100644 --- a/.jshintrc +++ b/.jshintrc @@ -2,6 +2,9 @@ "asi": true, // allow missing semicolons "curly": true, // require braces "eqnull": true, // ignore ==null + //"eqeqeq": true, // enforce === + "freeze": true, // don't allow override + "indent": 4, // default indent of 4 "forin": true, // require property filtering in "for in" loops "immed": true, // require immediate functions to be wrapped in ( ) "nonbsp": true, // warn on unexpected whitespace breaking chars diff --git a/Gruntfile.js b/Gruntfile.js index 13584dc9a..1b265190e 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -47,7 +47,8 @@ module.exports = function(grunt) { timeout: 3000, ignoreLeaks: false, ui: 'bdd', - reporter: 'spec' + reportFormats: ['lcov'], + print: 'both' }, coverage: { src: ['test/**/*_spec.js'] } }, @@ -427,7 +428,7 @@ module.exports = function(grunt) { " **/\n"; if (files) { - for (var i=0;i