Definition of unused imports

Hi there,

AppCode marks headers as unused even though what they import is actually used. However, they are included from somewhere else (but not the related header file) before.

For example, Foo.m contains the imports

#import "Foo.h"

#import "Subclass.h"
#import "Superclass.h"

Lets further assume that Subclass.h imports Superclass.h, and in Foo.m I reference to both classes directly. Therefore, I'd like to keep both imports, but Superclass.h is marked as unused. Can I change the behavior so that only imports are marked as unused of which I do not really use anything?


1 comment
Comment actions Permalink

There is no such an option at the moment, here is a feature request: OC-6258, please feel freee to participate in the discussion.


Please sign in to leave a comment.