From: Joao Eduardo Luis Date: Tue, 30 Jan 2018 15:19:53 +0000 (+0000) Subject: CodingStyle: add python and javascript/typescript X-Git-Tag: v13.1.0~322^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F20186%2Fhead;p=ceph.git 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 --- diff --git a/CodingStyle b/CodingStyle index 05c63b6a4a4b..d3d21e1d553f 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 +