File tree Expand file tree Collapse file tree 3 files changed +34
-27
lines changed Expand file tree Collapse file tree 3 files changed +34
-27
lines changed Original file line number Diff line number Diff line change 5
5
<module name =" Checker" >
6
6
<module name =" NewlineAtEndOfFile" />
7
7
<module name =" Header" >
8
- <property name =" headerFile" value =" checkstyle/fileheader.txt " />
8
+ <property name =" headerFile" value =" ${ checkstyle.header.file} " />
9
9
</module >
10
10
<module name =" FileLength" />
11
11
<module name =" FileTabCharacter" />
31
31
<property name =" onCommentFormat" value =" < /editor-fold> " />
32
32
</module >
33
33
</module >
34
- <module name =" SuppressionFilter" >
35
- <property name =" file" value =" checkstyle/suppressions.xml" />
36
- </module >
37
34
</module >
Original file line number Diff line number Diff line change 225
225
<version >2.9</version >
226
226
</plugin >
227
227
</plugins >
228
+ <pluginManagement >
229
+ <plugins >
230
+ <plugin >
231
+ <groupId >org.apache.maven.plugins</groupId >
232
+ <artifactId >maven-checkstyle-plugin</artifactId >
233
+ <version >3.0.0</version >
234
+ <dependencies >
235
+ <dependency >
236
+ <groupId >com.puppycrawl.tools</groupId >
237
+ <artifactId >checkstyle</artifactId >
238
+ <version >8.11</version >
239
+ </dependency >
240
+ </dependencies >
241
+ <executions >
242
+ <execution >
243
+ <id >checkstyle</id >
244
+ <phase >validate</phase >
245
+ <configuration >
246
+ <configLocation >/checkstyle/style.xml</configLocation >
247
+ <encoding >UTF-8</encoding >
248
+ <consoleOutput >true</consoleOutput >
249
+ <failsOnError >true</failsOnError >
250
+ <suppressionsLocation >/checkstyle/suppressions.xml</suppressionsLocation >
251
+ <headerLocation >/checkstyle/fileheader.txt</headerLocation >
252
+ </configuration >
253
+ <goals >
254
+ <goal >check</goal >
255
+ </goals >
256
+ </execution >
257
+ </executions >
258
+ </plugin >
259
+ </plugins >
260
+ </pluginManagement >
228
261
</build >
229
262
230
263
<reporting >
Original file line number Diff line number Diff line change 92
92
<plugin >
93
93
<groupId >org.apache.maven.plugins</groupId >
94
94
<artifactId >maven-checkstyle-plugin</artifactId >
95
- <version >3.0.0</version >
96
- <dependencies >
97
- <dependency >
98
- <groupId >com.puppycrawl.tools</groupId >
99
- <artifactId >checkstyle</artifactId >
100
- <version >8.11</version >
101
- </dependency >
102
- </dependencies >
103
- <executions >
104
- <execution >
105
- <id >checkstyle</id >
106
- <phase >validate</phase >
107
- <configuration >
108
- <configLocation >../checkstyle/style.xml</configLocation >
109
- <encoding >UTF-8</encoding >
110
- <consoleOutput >true</consoleOutput >
111
- <failsOnError >true</failsOnError >
112
- </configuration >
113
- <goals >
114
- <goal >check</goal >
115
- </goals >
116
- </execution >
117
- </executions >
118
95
</plugin >
119
96
120
97
<plugin >
You can’t perform that action at this time.
0 commit comments