]> git.parisson.com Git - pdf.js.git/commitdiff
Linting
authorArtur Adib <arturadib@gmail.com>
Tue, 25 Oct 2011 17:43:28 +0000 (10:43 -0700)
committerArtur Adib <arturadib@gmail.com>
Tue, 25 Oct 2011 17:43:28 +0000 (10:43 -0700)
Makefile
src/pdf.js
src/worker.js

index dda2a5e17a2d5a5281a9cd66b6afc5d8f3b27180..5ee707a0a097454b11c07daa6dffdac4879382da 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -113,11 +113,11 @@ browser-test:
 # To install gjslint, see:
 #
 # <http://code.google.com/closure/utilities/docs/linter_howto.html>
-SRC_DIRS := . utils web test examples/helloworld extensions/firefox \
+SRC_DIRS := . src utils web test examples/helloworld extensions/firefox \
             extensions/firefox/components
 GJSLINT_FILES = $(foreach DIR,$(SRC_DIRS),$(wildcard $(DIR)/*.js))
 lint:
-       gjslint $(GJSLINT_FILES)
+       gjslint --nojsdoc $(GJSLINT_FILES)
 
 # make web
 #
index cdbe64f9461de3903f0f31fa795b24ed4c0459ce..121564af46e0bc488fb2f03a1785dba56399c7c4 100644 (file)
@@ -3,7 +3,7 @@
 
 var PDF = {};
 
-(function(globalScope){
+(function(globalScope) {
   // Use strict in our context only - users might not want it
   'use strict';
 
@@ -11,7 +11,7 @@ var PDF = {};
   var useWorker = false;
   var console;
 
-  // Files are inserted below - see Makefile  
+  // Files are inserted below - see Makefile
   /* INSERT_POINT */
 
   // Worker-specific
@@ -20,7 +20,7 @@ var PDF = {};
   } else {
     var consoleTimer = {};
     console = workerConsole;
-  
+
     // Listen for messages from the main thread.
     var handler = new MessageHandler('worker_processor', globalScope);
     WorkerProcessorHandler.setup(handler);
index d8c8d59ab353db0f899e2ae8ea32c5f596d2db80..0242cc9293776344d6d33ce27b2bb57c63672969 100644 (file)
@@ -169,4 +169,4 @@ var workerConsole = {
     }
     this.log('Timer:', name, Date.now() - time);
   }
-};    
+};