Commit 2d3a4c9f by Ben Patterson

Merge pull request #8915 from edx/benp/add-plato-jul2015

Add plato JS static code analysis tool.
parents 73786867 c41b67f5
...@@ -732,6 +732,27 @@ To view JavaScript code style quality run this command. ...@@ -732,6 +732,27 @@ To view JavaScript code style quality run this command.
Code Complexity Tools
----------------------
Two tools are available for evaluating complexity of edx-platform code:
- `radon <https://radon.readthedocs.org/en/latest/>`__ for Python code complexity.
* To obtain complexity, run
::
paver run_complexity
- `plato <https://github.com/es-analysis/plato>`__ for JavaScript code complexity. Several options are available on the command line; see documentation.
* Below, the following command will produce an html report in a subdirectory called "jscomplexity"
::
plato -q -x common/static/js/vendor/ -t common -l .jshintrc -r -d jscomplexity common/static/js/
Testing using queue servers Testing using queue servers
--------------------------- ---------------------------
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
}, },
"devDependencies": { "devDependencies": {
"jshint": "^2.7.0", "jshint": "^2.7.0",
"edx-custom-a11y-rules": "edx/edx-custom-a11y-rules" "edx-custom-a11y-rules": "edx/edx-custom-a11y-rules",
"plato": "1.2.2"
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment