Skip to content

Commit

Permalink
add gjslint checker
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszpiotr committed Sep 29, 2013
1 parent abca0a0 commit 8f3c2a5
Show file tree
Hide file tree
Showing 106 changed files with 19,827 additions and 10 deletions.
39 changes: 36 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
.vimrc
*.pyc
pylama.egg-info/*
*.py[cod]

# C extensions
*.so

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
lib
lib64

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox
nosetests.xml

# Translations
*.mo

# Mr Developer
.mr.developer.cfg
.project
.pydevproject

.vimrc
docs/_build
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pylama_with_gjslint
===================

Code audit tool for Python and JavaScript.
12 changes: 10 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@

.. _description:

Code audit tool for python. Pylama wraps these tools:
Code audit tool for Python and JavaScript. Pylama wraps these tools:

* PEP8_ © 2012-2013, Florent Xicluna;
* PEP257_ © 2012, GreenSteam, <http://greensteam.dk/>
* PyFlakes_ © 2005-2013, Kevin Watters;
* Pylint_ © 2013, Logilab;
* Mccabe_ © Ned Batchelder;
* gjslint_ © The Closure Linter Authors

| `Pylint doesnt supported in python3.`
Expand Down Expand Up @@ -52,6 +53,9 @@ Requirements:
=============

- Python (2.6, 2.7, 3.2, 3.3)
- To use JavaScript checker (``gjslint``) you need to install ``python-gflags`` with ``pip install python-gflags``.
- If your tests are failing on Win platform you are missing: ``curses`` - http://www.lfd.uci.edu/~gohlke/pythonlibs/
(The curses library supplies a terminal-independent screen-painting and keyboard-handling facility for text-based terminals)


.. _installation:
Expand Down Expand Up @@ -88,6 +92,9 @@ Customize linters ::

$ pylama -l "pep8,mccabe"

Customize linters for JavaScript::

$ pylama --linters=gjslint --ignore=E:0010 <path_to_directory_or_file>

.. _options:

Expand Down Expand Up @@ -118,7 +125,7 @@ Command line options
Select errors and warnings. (comma-separated)
--linters LINTERS, -l LINTERS
Select linters. (comma-separated). Choices are
pep8,pep257,mccabe,pyflakes,pylint.
pep8,pep257,mccabe,pyflakes,pylint,gjslint.
--ignore IGNORE, -i IGNORE
Ignore errors and warnings. (comma-separated)
--skip SKIP Skip files by masks (comma-separated, Ex.
Expand Down Expand Up @@ -233,5 +240,6 @@ Licensed under a `BSD license`_.
.. _PyFlakes: https://github.com/kevinw/pyflakes
.. _Pylint: http://pylint.org
.. _Mccabe: http://nedbatchelder.com/blog/200803/python_code_complexity_microtool.html
.. _gjslint: https://developers.google.com/closure/utilities
.. |logo| image:: https://raw.github.com/klen/pylama/develop/docs/_static/logo.png
:width: 100

0 comments on commit 8f3c2a5

Please sign in to comment.