From 19c294112e021042d402a145f2cd1de7c0e41dcc Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Tue, 22 Nov 2016 14:34:02 -0500 Subject: [PATCH] Fix globbing for eslint Grunt's `**` matches symlinks but doesn't follow them, so `**/*.js` matches files that `!extensions/**` doesn't see to exclude. Bug: T151381 Change-Id: I5d8ae6e24f2fa09efc97db871b0c08d4fbc68efd --- Gruntfile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index b38bc9adfc..3fee6bad51 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -22,14 +22,15 @@ module.exports = function ( grunt ) { '**/*.js', '!docs/**', '!tests/**', - '!extensions/**', '!node_modules/**', '!resources/lib/**', '!resources/src/jquery.tipsy/**', '!resources/src/jquery/jquery.farbtastic.js', '!resources/src/mediawiki.libs/**', - '!skins/**', '!vendor/**', + // Explicitly say "**/*.js" here in case of symlinks + '!extensions/**/*.js', + '!skins/**/*.js', // Skip functions aren't even parseable '!resources/src/dom-level2-skip.js', '!resources/src/es5-skip.js', -- 2.20.1