Questions tagged [jslint4java]

jslint4java is a Java wrapper around Douglas Crockford's JSLint tool.

14 questions
15
votes
1 answer

How to tell JSLint not to ask for { on single line if statements

Right now I have the following code: if (c > last) break; And jslint complains with jslint:crud.js:69:19:Expected '{' and instead saw 'break'. There are several ways to overcome it: if (c > last) { break; } or if (c > last) { break; } But…
opensas
  • 60,462
  • 79
  • 252
  • 386
6
votes
3 answers

Excluding files from jslint4java in eclipse

I'm using jslint4java in eclipse. Unfortunately I have a few huge dictionary files that never change but every time when the workspace is built, linting those files takes ages. Is it possible to exclude specific files from jslint4java and how can…
csupnig
  • 3,327
  • 1
  • 24
  • 22
4
votes
1 answer

JSLint4Java usage

JSLint4Java is a Java wrapper for JSLint. I need something like this for use in my GWT project, but the only way to use JSLint4Java seems to be from command line or with an ANT task. Does anyone know if there is any way to just import the JARs and…
Steven Morad
  • 2,511
  • 3
  • 19
  • 25
1
vote
0 answers

How to ignore build.gradle using lint?

I have added the lint plugin in my JAVA Project. But, it is showing up some warnings in build.gradle file when I am doing clean build.It is not showing any warning or error in the JAVA code. I want to ignore the code in build.gradle and want to…
tanmayghosh2507
  • 773
  • 3
  • 12
  • 31
1
vote
2 answers

JSLinter for Maven 2

I am looking for an automated way to validate my JS code during Maven build process. One of the projects I found is JSlint4Java. What I discovered the hard way, it works only with Maven 3, unfortunately.
Vasily
  • 461
  • 1
  • 6
  • 16
1
vote
1 answer

JsLint4Java 'is not defined' warnings when using multiple .js files

When working with more than one .js file e.g. if I have a separate .js file that contains unit tests I start to see lots of warnings (I'm using the Eclipse plug-in) like the following where a .js file is referencing elements from another: '
Bradley Braithwaite
  • 1,122
  • 2
  • 19
  • 22
0
votes
0 answers

Excluding a folder from JSLint search (Eclipse Plugin)

While using JSLint Eclipse Plugin can we exclude a specific folder in a project that JSLint should exclude while searching for error etc??
Farooq Arshed
  • 1,984
  • 2
  • 17
  • 26
0
votes
2 answers

JavaScript Slint - report XML for Hudson

I am using JavaScript Lint for checking JavaScript source code. It's working fine with recursive analysis showing results in command window, but I would like to integrate JavaScript Lint results to Hudson (running JavaScript Lint from batch…
0
votes
2 answers

jslint4java tolerates unused variables

I have downloaded and set up jslint4java. When I use the following command: java -jar C:\...\jslint4java-2.0.0.jar --encoding UTF-8 --indent 4 --browser *.js Although there are some unused variables in the file, jsLint does not complain about them.…
chiccodoro
  • 14,407
  • 19
  • 87
  • 130
0
votes
0 answers

How to generate JSLint report in html file format?

Am using JSLint to check the javascript code quality and used the following command to generate the report in html file. C:\Windows\System32>jslint "D:\Work\Settings.js" > "D:\Work\output.html" Output format for the above command as below.…
0
votes
1 answer

jslint4java external jslint options are ignored

I'm using phing-drupal-template and have problem with jslinting. When using an external jslint with the --jslint option neither --browser option nor inline options are recognized like /*jslint browser: true */ Any help would be much…
zsd
  • 440
  • 5
  • 17
0
votes
1 answer

Configure ANT to run Lint4J

I have a github repo, running Java and JUnit, and I want to run lint4j as well. My project is built on travis-ci . But, lint is failing: BUILD FAILED /home/travis/build/jvoller/SPDDB/build.xml:39: Problem: failed to create task or type lint4j Cause:…
SDK4
  • 59
  • 1
  • 9
0
votes
1 answer

Where can i find jslint config file in Aptana Studio

I am trying to replace jslint config file. I want to add my own pre-defined config file instead of jslint config file. Could anyone explain, where can i find jslint config file in Aptana Studio 3 directory structure?
monical
  • 868
  • 9
  • 15
0
votes
1 answer

jslint - jslint4java - how to skip checking Required Blocks condition in javascript

I must use a condition like this in my Javascript code if (condition) statement; but it returns an error (" Expected '{' and instead saw ' '. ") while validating using jslint4java. Is there is any way to skip this checking?
Akhil
  • 1
  • 1