JSLint - plugin detail
The JavaScript Code Quality Tool
| Plugin owner: |
lomatek |
| Website: |
https://github.com/lomatek/netbeans-jslint |
| Added: |
2011-11-29 |
| Last updated: |
2011-12-26 |
| NetBeans Versions: |
7.0, 7.1 |
| License: |
The MIT license |
| Category: |
Web Applications |
| Size: |
0.41 MB |
| Downloaded: |
1,684 times |
| Rating: |
|
Verifications for NetBeans versions
Decisions of individual verifiers for JSLint plugin for NetBeans IDE 7.0
carlosqt cengizc senthilsource scottwd9 ent38 mcreps |
|
jpirek mmirilovic kudzu jkovalsky |
Commentscarlosqt: Works on NB 7.0.1
Win7, Java 1.7.0, 64-bit cengizc: Product Version: NetBeans IDE 7.0.1 (Build 201107282000)
Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) scottwd9: ubuntu11.10x64, jdk1.7u2, nb7.0.1 ent38: OK on NB 7.0.1, WinXP SP3 x86 cp1252(fr), JDK6u30 and JDK7u02
Decisions of individual verifiers for JSLint plugin for NetBeans IDE 7.1
carlosqt cengizc ent38 senthilsource scottwd9 mcreps |
|
mmirilovic kudzu jpirek jkovalsky |
Commentscarlosqt: Works on NB 7.1
Win7, Java 1.7.0, 64-bit cengizc: Product Version: NetBeans IDE 7.1 (Build 201112071828)
Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) ent38: OK on latest Dev Build (201112270601), WinXP SP3 x86 cp1252(fr), JDK6u30 and JDK7u02 scottwd9: ubuntu11.10x64, jdk1.7u2, nb7.1rc2
|
Introduction
About JSLint
JSLint is a JavaScript program that looks for problems in JavaScript programs. It is a code quality tool.
For more information: JSLintRead 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.
What's new in this version
1.0.4:
*Correct work.
+Added predefined globals functionality. Thx Taylor Brown
|
[ You have to be logged in to be able to comment. ]
User Comments
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