Files
wger/docs/codingstyle.rst
2021-09-06 21:22:37 +03:00

28 lines
572 B
ReStructuredText

.. _codingstyle:
Coding Style Guide
==================
Python
------
Code according to PEP8, but with a maximum line length of 100.
JavaScript
----------
* Follow Airbnb ES5 style guide, with the following changes:
* Disallow named function expressions, except in recursive functions, where a name is needed.
* Console logging is allowed
* Functions called from Django templates need to start with ``wger``
Automatic coding style checks
-----------------------------
The coding style is automatically checked by GitHub actions after sending a
pull request.