From 315d9835b23dbdd07a839b913a4aea8f52dd2769 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 23 Mar 2018 15:00:08 +0800 Subject: [PATCH] Extend Coding Guidelines to cover other languages --- CODING_GUIDELINES.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CODING_GUIDELINES.md b/CODING_GUIDELINES.md index 01169592a..03a1e7a69 100644 --- a/CODING_GUIDELINES.md +++ b/CODING_GUIDELINES.md @@ -1,5 +1,7 @@ -All new code must follow the following coding guidelines. -If you make changes in a file that still uses another coding style, make sure that you follow these guidelines for your changes instead. +All new code **must** follow the following coding guidelines. +If you make changes in a file that still uses another coding style, make sure that you follow these guidelines for your changes. +For programming languages other than C++ (e.g. JavaScript) used in this repository and submodules, unless otherwise specified, coding guidelines listed here applies as much as possible. + **Note 1:** I will not take your head if you forget and use another style. However, most probably the request will be delayed until you fix your coding style. **Note 2:** You can use the `uncrustify` program/tool to clean up any source file. Use it with the `uncrustify.cfg` configuration file found in the root folder. **Note 3:** There is also a style for QtCreator but it doesn't cover all cases. In QtCreator `Tools->Options...->C++->Code Style->Import...` and choose the `codingStyleQtCreator.xml` file found in the root folder.