From 10cdb48f3681c24407ffc24ca82656dc56f1fe73 Mon Sep 17 00:00:00 2001 From: Jon Buckley Date: Thu, 31 Jan 2013 18:47:41 -0500 Subject: [PATCH] Issue #2008 - Fix lint errors for external/builder/ --- external/builder/builder.js | 7 ++++++- make.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/external/builder/builder.js b/external/builder/builder.js index d4e47fc63..4dc9f2655 100644 --- a/external/builder/builder.js +++ b/external/builder/builder.js @@ -1,3 +1,8 @@ +/* jshint node:true */ +/* globals cp, ls, test */ + +'use strict'; + require('../shelljs/make'); var fs = require('fs'), path = require('path'), @@ -30,7 +35,7 @@ function preprocess(inFilename, outFilename, defines) { var writeLine = typeof outFilename === 'function' ? outFilename : function(line) { out += line + '\n'; - } + }; function include(file) { var realPath = fs.realpathSync(inFilename); var dir = path.dirname(realPath); diff --git a/make.js b/make.js index f39291d17..2158fbf2c 100644 --- a/make.js +++ b/make.js @@ -983,7 +983,7 @@ target.jshint = function() { echo('### Linting JS files (this can take a while!)'); var LINT_FILES = ['make.js', - //'external/builder/*.js', + 'external/builder/', //'external/crlfchecker/*.js', 'src/', //'web/*.js',