473,396 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

JSLint Konfabulator widget

JSLint is now available as a Konfabulator widget. Drop a .js file on
it, and it will tell you about its coding weaknesses. JSLint is an
essential tool for quality programming in JavaScript.

You can get it here: http://www.widgetgallery.com/view.php?widget=37484

But first install Konfabulator, which you can get here:
http://konfabulator.com/

You can read more about JSLint at:
http://www.crockford.com/javascript/lint.html You can use it most
effectively if you understand its design expectations. If you don't
understand what it is trying to do, it can hurt your feelings.

And the copy/paste version is still available at: http://www.JSLint.com

It is all free.

Remember: If you aren't using JSLint, there is something seriously
wrong with you...and your code.
Oct 9 '05 #1
1 1518
On 09/10/2005 02:20, Douglas Crockford wrote:

[snip]
If you don't understand what [JSLint] is trying to do, it can hurt
your feelings.
It can also irritate. One can understand why the comma operator is
usually frowned upon. An ExpressionStatement like

x = (y = a), b;

is rarely ever useful and an author should seriously consider whether
something so obtuse is appropriate. However,

for(i = 0, j = x, n = A.length; i < n; ++i, ++j) {
/* ... */
}

is, in my opinion, a specific and judicious use of the operator. Yes,
one could use a while statement, performing initialisation before, and
incrementation inside at the end, but a for statement is more natural.

[snip]
Remember: If you aren't using JSLint, there is something seriously
wrong with you...and your code.


I didn't use JSLint because it disliked how I formatted my code
(literals, mainly) despite being perfectly legal and sensible. Baulking
at bizarre line-ending warnings was very frustrating, but they don't
seem to appear now (thankfully).

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Oct 9 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tonino | last post by:
Hi, I have a small Tkinter app that gets data from a socket connection to a "server". The app has a Text() widget to display the info that it gets from the socket connection. I have the...
6
by: William Gill | last post by:
I am trying to get & set the properties of a widget's parent widget. What I have works, but seems like a long way around the block. First I get the widget name using w.winfo_parent(), then i...
3
by: Douglas Crockford | last post by:
JSLINT now includes a list of member names in its report, along with the number of occurences of each member name. This is intended to make it easier to find misspellings. JSLINT takes a...
1
by: manos | last post by:
Hi all, I was wondering if anyone has managed to "validate" js file using jslint from the command line with an engine like rhino. Any suggestions/experiences really appreciated. Many thanks,...
44
by: petermichaux | last post by:
Hi, I have been using the following line of code to create an object called "Serious" if it doesn't already exist. if (Serious == null) {var Serious = {};} This works in the scripts I use...
1
by: Jang | last post by:
In jslint's doc it says, "JSLint does not expect that a var will be defined in a block. This is because JavaScript blocks do not have block scope. This can have unexpected consequences. Define all...
1
by: =?ISO-8859-1?Q?Une_B=E9v?==?ISO-8859-1?Q?ue?= | last post by:
JSLint founds errors : Error: Implied global: findTextInTag 6, hash 3, keysAry 2 "findTextInTag" is an external function to the calling one hash and keysAry are (supposed to be?) global...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.