From 6db59cc52c03e6b8097d413b9dd7c9e3189f0e5a Mon Sep 17 00:00:00 2001 From: vil02 Date: Sun, 21 Apr 2024 12:22:34 +0200 Subject: [PATCH] chore: configure `checkstyle` --- .github/workflows/build.yml | 2 + checkstyle.xml | 198 ++++++++++++++++++++++++++++++++++++ pom.xml | 18 ++++ 3 files changed, 218 insertions(+) create mode 100644 checkstyle.xml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 19f84e023a5b..49821b917fd2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,3 +29,5 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true + - name: Checkstyle + run: mvn checkstyle:check diff --git a/checkstyle.xml b/checkstyle.xml new file mode 100644 index 000000000000..6f635c7af61d --- /dev/null +++ b/checkstyle.xml @@ -0,0 +1,198 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pom.xml b/pom.xml index f81894dcaf7e..594a9acc39f1 100644 --- a/pom.xml +++ b/pom.xml @@ -96,6 +96,24 @@ + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.3.1 + + checkstyle.xml + true + true + warning + + + + com.puppycrawl.tools + checkstyle + 9.3 + + +