diff --git a/.github/workflows/checkstyle.yml b/.github/workflows/checkstyle.yml new file mode 100644 index 0000000..bcae2b3 --- /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 0000000..1893aae --- /dev/null +++ b/checkstyle.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 232965b..d9a982d 100644 --- a/pom.xml +++ b/pom.xml @@ -355,6 +355,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 + + + +