File tree Expand file tree Collapse file tree 3 files changed +40
-2
lines changed Expand file tree Collapse file tree 3 files changed +40
-2
lines changed Original file line number Diff line number Diff line change 73
73
path : build/libs/intellij-plugin-save-actions-*.jar
74
74
if-no-files-found : error
75
75
76
- code-style :
76
+ checkstyle :
77
77
runs-on : ubuntu-latest
78
+ if : ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
78
79
79
80
strategy :
80
81
matrix :
93
94
94
95
- name : Run Checkstyle
95
96
run : ./gradlew checkstyleMain checkstyleTest -PcheckstyleEnabled=true
97
+
98
+ pmd :
99
+ runs-on : ubuntu-latest
100
+ if : ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
101
+
102
+ strategy :
103
+ matrix :
104
+ java : [17]
105
+ distribution : [temurin]
106
+
107
+ steps :
108
+ - uses : actions/checkout@v4
109
+
110
+ - name : Set up JDK
111
+ uses : actions/setup-java@v4
112
+ with :
113
+ distribution : ${{ matrix.distribution }}
114
+ java-version : ${{ matrix.java }}
115
+ cache : ' gradle'
116
+
117
+ - name : Run PMD
118
+ run : ./gradlew pmdMain pmdTest
119
+
120
+ - name : Upload report
121
+ if : always()
122
+ uses : actions/upload-artifact@v4
123
+ with :
124
+ name : pmd-report
125
+ if-no-files-found : ignore
126
+ path : |
127
+ build/reports/pmd/*.html
Original file line number Diff line number Diff line change 1
1
[ ![ Latest version] ( https://img.shields.io/jetbrains/plugin/v/22113?logo=jetbrains )] ( https://plugins.jetbrains.com/plugin/22113 )
2
- [ ![ Build] ( https://img.shields.io/github/actions/workflow/status/xdev-software/intellij-plugin-save-actions/checkBuild .yml?branch=develop )] ( https://github.com/xdev-software/intellij-plugin-save-actions/actions/workflows/checkBuild .yml?query=branch%3Adevelop )
2
+ [ ![ Build] ( https://img.shields.io/github/actions/workflow/status/xdev-software/intellij-plugin-save-actions/check-build .yml?branch=develop )] ( https://github.com/xdev-software/intellij-plugin-save-actions/actions/workflows/check-build .yml?query=branch%3Adevelop )
3
3
[ ![ Quality Gate Status] ( https://sonarcloud.io/api/project_badges/measure?project=xdev-software_intellij-plugin-save-actions&metric=alert_status )] ( https://sonarcloud.io/dashboard?id=xdev-software_intellij-plugin-save-actions )
4
4
[ ![ Feel free to leave a rating] ( https://img.shields.io/jetbrains/plugin/r/rating/22113?style=social&logo=jetbrains&label=Feel%20free%20to%20leave%20a%20rating )] ( https://plugins.jetbrains.com/plugin/22113/reviews )
5
5
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ plugins {
2
2
id ' java'
3
3
id ' idea'
4
4
id ' checkstyle'
5
+ id ' pmd'
5
6
id ' org.jetbrains.intellij' version ' 1.17.4'
6
7
id ' org.sonarqube' version ' 5.0.0.4638'
7
8
}
@@ -78,6 +79,11 @@ checkstyle {
78
79
toolVersion = checkstyleVersion
79
80
}
80
81
82
+ pmd {
83
+ consoleOutput = true
84
+ ruleSetFiles = files(" .config/pmd/ruleset.xml" )
85
+ }
86
+
81
87
tasks. withType(Checkstyle ). configureEach {
82
88
enabled = project. hasProperty(" checkstyleEnabled" );
83
89
}
You can’t perform that action at this time.
0 commit comments