From c80e34fdc5a1fe666db3e7896b5d0239f84b0254 Mon Sep 17 00:00:00 2001 From: Manuel Fuhr Date: Sat, 9 Jul 2022 07:38:04 +0200 Subject: [PATCH 1/2] Add checkstyle --- build.gradle | 2 ++ config/checkstyle/checkstyle.xml | 16 ++++++++++++++++ config/checkstyle/suppressions.xml | 8 ++++++++ 3 files changed, 26 insertions(+) create mode 100644 config/checkstyle/checkstyle.xml create mode 100644 config/checkstyle/suppressions.xml diff --git a/build.gradle b/build.gradle index 3e0f897..f4571ba 100644 --- a/build.gradle +++ b/build.gradle @@ -45,6 +45,8 @@ allprojects { gpr(MavenPublication) } } + + apply plugin: "checkstyle" } task clean(type: Delete) { diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml new file mode 100644 index 0000000..5eb174f --- /dev/null +++ b/config/checkstyle/checkstyle.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + diff --git a/config/checkstyle/suppressions.xml b/config/checkstyle/suppressions.xml new file mode 100644 index 0000000..0755c89 --- /dev/null +++ b/config/checkstyle/suppressions.xml @@ -0,0 +1,8 @@ + + + + + + From f18cded3a7408bd8d953d99238963826019c88df Mon Sep 17 00:00:00 2001 From: Manuel Fuhr Date: Sat, 9 Jul 2022 07:43:57 +0200 Subject: [PATCH 2/2] Enable checkstyle checks Basic indention / formatting checks but suppressed for most modules because they currently fail the checks. --- config/checkstyle/checkstyle.xml | 6 ++++-- config/checkstyle/suppressions.xml | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml index 5eb174f..e36cf2e 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -8,9 +8,11 @@ - + - + + + diff --git a/config/checkstyle/suppressions.xml b/config/checkstyle/suppressions.xml index 0755c89..c1d43b6 100644 --- a/config/checkstyle/suppressions.xml +++ b/config/checkstyle/suppressions.xml @@ -5,4 +5,11 @@ "https://checkstyle.org/dtds/suppressions_1_2.dtd"> + + + + + + +