From 75287281977de00d6f321b5714ec00b98dca8687 Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Tue, 30 Jan 2018 15:19:53 +0000 Subject: [PATCH] CodingStyle: add python and javascript/typescript As we are rapidly expanding our code base beyond C++ and C, it is a good idea to enforce coding styles for other languages. Signed-off-by: Joao Eduardo Luis --- CodingStyle | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/CodingStyle b/CodingStyle index 05c63b6a4a4b6..d3d21e1d553f1 100644 --- a/CodingStyle +++ b/CodingStyle @@ -129,3 +129,27 @@ type conversions. * Other C++ Features > Avoid Default Arguments: They obscure the interface. + + +Python code +----------- + +For new python code, PEP-8 should be observed: + + https://www.python.org/dev/peps/pep-0008/ + +Existing code can be refactored to adhere to PEP-8, and cleanups are welcome. + + +JavaScript / TypeScript +----------------------- + +For Angular code, we follow the official Angular style guide: + + https://angular.io/guide/styleguide + +To check whether your code is conformant with the style guide, we suggest +using TSLint with Codelyzer: + + https://www.npmjs.com/package/codelyzer +