TisonKun commented on a change in pull request #1019: ZOOKEEPER-3464:enfore
checkstyle in the zookeeper-server module and clean the package:admin and client
URL: https://github.com/apache/zookeeper/pull/1019#discussion_r306687171
##########
File path: pom.xml
##########
@@ -582,19 +582,20 @@
<version>${checkstyle.version}</version>
</dependency>
</dependencies>
- <configuration>
- <configLocation>checkstyle.xml</configLocation>
-
<suppressionsLocation>checkstyleSuppressions.xml</suppressionsLocation>
- <encoding>UTF-8</encoding>
- <consoleOutput>true</consoleOutput>
- <failOnViolation>true</failOnViolation>
- <includeResources>false</includeResources>
- <includeTestSourceDirectory>true</includeTestSourceDirectory>
- </configuration>
<executions>
<execution>
<id>checkstyle</id>
<phase>validate</phase>
+ <configuration>
+ <configLocation>checkstyle.xml</configLocation>
Review comment:
Hi @maoling , you can try out enable the former simple checkstyle
configuration in parent pom.xml and enable strict checkstyle configuration in,
for example, zookeeper-server pkg. Make sure the strict checkstyle
configuration contains rules in the simple one including forbid '@author' tag.
I would provide a patch you can make use of in this week if you stuck.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services