Skip to content

Commit

Permalink
Merge pull request #2994 from Multiverse/dtm/checkstyle_upgrade
Browse files Browse the repository at this point in the history
Upgrade Checkstyle & Rules.
  • Loading branch information
dumptruckman committed Sep 6, 2023
2 parents cb7ee2f + 3198fcc commit 5f9a002
Show file tree
Hide file tree
Showing 4 changed files with 346 additions and 83 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/generic.checkstyle.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions .github/workflows/pr.checkstyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: 'PR: Checkstyle'

on:
pull_request:
types: [opened, synchronize]

jobs:
checkstyle:
uses: ./.github/workflows/generic.checkstyle.yml
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ processResources {


checkstyle {
toolVersion = '6.1.1'
toolVersion = '10.12.2'
configFile file('config/mv_checks.xml')
ignoreFailures = true
}
Expand Down

0 comments on commit 5f9a002

Please sign in to comment.