41 Star 180 Fork 48

nwsuafzq / MySQLAdvisor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
DEVELOPMENT_NORM.md 635 Bytes
一键复制 编辑 原始数据 按行查看 历史
坚守 提交于 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)"
C
1
https://gitee.com/unixcoder/MySQLAdvisor.git
git@gitee.com:unixcoder/MySQLAdvisor.git
unixcoder
MySQLAdvisor
MySQLAdvisor
master

搜索帮助