This is an automated email from the ASF dual-hosted git repository. vgalaxies pushed a commit to branch code-style-checker in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
commit cf5a51961bcbedb0f9b89f7b28c5cfb75a77b032 Author: VGalaxies <[email protected]> AuthorDate: Mon Jul 15 23:51:10 2024 +0800 tmp --- hugegraph-server/pom.xml | 14 -------------- pom.xml | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 14 deletions(-) diff --git a/hugegraph-server/pom.xml b/hugegraph-server/pom.xml index 2fc6f7199..2eb015857 100644 --- a/hugegraph-server/pom.xml +++ b/hugegraph-server/pom.xml @@ -273,20 +273,6 @@ <build> <pluginManagement> <plugins> - <plugin> - <artifactId>maven-compiler-plugin</artifactId> - <version>3.1</version> - <configuration> - <source>${maven.compiler.source}</source> - <target>${maven.compiler.target}</target> - <compilerArguments> - <Xmaxerrs>500</Xmaxerrs> - </compilerArguments> - <compilerArgs> - <arg>-Xlint:unchecked</arg> - </compilerArgs> - </configuration> - </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId> diff --git a/pom.xml b/pom.xml index b11ef8e53..d6a654f41 100644 --- a/pom.xml +++ b/pom.xml @@ -219,8 +219,23 @@ </execution> </executions> </plugin> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.1</version> + <configuration> + <source>${maven.compiler.source}</source> + <target>${maven.compiler.target}</target> + <compilerArguments> + <Xmaxerrs>500</Xmaxerrs> + </compilerArguments> + <compilerArgs> + <arg>-Xlint:unchecked</arg> + </compilerArgs> + </configuration> + </plugin> </plugins> </pluginManagement> + <plugins> <plugin> <groupId>org.apache.rat</groupId> @@ -235,6 +250,34 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.ec4j.maven</groupId> + <artifactId>editorconfig-maven-plugin</artifactId> + <version>0.1.3</version> + <executions> + <execution> + <id>style-check</id> + <goals> + <goal>check</goal> + </goals> + <phase>validate</phase> + </execution> + </executions> + <configuration> + <!-- See http://ec4j.github.io/editorconfig-maven-plugin/ for full configuration reference --> + <excludes> + <!-- Note that maven submodule directories and many non-source file patterns are excluded by default --> + <!-- see https://github.com/ec4j/editorconfig-linters/blob/master/editorconfig-lint-api/src/main/java/org/ec4j/lint/api/Constants.java#L37 --> + <!-- You can exclude further files from processing: --> + <exclude>src/main/**/*.whatever</exclude> + </excludes> + <!-- All files are included by default: + <includes> + <include>**</include> + </includes> + --> + </configuration> + </plugin> </plugins> </build>
