Skip to content

Commit

Permalink
[fix](code-style) Adapt to checkstyle and spotless (apache#26488)
Browse files Browse the repository at this point in the history
  • Loading branch information
liugddx authored and seawinde committed Nov 8, 2023
1 parent 8f4a572 commit c3043a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
16 changes: 1 addition & 15 deletions fe/check/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ under the License.
</module>
<module name="LineLength">
<property name="fileExtensions" value="java"/>
<property name="max" value="120"/>
<property name="max" value="150"/>
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>
<module name="NewlineAtEndOfFile">
Expand Down Expand Up @@ -93,14 +93,6 @@ under the License.
<property name="tokens"
value="LITERAL_DO, LITERAL_ELSE, LITERAL_FOR, LITERAL_IF, LITERAL_WHILE"/>
</module>
<module name="LeftCurly">
<property name="tokens"
value="ANNOTATION_DEF, CLASS_DEF, CTOR_DEF, ENUM_CONSTANT_DEF, ENUM_DEF,
INTERFACE_DEF, LAMBDA, LITERAL_CASE, LITERAL_CATCH, LITERAL_DEFAULT,
LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF,
LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, METHOD_DEF,
OBJBLOCK, STATIC_INIT, RECORD_DEF, COMPACT_CTOR_DEF"/>
</module>
<module name="RightCurly">
<property name="id" value="RightCurlySame"/>
<property name="tokens"
Expand Down Expand Up @@ -148,12 +140,6 @@ under the License.
<!-- Imports -->
<module name="AvoidStarImport"/>
<module name="AvoidStaticImport"/>
<module name="CustomImportOrder">
<property name="sortImportsInGroupAlphabetically" value="true"/>
<property name="separateLineBetweenGroups" value="true"/>
<property name="customImportOrderRules" value="SAME_PACKAGE(3)###THIRD_PARTY_PACKAGE###STANDARD_JAVA_PACKAGE"/>
<property name="tokens" value="IMPORT, STATIC_IMPORT, PACKAGE_DEF"/>
</module>
<module name="ImportControl">
<property name="file" value="check/checkstyle/import-control.xml"/>
</module>
Expand Down
4 changes: 2 additions & 2 deletions fe/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,7 @@ under the License.
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.22.8</version>
<version>2.29.0</version>
<configuration>
<ratchetFrom>origin/master</ratchetFrom>
<java>
Expand All @@ -1455,7 +1455,7 @@ under the License.
<removeUnusedImports />
<trimTrailingWhitespace />
<importOrder>
<order>org.apache.doris,org.apache,org,com,java|javax,,</order>
<order>org.apache.doris,org.apache,org,,javax,java,\#</order>
</importOrder>
</java>
<pom>
Expand Down

0 comments on commit c3043a2

Please sign in to comment.