Unused Symbol

Hi there,

I was wondering: is there a way to put classes on a list to be excluded from the 'Unused Symbol' inspection? While I value the idea behind it, we're using Fitnesse a lot (a testing framework) which calls our Fixtures (Java classes). All these classes are reported as not being used, and IntelliJ would like to delete them (when pressing Alt+Enter). I would not appreciate the deletion of those classes, but I would appreciate it if they are not reported as not being used. The only way I found so far is a) turning of the inspection (which I did), or b) annotating it (which doesn't make sense in my case).

Would it be possible to fix this? Eg, Ignore the class, or ignore packages/directories/modules? That would be most helpful!

Kind regards, Erik

PS: I still don't like the Create New Java Class dialog.

1 comment
Comment actions Permalink

There's the concept of Entry Point that is more or less what you're
looking for as I understand it.
I've never grasp Entry Point completely, but the way I see it, that's
the list of entry points for external APIs that access your code, which
Idea can't really be aware of.

Typically the accessor methods for Hibernate/JPA Entities are Entry Points.

I'm not aware of any interface/dialog that allows easy management of
them though.


On 2009-11-07 06:09:10 +0900, Erik Pragt <no_reply@jetbrains.com> said:

Hi there,

I was wondering: is there a way to put classes on a list to be excluded
from the 'Unused Symbol' inspection? While I value the idea behind it,
we're using Fitnesse a lot (a testing framework) which calls our
Fixtures (Java classes). All these classes are reported as not being
used, and IntelliJ would like to delete them (when pressing Alt+Enter).
I would not appreciate the deletion of those classes, but I would
appreciate it if they are not reported as not being used. The only way
I found so far is a) turning of the inspection (which I did), or b)
annotating it (which doesn't make sense in my case).

Would it be possible to fix this? Eg, Ignore the class, or ignore
packages/directories/modules? That would be most helpful!

Kind regards, Erik

PS: I still don't like the Create New Java Class dialog.

---
Original message URL: http://www.jetbrains.net/devnet/message/5249274#5249274



0

Please sign in to leave a comment.