File tree Expand file tree Collapse file tree 2 files changed +36
-38
lines changed
Expand file tree Collapse file tree 2 files changed +36
-38
lines changed Original file line number Diff line number Diff line change 1+ name : Run checkstyle
2+ # Checkstyle 13+ requires Java 21+.
3+ on : [push, pull_request]
4+ permissions : {}
5+ jobs :
6+ checkstyle :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
10+ with :
11+ submodules : true
12+ persist-credentials : false
13+ - uses : actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0
14+ with :
15+ distribution : zulu
16+ java-version : 24
17+ - run : mvn checkstyle:check -B
Original file line number Diff line number Diff line change 7272 </execution >
7373 </executions >
7474 </plugin >
75+ <!-- Checkstyle 13+ requires Java 21+. Run manually or via CI. -->
76+ <plugin >
77+ <groupId >org.apache.maven.plugins</groupId >
78+ <artifactId >maven-checkstyle-plugin</artifactId >
79+ <version >3.6.0</version >
80+ <configuration >
81+ <consoleOutput >true</consoleOutput >
82+ <configLocation >checkstyle.xml</configLocation >
83+ <suppressionsLocation >checkstyle-suppressions.xml</suppressionsLocation >
84+ <violationSeverity >warning</violationSeverity >
85+ </configuration >
86+ <dependencies >
87+ <dependency >
88+ <groupId >com.puppycrawl.tools</groupId >
89+ <artifactId >checkstyle</artifactId >
90+ <version >13.0.0</version >
91+ </dependency >
92+ </dependencies >
93+ </plugin >
7594 <plugin >
7695 <groupId >org.apache.maven.plugins</groupId >
7796 <artifactId >maven-gpg-plugin</artifactId >
254273 </plugins >
255274 </build >
256275 </profile >
257- <!-- Checkstyle 13+ requires Java 21+. -->
258- <profile >
259- <id >checkstyle-jdk21</id >
260- <activation >
261- <jdk >[21,)</jdk >
262- </activation >
263- <build >
264- <plugins >
265- <plugin >
266- <groupId >org.apache.maven.plugins</groupId >
267- <artifactId >maven-checkstyle-plugin</artifactId >
268- <version >3.6.0</version >
269- <configuration >
270- <consoleOutput >true</consoleOutput >
271- <configLocation >checkstyle.xml</configLocation >
272- <suppressionsLocation >checkstyle-suppressions.xml</suppressionsLocation >
273- <violationSeverity >warning</violationSeverity >
274- </configuration >
275- <dependencies >
276- <dependency >
277- <groupId >com.puppycrawl.tools</groupId >
278- <artifactId >checkstyle</artifactId >
279- <version >13.0.0</version >
280- </dependency >
281- </dependencies >
282- <executions >
283- <execution >
284- <id >checkstyle</id >
285- <phase >test</phase >
286- <goals >
287- <goal >check</goal >
288- </goals >
289- </execution >
290- </executions >
291- </plugin >
292- </plugins >
293- </build >
294- </profile >
295276 </profiles >
296277</project >
You can’t perform that action at this time.
0 commit comments