-
Notifications
You must be signed in to change notification settings - Fork 94
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
Define standard code formats and apply them to current code #32
Comments
English/日本語 would be ok on this thread. |
Awesome 😄 |
Luaの場合はどうしましょう? What's this code format of see https://github.com/KLab/PlaygroundOSS/tree/master/Tutorial Try this product use of https://github.com/LuaDist/luapretty or http://lua-users.org/wiki/SourceCodeFormatter ? |
In my opinion, we could skip lua code in formatting, because they have lots of "spaces for explanation" such as: pSimpleItem = UI_SimpleItem( nil, -- arg[1]: 親となるUIタスクポインタ
7000, -- arg[2]: 表示プライオリティ
x, y, -- arg[3,4]: 表示位置
"asset://itemimage.png.imag" -- arg[5]: 表示assetのパス
)
I bet applying code formatter on these code result in ugly styling :( |
http://lua-users.org/wiki/LuaStyleGuide
2 sp is preferred, also 3 sp / 4 sp are applied, and hard tab is also applied. aggghagghghg |
"Simply applying 2 sp and modifying comments on line endings to make explanations look better" seems a practical option to me. |
I understand.
2 space there better? |
👍 |
draft:
Java
Apply AOSP rule XML (with some changes; lineSplit=120, format_comments=false)
C++
notes:
We welcome for comments.
pointed out by.. many people (incl. @repeatedly )
The text was updated successfully, but these errors were encountered: