未验证 提交 04c4e9e8 编写于 作者: H Haoran Meng 提交者: GitHub

Merge pull request #6960 from terrymanu/dev

Update code-conduct
......@@ -30,7 +30,7 @@ chapter = true
- 使用linux换行符。
- 缩进(包含空行)和上一行保持一致。
- 类声明后与下面的变量或方法之间需要空一行。
- 不应有无意义的空行。
- 不应有无意义的空行。请提炼私有方法,代替方法体过长或代码段逻辑闭环而采用的空行间隔。
- 类、方法和变量的命名要做到顾名思义,避免使用缩写。
- 返回值变量使用`result`命名;循环中使用`each`命名循环变量;map中使用`entry`代替`each`
- 捕获的异常名称命名为`ex`;捕获异常且不做任何事情,异常名称命名为`ignored`
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册