From 5ff692b768dda9cbc0bf24da95b176557bbf317c Mon Sep 17 00:00:00 2001 From: cat-shark <1716967236@qq.com> Date: Fri, 20 Nov 2026 09:36:46 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=8E=A5=E5=85=A5=20Checkstyle=20?= =?UTF-8?q?=E9=97=A8=E7=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/checkstyle/checkstyle.xml | 96 ++++++++++++++++++++++++++++++ config/checkstyle/suppressions.xml | 15 +++++ pom.xml | 29 +++++++++ 3 files changed, 140 insertions(+) create mode 100644 config/checkstyle/checkstyle.xml create mode 100644 config/checkstyle/suppressions.xml diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml new file mode 100644 index 0000000..07e091d --- /dev/null +++ b/config/checkstyle/checkstyle.xml @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config/checkstyle/suppressions.xml b/config/checkstyle/suppressions.xml new file mode 100644 index 0000000..5b12009 --- /dev/null +++ b/config/checkstyle/suppressions.xml @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/pom.xml b/pom.xml index 4537716..c6305ea 100644 --- a/pom.xml +++ b/pom.xml @@ -178,6 +178,35 @@ org.springframework.boot spring-boot-maven-plugin + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.3.1 + + + com.puppycrawl.tools + checkstyle + 10.12.4 + + + + + checkstyle-validate + validate + + check + + + config/checkstyle/checkstyle.xml + config/checkstyle/suppressions.xml + true + true + false + UTF-8 + + + +