wpantund icon indicating copy to clipboard operation
wpantund copied to clipboard

Code style guide

Open bukepo opened this issue 7 years ago • 3 comments

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

bukepo avatar Jun 03 '17 03:06 bukepo

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

bukepo avatar Jun 30 '18 09:06 bukepo

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 avatar Jun 30 '18 23:06 darconeous

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

darconeous avatar Jun 30 '18 23:06 darconeous