From 7a5e9954ade5559ace47564bf27f1b12adfc0c14 Mon Sep 17 00:00:00 2001 From: HARSH Date: Wed, 15 Jan 2025 17:20:21 +0530 Subject: [PATCH] checkstyle-TM-API --- .github/workflows/checkstyle.yml | 13 +++++++ .gitignore | 1 + checkstyle.xml | 65 ++++++++++++++++++++++++++++++++ pom.xml | 28 ++++++++++++++ 4 files changed, 107 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/.gitignore b/.gitignore index 21774346..02bce81a 100644 --- a/.gitignore +++ b/.gitignore @@ -54,6 +54,7 @@ replay_pid8684.log replay_pid15072.log /.sts4-cache /logs +command_output.log # Properties src/main/environment/common_local.properties 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 de4e6bb3..6177fdfd 100644 --- a/pom.xml +++ b/pom.xml @@ -434,6 +434,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 + + + +