Eclipse CheckStyle 标记
我认为这是 eclipse 专家的问题。检查样式标记位置在哪里?我正在使用一个插件来计算项目中出现的警告,它显示零个检查样式警告,而大约有 300 个!查看配置中的插件,我发现它正在寻找标记:com.atlassw.tools.eclipse.checkstyle.CheckstyleMarker
我不知道!
提前致谢
I think this is a question for eclipse experts. Where is the checkstyle marker location? I am using a plug in that is calculating warnings that apper in project and and it shows me zero checkstyle warnings , while there are around 300 !!! Looking at the plug in configuartions i see that is looking for markers : com.atlassw.tools.eclipse.checkstyle.CheckstyleMarker
i have no idea !!!
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,Eclipse (3.6) 将 checkstyle 结果存储在工作区的 .metadata 目录中名为 .markers 的文件中:
不过,这是一个二进制文件,所以我不认为阅读它会对你有好处。不过,这是检查某些标记是否存在的一种方法。 (很可能不是最好的。)
通常,Eclipse 的
Problems
视图会显示所有标记:Window ->显示视图->问题。Checkstyle Problem
类型的条目由 Checkstyle 生成。检查该视图中的Resource
和Path
列,以确保您在正确的范围内比较结果。您可以通过右键单击项目并选择“Checkstyle ->”来清除项目中的 Checkstyle 标记。从上下文菜单中清除 Checkstyle 违规。它们会在项目构建时重新创建。 (前提是 checkstyle 构建器处于活动状态,您可以在Builders 下的项目属性中进行检查)。
Well, Eclipse (3.6) stores the checkstyle findings in a file called
.markers
in the.metadata
directory of the workspace:That's a binary file though, so I don't think reading it will do you any good. It is one way to check that certain markers exist, though. (Quite possibly not the best.)
Normally, the
Problems
view of Eclipse shows you all markers: Window -> Show View -> Problems. Entries with typeCheckstyle problem
are generated by Checkstyle. Check theResource
andPath
columns in that view in order to make sure you are comparing findings in the right scope.You can clear the Checkstyle markers from a project by right-clicking it and selecting Checkstyle -> Clear Checkstyle violations from the context menu. They are recreated when the project is built. (Provided the checkstyle builder is active, which you can check in the project properties under Builders).