This is an automated email from the ASF dual-hosted git repository.
yangjiaqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
The following commit(s) were added to refs/heads/master by this push:
new 73a4c9d02 chore: intro `editorconfig-maven-plugin` for verifying code
style defined in `.editorconfig` (#2591)
73a4c9d02 is described below
commit 73a4c9d028056fb5e1d4239d6178ea6c207fc733
Author: V_Galaxy <[email protected]>
AuthorDate: Wed Jul 17 16:03:27 2024 +0800
chore: intro `editorconfig-maven-plugin` for verifying code style defined
in `.editorconfig` (#2591)
* exclude .flattened-pom.xml
---
hugegraph-server/hugegraph-api/pom.xml | 12 +++++-----
hugegraph-server/pom.xml | 14 -----------
pom.xml | 44 ++++++++++++++++++++++++++++++++++
3 files changed, 50 insertions(+), 20 deletions(-)
diff --git a/hugegraph-server/hugegraph-api/pom.xml
b/hugegraph-server/hugegraph-api/pom.xml
index e13849d93..8a6fdb9e7 100644
--- a/hugegraph-server/hugegraph-api/pom.xml
+++ b/hugegraph-server/hugegraph-api/pom.xml
@@ -164,12 +164,12 @@
<artifactId>arthas-packaging</artifactId>
<version>${arthas.version}</version>
</dependency>
- <dependency>
- <groupId>org.gridkit.jvmtool</groupId>
- <artifactId>sjk-core</artifactId>
- <version>0.22</version>
- <scope>compile</scope>
- </dependency>
+ <dependency>
+ <groupId>org.gridkit.jvmtool</groupId>
+ <artifactId>sjk-core</artifactId>
+ <version>0.22</version>
+ <scope>compile</scope>
+ </dependency>
</dependencies>
<build>
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..0f8bc3e22 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,35 @@
</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>verify</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>**/*.txt</exclude>
+ <exclude>**/.flattened-pom.xml</exclude>
+ </excludes>
+ <!-- All files are included by default:
+ <includes>
+ <include>**</include>
+ </includes>
+ -->
+ </configuration>
+ </plugin>
</plugins>
</build>