Java CheckStyle用法 [英] Java CheckStyle usage

查看:99
本文介绍了Java CheckStyle用法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 CheckStyle 编写我自己的Check,并将其合并到我的ant构建中。 xml。该文档似乎并未提供有关操作方法的详细说明。是否有人有这样做的经验,如果可以,他们是否可以提供 HelloWorldCheck 示例以及他们在 build.xml 创建运行该目标的目标?

I'd like to write my own Check using CheckStyle and incorporate this in my ant build.xml. The documentation doesn't seem to provide detailed instructions on how to do so. Does anyone have experience doing this, and if so, can they provide a HelloWorldCheck example along with the changes one needs in their build.xml to create a target that runs this?

此处是我对他们的sourceforge邮件dist

Here is a reference to my question on their sourceforge mail dist

推荐答案

以下是编写 ant任务来运行checkstyle的示例。

Here is an example for writing an ant task to run checkstyle.

您应该查看可用支票,看看是否有已经是可以满足您要求的支票。如果没有,以下指南应该具有足够的信息来帮助您入门。

You should look at the available checks to see if there is already a check that fulfills your requirement. If not, the following guide should have enough information to get you started.

这篇关于Java CheckStyle用法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆