JSLint - plugin detail

The JavaScript Code Quality Tool

NetBeans Plugin - JSLint
Plugin owner: lomatek
Website: https://github.com/lomatek/netbeans-jslint
Added: 2011-11-29
License: The MIT license
Category: Web Applications
Downloaded: 18,095 times
Rating:
 4.63, by 8 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.40 MB   Last Update: 2013-10-30

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Add support Netbeans 7.4 Update jslint.js 2013-09-22

Verifications for NetBeans versions

7.4 verification PASSED See verification details
Download plugin   Download size: 0.41 MB   Last Update: 2013-05-22

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Add suppot NetBeans 7.3

Verifications for NetBeans versions

7.3 verification PASSED See verification details
Download plugin   Download size: 0.41 MB   Last Update: 2011-12-26

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

1.0.4:
*Correct work.
+Added predefined globals functionality. Thx Taylor Brown

Verifications for NetBeans versions

7.1 verification PASSED See verification details
Download plugin   Download size: 0.41 MB   Last Update: 2011-12-26

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

1.0.4:
*Correct work.
+Added predefined globals functionality. Thx Taylor Brown

Verifications for NetBeans versions

7.0 verification PASSED See verification details


Introduction

1322587647_JSLInt.png

About JSLint

JSLint is a JavaScript program that looks for problems in JavaScript programs. It is a code quality tool.

For more information:
JSLint
Read the instructions of JSLint.
Code Conventions for the JavaScript Programming Language by Douglas Crockford.

Warning: JSLint will hurt your feelings.

How it works:

Method 1: Manual run JSLint:

JSLint call the context menu. Scans and highlights errors.
Warning: Errors will not be added to the list of tasks.

Method 2: Automatically run JSLint:

a. Open the Task List (Windows -> Tasks, or Ctrl + 6)
b. Adds a task filter JSLint (Window Tasks; Filter (icon) -> Edit; selected JSLint; Ok)
c. Now when you save the file Javascript will run JSLint.
Warning: Automatically scans only Javascript files in your project.

[ You have to be logged in to be able to comment. ]

User Comments

  

8.x

It seems to work fine in NetBeans 8.0 (installed manually)
Posted by FreackZoid on Jun 26, 2014
  

8.X support - another request

If you can...
Posted by markmills on Jun 13, 2014
  

Support 8.X

Can you add support for Netbeans 8.0 (and above)
Posted by duburlan on May 30, 2014
  

Forward progress!!

Downloaded 7.4 pre-release and using! SO exciting! I would love for this to be merged with JSHint as well.
Posted by isuftin on Oct 31, 2013
  

JSLint

Update jslint.js 2013-09-22
Posted by lomatek on Oct 30, 2013
  

NetBeans 7.4

Add suppot NetBeans 7.4
Posted by lomatek on Oct 30, 2013
  

When will this be available for NetBeans 7.4

I am eagerly awaiting the 7.4 release version of this plugin. This was my every day workflow tool in 7.3!
Posted by isuftin on Oct 30, 2013
  

Great Plugin

This is "must-to-install" plugin.

I don't write a line of JS without it.

Well done.
Posted by gualtiero65 on Oct 18, 2013
  

JSHint

please add support for JS hint!
Posted by vgrigory on Aug 22, 2013
  

Exclude individual files?

@lomatek
> The next version will add ability to disable the JSLint for individual files.
> Posted by lomatek on Jun 19, 2012

Did you add this feature? I couldn't find it.

Thank you for this plugin!
Posted by hgmartini on Jul 02, 2013
  

NetBeans 7.3

Add support for NetBeans 7.3
Posted by lomatek on May 22, 2013
  

Upgrade of the JSLint Plugin for NetBeans version 7.2?

I appreciate the JsLint plugin for NetBeans very much. But at the moment there is no version compatible for version 7.2 of NetBeans as far as I know. Is there a chance that this plugin will be upgraded to work with version 7.2 of NetBeans in due time?
Posted by HelmarH on Sep 29, 2012
  

@danielmd

At the moment, you can:
In the setting of JSLint can choose all the options, errors will not be displayed.

The new version of the plugin will be able to quickly switch settings JSLint.

The update will be on Sunday.
Posted by lomatek on Jun 19, 2012
  

@lomatek

So disable the plugin is the only option?

My code is reviewed by others in the office so having a bunch of errors and having to explain that it's JSLint and not JS errors is not easy. That would be a very welcomed addition for me to be able to use this in the office.

Are you expecting to release a new update soonish?
Posted by danielmd on Jun 19, 2012
  

@danielmd

Funny, I did not think about it. The next version will add ability to disable the JSLint for individual files.
Posted by lomatek on Jun 19, 2012
  

How do I turn it off?

How do I turn this off?

Posted by danielmd on Jun 19, 2012
  

Please add support for JSHint

I have a large amount of code to de-lint and I need to be able to turn off more options (for the time being) than I am allowed to do in JSLint. It's a great plugin already though!
Please add support for JSHint.
Posted by richard_ on Mar 21, 2012
  

@kurtextrem @ttampe

Unfortunately, problem with tab in JSLint, link. I tried to fix, but so far without success.
From the beginning, wanted to make JSHint, but JSLint seemed more credible.
In the future, will add JSHint, UglifyJS.
Thank you for CSSInt not know, let's see.
Posted by lomatek on Mar 19, 2012
  

JSHint

I think JSLint is outdated and now there is JSHint. Could you please "update" this plugin to support jshint?
Another cool thing would be UglifyJS and CSSlint
Posted by kurtextrem on Mar 17, 2012
  

Annotations do not show at the correct column

Annotations do not show at the correct column if the source text contains tab characters.
The character count returned by JSLint is calculated after replacing tab characters with the number of spaces specified by the indent configuration parameter.
The annotation (read weavy line) is placed at the character offset returned by JSLint which does not correspond to the character offset of the source code line if tabs are used.

BTW I like this plugin very much since it integrates seamlessly into the NetBeans platform and works very smoothly.
Posted by ttampe on Jan 12, 2012
  

@JPESKA

Fixed in 1.0.4 version.
Posted by lomatek on Jan 08, 2012
  

Issue

NetBeans users reported an issue which I think belongs to your code. For more information see http://netbeans.org/bugzilla/show_bug.cgi?id=206387

Sorry, but I don't have a github account, so I decided to report it in here...
Posted by JPESKA on Jan 02, 2012
  

2everflux

Added predefined globals functionality at new verison 1.0.4.
Posted by lomatek on Dec 26, 2011
  

Predefined variables do not work

When using jquery as separately included library the "$" is not defined inside the particular JS file where it is used. I added it to the "predefined" configuration of JSLint in Netbeans, but it has no effect and the field is cleared after Netbeans is restarted.
(Tested with Netbeans 7.1)
Posted by everflux on Dec 26, 2011
  

2ent38

Thank you for your bug report.
Posted by lomatek on Nov 30, 2011
  

OK

Thx for your reactivity, the fix and the documentation update.
The new NBM works well :)
Posted by ent38 on Nov 30, 2011
  

Works on projects

Task List in NetBeans works only for the projects. I said it in the description.

Update nbm: Action "Select all", "Unselect all" in the options panel.
Posted by lomatek on Nov 30, 2011
  

Works on projects

Ok, the javascript file I tested was not inside a project.
I've added it to a project and the task list is now updated with JSLint hints :)

Is it a bug or is the plugin designed to work with projects only ?

Thx.
Posted by ent38 on Nov 30, 2011
  

Task list

The "All" scope doesn't show JSLint warnings.
I've added a new scope and selected the "JSLint" type, but the task list stays empty.
Saving the file, refreshing the task list or launching the "JSLint" action doesn't add JSLint hints to the task list.

I'm working on UTF-8 and ISO-8859-1 javascript files (with french and english locales).
Posted by ent38 on Nov 30, 2011
  

Task list

The task list is updated when the file was saved after editing and is part of the project. Do not forget to add a filter JSLint task list.

Sorry for my English. My native language is Russian. Also cyrillic is not supported at this site.
Posted by lomatek on Nov 30, 2011
  

Update repository

Sorry. Now worked: https://github.com/lomatek/netbeans-jslint
Posted by lomatek on Nov 30, 2011
  

Nothing on github.com

Hi,
is the website url up to date ? There is nothing on https://github.com/lomatek/netbeans-jslint ;)

[edit] Some problems :
- in the options panel, the "Select all", "Unselect all" and "50/50" buttons don't work;
- the plugin doesn't seem to update the task list. I tested on a single javascript file, with some errors (actually, the same content as shown in the screenshot : "function name (a, b, c) ..."), but the task list stays empty (I tested with every scope). I only have the badges on the left margin.

No errors or warnings in the NetBeans log.

Problems on WinXP x86 SP3, NetBeans 7.0.1, 7.1RC1 and latest Dev Build, on JDK6u29 and JDK7u01.

Thx.
Posted by ent38 on Nov 30, 2011
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo