Skip to content

Commit

Permalink
Merge pull request ceph#20186 from jecluis/wip-codingstyle
Browse files Browse the repository at this point in the history
CodingStyle: add python and javascript/typescript
  • Loading branch information
liewegas authored Apr 11, 2018
2 parents 53588a4 + 7528728 commit 5ad70e0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions CodingStyle
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5ad70e0

Please sign in to comment.