From ea20c2abbd127a7dc110e1d6da2733e13b2d12e2 Mon Sep 17 00:00:00 2001 From: HARSH Date: Wed, 15 Jan 2025 13:55:43 +0530 Subject: [PATCH] checkstyle for Common-API --- .github/workflows/checkstyle.yml | 13 +++++++ checkstyle.xml | 65 ++++++++++++++++++++++++++++++++ pom.xml | 28 ++++++++++++++ 3 files changed, 106 insertions(+) create mode 100644 .github/workflows/checkstyle.yml create mode 100644 checkstyle.xml diff --git a/.github/workflows/checkstyle.yml b/.github/workflows/checkstyle.yml new file mode 100644 index 00000000..bcae2b38 --- /dev/null +++ b/.github/workflows/checkstyle.yml @@ -0,0 +1,13 @@ +name: Call Checkstyle + +on: + pull_request: + branches: ["master", "develop"] + paths: + - '**/*.java' + +jobs: + style-check: + uses: PSMRI/.github/.github/workflows/checkstyle.yml@main + with: + java-version: '17' \ No newline at end of file diff --git a/checkstyle.xml b/checkstyle.xml new file mode 100644 index 00000000..1893aaef --- /dev/null +++ b/checkstyle.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 1606baea..7a7457ba 100644 --- a/pom.xml +++ b/pom.xml @@ -613,6 +613,34 @@ + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.3.1 + + + com.puppycrawl.tools + checkstyle + 10.12.7 + + + + checkstyle.xml + UTF-8 + true + true + false + + + + validate + validate + + check + + + +