liucougar / kojslint

komodo extension for jslint integration

Home Page:http://www.liucougar.net/blog/projects/kojslint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KoJSLint

Komodo (IDE/Edit) extension to integrating with JSLint providing lint warnings/errors/function report and automatically fixing some common jslint warnings.

Once installed, the extension can be accessed via Tools -> JS Lint. The jslint run command can be assigned a shortcut key.

I'd like to thank Ben Smawfield for allowing me to fork kjslint to become this komodo extension.

FEATURES

  • provide UI to modify all available JSLint options
  • save jslint options as profiles (called modes) which are shared for all files/projects
  • add/delete profiles (modes)
  • profiles can be locked (it can't be changed/deleted until unlocked)
  • auto-fix some common jslint warnings
  • all jslint warnings on the same line are grouped in the "JSLint errors" output tab
  • bundled with JSLint 2011-10-07

AutoFix

To access the AutoFix feature, right click on a row in the "JSLint errors" output tab to auto fix that particular warning. If you are auto-fixing multiple warnings on the same line, try to begin with the last warning for that particular line, and move backward.

Download/Install

This extension can be installed through Tools -> Add-ons, Get Add-ons tab.

For Developers

The JSLint.js file can be auto-updated by running ./get_jslint.sh You can build an XPI by running ./build.sh The parser.php file automates the process of changing the comments from the jslint.js file such as // adsafe true, if ADsafe rules should be enforced into a checkbox that can be used in komodo.xul, such as To use it, pipe the relevent comments into it, and capture the output.

SOURCE/BUGS/LICENSE

Source code is available from github.

KoJSLint is licensed under Mozilla Public License 1.1 (MPL), except the jslint.js file which is covered by the license block at the top of that file.

If something is not working properly, please try to post all relevant error messages in the Error Console (see Debug komodo extensions on how to enable that) with your bug report.

About

komodo extension for jslint integration

http://www.liucougar.net/blog/projects/kojslint


Languages

Language:JavaScript 99.4%Language:Python 0.3%Language:Shell 0.2%Language:PHP 0.1%