From f47c60ace63f28c2f716d1310ddf3a22df2f7ec6 Mon Sep 17 00:00:00 2001 From: Spencer Alger Date: Tue, 30 Sep 2014 14:46:02 -0700 Subject: [PATCH 1/2] make jshint selector more specific to speed it up --- tasks/config/jshint.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/tasks/config/jshint.js b/tasks/config/jshint.js index d5bef6347d59f..15500fc6699ef 100644 --- a/tasks/config/jshint.js +++ b/tasks/config/jshint.js @@ -5,21 +5,15 @@ module.exports = function (grunt) { files: { src: [ 'Gruntfile.js', - '<%= src %>/*.js', - '<%= src %>/kibana/**/*.js', - '<%= unitTestDir %>/**/*.js', - '<%= root %>/tasks/**/*.js' + '<%= root %>/tasks/**/*.js', + '<%= src %>/kibana/index.js', + '<%= src %>/kibana/{apps,components,controllers,directives,factories,filters,services,utils}/**/*.js', + '<%= unitTestDir %>/**/*.js' ] } }, options: { - jshintrc: true, - ignores: [ - 'node_modules/*', - 'dist/*', - 'sample/*', - '<%= src %>/kibana/bower_components/**/*' - ] + jshintrc: true } }; }; From 12f9da9869dd449ae210448d19a8cc547280d0bb Mon Sep 17 00:00:00 2001 From: Spencer Alger Date: Wed, 1 Oct 2014 10:47:40 -0700 Subject: [PATCH 2/2] [jshint] grab all top level js files --- tasks/config/jshint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/config/jshint.js b/tasks/config/jshint.js index 15500fc6699ef..80506b8015556 100644 --- a/tasks/config/jshint.js +++ b/tasks/config/jshint.js @@ -6,7 +6,7 @@ module.exports = function (grunt) { src: [ 'Gruntfile.js', '<%= root %>/tasks/**/*.js', - '<%= src %>/kibana/index.js', + '<%= src %>/kibana/*.js', '<%= src %>/kibana/{apps,components,controllers,directives,factories,filters,services,utils}/**/*.js', '<%= unitTestDir %>/**/*.js' ]