dblock / fui

Find unused Objective-C imports.
MIT License
2.04k stars 180 forks source link

Getting no results #11

Closed alexmalek closed 10 years ago

alexmalek commented 10 years ago

Hey, I ran this against an objective-c code base, but no matter how many unused imports I add, I don't get any results. I turned on verbose, and it is scanning the files that have unused imports. This is an xcode 5.1.1 (ios7) project. Thoughts?

dblock commented 10 years ago

Can you post some output from the verbose run?

alexmalek commented 10 years ago

It outputs "Checking..." for every file in the path, e.g. "Checking Base.lproj/Main.storyboard ...". The file I edited was called "ConfirmationVC" - in the log, it lists "Checking Classes/ViewControllers/ConfirmationVC.m ..."

alexmalek commented 10 years ago

Here is the command-line I used: "fui -v --path=~/src/mobile/ios/"

dblock commented 10 years ago

I think you may be confusing what "unused imports" means. It's not that if you import "foo" and nothing from foo is referenced, it's the other way around. If the ConfirmationViewController class was never used (really just imported) in the project, that would be flagged. So it finds unused "classes" more than "imports", but that's some terminology we got from other projects.

Does this make sense?

alexmalek commented 10 years ago

ah, that makes total sense. sorry for the confusion!