Eclipse checkstyle 检查 log4j,但我无法让它停止

发布于 2024-08-23 16:54:52 字数 168 浏览 3 评论 0原文

我找不到 Eclipse checkstyle 插件(我正在运行 5.1.0)最近抱怨 log4j.property 文件中的样式问题的任何配置。它不在我的 checkstyle.xml 中,当我在 Eclipse 外部运行 checkstyle 时不会发生这种情况,并且我没有看到 Eclipse 首选项。这是可控的吗?

I can't find any configuration for the recent tendency of the Eclipse checkstyle plugin (I'm running 5.1.0) to complain about style issues in log4j.property files. It's not in my checkstyle.xml, it doesn't happen when I run checkstyle outside of eclipse, and I don't see an eclipse preference. Is this controllable?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

兔姬 2024-08-30 16:54:52

您可以从“项目属性”的 checkstyle 部分中排除。

"file from non source directories"

如果选择该选项,它将停止“检查”该属性文件。

或者您可以单击文件类型列表进行检查,然后删除“属性”。

替代文本 http://img689.imageshack.us/img689/8035/eclipsecheckstyleexclud.png< /a>

You can, from the checkstyle section of the "project properties", exclude

"file from non source directories"

If you select that option, it will stop "checking" that properties file.

Or you can click on the list of file types to check, and delete 'properties'.

alt text http://img689.imageshack.us/img689/8035/eclipsecheckstyleexclud.png

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文