JSLINT (JavaScript Lint)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Douglas Crockford

    #1

    JSLINT (JavaScript Lint)

    If you are not using JSLint, there is
    something seriously wrong with you...
    and your code.

    Now with a convenient new URL.

    JSLint, The JavaScript Code Quality and Coverage Tool. This file allows JSLint to be run from a web browser. It can accept a source program and analyze it without sending it over the network.

  • Ivo

    #2
    Re: JSLINT (JavaScript Lint)

    Douglas Crockford wrote:[color=blue]
    > a convenient new URL.
    > http://www.JSLint.com[/color]

    I notice with interest the changes happening at and around the no. 1 js
    tool online. Although change always goes hand in hand with fear of all
    the good that might be lost. The sudden appearance of two images on the
    previously lightweight page raises concerns.
    Never mind. This is what I wanted to contribute: a little and sofar IE
    only bookmarklet I wrote especially for that page although it serves
    its uses elsewhere too now.

    javascript:(fun ction (n){var
    a=document.getE lementsByTagNam e('textarea')[0],r=a.createText Range(),t=a.val ue.split(/\n/);n=+(n||window .prompt('Select
    which
    line?',t.length ));if(n){t.leng th=n;r.collapse ();r.findText(t .join(''));r.co llapse(false);r .moveEnd('chara cter',-1);r.moveStart( 'character',1-t[t.length-1].length);r.sele ct();}})(parseI nt(document.sel ection.createRa nge().text));

    It asks for a line to highlight in the textarea if you didn't just
    doubleclick the linenumber in the lint error message. You might
    consider implementing such functionality in the page as more than a
    mere convenience. A message like (314) really isn't very meaningful
    with countless and often wrapping lines of code.

    Domain created on 05-Mar-2005. Congratulation it was still available.

    --
    Ivo


    Comment

    Working...