开发者

Eclipse CheckStyle Marker

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 开发者_Python百科idea !!!

Thanks in advance


Well, Eclipse (3.6) stores the checkstyle findings in a file called .markers in the .metadata directory of the workspace:

<workspace>\.metadata\.plugins\org.eclipse.core.resources\.projects\MyProject\.markers

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 type Checkstyle problem are generated by Checkstyle. Check the Resource and Path 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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜