Skip to content

An attempt to continue to use Python for validating JS files

License

Notifications You must be signed in to change notification settings

chevah/chevah-js-linter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chevah JS Linter - a fork of Closure Linter

Closure Linter - a style checker for ES5 JavaScript

Build Status

Since closure linter is deprecated I have forked it in an attempt to delay the migration to Java based tool and be able to continue to use Python.

It has the same command names as Closure Linter.

Installation

To install the application, run python ./setup.py install

After installing, you get two helper applications installed into /usr/local/bin:

  • gjslint.py - runs the linter and checks for errors
  • fixjsstyle.py - DEPRECATED and not updated

Testing

Using setuptools python setup.py test

Using virtualenv (see setup.py for dependecies) python closure_linter/full_test.py

You can also run a single test (might need to udpate the test to initialize the flags) python closure_linter/fixjsstyle_test.py

Or run a single functional tests python closure_linter/full_test.py ends_with_block.js

About

An attempt to continue to use Python for validating JS files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 77.9%
  • JavaScript 21.3%
  • HTML 0.8%