Developing Tools
================
.. contents::
:local:
------
Auxiliary Development Tools
---------------------------
All auxiliary development tools are contained in ``tools``.
``tools/develop.py``
++++++++++++++++++++
This file adds a new module or class to the project.
- To add a new class, say called ``PhysicalConstants``, run this command:
.. code-block:: bash
$ tools/develop.py addclass PhysicalConstants
then two files ``PhysicalConstants.h`` and ``PhysicalConstants.cpp`` will be generated, which can be copied to the path you want to place.
- To add a new module, say called ``properties``, run this command **in the root directory**:
.. code-block:: bash
$ tools/develop.py addmodule properties
then a new folder ``src/properties`` will be created. You can add source codes there.
``tools/code_review_list.docx``
+++++++++++++++++++++++++++++++
- Code must pass all the items in this file before it is merged to the master branch of the project.
Source Code Editor
------------------
- `Visual Studio Code `_ is used to edit code.
- `Code Spell Checker `_ is used for spelling check of all code. It is an extention of Visual Studio Code.
A brief Chinese tutorial for Visual Studio Code:
- ``_
Developer can also use his/her preferred editor.
Static Analysis
---------------
- `Cppcheck `_ is used for static analysis of code.
Documentation
-------------
- `Sphinx `_ is used for general documentation.
Two brief Chinese tutorials for Sphinx:
- ``_
- ``_