Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6164123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:56:25+00:00 2026-05-23T21:56:25+00:00

I have downloaded and set up jslint4java. When I use the following command: java

  • 0

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. I want it to. But I did not find any appropriate option in the command line docu.

Any advice on what setting I am missing there?

Note: This is about variables not method parameters. I found the --unparam option, but it is about parameters, and it is for dis-abling rather than for en-abling the check. I do not use this option, so the check is supposed to work.

The jslint for Visual Studio plug-in does complain about the unused variables.

Simple code example:

$(document).ready(function() {
    var a = 0,
        b = 1;

    alert(b);
});

In this example, the jslint for Visual Studio plug-in correctly complains about variable a not being used, whilst jslint4java doesn’t.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T21:56:26+00:00Added an answer on May 23, 2026 at 9:56 pm

    Do you have a code sample where it complains? If the result is different to jslint.com with the same options selected, it’s a bug in jslint4java (though please bear in mind that jslint4java may be running a slightly older version of JSLint).


    I’ve figured out what’s up. It’s not necessarily a bug in jslint4java. You do see the “unused variable” warning if you specify --report report on the command line. JSLint produces an optional HTML report on your code in addition to any warnings. That must be what the VS plugin is using. I’ve got no idea why they’re not surfaced as regular JSLint warnings.

    You’re not the only one to notice this: http://tech.groups.yahoo.com/group/jslint_com/message/2526

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have downloaded Eclipse Java EE version (3.5) and I would like to use
The jar command is not working on my box. I have downloaded the jdk,
I have downloaded the silver light from this http://www.microsoft.com/silverlight// I need to use this
Does anybody use the Class Designer much in Visual Studio? I have downloaded the
i have downloaded boost_1_42_0,zip but i'm not sure how to set it up. does
I have downloaded an open source project that I would like to use to
I have downloaded a web project from CodePlex and am getting the following error
I have downloaded an image at runtime. Now I want to set it as
I have downloaded the java JDK but I am unable to run the program.
I have downloaded eclipse 3.4 (java version) for MacOSX (carbon). I have tried to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.