blob: 2244064148929f9b2729e20a8cff5a4a5e56b075 [file] [log] [blame]
Imre Kis124f0e32021-02-12 18:03:24 +01001Coding Style & Guidelines
2=========================
3
4The following sections contain |C_PICKER| coding guidelines. They are continually evolving and should not be considered "set
5in stone". Feel free to question them and provide feedback.
6
7The |C_PICKER| project uses multiple "domains" (textual content types, like programming languages) and each defines its own
8rules.
9
10To help configuring text editors the project comes with "`EditorConfig`_" file(s). (:download:`../../.editorconfig`).
11
12Shared rules
13------------
14
15The following rules are common for all domains, except where noted otherwise:
16
17#. Files shall be **UTF-8** encoded.
18#. Use **Unix** style line endings (``LF`` character)
19#. The primary language of the project is English. All comments and documentation must be in this language.
20#. Trailing whitespace is not welcome, please trim these.
21
22Python Domain
23-------------
24
25Python source code rules follow `PEP 8 -- Style Guide for Python Code`_.
26
27
28Restructured Text Domain
29------------------------
30
31Please refer to :ref:`Writing documentation`.
32
33--------------
34
35.. _`EditorConfig`: https://editorconfig.org/
36.. _`PEP 8 -- Style Guide for Python Code`: https://www.python.org/dev/peps/pep-0008/
37
38*Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.*
39
40SPDX-License-Identifier: BSD-3-Clause