From c4eab852e04694b7676f0e6cd6faaa892310c1e1 Mon Sep 17 00:00:00 2001 From: Jon Buckley Date: Thu, 31 Jan 2013 18:43:13 -0500 Subject: [PATCH] Issue #2008 - Fix lint errors for make.js --- make.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/make.js b/make.js index bcba694bf..f39291d17 100644 --- a/make.js +++ b/make.js @@ -1,5 +1,7 @@ /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ +/* jshint node:true */ +/* globals cat, cd, cp, echo, env, exec, exit, find, ls, mkdir, mv, process, rm, sed, target, test */ 'use strict'; @@ -39,7 +41,7 @@ var DEFINES = { target.all = function() { // Don't do anything by default echo('Please specify a target. Available targets:'); - for (t in target) + for (var t in target) if (t !== 'all') echo(' ' + t); }; @@ -611,8 +613,9 @@ target.chrome = function() { exit(1); } + var manifest; try { - var manifest = JSON.parse(cat(browserManifest)); + manifest = JSON.parse(cat(browserManifest)); } catch (e) { echo('Malformed browser manifest file'); echo(e.message); @@ -979,7 +982,7 @@ target.jshint = function() { echo(); echo('### Linting JS files (this can take a while!)'); - var LINT_FILES = [//'make.js', + var LINT_FILES = ['make.js', //'external/builder/*.js', //'external/crlfchecker/*.js', 'src/',