|
133 | 133 | <groupId>org.apache.maven.plugins</groupId> |
134 | 134 | <artifactId>maven-checkstyle-plugin</artifactId> |
135 | 135 | <version>${maven.checkstyle.plugin.version}</version> |
| 136 | + <configuration> |
| 137 | + <includeResources>false</includeResources> |
| 138 | + <includeTestResources>false</includeTestResources> |
| 139 | + <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 140 | + <configLocation> |
| 141 | + https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-${checkstyle.version}/config/checkstyle-checks.xml |
| 142 | + </configLocation> |
| 143 | + <propertiesLocation>config/checkstyle.properties</propertiesLocation> |
| 144 | + <failOnViolation>true</failOnViolation> |
| 145 | + <logViolationsToConsole>true</logViolationsToConsole> |
| 146 | + <maxAllowedViolations>0</maxAllowedViolations> |
| 147 | + <violationSeverity>error</violationSeverity> |
| 148 | + <outputFileFormat>xml</outputFileFormat> |
| 149 | + <outputFile> |
| 150 | + ${project.build.directory}/checkstyle/checkstyle-report.xml |
| 151 | + </outputFile> |
| 152 | + </configuration> |
136 | 153 | <dependencies> |
137 | 154 | <dependency> |
138 | 155 | <groupId>com.puppycrawl.tools</groupId> |
|
146 | 163 | <goals> |
147 | 164 | <goal>check</goal> |
148 | 165 | </goals> |
149 | | - <configuration> |
150 | | - <includeResources>false</includeResources> |
151 | | - <includeTestResources>false</includeTestResources> |
152 | | - <includeTestSourceDirectory>true</includeTestSourceDirectory> |
153 | | - <configLocation> |
154 | | - https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-${checkstyle.version}/config/checkstyle-checks.xml |
155 | | - </configLocation> |
156 | | - <propertiesLocation>config/checkstyle.properties</propertiesLocation> |
157 | | - <failOnViolation>true</failOnViolation> |
158 | | - <logViolationsToConsole>true</logViolationsToConsole> |
159 | | - <maxAllowedViolations>0</maxAllowedViolations> |
160 | | - <violationSeverity>error</violationSeverity> |
161 | | - <outputFileFormat>xml</outputFileFormat> |
162 | | - <outputFile> |
163 | | - ${project.build.directory}/checkstyle/checkstyle-report.xml |
164 | | - </outputFile> |
165 | | - </configuration> |
166 | 166 | </execution> |
167 | 167 | </executions> |
168 | 168 | </plugin> |
|
0 commit comments