OpenStack Dashboard (Horizon)
Go to file
Michael Krotscheck c6c0352982 Switched from JSCS to ESLint
This patch switches horizon from using JSCS to using ESlint. It
adds the john papa style guides as an eslint plugin, and deactivates
additional linting rules so current cleanup efforts can focus on the
issues remaining from JSCS. Once that cleanup effort is complete,
we can switch our linting job to voting and move forward from there.

YAML for .eslintrc was chosen because the JSON specification does
not allow comments, and having comments (including rule links) will
make it easier to discuss linting changes.

Deactivated eslint rules have each been annotated with a # TODO
statement, so we can address them in the future. Links in the
documentation have been updated to new contributor guidelines, which
will be updated after this patch lands.

Linting may be executed by first installing npm dependencies using
`npm install`, and then executing `npm run lint` at any time in the
future. No python venv is required.

For clarification: We are switching to ESLint because JSCS explicitly
focuses on code-style, not on language use errors. For that purpose,
JSCS explicitly defers to JSHint, which due to the 'do no evil' license is
not usable. Since ESLint provides both the codestyle functionality, and
the language use checks, of both JSCS and JSHint, it was deemed the
only viable tool,

http://lists.openstack.org/pipermail/openstack-dev/2015-June/067030.html

Change-Id: Ib4c3f77f8cc3cdaa3c7558b7bc3a6d1299b6dcbe
Partially-Implements: blueprint jscs-cleanup
2015-06-30 23:00:29 -07:00
.tx Remove now obsolete English po files, update run_tests 2015-06-22 20:17:55 +02:00
doc Switched from JSCS to ESLint 2015-06-30 23:00:29 -07:00
horizon Switched from JSCS to ESLint 2015-06-30 23:00:29 -07:00
openstack_dashboard Switched from JSCS to ESLint 2015-06-30 23:00:29 -07:00
tools Adding review clean up script 2015-01-27 08:56:21 -07:00
.eslintrc Switched from JSCS to ESLint 2015-06-30 23:00:29 -07:00
.gitignore Get unit tests working with Karma 2015-06-01 14:14:58 +00:00
.gitreview Add .gitreview and rfc.sh. 2011-10-28 09:50:35 -04:00
.jshintignore JShint should ignore libraries 2015-04-08 12:22:14 -07:00
.jshintrc Jshint removing Hogan and static_url 2015-05-06 14:34:08 -07:00
.mailmap Update my mailmap 2013-10-25 14:49:23 +08:00
.pylintrc updating run_tests.sh to mimic other openstack projects, pep8, pylint, coverage 2011-08-31 14:41:36 -07:00
babel-django.cfg Replace makemessages with babel 2015-06-22 09:44:12 -07:00
babel-djangojs.cfg Replace makemessages with babel 2015-06-22 09:44:12 -07:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 03:30:36 +00:00
HACKING.rst Remove #noqa from django.conf.urls.include 2014-09-29 13:58:39 +04:00
LICENSE Initial commit 2011-01-12 13:43:31 -08:00
Makefile Unifies the project packaging into one set of modules. 2012-02-29 00:20:13 -08:00
manage.py Gate on H102 Apache 2.0 license header not found for pep8 2013-11-19 13:55:04 -05:00
MANIFEST.in Drop NodeJS dependency in favor of pure-python lesscpy 2013-08-16 09:31:08 +02:00
package.json Switched from JSCS to ESLint 2015-06-30 23:00:29 -07:00
README.rst Add install guide for users and clean up README 2014-10-09 03:29:26 +09:00
requirements.txt Updated from global requirements 2015-06-24 14:39:19 +00:00
run_tests.sh Switched from JSCS to ESLint 2015-06-30 23:00:29 -07:00
setup.cfg Update version for Liberty 2015-06-17 21:51:51 +00:00
setup.py Updated from global requirements 2015-06-22 08:21:19 +00:00
test-requirements.txt Updated from global requirements 2015-06-22 08:21:19 +00:00
test-shim.js Get unit tests working with Karma 2015-06-01 14:14:58 +00:00
tox.ini Switched from JSCS to ESLint 2015-06-30 23:00:29 -07:00

Horizon (OpenStack Dashboard)

Horizon is a Django-based project aimed at providing a complete OpenStack Dashboard along with an extensible framework for building new dashboards from reusable components. The openstack_dashboard module is a reference implementation of a Django site that uses the horizon app to provide web-based interactions with the various OpenStack projects.

Using Horizon

See doc/source/topics/install.rst about how to install Horizon in your OpenStack setup. It describes the example steps and has pointers for more detailed settings and configurations.

It is also available at http://docs.openstack.org/developer/horizon/topics/install.html.

Getting Started for Developers

doc/source/quickstart.rst or http://docs.openstack.org/developer/horizon/quickstart.html describes how to setup Horizon development environment and start development.

Building Contributor Documentation

This documentation is written by contributors, for contributors.

The source is maintained in the doc/source directory using reStructuredText and built by Sphinx

  • Building Automatically:

    $ ./run_tests.sh --docs
  • Building Manually:

    $ tools/with_venv.sh sphinx-build doc/source doc/build/html

Results are in the doc/build/html directory