Score
0
Watch 39 Star 145 Fork 33

nwsuafzq / MySQLAdvisorCGPL-2.0

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
DEVELOPMENT_NORM.md 635 Bytes
Copy Edit Web IDE Raw Blame History
坚守 authored 2017-03-06 15:34 . 初始化sqladvisor

SQLAdvisor开发规范

1.代码中出现的数字等,尽量使用见名知义的宏定义

  • 下面的代码片段是不被推荐的:
if (id == 0) {
 //todo sth.
} else {
 //todo sth.
}
  • 下面的代码片段是被推荐的:
#define TK_COMMENT 0

if (id == TK_COMMENT) {
 //todo sth.
} else {
 //todo sth.
}

2.commit log书写规范

本次提交的描述信息。(issue #no)

例如:

git commit -m "bugfix: 修复 动态修改权重不生效。(issue #12)"
git commit -m "feature: 新增 标记tag,可进行从库流量配置功能。(issue #13)"

Comment ( 0 )

Sign in for post a comment