1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Issue #2008 - Add jshint

This commit is contained in:
Jon Buckley 2013-01-31 18:29:37 -05:00
parent 1a1c5abca6
commit 19dbeaa23e
4 changed files with 71 additions and 0 deletions

23
make.js
View file

@ -971,6 +971,29 @@ target.lint = function() {
crlfchecker.checkIfCrlfIsPresent(LINT_FILES);
};
//
// make jshint
//
target.jshint = function() {
cd(ROOT_DIR);
echo();
echo('### Linting JS files (this can take a while!)');
var LINT_FILES = [//'make.js',
//'external/builder/*.js',
//'external/crlfchecker/*.js',
'src/',
//'web/*.js',
//'test/*.js',
//'test/unit/*.js',
//'extensions/firefox/*.js',
//'extensions/firefox/components/*.js',
//'extensions/chrome/*.js'
];
exec('jshint --reporter test/reporter.js ' + LINT_FILES.join(' '));
};
//
// make clean
//