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

totalo 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 5326305e92b Added SQLStatement and SQLSegment must contain @ToString 
annotation code conduct (#19171)
5326305e92b is described below

commit 5326305e92bf96f55940da9ab8fd2c07070629d3
Author: Zhengqiang Duan <[email protected]>
AuthorDate: Fri Jul 15 10:00:48 2022 +0800

    Added SQLStatement and SQLSegment must contain @ToString annotation code 
conduct (#19171)
---
 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 060bef79972..c9ed39ffe18 100644
--- a/docs/community/content/contribute/code-conduct.cn.md
+++ b/docs/community/content/contribute/code-conduct.cn.md
@@ -89,3 +89,4 @@ chapter = true
    - 如果一个规则的分支超过 `5` 个,则每个分支一行。
    - 规则命名采用 java 变量的驼峰形式。
    - 为每种 SQL 语句类型定义一个独立的语法文件,文件名称由 `数据库名称` + `语句类型名称` + 
`Statement`。例如:`MySQLDQLStatement.g4`。
+   - 每个 `SQLStatement` 和 `SQLSegment` 实现类,必须添加 lombok `@ToString` 
注解,如果实现类继承了某个父类,则需要添加 `callSuper = true` 参数。
diff --git a/docs/community/content/contribute/code-conduct.en.md 
b/docs/community/content/contribute/code-conduct.en.md
index 4f2d450c5ee..e5b4c879d4d 100644
--- a/docs/community/content/contribute/code-conduct.en.md
+++ b/docs/community/content/contribute/code-conduct.en.md
@@ -87,3 +87,4 @@ The following code of conduct is based on full compliance 
with [ASF CODE OF COND
    - If a rule's branch is over than `5`, every branch take a new line.
    - Rule name of parser should same with java variable's camel case.
    - Define separate files for every SQL type, file name should consist of 
`database` + `SQL type` + `Statement`. For example: `MySQLDQLStatement.g4`.
+   - Each `SQLStatement` and `SQLSegment` implementation class must add lombok 
`@ToString` annotation, if the implementation class inherits a parent class, 
you need to add `callSuper = true` parameter.

Reply via email to