Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code style guide #181

Open
bukepo opened this issue Jun 3, 2017 · 3 comments
Open

Code style guide #181

bukepo opened this issue Jun 3, 2017 · 3 comments

Comments

@bukepo
Copy link
Member

bukepo commented Jun 3, 2017

I noticed that the code style is not consistent in this repo. Shall we provide a code style guide?

@bukepo bukepo assigned abtink and unassigned abtink Jun 30, 2018
@bukepo
Copy link
Member Author

bukepo commented Jun 30, 2018

How about apply the same code style of OpenThread? @abtink

@darconeous
Copy link
Contributor

The style that I used when I started this project was:

  • Tabs are used for indentation. Tabs are assumed to be four spaces but should not be used for alignment.
  • Spaces are used for alignment.
  • Otherwise the style loosely follows that of the linux kernel or K&R.

The naming style is a bit of a mess admittedly.

@darconeous
Copy link
Contributor

I would recommend not changing the indentation of the entire project. That will make using git blame tedious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants