nikgoodley-ibboost / jslint4java

Automatically exported from code.google.com/p/jslint4java
Other
0 stars 0 forks source link

--browser flag is not working properly #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
* I'm using version 1.4.7
* The --browser should enable the globals available in the browser, according 
jslint documentation (http://www.jslint.com/lint.html#browser)
* --browser is used with --undef

What is the expected output? What do you see instead?
$ java -jar jslint4java-1.4.7.jar --browser --undef ~/tmp/test.js 
jslint:/home/iperdomo/tmp/test.js:4:3:'window' is not defined.

What version of the product are you using? On what operating system?
* jslint4java: version 1.4.7
* OS: Ubuntu 11.10
* JRE: OpenJDK (java version "1.6.0_23")

Please provide any additional information below.
Attached you'll find the dummy test.js

Original issue reported on code.google.com by ivan.per...@openbravo.com on 17 Oct 2011 at 11:54

Attachments:

GoogleCodeExporter commented 9 years ago
I can't reproduce with the latest version.

% java -jar jslint4java-2.0.1.jar --version
using jslint version 2011-10-17
% java -jar jslint4java-2.0.1.jar --browser --sloppy --indent 2 test.js        
%

(I added --sloppy --indent=2 and removed --undef as the defaults have changed 
since 1.4.7)

Please try the latest version and see it it works for you.

Original comment by d...@happygiraffe.net on 19 Oct 2011 at 7:18