Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Shardingsphere
提交
04c4e9e8
Shardingsphere
项目概览
apache
/
Shardingsphere
通知
56
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Shardingsphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
04c4e9e8
编写于
8月 21, 2020
作者:
H
Haoran Meng
提交者:
GitHub
8月 21, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #6960 from terrymanu/dev
Update code-conduct
上级
5eae3e96
7dc6f6a6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
2 addition
and
2 deletion
+2
-2
docs/community/content/contribute/code-conduct.cn.md
docs/community/content/contribute/code-conduct.cn.md
+1
-1
docs/community/content/contribute/code-conduct.en.md
docs/community/content/contribute/code-conduct.en.md
+1
-1
未找到文件。
docs/community/content/contribute/code-conduct.cn.md
浏览文件 @
04c4e9e8
...
...
@@ -30,7 +30,7 @@ chapter = true
-
使用linux换行符。
-
缩进(包含空行)和上一行保持一致。
-
类声明后与下面的变量或方法之间需要空一行。
-
不应有无意义的空行。
-
不应有无意义的空行。
请提炼私有方法,代替方法体过长或代码段逻辑闭环而采用的空行间隔。
-
类、方法和变量的命名要做到顾名思义,避免使用缩写。
-
返回值变量使用
`result`
命名;循环中使用
`each`
命名循环变量;map中使用
`entry`
代替
`each`
。
-
捕获的异常名称命名为
`ex`
;捕获异常且不做任何事情,异常名称命名为
`ignored`
。
...
...
docs/community/content/contribute/code-conduct.en.md
浏览文件 @
04c4e9e8
...
...
@@ -27,7 +27,7 @@ The following code of conduct is based on full compliance with [ASF CODE OF COND
-
Use linux line separators.
-
Keep indents (including blank lines) consistent with the previous one.
-
Keep one blank line after class definition.
-
No meaningless blank lines.
-
No meaningless blank lines.
Please extract private methods to instead of blank lines if too long method body or different logic code fragments.
-
Use meaningful class, method and variable names, avoid to use abbreviate.
-
Return values are named with
`result`
; Variables in the loop structure are named with
`each`
; Replace
`each`
with
`entry`
in map.
-
Exceptions when catch are named with
`ex`
; Exceptions when catch but do nothing are named with
`ignored`
.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录