This repository was archived by the owner on Dec 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +33
-10
lines changed
Expand file tree Collapse file tree 3 files changed +33
-10
lines changed Original file line number Diff line number Diff line change @@ -27,16 +27,12 @@ jobs:
2727 java-version : ' 11'
2828 distribution : ' temurin'
2929 cache : maven
30- - name : Setup reviewdog
31- uses : reviewdog /action-setup@v1
30+ - name : Setup review
31+ uses : dbelyaev /action-checkstyle@master
3232 with :
33- reviewdog_version : latest
34- - name : download checkstyle
35- run : curl -o checkstyle.jar -L https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.17.0/checkstyle-10.17.0-all.jar
36- - name : checkstyle
37- env :
38- REVIEWDOG_GITHUB_API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39- run : java -jar checkstyle.jar -c checkstyle/google_checks.xml -f xml src | reviewdog -f=checkstyle -name="Checkstyle" -reporter=github-check
33+ github_token : ${{ secrets.github_token }}
34+ reporter : github-pr-review
35+ level : warning
4036 - name : Build with Maven
4137 run : mvn -B package --file pom.xml
4238
Original file line number Diff line number Diff line change @@ -5,3 +5,10 @@ release:
55# release with keyname
66release-with-key :
77 mvn clean deploy -P release -DskipTests -Dgpg.keyname=xx
8+
9+ checkstyle-checkstyle :
10+ mvn checkstyle:checkstyle
11+
12+ checkstyle-check :
13+ mvn checkstyle:check
14+
Original file line number Diff line number Diff line change 55 <modelVersion >4.0.0</modelVersion >
66 <artifactId >smart-doc</artifactId >
77 <packaging >jar</packaging >
8- <version >3.0.5 </version >
8+ <version >3.0.6 </version >
99
1010 <name >smart-doc</name >
1111 <url >https://github.com/TongchengOpenSource/smart-doc.git</url >
153153 </execution >
154154 </executions >
155155 </plugin >
156+ <plugin >
157+ <groupId >org.apache.maven.plugins</groupId >
158+ <artifactId >maven-checkstyle-plugin</artifactId >
159+ <version >3.4.0</version >
160+ <configuration >
161+ <configLocation >checkstyle/google_checks.xml</configLocation >
162+ </configuration >
163+ <executions >
164+ <execution >
165+ <id >checkstyle</id >
166+ <phase >validate</phase >
167+ <goals >
168+ <goal >check</goal >
169+ </goals >
170+ <configuration >
171+ <failOnViolation >true</failOnViolation >
172+ </configuration >
173+ </execution >
174+ </executions >
175+ </plugin >
156176 </plugins >
157177 </build >
158178 <distributionManagement >
You can’t perform that action at this time.
0 commit comments