Issue #2008 - Fix lint errors for external/builder/

This commit is contained in:
Jon Buckley 2013-01-31 18:47:41 -05:00
parent c4eab852e0
commit 10cdb48f36
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
/* jshint node:true */
/* globals cp, ls, test */
'use strict';
require('../shelljs/make'); require('../shelljs/make');
var fs = require('fs'), var fs = require('fs'),
path = require('path'), path = require('path'),
@ -30,7 +35,7 @@ function preprocess(inFilename, outFilename, defines) {
var writeLine = typeof outFilename === 'function' ? outFilename : var writeLine = typeof outFilename === 'function' ? outFilename :
function(line) { function(line) {
out += line + '\n'; out += line + '\n';
} };
function include(file) { function include(file) {
var realPath = fs.realpathSync(inFilename); var realPath = fs.realpathSync(inFilename);
var dir = path.dirname(realPath); var dir = path.dirname(realPath);

View File

@ -983,7 +983,7 @@ target.jshint = function() {
echo('### Linting JS files (this can take a while!)'); echo('### Linting JS files (this can take a while!)');
var LINT_FILES = ['make.js', var LINT_FILES = ['make.js',
//'external/builder/*.js', 'external/builder/',
//'external/crlfchecker/*.js', //'external/crlfchecker/*.js',
'src/', 'src/',
//'web/*.js', //'web/*.js',