You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by xi...@apache.org on 2020/08/04 13:09:34 UTC

[shardingsphere] branch master updated: add committer and update spinal-case

This is an automated email from the ASF dual-hosted git repository.

xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new ee0ab19  add committer and update spinal-case
     new 959da6b  Merge pull request #6620 from kimmking/reviseDoc
ee0ab19 is described below

commit ee0ab19568088d1bc71041a23f920b6070de9a7a
Author: kimmking <ki...@apache.org>
AuthorDate: Tue Aug 4 21:04:39 2020 +0800

    add committer and update spinal-case
---
 docs/community/content/contribute/code-conduct.cn.md | 2 +-
 docs/community/content/contribute/code-conduct.en.md | 2 +-
 docs/community/content/team/_index.cn.md             | 1 +
 docs/community/content/team/_index.en.md             | 1 +
 4 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/docs/community/content/contribute/code-conduct.cn.md b/docs/community/content/contribute/code-conduct.cn.md
index e1f1845..067ef72 100644
--- a/docs/community/content/contribute/code-conduct.cn.md
+++ b/docs/community/content/contribute/code-conduct.cn.md
@@ -34,7 +34,7 @@ chapter = true
  - 类、方法和变量的命名要做到顾名思义,避免使用缩写。
  - 返回值变量使用`result`命名;循环中使用`each`命名循环变量;map中使用`entry`代替`each`。
  - 捕获的异常名称命名为`ex`;捕获异常且不做任何事情,异常名称命名为`ignored`。
- - 配置文件使用驼峰命名,文件名首字母小写。
+ - 配置文件使用`Spinal Case`命名(一种使用`-`分割单词的特殊`Snake Case`)。
  - 需要注释解释的代码尽量提成小方法,用方法名称解释。
  - `equals`和`==`条件表达式中,常量在左,变量在右;大于小于等条件表达式中,变量在左,常量在右。
  - 除了构造器入参与全局变量名称相同的赋值语句外,避免使用`this`修饰符。
diff --git a/docs/community/content/contribute/code-conduct.en.md b/docs/community/content/contribute/code-conduct.en.md
index a2d69b6..3a80768 100644
--- a/docs/community/content/contribute/code-conduct.en.md
+++ b/docs/community/content/contribute/code-conduct.en.md
@@ -31,7 +31,7 @@ The following code of conduct is based on full compliance with [ASF CODE OF COND
  - 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`.
- - Name property files with camel-case and lowercase first letters.
+ - Name property files with `Spinal Case`(a variant of `Snake Case` which uses hyphens `-` to separate words). 
  - Split codes that need to add notes with it into small methods, which are explained with method names.
  - Have constants on the left and variable on the right in `=` and `equals` conditional expressions; Have variable on the left and constants on the right in `greater than` and `less than` conditional expressions.
  - Beside using same names as input parameters and global fields in assign statement, avoid using `this` modifier.
diff --git a/docs/community/content/team/_index.cn.md b/docs/community/content/team/_index.cn.md
index c018181..c1d8a5f 100644
--- a/docs/community/content/team/_index.cn.md
+++ b/docs/community/content/team/_index.cn.md
@@ -43,6 +43,7 @@ chapter = true
 | 岳令   | yue530tom   |
 | 肖宇   | yu199195    |
 | 孟浩然 | menghaoranss|
+| 陆敬尚 | jingshanglu |
 
 ## 贡献者
 
diff --git a/docs/community/content/team/_index.en.md b/docs/community/content/team/_index.en.md
index 82dd91f..8976640 100644
--- a/docs/community/content/team/_index.en.md
+++ b/docs/community/content/team/_index.en.md
@@ -43,6 +43,7 @@ chapter = true
 | Ling Yue        | yue530tom               |
 | Xiao Yu         | yu199195                |
 | Haoran Meng     | menghaoranss            |
+| Jingshang Lu    | jingshanglu             |
 
 ## Contributors