简体   繁体   English

Checkstyle - 如何忽略在输出 xml 文件中添加类文件

[英]Checkstyle - How to ignore adding class file in output xml file

Is there any way to ignore showing the class file when it doesn't have the errors.有没有办法在没有错误时忽略显示类文件。 I have checkstyle.xml with rules, and when I tried to build my project, the Checkstyle validates all of my files, and then it generates the output XML file.我有带有规则的 checkstyle.xml,当我尝试构建我的项目时,Checkstyle 会验证我的所有文件,然后生成输出 XML 文件。 This XML tends to create HTML.这种 XML 倾向于创建 HTML。 I want to ignore to add the class file that validated through CheckStyle rule without any error.我想忽略添加通过 CheckStyle 规则验证而没有任何错误的类文件。

There is no way to trim down files specified in the XML report Checkstyle generates.无法修剪 Checkstyle 生成的 XML 报告中指定的文件。 I would look into pre-processing the XML file first and removing these entries.我会先研究预处理 XML 文件并删除这些条目。

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

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