Eclipse:checkstyle违规图标装饰 [英] Eclipse: checkstyle violations icon decoration

查看:374
本文介绍了Eclipse:checkstyle违规图标装饰的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽管我发现Eclipse的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:

当有Checkstyle违规时,包含它们的文件会显示在项目中Explorer具有与编译器警告相同的装饰图标()。我的所有课程都出现了警告,我不知道哪些是编译器警告。我发现保持Checkstyle改变文件装饰的唯一方法是关闭我的项目,但这显然也隐藏了编辑器中的违规。

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.

是否有一个方法来告诉Checkstyle不要更改文件图标?

Is there a way to tell Checkstyle not to change the file icons?

推荐答案

在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.

这篇关于Eclipse:checkstyle违规图标装饰的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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