Commits

Alejandro Blanco committed 358a016

Fix pyJSLint integration

Use a robust way to check if there were any error in the file

Comments (0)

Files changed (1)

 
 
 def jslint_check(data, filename):
-    analizing = pyjslint.check_JSLint(data)
-    if len(analizing) != 1:
+    output = pyjslint.check_JSLint(data)
+    if len(output) > 0:
         print >> sys.stderr, "%s: problem decoding source" % (filename, )
-        print >> sys.stderr, '\n'.join(analizing[1:])
+        print >> sys.stderr, '\n'.join(output)
         return 1
     return 0