diff --git a/.github/workflows/generic.checkstyle.yml b/.github/workflows/generic.checkstyle.yml new file mode 100644 index 00000000..a57e6cd2 --- /dev/null +++ b/.github/workflows/generic.checkstyle.yml @@ -0,0 +1,18 @@ +name: 'Generic: Checkstyle' + +on: + workflow_call: + +jobs: + checkstyle: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v3 + + - uses: dbelyaev/action-checkstyle@v0.8.4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + checkstyle_version: 10.12.2 + checkstyle_config: ./config/mv_checks.xml diff --git a/.github/workflows/pr.checkstyle.yml b/.github/workflows/pr.checkstyle.yml new file mode 100644 index 00000000..100efc0b --- /dev/null +++ b/.github/workflows/pr.checkstyle.yml @@ -0,0 +1,9 @@ +name: 'PR: Checkstyle' + +on: + pull_request: + types: [opened, synchronize] + +jobs: + checkstyle: + uses: ./.github/workflows/generic.checkstyle.yml diff --git a/build.gradle b/build.gradle index 1f1b84fa..08f4e6b0 100644 --- a/build.gradle +++ b/build.gradle @@ -161,7 +161,7 @@ processResources { checkstyle { - toolVersion = '6.1.1' + toolVersion = '10.12.2' configFile file('config/mv_checks.xml') ignoreFailures = true } diff --git a/config/mv_checks.xml b/config/mv_checks.xml index 0c660d8d..553c6530 100644 --- a/config/mv_checks.xml +++ b/config/mv_checks.xml @@ -6,136 +6,372 @@ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--> + "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" + "https://checkstyle.org/dtds/configuration_1_3.dtd"> - - - + + + + + + - - - - + + + - - - + + + + - - - - + + + + - - - + + + + + - + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + - - - - + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + - - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +