Skip to content

Commit

Permalink
Explicitly run PMD when requested (like CheckStyle)
Browse files Browse the repository at this point in the history
  • Loading branch information
AB-xdev committed Sep 19, 2024
1 parent d2981e2 commit f539c12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
cache: 'gradle'

- name: Run Checkstyle
run: ./gradlew checkstyleMain checkstyleTest -PcheckstyleEnabled=true
run: ./gradlew checkstyleMain checkstyleTest -PcheckstyleEnabled

pmd:
runs-on: ubuntu-latest
Expand All @@ -115,7 +115,7 @@ jobs:
cache: 'gradle'

- name: Run PMD
run: ./gradlew pmdMain pmdTest
run: ./gradlew pmdMain pmdTest -PpmdEnabled

- name: Upload report
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .run/Run Tests.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="-PskipPMD" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ tasks.withType(Checkstyle).configureEach {
}

tasks.withType(Pmd).configureEach {
enabled = !project.hasProperty("skipPMD")
enabled = project.hasProperty("pmdEnabled")
}

// Configure compileJava AND compileTestJava
Expand Down

0 comments on commit f539c12

Please sign in to comment.