Skip to content
Xuan (Sean) Hu edited this page Jan 19, 2015 · 6 revisions

For better CAPUBBS, we need some conventions.

Workflow

  • 每一次 commit 的 message 都必须有实际意义。实际意义指别人可以不看代码就知道你大概修改了什么。
  • 所有修改都必须在自己 fork 的 repo 中进行,然后提交 pull request 通过别人的 review 之后再 merge 到主分支。

Code Style

  • 字符串连接运算符 . 的左右必须空且仅空一个空格,e.g. echo 1 . 2; //prints the string "12"
  • Use FOUR <space> for indent, evil <tab>! (Though there are many <tab> in current codebase, we shouldn't add MORE!)

Clone this wiki locally