[英]How to set a baseline for Checkstyle and Findbugs?
可以为使用Maven或其他工具的Checkstyle
和Findbugs
创建项目代码的基准(例如,从我指定的时间开始检查代码,而当前问题将被忽略)。
There is a plugin for checkstyle https://maven.apache.org/components/plugins/maven-checkstyle-plugin/ that allows you to execute the validation whenever you want, for findbugs, i don't know. 有一个用于checkstyle https://maven.apache.org/components/plugins/maven-checkstyle-plugin/的插件,它使您可以在需要时执行验证,对于findbugs,我不知道。
So my suggestion is to disable from the build the checkstyle "mvn [target] -Dcheckstyle.skip" , and run the report validations with the plugin. 因此,我的建议是从构建中禁用checkstyle“ mvn [target] -Dcheckstyle.skip”,并使用该插件运行报告验证。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.