This is an automated email from the ASF dual-hosted git repository. morrysnow pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new e5991ccf3a6 [style](fe) add package directory structure matching check (#45794) e5991ccf3a6 is described below commit e5991ccf3a69fbcfdd80adf944c09c6f4d0b0fff Author: morrySnow <zhangwen...@selectdb.com> AuthorDate: Mon Dec 23 18:56:11 2024 +0800 [style](fe) add package directory structure matching check (#45794) ### What problem does this PR solve? Problem Summary: check fe-core package directory structure to ensure it is same with package name in files and fix check failed files --- fe/check/checkstyle/checkstyle.xml | 4 ++++ .../LogicalResultSinkToShortCircuitPointQuery.java | 0 .../nereids/{ => trees/plans/commands}/RecoverPartitionCommand.java | 0 .../test/java/org/apache/doris/httpv2/{ => rest}/CopyIntoTest.java | 0 4 files changed, 4 insertions(+) diff --git a/fe/check/checkstyle/checkstyle.xml b/fe/check/checkstyle/checkstyle.xml index 39a1e5c569f..663f17df0f5 100644 --- a/fe/check/checkstyle/checkstyle.xml +++ b/fe/check/checkstyle/checkstyle.xml @@ -431,6 +431,10 @@ under the License. value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/> </module> + <module name="PackageDeclaration"> + <property name="matchDirectoryStructure" value="true"/> + </module> + <!-- filter --> <!-- https://checkstyle.org/config_filters.html#SuppressionXpathFilter --> <module name="SuppressionXpathFilter"> diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/LogicalResultSinkToShortCircuitPointQuery.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/LogicalResultSinkToShortCircuitPointQuery.java similarity index 100% rename from fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/LogicalResultSinkToShortCircuitPointQuery.java rename to fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/LogicalResultSinkToShortCircuitPointQuery.java diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/RecoverPartitionCommand.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/RecoverPartitionCommand.java similarity index 100% rename from fe/fe-core/src/main/java/org/apache/doris/nereids/RecoverPartitionCommand.java rename to fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/RecoverPartitionCommand.java diff --git a/fe/fe-core/src/test/java/org/apache/doris/httpv2/CopyIntoTest.java b/fe/fe-core/src/test/java/org/apache/doris/httpv2/rest/CopyIntoTest.java similarity index 100% rename from fe/fe-core/src/test/java/org/apache/doris/httpv2/CopyIntoTest.java rename to fe/fe-core/src/test/java/org/apache/doris/httpv2/rest/CopyIntoTest.java --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org