Eclipse: checkstyle violations icon decoration

倖福魔咒の 提交于 2019-12-25 07:58:56

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/8039611/eclipse-checkstyle-violations-icon-decoration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!