Use jshint in paver, include in builds.
JShint will be executed with paver run_jshint, which will use a defined set of directories (likewise defined are directories to ignore). A limit can be imposed on the total number of violations. Note that this change does NOT include adding jshint to diff-quality or `paver run_quality`.
This commit is contained in:
@@ -494,10 +494,10 @@ To view test coverage:
|
||||
3. Reports are located in the ``reports`` folder. The command generates
|
||||
HTML and XML (Cobertura format) reports.
|
||||
|
||||
Code Style Quality
|
||||
Python Code Style Quality
|
||||
------------------
|
||||
|
||||
To view code style quality (including pep8 and pylint violations)::
|
||||
To view Python code style quality (including pep8 and pylint violations)::
|
||||
|
||||
paver run_quality
|
||||
|
||||
@@ -530,6 +530,20 @@ More specific options are below.
|
||||
|
||||
``system`` is an optional argument here. It defaults to
|
||||
``cms,lms,common``.
|
||||
|
||||
|
||||
JavaScript Code Style Quality
|
||||
------------------
|
||||
|
||||
To view JavaScript code style quality::
|
||||
|
||||
paver run_jshint
|
||||
|
||||
- This command also comes with a ``--limit`` switch, for example::
|
||||
|
||||
paver run_jshint --limit=700
|
||||
|
||||
|
||||
|
||||
Testing using queue servers
|
||||
---------------------------
|
||||
|
||||
Reference in New Issue
Block a user