Issue #2008 - Fix lint errors for external/builder/
This commit is contained in:
parent
c4eab852e0
commit
10cdb48f36
7
external/builder/builder.js
vendored
7
external/builder/builder.js
vendored
@ -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);
|
||||||
|
2
make.js
2
make.js
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user