You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2021/08/18 04:42:57 UTC

[shardingsphere] branch master updated: Add : add new rule for condition operator (#11857)

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

panjuan 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 b3b3037  Add : add new rule for condition operator (#11857)
b3b3037 is described below

commit b3b30370a717b2f78a9c7acccd9406bd280ca9d3
Author: 孙念君 Sun Nianjun <ka...@outlook.com>
AuthorDate: Wed Aug 18 12:42:31 2021 +0800

    Add : add new rule for condition operator (#11857)
    
    * Add : add new rule for condition operator
    
    * Refactor : change the condition expression name
    
    * Revert : rever the whitespace, since the template will generate the whitespace
---
 docs/community/content/contribute/code-conduct.cn.md | 1 +
 docs/community/content/contribute/code-conduct.en.md | 1 +
 2 files changed, 2 insertions(+)

diff --git a/docs/community/content/contribute/code-conduct.cn.md b/docs/community/content/contribute/code-conduct.cn.md
index 4981362..a26f0a4 100644
--- a/docs/community/content/contribute/code-conduct.cn.md
+++ b/docs/community/content/contribute/code-conduct.cn.md
@@ -52,6 +52,7 @@ chapter = true
  - 日志与注释一律使用英文。
  - 注释只能包含javadoc,todo和fixme。
  - 公开的类和方法必须有javadoc,其他类和方法以及覆盖自父类的方法无需javadoc。
+ - 条件运算符(<表达式1> ? <表达式2> : <表达式3>)禁止`嵌套使用`
 
 ## 单元测试规范
 
diff --git a/docs/community/content/contribute/code-conduct.en.md b/docs/community/content/contribute/code-conduct.en.md
index ba18271..987b31a 100644
--- a/docs/community/content/contribute/code-conduct.en.md
+++ b/docs/community/content/contribute/code-conduct.en.md
@@ -49,6 +49,7 @@ The following code of conduct is based on full compliance with [ASF CODE OF COND
  - Use English in all the logs and javadoc.
  - Include Javadoc, todo and fixme only in the comments.
  - Only `public` classes and methods need javadoc, other methods, classes and override methods do not need javadoc.
+ - conditional operator(<expression1> ? <expression2> : <expression3>) `nested use` is forbidden.
 
 ## Contributor Covenant Unit Test of Conduct