SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Evangelist mrwooster's Avatar
    Join Date
    Jan 2006
    Posts
    518
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Javascript Syntax Checker

    I have come across javascript lint but it seems to be a bit outdated... is there a more up to date syntax checked for javascript or does javascript lint still do the job?

    There are several online tools I have seen but unfortunately these are no use as I need to be able to run it from the command line and (hopefully) be able to import it into vim.

    Thanks

  2. #2
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,272
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    What's outdated about JSLint.com?

    Javascript syntax hasn't changed, or did it change on me?

  3. #3
    SitePoint Evangelist mrwooster's Avatar
    Join Date
    Jan 2006
    Posts
    518
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah... i was referring to http://www.javascriptlint.com/
    The compile notes suggest that the latest version was built in 2004... and I lot of standards have changed since then.

    The problem with JSLint.com is that its a browser based tool... I am really looking for a command line tool....

    Thanks

  4. #4
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,272
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    I thought he did have a downloadable version of JSLint though, because now that you mention it I have heard of people having it built-in their editors.

  5. #5
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,684
    Mentioned
    100 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by mrwooster View Post
    The problem with JSLint.com is that its a browser based tool... I am really looking for a command line tool....
    Rhino is a javascript engine that runs via java on the command line. That can run jslint for you.

    http://www.jslint.com/rhino/index.html
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  6. #6
    SitePoint Evangelist mrwooster's Avatar
    Join Date
    Jan 2006
    Posts
    518
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Managed to get it up and running with Rhino... many thanks

    G


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •