This is an automated email from the ASF dual-hosted git repository.
terrymanu 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 f161859cca5 Set variable declaration usage distance to 7 (#39784)
f161859cca5 is described below
commit f161859cca58b560303004338ef9edd1025abb23
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Sep 10 11:21:46 2026 +0800
Set variable declaration usage distance to 7 (#39784)
* Raise anonymous inner class length limit
* Set variable declaration usage distance to 7
---
src/resources/checkstyle.xml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/resources/checkstyle.xml b/src/resources/checkstyle.xml
index 7678f32393b..804fa24d35e 100644
--- a/src/resources/checkstyle.xml
+++ b/src/resources/checkstyle.xml
@@ -179,7 +179,9 @@
<module name="UnusedLocalVariable">
<property name="jdkVersion" value="21" />
</module>
- <module name="VariableDeclarationUsageDistance" />
+ <module name="VariableDeclarationUsageDistance">
+ <property name="allowedDistance" value="7" />
+ </module>
<module name="RegexpSinglelineJava">
<property name="format"
value="^(?!\s*import\s+java\.util\.Map\.Entry\s*;).*\b(?:java\.util\.)?Map\.Entry\b"
/>
<property name="ignoreComments" value="true" />