From fd50c7c636e2c8456d540ad54e4899342143ef9a Mon Sep 17 00:00:00 2001 From: Vova Kolmakov Date: Wed, 22 Apr 2026 13:42:31 +0700 Subject: [PATCH] build: add spotless, checkstyle, and enforcer plugin configuration --- .editorconfig | 19 ++++++ checkstyle.xml | 174 +++++++++++++++++++++++++++++++++++++++++++++++++ pom.xml | 90 +++++++++++++++++++++++++ 3 files changed, 283 insertions(+) create mode 100644 .editorconfig create mode 100644 checkstyle.xml diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..0a2a8e1 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.java] +indent_style = space +indent_size = 4 +max_line_length = 100 + +[*.{xml,yml,yaml}] +indent_style = space +indent_size = 2 + +[Makefile] +indent_style = tab diff --git a/checkstyle.xml b/checkstyle.xml new file mode 100644 index 0000000..a689896 --- /dev/null +++ b/checkstyle.xml @@ -0,0 +1,174 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pom.xml b/pom.xml index d78486c..23f5df6 100644 --- a/pom.xml +++ b/pom.xml @@ -27,6 +27,28 @@ 2.20.0 5.3.1 3.24.2 + + + 2.43.0 + 1.19.2 + package + + /* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + 3.3.1 + 3.4.1 @@ -345,6 +367,74 @@ + + + + com.diffplug.spotless + spotless-maven-plugin + ${spotless.version} + + + true + + + + src/main/java/**/*.java + src/test/java/**/*.java + + + ${spotless.java.googlejavaformat.version} + + + + org.apache.flink,,javax,java,\# + + + + + ${spotless.license.header} + ${spotless.delimiter} + + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${maven-checkstyle-plugin.version} + + checkstyle.xml + true + true + warning + false + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + ${maven-enforcer-plugin.version} + + + enforce-versions + validate + + enforce + + + + + 3.6.3 + + + + + + +