代码拉取完成,页面将自动刷新
CODE_OF_CONDUCT.md
and code.en.md
about hamcrest (#21046)
The following code of conduct is based on full compliance with ASF CODE OF CONDUCT.
mvn -T 1C clean install
or ./mvnw -T 1C clean install
command in shell to start Maven build process. On which directory to run Maven build process, there are 2 alternatives, we could select one of them: 1) if we're not familiar with Apache ShardingSphere, then we could run it on project root directory, 2) if we know which modules will be affected by the changes, then we could run it on these modules to save build time.pull request
; Small and frequent pull request
with complete unit function is welcomed.Contributor Covenant Code of Conduct
below.src/resources/code-style-idea.xml
.result
; Variables in the loop structure are named with each
; Replace each
with entry
in map.ex
; Exceptions when catch but do nothing are named with ignored
.Spinal Case
(a variant of Snake Case
which uses hyphens -
to separate words).=
and equals
conditional expressions; Have variable on the left and constants on the right in greater than
and less than
conditional expressions.this
modifier.final
class except abstract class for extend.null
parameters or return values.LinkedList
in priority. Use ArrayList
for use index to get element only.Collection
such as ArrayList
, HashMap
must indicate initial capacity to avoid recalculate capacity.public
classes and methods need javadoc, other methods, classes and override methods do not need javadoc.nested use
is forbidden.System.out
, log
are prohibited, use assert to check test results.Mockito
, junit Assert
, hamcrest CoreMatchers
and MatcherAssert
can use static import.assertTrue
, assertFalse
, assertNull
and assertNotNull
should be used.assertThat
should be used.not
, containsString
to make assertions.actualXXX
, expected values expectedXXX
.@Test
annotation do not need javadoc.200
chars, guarantee every line have complete semantics.underline
to separate. Rule name of DataType
and Symbol
should end with underline
. If rule name is conflicted with ANTLR's keyword, should take an underline
behind rule name.fragment
, rule with fragment
should define behind of public rule which they served.Keyword.g4
, every database may has customized rule file by themselves. For example: MySQLKeyword.g4
.colon
and rule, semicolon
should take a new line and keep indents (including blank lines) consistent with the previous one.5
, every branch take a new line.database
+ SQL type
+ Statement
. For example: MySQLDQLStatement.g4
.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。