Bug Pattern Detector
Last week I downloaded FindBugs application by source forge and found a lot of bugs that are in my project. That include errors like using == for String comparison, using Float.equals(Integers).
I was wondering if there is a plug-in for find bugs or similar plug-in that I can use so that I can integrate with my regular development and not need run findbugs application once in a while.
If there is no plug-in for this. May be if somebody can help me integrate findbugs as a plug-in with Idea. I have not written any plugin's so far, what would be a best example to look at.
Thanks in advance.
Amar
请先登录再写评论。
Have you tried IspectionGadgets (plug-in under 4.0, built in in 4.5)?
The way to turn its inspections on (around 300) is to go to Settings -->
IDE --> Errors.
By default most of it is turned off, and it probably at least many of
the tests you are looking for. The == instead of equals() is there.
A lot of the inspections are also backed up by intentions (e.g. turn ==
into equals()) so even the fix is there for you.
Regards,
Amnon
Amar wrote:
Cool. I am going to try it right know.
Thanks for you'r help Amnon.