繁体   English   中英

如何在 Jenkins 中配置 checkstyle 规则

[英]How to configure checkstyle rule in Jenkins

我已经在 J​​enkins 中配置了 Check-style 插件。 我想知道如何向 Jenkins 提供自定义检查样式规则文件(Rule.xml)。

任何人都可以帮助解决这个问题

您可以在运行时定义规则集。 您可以复制已有的 xml 文件并根据需要进行调整。

java -jar checkstyle-8.8-all.jar -c /google_checks.xml MyClass.java

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM