Eclipse:checkstyle 违规图标装饰
虽然我发现 Eclipse 的 Checkstyle 插件非常有用,但我发现它们突出显示违规的方式太多了。我去掉了黄色背景和概述标尺,但我还没有弄清楚以下内容:
当存在 Checkstyle 违规时,包含它们的文件会出现在项目资源管理器中,并具有与具有编译器警告时相同的装饰图标()。我的所有类都出现了警告,我无法分辨哪些是编译器警告。我发现阻止 Checkstyle 更改文件装饰的唯一方法是在我的项目中将其关闭,但这显然也隐藏了编辑器中的违规行为。
有没有办法告诉 Checkstyle 不要更改文件图标?
Although I find the Checkstyle plugin for Eclipse very useful, I find the way they highlight violation too much. I stripped out the yellow background and the overview ruler, but I haven't figured out the following:
When there are Checkstyle violations, the files containing them appear in the Project Explorer with the same decoration icon as when they have compiler warnings (). All my classes appear infested with warnings, and I can't tell which of them are compiler warnings. The only way I found to keep Checkstyle from changing the file decorations is to turn it off for my projects, but that obviously also hides the violations in the editor.
Is there a way to tell Checkstyle not to change the file icons?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 SourceForge 论坛中(此处)对于该项目,他们说装修是不可能改变的,但可以做的是改变违规的严重程度。
In the SourceForge forum (here) for the project, they say that it is not possible to change the decoration, but what can be done instead is to change the severity of the violations.